{"_id":"@667/near-api-js","_rev":"1-bc2c31a41ab0ac0e6bf5663621ade632","name":"@667/near-api-js","dist-tags":{"latest":"0.44.2"},"versions":{"0.44.2":{"name":"@667/near-api-js","description":"JavaScript library to interact with NEAR Protocol via RPC API","version":"0.44.2","repository":{"type":"git","url":"git+https://github.com/near/near-api-js.git"},"homepage":"https://github.com/near/near-api-js","main":"lib/index.js","browser":"lib/browser-index.js","types":"lib/index.d.ts","dependencies":{"bn.js":"5.2.0","borsh":"^0.7.0","bs58":"^4.0.0","depd":"^2.0.0","error-polyfill":"^0.1.3","http-errors":"^1.7.2","js-sha256":"^0.9.0","mustache":"^4.0.0","node-fetch":"^2.6.1","text-encoding-utf-8":"^1.0.2","tweetnacl":"^1.0.1"},"devDependencies":{"@types/bn.js":"^5.1.0","@types/http-errors":"^1.6.1","@typescript-eslint/eslint-plugin":"^2.18.0","@typescript-eslint/parser":"^2.18.0","browserify":"^16.2.3","bundlewatch":"^0.3.1","danger":"^10.6.6","danger-plugin-yarn":"^1.3.2","eslint":"^6.5.1","husky":"^7.0.4","in-publish":"^2.0.0","jest":"^26.0.1","localstorage-memory":"^1.0.3","near-hello":"^0.5.1","rimraf":"^3.0.0","semver":"^7.1.1","ts-jest":"^26.5.6","ts-morph":"^11.0.3","typedoc":"^0.20.36","typedoc-neo-theme":"^1.1.1","typescript":"^3.5.1","uglifyify":"^5.0.1"},"keywords":[],"license":"(MIT AND Apache-2.0)","scripts":{"dist":"yarn browserify && yarn doc","browserify":"browserify browser-exports.js -i node-fetch -i http -i https -o dist/near-api-js.js && browserify browser-exports.js -i node-fetch -g uglifyify -o dist/near-api-js.min.js","prebrowserify":"yarn build","prepublish":"not-in-install && (yarn build && yarn browserify) || in-install","compile":"tsc -p ./tsconfig.json","dev":"yarn compile -w","doc":"typedoc src && touch docs/.nojekyll","build":"yarn compile","test":"jest test","lint":"eslint test && eslint src/**/*.ts","fix":"eslint test --fix && eslint src/**/*.ts --fix","prefuzz":"yarn build","fuzz":"jsfuzz test/fuzz/borsh-roundtrip.js test/fuzz/corpus/","prepare":"husky install"},"bundlewatch":{"files":[{"path":"dist/near-api-js.min.js","maxSize":"105kB"}]},"author":{"name":"NEAR Inc"},"gitHead":"b9b293bc9d77d94f732753d585ef1c3d3844770a","bugs":{"url":"https://github.com/near/near-api-js/issues"},"_id":"@667/near-api-js@0.44.2","_nodeVersion":"16.13.2","_npmVersion":"8.3.2","dist":{"integrity":"sha512-yTV9BXs0xnlCo4yx39CpoiizimuivWmeQbfUMUOi85u7Cmb0SMptXBgrk40TQXO6bOz5KD92WmD4GKpy09Z+LQ==","shasum":"b6195a8971d63ba702075aa4a6fcc1210029ae10","tarball":"https://registry.npmjs.org/@667/near-api-js/-/near-api-js-0.44.2.tgz","fileCount":83,"unpackedSize":1039977,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh/ssyCRA9TVsSAnZWagAASUMP/01yQVUKZh8OBXwhWMta\nS0ZLUqf3ylCdGjqUq9jw2zfI66MH666EEAQ2bT/cuGSTDV59/+1wp4Exb3dT\nrUNN4TW2hNYgWppOEycCRKJAWBm5b149SBJjxcW8oMxwfZsSUSOLDI1w1TuB\n1dT9O33tqfcTYTZoVm46qHkUs7Tg31WMeN/Jd5XbhWhkQr5+By75bP933Znu\n0ZNW+UYiJhCkWPXB0/8Ezu8V1lNOnAfZzOIHHi5O7bPcbjxXhar4YyNWQCAX\nlsMU6u40D1MBUCRjf/SBYn/N/EMxCjBQAXV3SSqUV/hulVqnEDK0bNR8Bjxr\nMgLhMpRrq+6WOmaWxBRP+QqPHRshooPx1vqjWOkbrETq3+AH4tgEb+xaVEV2\nDciUgfrf4nHO31hzGkMuK6Ml56rCLCGdaASNJHNu2zphWqyMGN9FPnVTz27x\naryS+efK9Lni6YJ4a/AI7ML2uHrmnHrJiqI7/0StEY1j2/QeNdJ8Zo3M8k11\nHTgiYC0LFulc1iTWiXPH2dFbSWupfmtvzOwTNILUjX/VkUMu5bSKI9gIlnIY\n4EtQtVcrxHWKrbPBS6zfr/F6VpKD2wf2qyHIP8i6OAGCTx6xgQPwewLjlMkv\n4lcVgAZLS7Il3K5p7YT7FazVU/hrdG2pgnKX6cUhfV0Siyj6vR6nWNmpRfpD\ngfIW\r\n=Tjfk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICrCqbzBDj/rdZuICi5octEVOpjxH9MyqWrp5DPgOWsYAiEA/SzuWh8IrmEwSOpgW+Knf0nzIkujwpQk+6hGItyOSzw="}]},"_npmUser":{"name":"667","email":"667@june07.com"},"directories":{},"maintainers":[{"name":"667","email":"667@june07.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/near-api-js_0.44.2_1644088114582_0.24323331332075604"},"_hasShrinkwrap":false}},"time":{"created":"2022-02-05T19:08:34.510Z","0.44.2":"2022-02-05T19:08:34.759Z","modified":"2022-04-04T10:48:49.533Z"},"maintainers":[{"name":"667","email":"667@june07.com"}],"description":"JavaScript library to interact with NEAR Protocol via RPC API","homepage":"https://github.com/near/near-api-js","keywords":[],"repository":{"type":"git","url":"git+https://github.com/near/near-api-js.git"},"author":{"name":"NEAR Inc"},"bugs":{"url":"https://github.com/near/near-api-js/issues"},"license":"(MIT AND Apache-2.0)","readme":"# near-api-js\n\n[![Build Status](https://travis-ci.com/near/near-api-js.svg?branch=master)](https://travis-ci.com/near/near-api-js)\n[![Gitpod Ready-to-Code](https://img.shields.io/badge/Gitpod-Ready--to--Code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/near/near-api-js) \n\nA JavaScript/TypeScript library for development of DApps on the NEAR platform\n\n# Documentation\n\n[Read the TypeDoc API documentation](https://near.github.io/near-api-js/)\n\n---\n\n# Examples\n\n## [Quick Reference](https://github.com/near/near-api-js/blob/master/examples/quick-reference.md)\n_(Cheat sheet / quick reference)_\n\n## [Cookbook](https://github.com/near/near-api-js/blob/master/examples/cookbook/README.md)\n_(Common use cases / more complex examples)_\n\n---\n\n# Contribute to this library\n\n1. Install dependencies\n\n       yarn\n\n2. Run continuous build with:\n\n       yarn build -- -w\n\n\n# Publish\n\nPrepare `dist` version by running:\n\n    yarn dist\n\nWhen publishing to npm use [np](https://github.com/sindresorhus/np).\n\n---\n\n# Integration Test\n\nStart the node by following instructions from [nearcore](https://github.com/nearprotocol/nearcore), then\n\n    yarn test\n\nTests use sample contract from `near-hello` npm package, see https://github.com/nearprotocol/near-hello\n\n# Update error schema\n\nFollow next steps:\n\n1. [Change hash for the commit with errors in the nearcore](https://github.com/near/near-api-js/blob/master/gen_error_types.js#L7-L9)\n2. Fetch new schema: `node fetch_error_schema.js`\n3. `yarn build` to update `lib/**.js` files\n\n# License\n\nThis repository is distributed under the terms of both the MIT license and the Apache License (Version 2.0).\nSee [LICENSE](LICENSE) and [LICENSE-APACHE](LICENSE-APACHE) for details.\n","readmeFilename":"README.md"}