{ "name": "@solana/web3.js", "version": "0.0.0-development", "description": "Solana Javascript API", "keywords": [ "api", "blockchain" ], "license": "MIT", "author": "Solana Maintainers ", "homepage": "https://solana.com/", "repository": { "type": "git", "url": "https://github.com/solana-labs/solana-web3.js.git" }, "bugs": { "url": "http://github.com/solana-labs/solana-web3.js.git/issues" }, "publishConfig": { "access": "public" }, "browser": { "./lib/index.cjs.js": "./lib/index.browser.esm.js", "./lib/index.esm.js": "./lib/index.browser.esm.js" }, "main": "lib/index.cjs.js", "module": "lib/index.esm.js", "types": "lib/index.d.ts", "browserslist": [ "defaults", "not IE 11", "maintained node versions" ], "bin": { "solana-bpf-sdk-install": "bin/bpf-sdk-install.sh", "solana-localnet": "bin/localnet.sh" }, "testnetDefaultChannel": "edge", "files": [ "/bin", "/doc", "/examples", "/bpf-sdk", "/lib", "/module.flow.js", "/src" ], "scripts": { "bpf-sdk:install": "npm run clean:fixtures; bin/bpf-sdk-install.sh .", "bpf-sdk:remove-symlinks": "find bpf-sdk -type l -print -exec cp {} {}.tmp \\; -exec mv {}.tmp {} \\;", "build": "cross-env NODE_ENV=production rollup -c", "build:browser-test": "rollup -c test/rollup.config.js", "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 ", "clean": "rimraf ./coverage ./lib", "codecov": "set -ex; npm run test:cover; cat ./coverage/lcov.info | codecov", "dev": "cross-env NODE_ENV=development rollup -c", "doc": "set -ex; esdoc; node -p '\"\\nDocumentation coverage: \" + require(\"./doc/coverage.json\").coverage'", "defs": "set -ex; flow check-contents < module.flow.js; tsc module.d.ts", "doc:watch": "watch 'npm run doc' . --wait=1 --ignoreDirectoryPattern=/doc/", "examples": "set -ex; for example in examples/*.js; do node $example; done", "flow": "set -ex; flow stop; flow", "flow:stop": "flow stop", "flow:watch": "flow stop; watch 'flow' . --wait=1 --ignoreDirectoryPattern=/doc/", "lint": "set -ex; npm run pretty; eslint . --ext .js,.ts", "lint:fix": "npm run pretty:fix && eslint . --fix", "lint:watch": "watch 'npm run lint:fix' . --wait=1 --ignoreDirectoryPattern=/doc/", "localnet:down": "bin/localnet.sh down", "localnet:logs": "bin/localnet.sh logs -f", "localnet:up": "bin/localnet.sh up", "localnet:update": "bin/localnet.sh update", "ok": "run-s lint flow test doc defs", "prepare": "run-s clean bpf-sdk:install bpf-sdk:remove-symlinks build", "pretty": "prettier --check '{,{examples,src,test}/**/}*.{j,t}s'", "pretty:fix": "prettier --write '{,{examples,src,test}/**/}*.{j,t}s'", "re": "semantic-release --repository-url git@github.com:solana-labs/solana-web3.js.git", "test": "npm run build:fixtures && mocha './test/**/*.test.js'", "test:cover": "nyc --reporter=lcov mocha './test/**/*.test.js'", "test:browser": "TEST_LIVE=1 npm run build:fixtures && npm run build:browser-test && mocha-headless-chrome -f http://localhost:8080/mocha.html --timeout 180000", "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", "test:live-with-test-validator": "start-server-and-test 'solana-test-validator --reset --quiet' http://localhost:8899/health test:live" }, "dependencies": { "@babel/runtime": "^7.12.5", "bn.js": "^5.0.0", "bs58": "^4.0.1", "buffer": "6.0.1", "buffer-layout": "^1.2.0", "crypto-hash": "^1.2.2", "jayson": "^3.4.4", "js-sha3": "^0.8.0", "node-fetch": "^2.6.1", "rpc-websockets": "^7.4.2", "secp256k1": "^4.0.2", "superstruct": "^0.14.2", "tweetnacl": "^1.0.0" }, "devDependencies": { "@babel/core": "^7.12.13", "@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", "@babel/register": "^7.12.13", "@commitlint/config-conventional": "^12.0.1", "@commitlint/travis-cli": "^12.0.1", "@rollup/plugin-alias": "^3.1.2", "@rollup/plugin-babel": "^5.2.3", "@rollup/plugin-commonjs": "^17.1.0", "@rollup/plugin-json": "^4.1.0", "@rollup/plugin-multi-entry": "^4.0.0", "@rollup/plugin-node-resolve": "^11.1.1", "@rollup/plugin-replace": "^2.3.4", "@solana/spl-token": "^0.0.13", "@types/node": "^14.14.26", "@typescript-eslint/eslint-plugin": "^4.14.2", "@typescript-eslint/parser": "^4.14.2", "babel-eslint": "^11.0.0-beta.2", "chai": "^4.3.0", "chai-as-promised": "^7.1.1", "codecov": "^3.0.4", "cross-env": "7.0.3", "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-inject-style-plugin": "^1.0.0", "esdoc-standard-plugin": "^1.0.0", "eslint": "^7.19.0", "eslint-config-prettier": "^8.0.0", "eslint-plugin-flowtype": "^5.2.0", "eslint-plugin-import": "2.22.1", "eslint-plugin-mocha": "^8.0.0", "eslint-plugin-prettier": "^3.0.0", "esm": "^3.2.25", "flow-bin": "0.130.0", "flow-remove-types": "^2.143.1", "flow-typed": "3.3.1", "http-server": "^0.12.3", "mocha": "^8.2.1", "mocha-headless-chrome": "^3.1.0", "mockttp": "^1.1.0", "mz": "^2.7.0", "nyc": "^15.1.0", "prettier": "^2.0.0", "rimraf": "3.0.2", "rollup": "2.40.0", "rollup-plugin-copy": "^3.3.0", "rollup-plugin-node-polyfills": "^0.2.1", "rollup-plugin-terser": "^7.0.2", "semantic-release": "^17.0.2", "sinon": "^9.2.4", "start-server-and-test": "^1.12.0", "typescript": "^4.1.3", "watch": "^1.0.2" } }