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-10 21:04:34 +08:00
|
|
|
"browser": {
|
2021-02-19 15:23:45 +08:00
|
|
|
"./lib/index.cjs.js": "./lib/index.browser.esm.js",
|
2021-02-10 21:04:34 +08:00
|
|
|
"./lib/index.esm.js": "./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",
|
2021-03-30 20:16:31 +08:00
|
|
|
"types": "lib/index.d.ts",
|
2021-02-06 10:43:42 +08:00
|
|
|
"browserslist": [
|
|
|
|
"defaults",
|
|
|
|
"not IE 11",
|
|
|
|
"maintained node versions"
|
|
|
|
],
|
2018-10-29 12:02:47 -07:00
|
|
|
"files": [
|
|
|
|
"/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": {
|
2021-05-05 17:50:55 +08:00
|
|
|
"build": "npm run clean; cross-env NODE_ENV=production rollup -c; npm run type:gen; npm run flow:gen; npm run flow:check",
|
2021-02-06 10:59:00 +08:00
|
|
|
"build:browser-test": "rollup -c test/rollup.config.js",
|
2021-03-15 15:35:41 +08:00
|
|
|
"build:fixtures": "set -ex; ./test/fixtures/noop-program/build.sh",
|
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",
|
2021-03-15 11:00:43 +08:00
|
|
|
"doc": "set -ex; typedoc",
|
2021-05-05 17:50:55 +08:00
|
|
|
"flow:check": "flow check-contents < module.flow.js",
|
|
|
|
"flow:gen": "flowgen lib/index.d.ts -o module.flow.js",
|
|
|
|
"type:gen": "./scripts/typegen.sh",
|
2020-02-03 21:36:35 +08:00
|
|
|
"lint": "set -ex; npm run pretty; eslint . --ext .js,.ts",
|
2021-05-07 16:59:51 +08:00
|
|
|
"lint:fix": "npm run pretty:fix && eslint . --fix --ext .js,.ts",
|
2021-03-15 13:08:10 +08:00
|
|
|
"ok": "run-s lint test doc",
|
2021-03-15 15:35:41 +08:00
|
|
|
"pretty": "prettier --check '{,{src,test}/**/}*.{j,t}s'",
|
|
|
|
"pretty:fix": "prettier --write '{,{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",
|
2021-03-15 15:35:41 +08:00
|
|
|
"test": "mocha -r ts-node/register './test/**/*.test.ts'",
|
2021-03-15 15:17:17 +08:00
|
|
|
"test:cover": "TS_NODE_COMPILER_OPTIONS='{\"module\": \"commonjs\" }' nyc --reporter=lcov mocha -r ts-node/register './test/**/*.test.ts'",
|
2021-03-15 15:35:41 +08:00
|
|
|
"test:browser": "TEST_LIVE=1 npm run build:browser-test && mocha-headless-chrome -f http://localhost:8080/mocha.html --timeout 180000",
|
2021-02-06 10:59:00 +08:00
|
|
|
"test:browser-with-server": "start-server-and-test 'http-server -p 8080' 8080 test:browser",
|
|
|
|
"test:browser-with-test-validator": "start-server-and-test 'solana-test-validator --reset --quiet' http://localhost:8899/health test:browser-with-server",
|
|
|
|
"test:live": "TEST_LIVE=1 npm run test",
|
2021-02-08 00:57:12 +08:00
|
|
|
"test:live-with-test-validator": "start-server-and-test 'solana-test-validator --reset --quiet' http://localhost:8899/health test:live"
|
2020-05-19 18:57:26 +08:00
|
|
|
},
|
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",
|
2021-05-18 19:33:06 +02:00
|
|
|
"borsh": "^0.4.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",
|
2021-02-26 15:06:12 +08:00
|
|
|
"superstruct": "^0.14.2",
|
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-06 10:59:00 +08:00
|
|
|
"@babel/core": "^7.12.13",
|
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",
|
2021-03-15 11:00:43 +08:00
|
|
|
"@babel/preset-typescript": "^7.12.16",
|
2021-02-06 10:59:00 +08:00
|
|
|
"@babel/register": "^7.12.13",
|
2021-03-03 11:22:16 +00:00
|
|
|
"@commitlint/config-conventional": "^12.0.1",
|
2021-03-12 21:45:25 +08:00
|
|
|
"@commitlint/travis-cli": "^12.0.1",
|
2021-02-06 10:59:00 +08:00
|
|
|
"@rollup/plugin-alias": "^3.1.2",
|
2021-02-02 10:53:24 +08:00
|
|
|
"@rollup/plugin-babel": "^5.2.3",
|
2021-05-10 12:22:05 +00:00
|
|
|
"@rollup/plugin-commonjs": "^19.0.0",
|
2021-02-02 10:53:24 +08:00
|
|
|
"@rollup/plugin-json": "^4.1.0",
|
2021-02-06 10:59:00 +08:00
|
|
|
"@rollup/plugin-multi-entry": "^4.0.0",
|
2021-05-05 09:54:27 +00:00
|
|
|
"@rollup/plugin-node-resolve": "^13.0.0",
|
2021-02-02 10:53:24 +08:00
|
|
|
"@rollup/plugin-replace": "^2.3.4",
|
2021-03-30 19:18:30 +08:00
|
|
|
"@solana/spl-token": "^0.1.2",
|
2021-03-15 11:00:43 +08:00
|
|
|
"@types/bn.js": "^5.1.0",
|
|
|
|
"@types/bs58": "^4.0.1",
|
2021-03-15 13:08:10 +08:00
|
|
|
"@types/chai": "^4.2.15",
|
|
|
|
"@types/chai-as-promised": "^7.1.3",
|
|
|
|
"@types/mocha": "^8.2.1",
|
|
|
|
"@types/mz": "^2.7.3",
|
2021-04-27 09:05:59 +00:00
|
|
|
"@types/node": "^15.0.0",
|
2021-03-15 11:00:43 +08:00
|
|
|
"@types/node-fetch": "^2.5.8",
|
|
|
|
"@types/secp256k1": "^4.0.1",
|
2021-04-17 14:05:15 +00:00
|
|
|
"@types/sinon": "^10.0.0",
|
2021-02-02 10:53:24 +08:00
|
|
|
"@typescript-eslint/eslint-plugin": "^4.14.2",
|
|
|
|
"@typescript-eslint/parser": "^4.14.2",
|
2021-02-06 10:59:00 +08:00
|
|
|
"chai": "^4.3.0",
|
|
|
|
"chai-as-promised": "^7.1.1",
|
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",
|
2021-02-02 10:53:24 +08:00
|
|
|
"eslint": "^7.19.0",
|
2021-02-22 09:23:44 +00:00
|
|
|
"eslint-config-prettier": "^8.0.0",
|
2021-05-24 08:40:34 +00:00
|
|
|
"eslint-plugin-import": "2.23.3",
|
2021-02-08 00:57:12 +08:00
|
|
|
"eslint-plugin-mocha": "^8.0.0",
|
2018-11-04 11:41:21 -08:00
|
|
|
"eslint-plugin-prettier": "^3.0.0",
|
2021-02-06 10:59:00 +08:00
|
|
|
"esm": "^3.2.25",
|
2021-05-05 17:50:55 +08:00
|
|
|
"flow-bin": "^0.150.0",
|
2021-03-15 11:00:43 +08:00
|
|
|
"flowgen": "^1.13.0",
|
2021-02-06 10:59:00 +08:00
|
|
|
"http-server": "^0.12.3",
|
|
|
|
"mocha": "^8.2.1",
|
|
|
|
"mocha-headless-chrome": "^3.1.0",
|
|
|
|
"mockttp": "^1.1.0",
|
2021-02-02 10:53:24 +08:00
|
|
|
"mz": "^2.7.0",
|
2021-03-25 17:18:00 +08:00
|
|
|
"npm-run-all": "^4.1.5",
|
2021-02-08 00:57:12 +08:00
|
|
|
"nyc": "^15.1.0",
|
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-05-25 00:47:39 +00:00
|
|
|
"rollup": "2.49.0",
|
2021-03-30 20:16:31 +08:00
|
|
|
"rollup-plugin-dts": "^3.0.1",
|
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",
|
2021-05-25 02:04:08 +00:00
|
|
|
"sinon": "^11.0.0",
|
2021-02-06 10:59:00 +08:00
|
|
|
"start-server-and-test": "^1.12.0",
|
2021-05-24 12:10:12 +00:00
|
|
|
"ts-node": "^10.0.0",
|
2021-03-15 11:00:43 +08:00
|
|
|
"tslib": "^2.1.0",
|
|
|
|
"typedoc": "^0.20.31",
|
2021-05-05 17:50:55 +08:00
|
|
|
"typescript": "^4.1.5"
|
2018-08-22 13:30:04 -07:00
|
|
|
}
|
|
|
|
}
|