2018-08-22 13:30:04 -07:00
|
|
|
{
|
|
|
|
"name": "@solana/web3.js",
|
2018-09-28 21:08:58 -07:00
|
|
|
"version": "0.0.0-development",
|
2018-08-22 13:30:04 -07:00
|
|
|
"description": "Solana Javascript API",
|
|
|
|
"keywords": [
|
|
|
|
"api",
|
|
|
|
"blockchain"
|
|
|
|
],
|
|
|
|
"license": "MIT",
|
2019-06-14 11:45:19 -07:00
|
|
|
"author": "Solana Maintainers <maintainers@solana.com>",
|
2018-08-22 13:30:04 -07:00
|
|
|
"homepage": "https://solana.com/",
|
|
|
|
"repository": {
|
|
|
|
"type": "git",
|
2018-09-28 21:08:58 -07:00
|
|
|
"url": "https://github.com/solana-labs/solana-web3.js.git"
|
2018-08-22 13:30:04 -07:00
|
|
|
},
|
|
|
|
"bugs": {
|
|
|
|
"url": "http://github.com/solana-labs/solana-web3.js.git/issues"
|
|
|
|
},
|
2018-08-22 14:46:09 -07:00
|
|
|
"publishConfig": {
|
|
|
|
"access": "public"
|
|
|
|
},
|
2018-08-22 22:17:06 -07:00
|
|
|
"main": "lib/index.cjs.js",
|
2018-08-22 21:43:32 -07:00
|
|
|
"module": "lib/index.esm.js",
|
2020-02-03 05:36:35 -08:00
|
|
|
"types": "lib/index.d.ts",
|
2018-10-02 20:51:19 -07:00
|
|
|
"bin": {
|
2019-06-18 19:38:01 -07:00
|
|
|
"solana-bpf-sdk-install": "bin/bpf-sdk-install.sh",
|
2018-10-02 20:51:19 -07:00
|
|
|
"solana-localnet": "bin/localnet.sh"
|
|
|
|
},
|
2020-02-28 15:19:46 -08:00
|
|
|
"testnetDefaultChannel": "edge",
|
2018-10-29 12:02:47 -07:00
|
|
|
"files": [
|
|
|
|
"/bin",
|
|
|
|
"/doc",
|
|
|
|
"/examples",
|
|
|
|
"/bpf-sdk",
|
|
|
|
"/lib",
|
2018-10-30 07:59:50 -07:00
|
|
|
"/module.flow.js",
|
|
|
|
"/src"
|
2018-10-29 12:02:47 -07:00
|
|
|
],
|
2018-08-22 13:30:04 -07:00
|
|
|
"scripts": {
|
2020-05-20 11:56:40 -07:00
|
|
|
"bpf-sdk:install": "npm run clean:fixtures; bin/bpf-sdk-install.sh .",
|
2018-12-02 10:03:46 -08:00
|
|
|
"bpf-sdk:remove-symlinks": "find bpf-sdk -type l -print -exec cp {} {}.tmp \\; -exec mv {}.tmp {} \\;",
|
|
|
|
"build": "cross-env NODE_ENV=production rollup -c",
|
2020-12-15 13:24:28 -08:00
|
|
|
"build:fixtures": "set -ex; ./test/fixtures/noop-c/build.sh; ./test/fixtures/noop-rust/build.sh",
|
|
|
|
"clean:fixtures": "make -C examples/bpf-c-noop clean ",
|
2018-08-22 13:30:04 -07:00
|
|
|
"clean": "rimraf ./coverage ./lib",
|
2018-12-02 10:03:46 -08:00
|
|
|
"codecov": "set -ex; npm run test:cover; cat ./coverage/lcov.info | codecov",
|
2018-08-22 21:43:32 -07:00
|
|
|
"dev": "cross-env NODE_ENV=development rollup -c",
|
2018-12-02 10:03:46 -08:00
|
|
|
"doc": "set -ex; esdoc; node -p '\"\\nDocumentation coverage: \" + require(\"./doc/coverage.json\").coverage'",
|
2020-03-02 19:16:19 -08:00
|
|
|
"defs": "set -ex; flow check-contents < module.flow.js; tsc module.d.ts",
|
2018-08-22 13:53:13 -07:00
|
|
|
"doc:watch": "watch 'npm run doc' . --wait=1 --ignoreDirectoryPattern=/doc/",
|
2018-12-02 10:03:46 -08:00
|
|
|
"examples": "set -ex; for example in examples/*.js; do node $example; done",
|
2020-03-20 04:10:12 -07:00
|
|
|
"flow": "set -ex; flow stop; flow",
|
2018-10-10 13:50:54 -07:00
|
|
|
"flow:stop": "flow stop",
|
2018-12-02 10:03:46 -08:00
|
|
|
"flow:watch": "flow stop; watch 'flow' . --wait=1 --ignoreDirectoryPattern=/doc/",
|
2020-02-03 05:36:35 -08:00
|
|
|
"lint": "set -ex; npm run pretty; eslint . --ext .js,.ts",
|
2020-09-24 00:45:57 -07:00
|
|
|
"lint:fix": "npm run pretty:fix && eslint . --fix",
|
2018-08-23 16:49:03 -07:00
|
|
|
"lint:watch": "watch 'npm run lint:fix' . --wait=1 --ignoreDirectoryPattern=/doc/",
|
2018-10-02 20:51:19 -07:00
|
|
|
"localnet:down": "bin/localnet.sh down",
|
2018-10-10 10:44:28 -07:00
|
|
|
"localnet:logs": "bin/localnet.sh logs -f",
|
2019-12-12 15:28:45 -08:00
|
|
|
"localnet:up": "bin/localnet.sh up",
|
|
|
|
"localnet:update": "bin/localnet.sh update",
|
2020-03-02 19:16:19 -08:00
|
|
|
"ok": "run-s lint flow test doc defs",
|
2019-06-18 19:38:01 -07:00
|
|
|
"prepare": "run-s clean bpf-sdk:install bpf-sdk:remove-symlinks build",
|
2020-09-24 00:45:57 -07:00
|
|
|
"pretty": "prettier --check '{,{examples,src,test}/**/}*.{j,t}s'",
|
|
|
|
"pretty:fix": "prettier --write '{,{examples,src,test}/**/}*.{j,t}s'",
|
2018-12-02 10:03:46 -08:00
|
|
|
"re": "semantic-release --repository-url git@github.com:solana-labs/solana-web3.js.git",
|
2019-10-21 08:23:26 -07:00
|
|
|
"test": "npm run build:fixtures && cross-env NODE_ENV=test jest --useStderr",
|
|
|
|
"test:cover": "npm run build:fixtures && cross-env NODE_ENV=test jest --coverage --useStderr",
|
|
|
|
"test:live": "npm run build:fixtures && cross-env NODE_ENV=test TEST_LIVE=1 jest --useStderr",
|
2020-12-15 13:24:28 -08:00
|
|
|
"test:live-with-test-validator": "start-server-and-test 'solana-test-validator --reset --quiet' http://localhost:8899/health test:live",
|
2019-10-21 08:23:26 -07:00
|
|
|
"test:watch": "npm run build:fixtures && cross-env NODE_ENV=test jest --watch --useStderr"
|
2018-08-22 13:30:04 -07:00
|
|
|
},
|
2020-05-19 03:57:26 -07:00
|
|
|
"jest": {
|
|
|
|
"testEnvironment": "./jest-environment"
|
|
|
|
},
|
2018-08-23 19:50:09 -07:00
|
|
|
"dependencies": {
|
2019-02-17 16:24:46 -08:00
|
|
|
"@babel/runtime": "^7.3.1",
|
2019-07-24 06:35:12 -07:00
|
|
|
"bn.js": "^5.0.0",
|
2018-08-23 19:50:09 -07:00
|
|
|
"bs58": "^4.0.1",
|
2020-11-05 01:19:09 -08:00
|
|
|
"buffer": "^6.0.1",
|
2018-10-06 11:13:58 -07:00
|
|
|
"buffer-layout": "^1.2.0",
|
2020-03-16 02:44:12 -07:00
|
|
|
"crypto-hash": "^1.2.2",
|
2018-12-03 09:17:55 -08:00
|
|
|
"esdoc-inject-style-plugin": "^1.0.0",
|
2019-04-08 17:17:44 -07:00
|
|
|
"jayson": "^3.0.1",
|
2020-10-22 13:15:24 -07:00
|
|
|
"keccak": "^3.0.1",
|
2018-10-23 20:56:54 -07:00
|
|
|
"mz": "^2.7.0",
|
2018-08-23 19:50:09 -07:00
|
|
|
"node-fetch": "^2.2.0",
|
2019-06-14 20:11:37 -07:00
|
|
|
"npm-run-all": "^4.1.5",
|
2020-09-07 08:12:22 -07:00
|
|
|
"rpc-websockets": "^7.4.2",
|
2020-10-22 13:15:24 -07:00
|
|
|
"secp256k1": "^4.0.2",
|
2019-12-19 09:18:36 -08:00
|
|
|
"superstruct": "^0.8.3",
|
2018-10-26 21:37:39 -07:00
|
|
|
"tweetnacl": "^1.0.0",
|
2019-04-30 09:16:34 -07:00
|
|
|
"ws": "^7.0.0"
|
2018-08-23 19:50:09 -07:00
|
|
|
},
|
2018-08-22 13:30:04 -07:00
|
|
|
"devDependencies": {
|
2019-02-17 16:24:46 -08:00
|
|
|
"@babel/core": "^7.3.3",
|
|
|
|
"@babel/plugin-proposal-class-properties": "^7.3.3",
|
|
|
|
"@babel/plugin-proposal-function-bind": "^7.2.0",
|
|
|
|
"@babel/plugin-transform-runtime": "^7.2.0",
|
|
|
|
"@babel/preset-env": "^7.3.1",
|
|
|
|
"@babel/preset-flow": "^7.0.0",
|
2020-09-14 01:32:37 -07:00
|
|
|
"@commitlint/config-conventional": "^11.0.0",
|
2020-09-15 01:17:26 -07:00
|
|
|
"@commitlint/travis-cli": "^11.0.0",
|
2020-11-02 01:17:50 -08:00
|
|
|
"@solana/spl-token": "^0.0.13",
|
2020-09-07 21:08:51 -07:00
|
|
|
"@typescript-eslint/eslint-plugin": "^4.0.0",
|
2020-09-05 22:09:22 -07:00
|
|
|
"@typescript-eslint/parser": "^3.10.1",
|
2020-09-08 01:21:22 -07:00
|
|
|
"acorn": "^8.0.1",
|
2020-02-25 16:26:42 -08:00
|
|
|
"babel-eslint": "10.1.0",
|
2020-02-11 02:49:17 -08:00
|
|
|
"babel-plugin-module-resolver": "4.0.0",
|
2018-08-23 08:39:34 -07:00
|
|
|
"codecov": "^3.0.4",
|
2020-12-02 01:18:58 -08:00
|
|
|
"cross-env": "7.0.3",
|
2020-02-06 02:16:46 -08:00
|
|
|
"elfy": "^1.0.0",
|
2020-01-14 02:32:40 -08:00
|
|
|
"enzyme": "3.11.0",
|
2018-08-22 13:53:13 -07:00
|
|
|
"esdoc": "^1.1.0",
|
|
|
|
"esdoc-ecmascript-proposal-plugin": "^1.0.0",
|
|
|
|
"esdoc-flow-type-plugin": "^1.1.0",
|
|
|
|
"esdoc-importpath-plugin": "^1.0.2",
|
|
|
|
"esdoc-standard-plugin": "^1.0.0",
|
2020-12-07 01:19:08 -08:00
|
|
|
"eslint": "7.15.0",
|
2020-12-08 01:20:20 -08:00
|
|
|
"eslint-config-prettier": "^7.0.0",
|
2020-09-18 01:32:24 -07:00
|
|
|
"eslint-plugin-flowtype": "^5.2.0",
|
2020-10-05 01:18:12 -07:00
|
|
|
"eslint-plugin-import": "2.22.1",
|
2020-06-03 06:34:11 -07:00
|
|
|
"eslint-plugin-jest": "22.19.0",
|
2018-11-04 11:41:21 -08:00
|
|
|
"eslint-plugin-prettier": "^3.0.0",
|
2020-07-24 04:00:15 -07:00
|
|
|
"flow-bin": "0.130.0",
|
2020-07-24 03:58:24 -07:00
|
|
|
"flow-typed": "3.2.1",
|
2020-08-13 01:30:02 -07:00
|
|
|
"fs-file-tree": "1.1.1",
|
2020-11-04 01:48:34 -08:00
|
|
|
"jest": "26.6.3",
|
2020-05-19 05:34:37 -07:00
|
|
|
"marked": "^1.1.0",
|
2020-03-21 13:39:16 -07:00
|
|
|
"prettier": "^2.0.0",
|
2020-02-08 22:54:43 -08:00
|
|
|
"rimraf": "3.0.2",
|
2020-12-15 01:25:36 -08:00
|
|
|
"rollup": "2.35.1",
|
2019-02-17 16:24:46 -08:00
|
|
|
"rollup-plugin-babel": "^4.3.2",
|
2019-06-23 09:57:48 -07:00
|
|
|
"rollup-plugin-commonjs": "^10.0.0",
|
2020-02-03 05:36:35 -08:00
|
|
|
"rollup-plugin-copy": "^3.3.0",
|
2019-03-28 01:43:00 -07:00
|
|
|
"rollup-plugin-json": "^4.0.0",
|
2018-08-22 21:43:32 -07:00
|
|
|
"rollup-plugin-node-builtins": "^2.1.2",
|
|
|
|
"rollup-plugin-node-globals": "^1.2.1",
|
2019-07-01 01:53:02 -07:00
|
|
|
"rollup-plugin-node-resolve": "5.2.0",
|
2019-04-10 00:46:35 -07:00
|
|
|
"rollup-plugin-replace": "2.2.0",
|
2020-08-14 01:35:40 -07:00
|
|
|
"rollup-plugin-terser": "^7.0.0",
|
2020-02-03 05:21:26 -08:00
|
|
|
"semantic-release": "^17.0.2",
|
2020-12-15 13:24:28 -08:00
|
|
|
"start-server-and-test": "^1.11.6",
|
2020-09-05 00:31:56 -07:00
|
|
|
"typescript": "^4.0.2",
|
2018-08-22 13:53:13 -07:00
|
|
|
"watch": "^1.0.2"
|
2018-08-22 13:30:04 -07:00
|
|
|
}
|
|
|
|
}
|