mirror of
https://github.com/Xahau/xahau.js.git
synced 2026-06-07 02:36:41 +00:00
Switch to using `@noble/hashes`, `@noble/curves`, `@scure/base`, `@scure/bip32`, and `@scure/bip39`. This replaces `crypto` polyfills (such as `crypto-browserify`), `create-hash`, `elliptic`, `hash.js`, `bn.js` (both versions), and their many dependencies. This also means there are 33 less dependencies downloaded when running a fresh `npm install` and will make the project much easier to maintain. This reduces the bundle size by 44% (82kb minified and gzipped) over the current 3.0 branch as well as reducing the amount of configuration required to bundle. Closes #1814, #1817, #2272, and #2306 Co-authored-by: Caleb Kniffen <ckniffen@ripple.com>
50 lines
1.2 KiB
JSON
50 lines
1.2 KiB
JSON
{
|
|
"name": "ripple-binary-codec",
|
|
"version": "1.11.0",
|
|
"description": "XRP Ledger binary codec",
|
|
"files": [
|
|
"dist/*",
|
|
"src/*"
|
|
],
|
|
"main": "dist/",
|
|
"directories": {
|
|
"test": "test"
|
|
},
|
|
"dependencies": {
|
|
"buffer": "6.0.3",
|
|
"@xrplf/isomorphic": "1.0.0",
|
|
"bignumber.js": "^9.0.0",
|
|
"ripple-address-codec": "^4.3.1"
|
|
},
|
|
"devDependencies": {
|
|
"assert": "^2.0.0"
|
|
},
|
|
"scripts": {
|
|
"build": "tsc -b && copyfiles ./src/enums/definitions.json ./dist/enums/",
|
|
"clean": "rm -rf ./dist ./coverage tsconfig.tsbuildinfo",
|
|
"prepublishOnly": "npm test",
|
|
"test": "npm run build && jest --verbose false --silent=false ./test/*.test.js",
|
|
"lint": "eslint . --ext .ts --ext .test.js"
|
|
},
|
|
"keywords": [
|
|
"ripple",
|
|
"xrp",
|
|
"xrp ledger",
|
|
"xrpl"
|
|
],
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git@github.com:XRPLF/xrpl.js.git"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/XRPLF/xrpl.js/issues"
|
|
},
|
|
"homepage": "https://github.com/XRPLF/xrpl.js/tree/main/packages/ripple-binary-codec#readme",
|
|
"license": "ISC",
|
|
"readmeFilename": "README.md",
|
|
"prettier": "@xrplf/prettier-config",
|
|
"engines": {
|
|
"node": ">= 16"
|
|
}
|
|
}
|