mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-20 12:15:51 +00:00
Restrict to node version 10
Many unit tests fail under node 12. It is possible that some of these are caused by issues in node that will be fixed in the future. This also removes the dependency on 'assert-diff' since it is not necessary. It can easily be re-added in the future, if needed.
This commit is contained in:
1
packages/ripple-binary-codec/.nvmrc
Normal file
1
packages/ripple-binary-codec/.nvmrc
Normal file
@@ -0,0 +1 @@
|
||||
10.16
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "ripple-binary-codec",
|
||||
"version": "0.2.1",
|
||||
"description": "ripple binary codec",
|
||||
"description": "XRP Ledger binary codec",
|
||||
"files": [
|
||||
"distrib/npm/*",
|
||||
"bin/*",
|
||||
@@ -21,7 +21,6 @@
|
||||
"ripple-address-codec": "^2.0.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"assert-diff": "^1.0.1",
|
||||
"babel-cli": "^6.8.0",
|
||||
"babel-core": "^6.8.0",
|
||||
"babel-eslint": "^6.0.4",
|
||||
@@ -47,7 +46,7 @@
|
||||
"url": "git://github.com/ripple/ripple-binary-codec.git"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.12.0"
|
||||
"node": ">=10.0.0 <11.0.0"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/ripple/ripple-binary-codec/issues"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
const _ = require('lodash');
|
||||
const assert = require('assert-diff');
|
||||
const assert = require('assert');
|
||||
const utils = require('./utils');
|
||||
const {Amount} = require('../src/coretypes');
|
||||
const {loadFixture} = utils;
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
const coreTypes = require('../src/coretypes');
|
||||
|
||||
const _ = require('lodash');
|
||||
const assert = require('assert-diff');
|
||||
const assert = require('assert');
|
||||
const {encodeAccountID} = require('ripple-address-codec');
|
||||
const {binary: {makeParser, readJSON}, Field, Amount, Hash160} = coreTypes;
|
||||
const {enums: {TransactionType}} = coreTypes;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* eslint-disable func-style */
|
||||
|
||||
const BN = require('bn.js');
|
||||
const assert = require('assert-diff');
|
||||
const assert = require('assert');
|
||||
const lib = require('../src/coretypes');
|
||||
const encode = require('../src').encode;
|
||||
const {binary: {makeParser, BytesList, BinarySerializer}} = lib;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const assert = require('assert-diff');
|
||||
const assert = require('assert');
|
||||
const {Hash160, Hash256, Currency, AccountID} = require('../src/coretypes');
|
||||
|
||||
describe('Hash160', function() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const assert = require('assert-diff');
|
||||
const assert = require('assert');
|
||||
const {quality, binary: {bytesToHex}} = require('../src/coretypes');
|
||||
|
||||
describe('Quality encode/decode', function() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const assert = require('assert-diff');
|
||||
const assert = require('assert');
|
||||
const {ShaMap} = require('../src/shamap.js');
|
||||
const {binary: {serializeObject}, Hash256, HashPrefix}
|
||||
= require('../src/coretypes');
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
const _ = require('lodash');
|
||||
const assert = require('assert-diff');
|
||||
const assert = require('assert');
|
||||
const {encodeForSigning, encodeForSigningClaim, encodeForMultisigning} =
|
||||
require('../src');
|
||||
|
||||
|
||||
3428
packages/ripple-binary-codec/yarn.lock
Normal file
3428
packages/ripple-binary-codec/yarn.lock
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user