Compare commits

..

7 Commits

Author SHA1 Message Date
Nathan Nichols
a163aba7c7 Publish
- ripple-address-codec@4.2.1-beta.0
 - ripple-binary-codec@1.2.1-beta.0
 - ripple-keypairs@1.1.1-beta.0
 - xrpl@2.0.3-beta.0
2021-11-30 15:45:21 -06:00
Mayukha Vadari
c657e22304 Revert "respond to comments"
This reverts commit 689768bbf1.
2021-11-30 14:41:57 -05:00
Mayukha Vadari
689768bbf1 respond to comments 2021-11-30 14:38:46 -05:00
Mayukha Vadari
34ed8afae0 fix typing 2021-11-30 14:29:18 -05:00
Mayukha Vadari
3124a281b5 make ts happy 2021-11-30 14:22:58 -05:00
Mayukha Vadari
fe75f127f6 clean up 2021-11-30 14:22:58 -05:00
Mayukha Vadari
ce229b9977 initial patch 2021-11-30 14:22:58 -05:00
14 changed files with 104 additions and 180 deletions

212
package-lock.json generated
View File

@@ -33,10 +33,10 @@
"ejs": "^3.0.1", "ejs": "^3.0.1",
"eslint": "^7.5.0", "eslint": "^7.5.0",
"eslint-plugin-array-func": "^3.1.7", "eslint-plugin-array-func": "^3.1.7",
"eslint-plugin-consistent-default-export-name": "^0.0.14", "eslint-plugin-consistent-default-export-name": "^0.0.13",
"eslint-plugin-eslint-comments": "^3.2.0", "eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.24.1", "eslint-plugin-import": "^2.24.1",
"eslint-plugin-jsdoc": "^37.1.0", "eslint-plugin-jsdoc": "^36.0.0",
"eslint-plugin-mocha": "^9.0.0", "eslint-plugin-mocha": "^9.0.0",
"eslint-plugin-node": "^11.1.0", "eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^4.0.0", "eslint-plugin-prettier": "^4.0.0",
@@ -718,26 +718,24 @@
} }
}, },
"node_modules/@es-joy/jsdoccomment": { "node_modules/@es-joy/jsdoccomment": {
"version": "0.12.0", "version": "0.10.8",
"resolved": "https://registry.npmjs.org/@es-joy/jsdoccomment/-/jsdoccomment-0.12.0.tgz", "integrity": "sha512-3P1JiGL4xaR9PoTKUHa2N/LKwa2/eUdRqGwijMWWgBqbFEqJUVpmaOi2TcjcemrsRMgFLBzQCK4ToPhrSVDiFQ==",
"integrity": "sha512-Gw4/j9v36IKY8ET+W0GoOzrRw17xjf21EIFFRL3zx21fF5MnqmeNpNi+PU/LKjqLpPb2Pw2XdlJbYM31VVo/PQ==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"comment-parser": "1.2.4", "comment-parser": "1.2.4",
"esquery": "^1.4.0", "esquery": "^1.4.0",
"jsdoc-type-pratt-parser": "2.0.0" "jsdoc-type-pratt-parser": "1.1.1"
}, },
"engines": { "engines": {
"node": "^12 || ^14 || ^16 || ^17" "node": "^12 || ^14 || ^16"
} }
}, },
"node_modules/@es-joy/jsdoccomment/node_modules/comment-parser": { "node_modules/@es-joy/jsdoccomment/node_modules/jsdoc-type-pratt-parser": {
"version": "1.2.4", "version": "1.1.1",
"resolved": "https://registry.npmjs.org/comment-parser/-/comment-parser-1.2.4.tgz", "integrity": "sha512-uelRmpghNwPBuZScwgBG/OzodaFk5RbO5xaivBdsAY70icWfShwZ7PCMO0x1zSkOa8T1FzHThmrdoyg/0AwV5g==",
"integrity": "sha512-pm0b+qv+CkWNriSTMsfnjChF9kH0kxz55y44Wo5le9qLxMj5xDQAaEd9ZN1ovSuk9CsrncWaFwgpOMg7ClJwkw==",
"dev": true, "dev": true,
"engines": { "engines": {
"node": ">= 12.0.0" "node": ">=12.0.0"
} }
}, },
"node_modules/@eslint/eslintrc": { "node_modules/@eslint/eslintrc": {
@@ -2893,9 +2891,8 @@
"dev": true "dev": true
}, },
"node_modules/@types/node": { "node_modules/@types/node": {
"version": "16.11.11", "version": "16.11.6",
"resolved": "https://registry.npmjs.org/@types/node/-/node-16.11.11.tgz", "integrity": "sha512-ua7PgUoeQFjmWPcoo9khiPum3Pd60k4/2ZGXt18sm2Slk0W0xZTqt5Y0Ny1NyBiN1EVQ/+FaF9NcY4Qe6rwk5w==",
"integrity": "sha512-KB0sixD67CeecHC33MYn+eYARkqTheIRNuu97y2XMjR7Wu3XibO1vaY6VBV6O/a89SPI81cEUIYT87UqUWlZNw==",
"dev": true "dev": true
}, },
"node_modules/@types/normalize-package-data": { "node_modules/@types/normalize-package-data": {
@@ -4884,9 +4881,8 @@
"dev": true "dev": true
}, },
"node_modules/comment-parser": { "node_modules/comment-parser": {
"version": "1.3.0", "version": "1.2.4",
"resolved": "https://registry.npmjs.org/comment-parser/-/comment-parser-1.3.0.tgz", "integrity": "sha512-pm0b+qv+CkWNriSTMsfnjChF9kH0kxz55y44Wo5le9qLxMj5xDQAaEd9ZN1ovSuk9CsrncWaFwgpOMg7ClJwkw==",
"integrity": "sha512-hRpmWIKgzd81vn0ydoWoyPoALEOnF4wt8yKD35Ib1D6XC2siLiYaiqfGkYrunuKdsXGwpBpHU3+9r+RVw2NZfA==",
"dev": true, "dev": true,
"engines": { "engines": {
"node": ">= 12.0.0" "node": ">= 12.0.0"
@@ -6049,9 +6045,8 @@
} }
}, },
"node_modules/eslint-plugin-consistent-default-export-name": { "node_modules/eslint-plugin-consistent-default-export-name": {
"version": "0.0.14", "version": "0.0.13",
"resolved": "https://registry.npmjs.org/eslint-plugin-consistent-default-export-name/-/eslint-plugin-consistent-default-export-name-0.0.14.tgz", "integrity": "sha512-vrCH7XnvJZTTVlw8zH+4X84bK7MbI9/h4m0r7wxvYcbW4XViSDb99SBE6Wz1HmWzz3sUHID6nFeVjek5qdObRA==",
"integrity": "sha512-9+YfYLQchFArcFvg7vHPjJZi3sUUIA5D2DWLmZzFbnmRf+wdX/9lgbKEaiJKfr+3/sYIvP71EdFlpjzOlSbm2Q==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"lodash.camelcase": "^4.3.0", "lodash.camelcase": "^4.3.0",
@@ -6140,43 +6135,25 @@
"dev": true "dev": true
}, },
"node_modules/eslint-plugin-jsdoc": { "node_modules/eslint-plugin-jsdoc": {
"version": "37.1.0", "version": "36.1.1",
"resolved": "https://registry.npmjs.org/eslint-plugin-jsdoc/-/eslint-plugin-jsdoc-37.1.0.tgz", "integrity": "sha512-nuLDvH1EJaKx0PCa9oeQIxH6pACIhZd1gkalTUxZbaxxwokjs7TplqY0Q8Ew3CoZaf5aowm0g/Z3JGHCatt+gQ==",
"integrity": "sha512-DpkFzX5Sqkqzy4MCgowhDXmusWcF1Gn7wYnphdGfWmIkoQr6SwL0jEtltGAVyF5Rj6ACi6ydw0oCCI5hF3yz6w==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"@es-joy/jsdoccomment": "0.12.0", "@es-joy/jsdoccomment": "0.10.8",
"comment-parser": "1.3.0", "comment-parser": "1.2.4",
"debug": "^4.3.3", "debug": "^4.3.2",
"escape-string-regexp": "^4.0.0",
"esquery": "^1.4.0", "esquery": "^1.4.0",
"jsdoc-type-pratt-parser": "^2.0.0", "jsdoc-type-pratt-parser": "^1.1.1",
"lodash": "^4.17.21",
"regextras": "^0.8.0", "regextras": "^0.8.0",
"semver": "^7.3.5", "semver": "^7.3.5",
"spdx-expression-parse": "^3.0.1" "spdx-expression-parse": "^3.0.1"
}, },
"engines": { "engines": {
"node": "^12 || ^14 || ^16 || ^17" "node": "^12 || ^14 || ^16"
}, },
"peerDependencies": { "peerDependencies": {
"eslint": "^7.0.0 || ^8.0.0" "eslint": "^6.0.0 || ^7.0.0"
}
},
"node_modules/eslint-plugin-jsdoc/node_modules/debug": {
"version": "4.3.3",
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.3.tgz",
"integrity": "sha512-/zxw5+vh1Tfv+4Qn7a5nsbcJKPaSvCDhojn6FEl9vupwK2VCSDtEiEtqr8DFtzYFOdz63LBkxec7DYuc2jon6Q==",
"dev": true,
"dependencies": {
"ms": "2.1.2"
},
"engines": {
"node": ">=6.0"
},
"peerDependenciesMeta": {
"supports-color": {
"optional": true
}
} }
}, },
"node_modules/eslint-plugin-jsx-a11y": { "node_modules/eslint-plugin-jsx-a11y": {
@@ -9819,9 +9796,8 @@
"dev": true "dev": true
}, },
"node_modules/jsdoc-type-pratt-parser": { "node_modules/jsdoc-type-pratt-parser": {
"version": "2.0.0", "version": "1.2.0",
"resolved": "https://registry.npmjs.org/jsdoc-type-pratt-parser/-/jsdoc-type-pratt-parser-2.0.0.tgz", "integrity": "sha512-4STjeF14jp4bqha44nKMY1OUI6d2/g6uclHWUCZ7B4DoLzaB5bmpTkQrpqU+vSVzMD0LsKAOskcnI3I3VfIpmg==",
"integrity": "sha512-sUuj2j48wxrEpbFjDp1sAesAxPiLT+z0SWVmMafyIINs6Lj5gIPKh3VrkBZu4E/Dv+wHpOot0m6H8zlHQjwqeQ==",
"dev": true, "dev": true,
"engines": { "engines": {
"node": ">=12.0.0" "node": ">=12.0.0"
@@ -12765,9 +12741,8 @@
} }
}, },
"node_modules/prettier": { "node_modules/prettier": {
"version": "2.5.0", "version": "2.4.1",
"resolved": "https://registry.npmjs.org/prettier/-/prettier-2.5.0.tgz", "integrity": "sha512-9fbDAXSBcc6Bs1mZrDYb3XKzDLm4EXXL9sC1LqKP5rZkT6KRr/rf9amVUcODVXgguK/isJz0d0hP72WeaKWsvA==",
"integrity": "sha512-FM/zAKgWTxj40rH03VxzIPdXmj39SwSjwG0heUcNFwI+EMZJnY93yAiKXM3dObIKAM5TA88werc8T/EwhB45eg==",
"dev": true, "dev": true,
"bin": { "bin": {
"prettier": "bin-prettier.js" "prettier": "bin-prettier.js"
@@ -15575,9 +15550,8 @@
} }
}, },
"node_modules/typedoc": { "node_modules/typedoc": {
"version": "0.22.10", "version": "0.22.8",
"resolved": "https://registry.npmjs.org/typedoc/-/typedoc-0.22.10.tgz", "integrity": "sha512-92S+YzyhospdXN5rnkYUTgirdTYqNWY7NP9vco+IqQQoiSXzVSUsawVro+tMyEEsWUS7EMaJ2YOjB9uE0CBi6A==",
"integrity": "sha512-hQYZ4WtoMZ61wDC6w10kxA42+jclWngdmztNZsDvIz7BMJg7F2xnT+uYsUa7OluyKossdFj9E9Ye4QOZKTy8SA==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"glob": "^7.2.0", "glob": "^7.2.0",
@@ -15593,7 +15567,7 @@
"node": ">= 12.10.0" "node": ">= 12.10.0"
}, },
"peerDependencies": { "peerDependencies": {
"typescript": "4.0.x || 4.1.x || 4.2.x || 4.3.x || 4.4.x || 4.5.x" "typescript": "4.0.x || 4.1.x || 4.2.x || 4.3.x || 4.4.x"
} }
}, },
"node_modules/typedoc/node_modules/glob": { "node_modules/typedoc/node_modules/glob": {
@@ -15620,9 +15594,8 @@
"integrity": "sha512-7uc1O8h1M1g0rArakJdf0uLRSSgFcYexrVoKo+bzJd32gd4gDy2L/Z+8/FjPnU9ydY3pEnVPtr9FyscYY60K1g==" "integrity": "sha512-7uc1O8h1M1g0rArakJdf0uLRSSgFcYexrVoKo+bzJd32gd4gDy2L/Z+8/FjPnU9ydY3pEnVPtr9FyscYY60K1g=="
}, },
"node_modules/typescript": { "node_modules/typescript": {
"version": "4.5.2", "version": "4.4.4",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.5.2.tgz", "integrity": "sha512-DqGhF5IKoBl8WNf8C1gu8q0xZSInh9j1kJJMqT3a94w1JzVaBU4EXOSMrz9yDqMT0xt3selp83fuFMQ0uzv6qA==",
"integrity": "sha512-5BlMof9H1yGt0P8/WF+wPNw6GfctgGjXp5hkblpyT+8rkASSmkUKMXrxR0Xg8ThVCi/JnHQiKXeBaEwCeQwMFw==",
"dev": true, "dev": true,
"bin": { "bin": {
"tsc": "bin/tsc", "tsc": "bin/tsc",
@@ -16608,7 +16581,7 @@
} }
}, },
"packages/ripple-address-codec": { "packages/ripple-address-codec": {
"version": "4.2.2", "version": "4.2.0",
"integrity": "sha512-9QhBNDiWjwj7l+WQ7H7klXF/VwxVj2Q0HRhd4vLCueTPoxUtaNQyfvUZFiXJrqxg0heM3/iWxupkq4TwrXgSuQ==", "integrity": "sha512-9QhBNDiWjwj7l+WQ7H7klXF/VwxVj2Q0HRhd4vLCueTPoxUtaNQyfvUZFiXJrqxg0heM3/iWxupkq4TwrXgSuQ==",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
@@ -16616,11 +16589,12 @@
"create-hash": "^1.1.2" "create-hash": "^1.1.2"
}, },
"engines": { "engines": {
"node": ">= 10" "node": ">= 10",
"npm": ">=7.0.0"
} }
}, },
"packages/ripple-binary-codec": { "packages/ripple-binary-codec": {
"version": "1.2.2", "version": "1.2.0",
"integrity": "sha512-XMRCbFXyG+dGp3x7tMs9IwA+FVWPPaGjdHYW2+g4Q/WQJqFp5MRED+jjOBOUafmrW4TUsOn1PEEdbB4ozWbDBw==", "integrity": "sha512-XMRCbFXyG+dGp3x7tMs9IwA+FVWPPaGjdHYW2+g4Q/WQJqFp5MRED+jjOBOUafmrW4TUsOn1PEEdbB4ozWbDBw==",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
@@ -16629,10 +16603,11 @@
"buffer": "5.6.0", "buffer": "5.6.0",
"create-hash": "^1.2.0", "create-hash": "^1.2.0",
"decimal.js": "^10.2.0", "decimal.js": "^10.2.0",
"ripple-address-codec": "^4.2.2" "ripple-address-codec": "^4.2.0"
}, },
"engines": { "engines": {
"node": ">=10.22.0" "node": ">=10.22.0",
"npm": ">=7.0.0"
} }
}, },
"packages/ripple-binary-codec/node_modules/buffer": { "packages/ripple-binary-codec/node_modules/buffer": {
@@ -16644,7 +16619,7 @@
} }
}, },
"packages/ripple-keypairs": { "packages/ripple-keypairs": {
"version": "1.1.2", "version": "1.1.0",
"integrity": "sha512-Zlmbtn2YUpW4uKlLm2/tpkY5RC/EXQlkJwIIKp0AoF9D23pJ43/EuipNW2F6qURdbkUezDwB0bMV7uRXip3x2w==", "integrity": "sha512-Zlmbtn2YUpW4uKlLm2/tpkY5RC/EXQlkJwIIKp0AoF9D23pJ43/EuipNW2F6qURdbkUezDwB0bMV7uRXip3x2w==",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
@@ -16652,14 +16627,15 @@
"brorand": "^1.0.5", "brorand": "^1.0.5",
"elliptic": "^6.5.4", "elliptic": "^6.5.4",
"hash.js": "^1.0.3", "hash.js": "^1.0.3",
"ripple-address-codec": "^4.2.2" "ripple-address-codec": "^4.2.0"
}, },
"engines": { "engines": {
"node": ">= 10" "node": ">= 10",
"npm": ">=7.0.0"
} }
}, },
"packages/xrpl": { "packages/xrpl": {
"version": "2.0.4", "version": "2.0.2",
"integrity": "sha512-NmrSYpXym7NzGABeXU1H8g4ZtCxRhr/3wu0lguxzcIYpcKPgWLYimg+s9NLLNbPWTZdxXu9SeSWu5zh4gyqAeA==", "integrity": "sha512-NmrSYpXym7NzGABeXU1H8g4ZtCxRhr/3wu0lguxzcIYpcKPgWLYimg+s9NLLNbPWTZdxXu9SeSWu5zh4gyqAeA==",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
@@ -16668,16 +16644,17 @@
"bip39": "^3.0.4", "bip39": "^3.0.4",
"https-proxy-agent": "^5.0.0", "https-proxy-agent": "^5.0.0",
"lodash": "^4.17.4", "lodash": "^4.17.4",
"ripple-address-codec": "^4.2.2", "ripple-address-codec": "^4.2.0",
"ripple-binary-codec": "^1.2.2", "ripple-binary-codec": "^1.2.0",
"ripple-keypairs": "^1.1.2", "ripple-keypairs": "^1.1.0",
"ws": "^8.2.2" "ws": "^8.2.2"
}, },
"devDependencies": { "devDependencies": {
"xrpl-local": "file:./src" "xrpl-local": "file:./src"
}, },
"engines": { "engines": {
"node": ">=10.13.0" "node": ">=10.13.0",
"npm": ">=7.14.0 <8.0.0"
} }
}, },
"packages/xrpl/node_modules/ws": { "packages/xrpl/node_modules/ws": {
@@ -16700,8 +16677,6 @@
} }
}, },
"packages/xrpl/src": { "packages/xrpl/src": {
"name": "xrpl-local",
"version": "0.0.1",
"dev": true "dev": true
} }
}, },
@@ -17187,20 +17162,18 @@
"dev": true "dev": true
}, },
"@es-joy/jsdoccomment": { "@es-joy/jsdoccomment": {
"version": "0.12.0", "version": "0.10.8",
"resolved": "https://registry.npmjs.org/@es-joy/jsdoccomment/-/jsdoccomment-0.12.0.tgz", "integrity": "sha512-3P1JiGL4xaR9PoTKUHa2N/LKwa2/eUdRqGwijMWWgBqbFEqJUVpmaOi2TcjcemrsRMgFLBzQCK4ToPhrSVDiFQ==",
"integrity": "sha512-Gw4/j9v36IKY8ET+W0GoOzrRw17xjf21EIFFRL3zx21fF5MnqmeNpNi+PU/LKjqLpPb2Pw2XdlJbYM31VVo/PQ==",
"dev": true, "dev": true,
"requires": { "requires": {
"comment-parser": "1.2.4", "comment-parser": "1.2.4",
"esquery": "^1.4.0", "esquery": "^1.4.0",
"jsdoc-type-pratt-parser": "2.0.0" "jsdoc-type-pratt-parser": "1.1.1"
}, },
"dependencies": { "dependencies": {
"comment-parser": { "jsdoc-type-pratt-parser": {
"version": "1.2.4", "version": "1.1.1",
"resolved": "https://registry.npmjs.org/comment-parser/-/comment-parser-1.2.4.tgz", "integrity": "sha512-uelRmpghNwPBuZScwgBG/OzodaFk5RbO5xaivBdsAY70icWfShwZ7PCMO0x1zSkOa8T1FzHThmrdoyg/0AwV5g==",
"integrity": "sha512-pm0b+qv+CkWNriSTMsfnjChF9kH0kxz55y44Wo5le9qLxMj5xDQAaEd9ZN1ovSuk9CsrncWaFwgpOMg7ClJwkw==",
"dev": true "dev": true
} }
} }
@@ -18950,9 +18923,8 @@
"dev": true "dev": true
}, },
"@types/node": { "@types/node": {
"version": "16.11.11", "version": "16.11.6",
"resolved": "https://registry.npmjs.org/@types/node/-/node-16.11.11.tgz", "integrity": "sha512-ua7PgUoeQFjmWPcoo9khiPum3Pd60k4/2ZGXt18sm2Slk0W0xZTqt5Y0Ny1NyBiN1EVQ/+FaF9NcY4Qe6rwk5w==",
"integrity": "sha512-KB0sixD67CeecHC33MYn+eYARkqTheIRNuu97y2XMjR7Wu3XibO1vaY6VBV6O/a89SPI81cEUIYT87UqUWlZNw==",
"dev": true "dev": true
}, },
"@types/normalize-package-data": { "@types/normalize-package-data": {
@@ -20475,9 +20447,8 @@
"dev": true "dev": true
}, },
"comment-parser": { "comment-parser": {
"version": "1.3.0", "version": "1.2.4",
"resolved": "https://registry.npmjs.org/comment-parser/-/comment-parser-1.3.0.tgz", "integrity": "sha512-pm0b+qv+CkWNriSTMsfnjChF9kH0kxz55y44Wo5le9qLxMj5xDQAaEd9ZN1ovSuk9CsrncWaFwgpOMg7ClJwkw==",
"integrity": "sha512-hRpmWIKgzd81vn0ydoWoyPoALEOnF4wt8yKD35Ib1D6XC2siLiYaiqfGkYrunuKdsXGwpBpHU3+9r+RVw2NZfA==",
"dev": true "dev": true
}, },
"commondir": { "commondir": {
@@ -21411,9 +21382,8 @@
"requires": {} "requires": {}
}, },
"eslint-plugin-consistent-default-export-name": { "eslint-plugin-consistent-default-export-name": {
"version": "0.0.14", "version": "0.0.13",
"resolved": "https://registry.npmjs.org/eslint-plugin-consistent-default-export-name/-/eslint-plugin-consistent-default-export-name-0.0.14.tgz", "integrity": "sha512-vrCH7XnvJZTTVlw8zH+4X84bK7MbI9/h4m0r7wxvYcbW4XViSDb99SBE6Wz1HmWzz3sUHID6nFeVjek5qdObRA==",
"integrity": "sha512-9+YfYLQchFArcFvg7vHPjJZi3sUUIA5D2DWLmZzFbnmRf+wdX/9lgbKEaiJKfr+3/sYIvP71EdFlpjzOlSbm2Q==",
"dev": true, "dev": true,
"requires": { "requires": {
"lodash.camelcase": "^4.3.0", "lodash.camelcase": "^4.3.0",
@@ -21482,31 +21452,19 @@
} }
}, },
"eslint-plugin-jsdoc": { "eslint-plugin-jsdoc": {
"version": "37.1.0", "version": "36.1.1",
"resolved": "https://registry.npmjs.org/eslint-plugin-jsdoc/-/eslint-plugin-jsdoc-37.1.0.tgz", "integrity": "sha512-nuLDvH1EJaKx0PCa9oeQIxH6pACIhZd1gkalTUxZbaxxwokjs7TplqY0Q8Ew3CoZaf5aowm0g/Z3JGHCatt+gQ==",
"integrity": "sha512-DpkFzX5Sqkqzy4MCgowhDXmusWcF1Gn7wYnphdGfWmIkoQr6SwL0jEtltGAVyF5Rj6ACi6ydw0oCCI5hF3yz6w==",
"dev": true, "dev": true,
"requires": { "requires": {
"@es-joy/jsdoccomment": "0.12.0", "@es-joy/jsdoccomment": "0.10.8",
"comment-parser": "1.3.0", "comment-parser": "1.2.4",
"debug": "^4.3.3", "debug": "^4.3.2",
"escape-string-regexp": "^4.0.0",
"esquery": "^1.4.0", "esquery": "^1.4.0",
"jsdoc-type-pratt-parser": "^2.0.0", "jsdoc-type-pratt-parser": "^1.1.1",
"lodash": "^4.17.21",
"regextras": "^0.8.0", "regextras": "^0.8.0",
"semver": "^7.3.5", "semver": "^7.3.5",
"spdx-expression-parse": "^3.0.1" "spdx-expression-parse": "^3.0.1"
},
"dependencies": {
"debug": {
"version": "4.3.3",
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.3.tgz",
"integrity": "sha512-/zxw5+vh1Tfv+4Qn7a5nsbcJKPaSvCDhojn6FEl9vupwK2VCSDtEiEtqr8DFtzYFOdz63LBkxec7DYuc2jon6Q==",
"dev": true,
"requires": {
"ms": "2.1.2"
}
}
} }
}, },
"eslint-plugin-jsx-a11y": { "eslint-plugin-jsx-a11y": {
@@ -24195,9 +24153,8 @@
"dev": true "dev": true
}, },
"jsdoc-type-pratt-parser": { "jsdoc-type-pratt-parser": {
"version": "2.0.0", "version": "1.2.0",
"resolved": "https://registry.npmjs.org/jsdoc-type-pratt-parser/-/jsdoc-type-pratt-parser-2.0.0.tgz", "integrity": "sha512-4STjeF14jp4bqha44nKMY1OUI6d2/g6uclHWUCZ7B4DoLzaB5bmpTkQrpqU+vSVzMD0LsKAOskcnI3I3VfIpmg==",
"integrity": "sha512-sUuj2j48wxrEpbFjDp1sAesAxPiLT+z0SWVmMafyIINs6Lj5gIPKh3VrkBZu4E/Dv+wHpOot0m6H8zlHQjwqeQ==",
"dev": true "dev": true
}, },
"jsdom": { "jsdom": {
@@ -26442,9 +26399,8 @@
"dev": true "dev": true
}, },
"prettier": { "prettier": {
"version": "2.5.0", "version": "2.4.1",
"resolved": "https://registry.npmjs.org/prettier/-/prettier-2.5.0.tgz", "integrity": "sha512-9fbDAXSBcc6Bs1mZrDYb3XKzDLm4EXXL9sC1LqKP5rZkT6KRr/rf9amVUcODVXgguK/isJz0d0hP72WeaKWsvA==",
"integrity": "sha512-FM/zAKgWTxj40rH03VxzIPdXmj39SwSjwG0heUcNFwI+EMZJnY93yAiKXM3dObIKAM5TA88werc8T/EwhB45eg==",
"dev": true "dev": true
}, },
"prettier-linter-helpers": { "prettier-linter-helpers": {
@@ -27096,7 +27052,7 @@
"buffer": "5.6.0", "buffer": "5.6.0",
"create-hash": "^1.2.0", "create-hash": "^1.2.0",
"decimal.js": "^10.2.0", "decimal.js": "^10.2.0",
"ripple-address-codec": "^4.2.2" "ripple-address-codec": "^4.2.0"
}, },
"dependencies": { "dependencies": {
"buffer": { "buffer": {
@@ -27116,7 +27072,7 @@
"brorand": "^1.0.5", "brorand": "^1.0.5",
"elliptic": "^6.5.4", "elliptic": "^6.5.4",
"hash.js": "^1.0.3", "hash.js": "^1.0.3",
"ripple-address-codec": "^4.2.2" "ripple-address-codec": "^4.2.0"
} }
}, },
"rsvp": { "rsvp": {
@@ -28570,9 +28526,8 @@
} }
}, },
"typedoc": { "typedoc": {
"version": "0.22.10", "version": "0.22.8",
"resolved": "https://registry.npmjs.org/typedoc/-/typedoc-0.22.10.tgz", "integrity": "sha512-92S+YzyhospdXN5rnkYUTgirdTYqNWY7NP9vco+IqQQoiSXzVSUsawVro+tMyEEsWUS7EMaJ2YOjB9uE0CBi6A==",
"integrity": "sha512-hQYZ4WtoMZ61wDC6w10kxA42+jclWngdmztNZsDvIz7BMJg7F2xnT+uYsUa7OluyKossdFj9E9Ye4QOZKTy8SA==",
"dev": true, "dev": true,
"requires": { "requires": {
"glob": "^7.2.0", "glob": "^7.2.0",
@@ -28602,9 +28557,8 @@
"integrity": "sha512-7uc1O8h1M1g0rArakJdf0uLRSSgFcYexrVoKo+bzJd32gd4gDy2L/Z+8/FjPnU9ydY3pEnVPtr9FyscYY60K1g==" "integrity": "sha512-7uc1O8h1M1g0rArakJdf0uLRSSgFcYexrVoKo+bzJd32gd4gDy2L/Z+8/FjPnU9ydY3pEnVPtr9FyscYY60K1g=="
}, },
"typescript": { "typescript": {
"version": "4.5.2", "version": "4.4.4",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.5.2.tgz", "integrity": "sha512-DqGhF5IKoBl8WNf8C1gu8q0xZSInh9j1kJJMqT3a94w1JzVaBU4EXOSMrz9yDqMT0xt3selp83fuFMQ0uzv6qA==",
"integrity": "sha512-5BlMof9H1yGt0P8/WF+wPNw6GfctgGjXp5hkblpyT+8rkASSmkUKMXrxR0Xg8ThVCi/JnHQiKXeBaEwCeQwMFw==",
"dev": true "dev": true
}, },
"uglify-js": { "uglify-js": {
@@ -29254,9 +29208,9 @@
"bip39": "^3.0.4", "bip39": "^3.0.4",
"https-proxy-agent": "^5.0.0", "https-proxy-agent": "^5.0.0",
"lodash": "^4.17.4", "lodash": "^4.17.4",
"ripple-address-codec": "^4.2.2", "ripple-address-codec": "^4.2.0",
"ripple-binary-codec": "^1.2.2", "ripple-binary-codec": "^1.2.0",
"ripple-keypairs": "^1.1.2", "ripple-keypairs": "^1.1.0",
"ws": "^8.2.2", "ws": "^8.2.2",
"xrpl-local": "file:src" "xrpl-local": "file:src"
}, },

View File

@@ -35,10 +35,10 @@
"ejs": "^3.0.1", "ejs": "^3.0.1",
"eslint": "^7.5.0", "eslint": "^7.5.0",
"eslint-plugin-array-func": "^3.1.7", "eslint-plugin-array-func": "^3.1.7",
"eslint-plugin-consistent-default-export-name": "^0.0.14", "eslint-plugin-consistent-default-export-name": "^0.0.13",
"eslint-plugin-eslint-comments": "^3.2.0", "eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.24.1", "eslint-plugin-import": "^2.24.1",
"eslint-plugin-jsdoc": "^37.1.0", "eslint-plugin-jsdoc": "^36.0.0",
"eslint-plugin-mocha": "^9.0.0", "eslint-plugin-mocha": "^9.0.0",
"eslint-plugin-node": "^11.1.0", "eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^4.0.0", "eslint-plugin-prettier": "^4.0.0",

View File

@@ -1,9 +1,5 @@
# ripple-address-codec # ripple-address-codec
## 4.2.1 (2021-12-1)
- Fix issue where npm < 7 could not install the library
- Initial pass at linting this codebase with new rules
## 4.2.0 (2021-11-15) ## 4.2.0 (2021-11-15)
- Converts ripple-address-codec into a monorepo with ripple-binary-codec, - Converts ripple-address-codec into a monorepo with ripple-binary-codec,
ripple-keypairs, and xrpl. Changes to build tooling but no new features or ripple-keypairs, and xrpl. Changes to build tooling but no new features or

View File

@@ -1,6 +1,6 @@
{ {
"name": "ripple-address-codec", "name": "ripple-address-codec",
"version": "4.2.2", "version": "4.2.1-beta.0",
"description": "encodes/decodes base58 encoded XRP Ledger identifiers", "description": "encodes/decodes base58 encoded XRP Ledger identifiers",
"files": [ "files": [
"dist/*", "dist/*",
@@ -27,6 +27,7 @@
}, },
"prettier": "@xrplf/prettier-config", "prettier": "@xrplf/prettier-config",
"engines": { "engines": {
"node": ">= 10" "node": ">= 10",
"npm": ">=7.0.0"
} }
} }

View File

@@ -1,11 +1,5 @@
# ripple-binary-codec Release History # ripple-binary-codec Release History
## 1.2.2 (2021-12-2)
- Fix issue where unsupported currency codes weren't being correctly processed
## 1.2.1 (2021-12-1)
- Fix issue where npm < 7 could not install the library
## 1.2.0 (2021-11-15) ## 1.2.0 (2021-11-15)
- Converts ripple-binary-codec into a monorepo with ripple-address-codec, - Converts ripple-binary-codec into a monorepo with ripple-address-codec,
ripple-keypairs, and xrpl ripple-keypairs, and xrpl

View File

@@ -1,6 +1,6 @@
{ {
"name": "ripple-binary-codec", "name": "ripple-binary-codec",
"version": "1.2.2", "version": "1.2.1-beta.0",
"description": "XRP Ledger binary codec", "description": "XRP Ledger binary codec",
"files": [ "files": [
"dist/*", "dist/*",
@@ -17,7 +17,7 @@
"buffer": "5.6.0", "buffer": "5.6.0",
"create-hash": "^1.2.0", "create-hash": "^1.2.0",
"decimal.js": "^10.2.0", "decimal.js": "^10.2.0",
"ripple-address-codec": "^4.2.2" "ripple-address-codec": "^4.2.1-beta.0"
}, },
"scripts": { "scripts": {
"build": "run-script-os", "build": "run-script-os",
@@ -40,6 +40,7 @@
"readmeFilename": "README.md", "readmeFilename": "README.md",
"prettier": "@xrplf/prettier-config", "prettier": "@xrplf/prettier-config",
"engines": { "engines": {
"node": ">=10.22.0" "node": ">=10.22.0",
"npm": ">=7.0.0"
} }
} }

View File

@@ -154,10 +154,7 @@ class BinarySerializer {
isUnlModifyWorkaround = false, isUnlModifyWorkaround = false,
): void { ): void {
const bytes = new BytesList() const bytes = new BytesList()
if (!isUnlModifyWorkaround) { if (!isUnlModifyWorkaround) value.toBytesSink(bytes)
// this part doesn't happen for the Account field in a UNLModify transaction
value.toBytesSink(bytes)
}
this.put(this.encodeVariableLength(bytes.getLength())) this.put(this.encodeVariableLength(bytes.getLength()))
this.writeBytesList(bytes) this.writeBytesList(bytes)
} }

View File

@@ -89,7 +89,7 @@ class Currency extends Hash160 {
if (this.bytes[0] !== 0) { if (this.bytes[0] !== 0) {
this._iso = null this._iso = null
} else if (/^0*$/.test(this.bytes.toString('hex'))) { } else if (code.toString('hex') === '000000') {
this._iso = 'XRP' this._iso = 'XRP'
} else { } else {
this._iso = isoCodeFromHex(code) this._iso = isoCodeFromHex(code)

View File

@@ -128,12 +128,8 @@ class STObject extends SerializedType {
xAddressDecoded[field.name], xAddressDecoded[field.name],
) )
if ((associatedValue as unknown as Bytes).name === 'UNLModify') { if ((associatedValue as unknown as Bytes).name === 'UNLModify') {
// triggered when the TransactionType field has a value of 'UNLModify'
isUnlModify = true isUnlModify = true
} }
// true when in the UNLModify pseudotransaction (after the transaction type has been processed) and working with the
// Account field
// The Account field must not be a part of the UNLModify pseudotransaction encoding, due to a bug in rippled
const isUnlModifyWorkaround = field.name == 'Account' && isUnlModify const isUnlModifyWorkaround = field.name == 'Account' && isUnlModify
bytes.writeFieldAndValue(field, associatedValue, isUnlModifyWorkaround) bytes.writeFieldAndValue(field, associatedValue, isUnlModifyWorkaround)
if (field.type.name === ST_OBJECT) { if (field.type.name === ST_OBJECT) {

View File

@@ -69,7 +69,6 @@ describe('Currency', function () {
expect(Currency.from('X8P').toJSON()).toBe('X8P') expect(Currency.from('X8P').toJSON()).toBe('X8P')
expect(Currency.from('USD').toJSON()).toBe('USD') expect(Currency.from('USD').toJSON()).toBe('USD')
}) })
test('can be constructed from a Buffer', function () { test('can be constructed from a Buffer', function () {
const xrp = new Currency(Buffer.alloc(20)) const xrp = new Currency(Buffer.alloc(20))
expect(xrp.iso()).toBe('XRP') expect(xrp.iso()).toBe('XRP')
@@ -78,12 +77,6 @@ describe('Currency', function () {
const currency = '015841551A748AD2C1F76FF6ECB0CCCD00000000' const currency = '015841551A748AD2C1F76FF6ECB0CCCD00000000'
expect(Currency.from(currency).toJSON()).toBe(currency) expect(Currency.from(currency).toJSON()).toBe(currency)
}) })
test('Can handle other non-standard currency codes', () => {
const currency = '0000000000414C6F676F30330000000000000000'
expect(Currency.from(currency).toJSON()).toBe(currency)
})
test('throws on invalid reprs', function () { test('throws on invalid reprs', function () {
expect(() => Currency.from(Buffer.alloc(19))).toThrow() expect(() => Currency.from(Buffer.alloc(19))).toThrow()
expect(() => Currency.from(1)).toThrow() expect(() => Currency.from(1)).toThrow()

View File

@@ -1,8 +1,5 @@
# ripple-keypairs Release History # ripple-keypairs Release History
## 1.1.1 (2021-12-1)
- Fix issue where npm < 7 was not allowed to install the library
## 1.1.0 (2021-11-15) ## 1.1.0 (2021-11-15)
- Converts ripple-keypairs into a monorepo with ripple-binary-codec, - Converts ripple-keypairs into a monorepo with ripple-binary-codec,
ripple-address-codec, and xrpl. Changes to build tooling but no new features or ripple-address-codec, and xrpl. Changes to build tooling but no new features or

View File

@@ -1,6 +1,6 @@
{ {
"name": "ripple-keypairs", "name": "ripple-keypairs",
"version": "1.1.2", "version": "1.1.1-beta.0",
"description": "Cryptographic key pairs for the XRP Ledger", "description": "Cryptographic key pairs for the XRP Ledger",
"scripts": { "scripts": {
"build": "tsc -b", "build": "tsc -b",
@@ -21,7 +21,7 @@
"brorand": "^1.0.5", "brorand": "^1.0.5",
"elliptic": "^6.5.4", "elliptic": "^6.5.4",
"hash.js": "^1.0.3", "hash.js": "^1.0.3",
"ripple-address-codec": "^4.2.2" "ripple-address-codec": "^4.2.1-beta.0"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
@@ -30,6 +30,7 @@
"license": "ISC", "license": "ISC",
"prettier": "@xrplf/prettier-config", "prettier": "@xrplf/prettier-config",
"engines": { "engines": {
"node": ">= 10" "node": ">= 10",
"npm": ">=7.0.0"
} }
} }

View File

@@ -2,13 +2,6 @@
Subscribe to [the **xrpl-announce** mailing list](https://groups.google.com/g/xrpl-announce) for release announcements. We recommend that xrpl.js (ripple-lib) users stay up-to-date with the latest stable release. Subscribe to [the **xrpl-announce** mailing list](https://groups.google.com/g/xrpl-announce) for release announcements. We recommend that xrpl.js (ripple-lib) users stay up-to-date with the latest stable release.
## 2.0.3 (2021-12-1)
* Removes requirement for npm version > 7 for non-contributors
* Added a workaround for rippled UNLModify encoding bug (#1830)
* For contributors -
* Renamed the master branch to main, and now just have one main branch
* Fixed issues which made Windows contributors unable to build the library
## 2.0.2 (2021-11-15) ## 2.0.2 (2021-11-15)
* Imports ripple-address-codec, ripple-binary-codec, and ripple-keypairs into * Imports ripple-address-codec, ripple-binary-codec, and ripple-keypairs into
this repo. No new features or bug fixes this repo. No new features or bug fixes

View File

@@ -1,6 +1,6 @@
{ {
"name": "xrpl", "name": "xrpl",
"version": "2.0.4", "version": "2.0.3-beta.0",
"license": "ISC", "license": "ISC",
"description": "A TypeScript/JavaScript API for interacting with the XRP Ledger in Node.js and the browser", "description": "A TypeScript/JavaScript API for interacting with the XRP Ledger in Node.js and the browser",
"files": [ "files": [
@@ -24,9 +24,9 @@
"bip39": "^3.0.4", "bip39": "^3.0.4",
"https-proxy-agent": "^5.0.0", "https-proxy-agent": "^5.0.0",
"lodash": "^4.17.4", "lodash": "^4.17.4",
"ripple-address-codec": "^4.2.2", "ripple-address-codec": "^4.2.1-beta.0",
"ripple-binary-codec": "^1.2.2", "ripple-binary-codec": "^1.2.1-beta.0",
"ripple-keypairs": "^1.1.2", "ripple-keypairs": "^1.1.1-beta.0",
"ws": "^8.2.2" "ws": "^8.2.2"
}, },
"devDependencies": { "devDependencies": {
@@ -64,6 +64,7 @@
}, },
"readmeFilename": "README.md", "readmeFilename": "README.md",
"engines": { "engines": {
"node": ">=10.13.0" "node": ">=10.13.0",
"npm": ">=7.14.0 <8.0.0"
} }
} }