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"
|
|
|
|
},
|
2021-02-02 10:53:24 +08:00
|
|
|
"browser": "lib/index.browser.esm.js",
|
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 21: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-03 11: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 19:10:12 +08: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 21:36:35 +08:00
|
|
|
"lint": "set -ex; npm run pretty; eslint . --ext .js,.ts",
|
2020-09-24 09:45:57 +02: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-03 11: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 09:45:57 +02: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 18:57:26 +08:00
|
|
|
"jest": {
|
|
|
|
"testEnvironment": "./jest-environment"
|
|
|
|
},
|
2018-08-23 19:50:09 -07:00
|
|
|
"dependencies": {
|
2021-02-02 10:53:24 +08:00
|
|
|
"@babel/runtime": "^7.12.5",
|
2019-07-24 13:35:12 +00:00
|
|
|
"bn.js": "^5.0.0",
|
2018-08-23 19:50:09 -07:00
|
|
|
"bs58": "^4.0.1",
|
2021-02-02 10:53:24 +08:00
|
|
|
"buffer": "6.0.1",
|
2018-10-06 11:13:58 -07:00
|
|
|
"buffer-layout": "^1.2.0",
|
2020-03-16 17:44:12 +08:00
|
|
|
"crypto-hash": "^1.2.2",
|
2021-02-02 10:53:24 +08:00
|
|
|
"jayson": "^3.4.4",
|
|
|
|
"js-sha3": "^0.8.0",
|
|
|
|
"node-fetch": "^2.6.1",
|
2020-09-07 23:12:22 +08:00
|
|
|
"rpc-websockets": "^7.4.2",
|
2020-10-22 13:15:24 -07:00
|
|
|
"secp256k1": "^4.0.2",
|
2019-12-19 17:18:36 +00:00
|
|
|
"superstruct": "^0.8.3",
|
2021-02-02 10:53:24 +08:00
|
|
|
"tweetnacl": "^1.0.0"
|
2018-08-23 19:50:09 -07:00
|
|
|
},
|
2018-08-22 13:30:04 -07:00
|
|
|
"devDependencies": {
|
2021-02-02 10:53:24 +08:00
|
|
|
"@babel/plugin-proposal-class-properties": "^7.12.1",
|
|
|
|
"@babel/plugin-transform-runtime": "^7.12.10",
|
|
|
|
"@babel/preset-env": "^7.12.11",
|
|
|
|
"@babel/preset-flow": "^7.12.1",
|
2020-09-14 08:32:37 +00:00
|
|
|
"@commitlint/config-conventional": "^11.0.0",
|
2020-09-15 08:17:26 +00:00
|
|
|
"@commitlint/travis-cli": "^11.0.0",
|
2021-02-02 10:53:24 +08:00
|
|
|
"@rollup/plugin-babel": "^5.2.3",
|
|
|
|
"@rollup/plugin-commonjs": "^17.1.0",
|
|
|
|
"@rollup/plugin-json": "^4.1.0",
|
|
|
|
"@rollup/plugin-node-resolve": "^11.1.1",
|
|
|
|
"@rollup/plugin-replace": "^2.3.4",
|
2020-11-02 09:17:50 +00:00
|
|
|
"@solana/spl-token": "^0.0.13",
|
2021-02-02 10:53:24 +08:00
|
|
|
"@typescript-eslint/eslint-plugin": "^4.14.2",
|
|
|
|
"@typescript-eslint/parser": "^4.14.2",
|
2020-09-08 08:21:22 +00:00
|
|
|
"acorn": "^8.0.1",
|
2021-02-02 10:53:24 +08:00
|
|
|
"babel-eslint": "^11.0.0-beta.2",
|
2018-08-23 08:39:34 -07:00
|
|
|
"codecov": "^3.0.4",
|
2020-12-02 09:18:58 +00:00
|
|
|
"cross-env": "7.0.3",
|
2020-02-06 10:16:46 +00:00
|
|
|
"elfy": "^1.0.0",
|
2020-01-14 10:32:40 +00: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",
|
2021-02-02 10:53:24 +08:00
|
|
|
"esdoc-inject-style-plugin": "^1.0.0",
|
2018-08-22 13:53:13 -07:00
|
|
|
"esdoc-standard-plugin": "^1.0.0",
|
2021-02-02 10:53:24 +08:00
|
|
|
<<<<<<< HEAD
|
2021-02-05 09:57:53 +00:00
|
|
|
"eslint": "7.19.0",
|
2021-02-02 10:53:24 +08:00
|
|
|
=======
|
|
|
|
"eslint": "^7.19.0",
|
|
|
|
>>>>>>> 37215dbc2... feat: add support for browser es modules
|
2020-12-08 09:20:20 +00:00
|
|
|
"eslint-config-prettier": "^7.0.0",
|
2020-09-18 08:32:24 +00:00
|
|
|
"eslint-plugin-flowtype": "^5.2.0",
|
2020-10-05 08:18:12 +00:00
|
|
|
"eslint-plugin-import": "2.22.1",
|
2020-06-03 21:34:11 +08:00
|
|
|
"eslint-plugin-jest": "22.19.0",
|
2018-11-04 11:41:21 -08:00
|
|
|
"eslint-plugin-prettier": "^3.0.0",
|
2020-07-24 11:00:15 +00:00
|
|
|
"flow-bin": "0.130.0",
|
2021-02-02 10:53:24 +08:00
|
|
|
"flow-remove-types": "^2.143.1",
|
2020-07-24 10:58:24 +00:00
|
|
|
"flow-typed": "3.2.1",
|
2020-08-13 08:30:02 +00:00
|
|
|
"fs-file-tree": "1.1.1",
|
2020-11-04 09:48:34 +00:00
|
|
|
"jest": "26.6.3",
|
2020-05-19 12:34:37 +00:00
|
|
|
"marked": "^1.1.0",
|
2021-02-02 10:53:24 +08:00
|
|
|
"mz": "^2.7.0",
|
|
|
|
"npm-run-all": "^4.1.5",
|
2020-03-21 20:39:16 +00:00
|
|
|
"prettier": "^2.0.0",
|
2020-02-09 06:54:43 +00:00
|
|
|
"rimraf": "3.0.2",
|
2021-02-05 09:32:28 +00:00
|
|
|
"rollup": "2.38.5",
|
2020-02-03 21:36:35 +08:00
|
|
|
"rollup-plugin-copy": "^3.3.0",
|
2021-02-02 10:53:24 +08:00
|
|
|
"rollup-plugin-node-polyfills": "^0.2.1",
|
|
|
|
"rollup-plugin-terser": "^7.0.2",
|
2020-02-03 13:21:26 +00:00
|
|
|
"semantic-release": "^17.0.2",
|
2020-12-15 13:24:28 -08:00
|
|
|
"start-server-and-test": "^1.11.6",
|
2021-02-02 10:53:24 +08:00
|
|
|
"typescript": "^4.1.3",
|
2018-08-22 13:53:13 -07:00
|
|
|
"watch": "^1.0.2"
|
2018-08-22 13:30:04 -07:00
|
|
|
}
|
|
|
|
}
|