Files
xahau.js/packages/xrpl/package.json
Caleb Kniffen cfb64c3f88 feat: remove lodash as a dependency (#2378)
This will reduce the bundle size by ~23%(117kb).

Only 4 methods were used `flatten`, `flatMap`, `omitBy`, and `groupBy`.

`omitBy and `groupBy` were recreated while the es2019 implementations of
`flatten` and `flatMap` are used.

`lodash` is still used in the tests which is fine because it makes the
tests cleaner.

Closes #2118
2024-02-01 13:43:52 -06:00

95 lines
3.1 KiB
JSON

{
"name": "xrpl",
"version": "2.14.1",
"license": "ISC",
"description": "A TypeScript/JavaScript API for interacting with the XRP Ledger in Node.js and the browser",
"files": [
"build/xrpl-latest-min.js",
"build/xrpl-latest-min.js.map",
"build/xrpl-latest.js",
"build/xrpl-latest.js.map",
"dist/npm/*",
"src/*"
],
"main": "dist/npm/",
"unpkg": "build/xrpl-latest-min.js",
"jsdelivr": "build/xrpl-latest-min.js",
"types": "dist/npm/index.d.ts",
"directories": {
"test": "test"
},
"browser": {
"ws": "./dist/npm/client/WSWrapper.js",
"https-proxy-agent": false
},
"dependencies": {
"bignumber.js": "^9.0.0",
"bip32": "^2.0.6",
"bip39": "^3.0.4",
"https-proxy-agent": "^5.0.0",
"ripple-address-codec": "^4.3.1",
"ripple-binary-codec": "^1.11.0",
"ripple-keypairs": "^1.3.1",
"ws": "^8.2.2",
"xrpl-secret-numbers": "^0.3.3"
},
"devDependencies": {
"@geut/browser-node-core": "^2.0.13",
"@types/node": "^16.18.38",
"assert-browserify": "^2.0.0",
"browserify-fs": "^1.0.0",
"constants-browserify": "^1.0.0",
"https-browserify": "^1.0.0",
"karma": "^6.4.1",
"karma-chrome-launcher": "^3.1.1",
"karma-jasmine": "^5.1.0",
"karma-webpack": "^5.0.0",
"lodash": "^4.17.4",
"node-polyfill-webpack-plugin": "^2.0.1",
"react": "^18.2.0",
"typedoc": "0.25.0"
},
"resolutions": {
"elliptic": "^6.5.4"
},
"scripts": {
"build": "run-s build:lib build:snippets build:web",
"build:snippets": "tsc --build ./snippets/tsconfig.json",
"build:lib": "tsc --build tsconfig.build.json",
"build:web": "webpack",
"build:browserTests": "webpack --config ./test/webpack.config.js",
"analyze": "webpack --analyze",
"watch": "run-s build:lib --watch",
"clean": "rm -rf dist build coverage",
"docgen": "tsc --build tsconfig.docs.json && typedoc && echo js.xrpl.org >> ../../docs/CNAME",
"prepare": "copyfiles ../../README.md xrpl/README.md",
"prepublish": "run-s clean build",
"test": "jest --config=jest.config.unit.js --verbose false --silent=false",
"test:integration": "TS_NODE_PROJECT=tsconfig.build.json jest --config=jest.config.integration.js --verbose false --silent=false --runInBand",
"test:browser": "npm run build && npm run build:browserTests && karma start ./karma.config.js --single-run",
"test:watch": "jest --watch --verbose false --silent=false --runInBand ./test/**/*.test.ts --testPathIgnorePatterns=./test/integration --testPathIgnorePatterns=./test/fixtures",
"format": "prettier --write '{src,test}/**/*.ts'",
"lint": "eslint . --ext .ts --max-warnings 0",
"perf": "./scripts/perf_test.sh",
"compile:snippets": "tsc -p snippets/tsconfig.json",
"start:snippet": "npm run compile:snippets && node",
"inspect:snippet": "npm run compile:snippets && node inspect"
},
"prettier": "@xrplf/prettier-config",
"repository": {
"type": "git",
"url": "git@github.com:XRPLF/xrpl.js.git"
},
"readmeFilename": "README.md",
"keywords": [
"ripple-lib",
"ripple",
"xrp",
"xrp ledger",
"xrpl"
],
"engines": {
"node": ">=16.0.0"
}
}