{"_id":"@codewritz/herajs-client","_rev":"3-42754a38b2e43e73e8bb7f2375802277","name":"@codewritz/herajs-client","dist-tags":{"latest":"2.0.5"},"versions":{"2.0.1":{"name":"@codewritz/herajs-client","version":"2.0.1","description":"Javascript codewritz client framework for aergo","main":"dist/herajs.common.js","module":"dist/herajs.esm.js","browser":"dist/herajs.js","types":"dist/platforms/node/index.d.ts","scripts":{"test:ts":"run(){ nyc mocha --exit -r babel-register-ts ${1-'test/*.ts'}; }; run","test":"yarn run lint && yarn run type-check && yarn run test:ts","dev":"rollup -w -c scripts/config.js --environment TARGET:node-esm","lint":"eslint --fix src/**/*.ts test/**/*.ts","grpc":"./scripts/gen_proto.sh","release":"bash scripts/release.sh","build:types":"tsc --emitDeclarationOnly","build:js":"babel-node scripts/build.js","build":"yarn run build:types && yarn run build:js","docs":"cd docs && make html","type-check":"tsc --noEmit","type-check:watch":"yarn run type-check -- --watch"},"repository":{"type":"git","url":"git+https://github.com/codewritz-repo/herajs-codewritz.git"},"author":{"name":"Codewritz"},"license":"MIT","homepage":"https://github.com/codewritz-repo/herajs-codewritz#readme","dependencies":{"@herajs/common":"^2.0.1","@improbable-eng/grpc-web":"^0.9.1","@types/google-protobuf":"^3.2.7","google-protobuf":"^3.21.2","@grpc/grpc-js":"^1.9.7","hash.js":"^1.1.7","jsbi":"^3.0.0"},"devDependencies":{"@improbable-eng/grpc-web-node-http-transport":"^0.9.1","grpc_tools_node_protoc_ts":"^5.3.2"},"gitHead":"5c14921cf71bcb01d4103dfccba8c6b4ae335fd6","_id":"@codewritz/herajs-client@2.0.1","bugs":{"url":"https://github.com/codewritz-repo/herajs-codewritz/issues"},"_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-avGL22LjkZT3ItNO7g9qCmeHJbBJ81h9uULiP3tVOuWAtmNY2uORtPQ55VKrCslwe87ZfDxQkdzHMS+aBkSoGg==","shasum":"73aeb4c0c45c19dce53516016e07172170edc0f3","tarball":"https://registry.npmjs.org/@codewritz/herajs-client/-/herajs-client-2.0.1.tgz","fileCount":83,"unpackedSize":5931813,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGj0BQdoGC3zluFteix1Xx/5EqdUCjdkd9HwtmPvb7z7AiAvt35HovqLEulAvnxLbNRX/SMa4HS7RjhjrUrCPLPTqA=="}]},"_npmUser":{"name":"codewritz","email":"dev@codewritz.com"},"directories":{},"maintainers":[{"name":"codewritz","email":"dev@codewritz.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/herajs-client_2.0.1_1698731565894_0.011864658715046161"},"_hasShrinkwrap":false},"2.0.2":{"name":"@codewritz/herajs-client","version":"2.0.2","description":"Javascript codewritz client framework for aergo","main":"dist/herajs.common.js","module":"dist/herajs.esm.js","browser":"dist/herajs.js","types":"dist/platforms/node/index.d.ts","scripts":{"test:ts":"run(){ nyc mocha --exit -r babel-register-ts ${1-'test/*.ts'}; }; run","test":"yarn run lint && yarn run type-check && yarn run test:ts","dev":"rollup -w -c scripts/config.js --environment TARGET:node-esm","lint":"eslint --fix src/**/*.ts test/**/*.ts","grpc":"./scripts/gen_proto.sh","release":"bash scripts/release.sh","build:types":"tsc --emitDeclarationOnly","build:js":"babel-node scripts/build.js","build":"yarn run build:types && yarn run build:js","docs":"cd docs && make html","type-check":"tsc --noEmit","type-check:watch":"yarn run type-check -- --watch"},"repository":{"type":"git","url":"git+https://github.com/codewritz-repo/herajs-codewritz.git"},"author":{"name":"Codewritz"},"license":"MIT","homepage":"https://github.com/codewritz-repo/herajs-codewritz#readme","dependencies":{"@herajs/common":"^2.0.1","@improbable-eng/grpc-web":"^0.9.1","@types/google-protobuf":"^3.2.7","google-protobuf":"^3.21.2","@grpc/grpc-js":"^1.9.7","hash.js":"^1.1.7","jsbi":"^3.0.0"},"devDependencies":{"@improbable-eng/grpc-web-node-http-transport":"^0.9.1","grpc_tools_node_protoc_ts":"^5.3.2"},"gitHead":"5c14921cf71bcb01d4103dfccba8c6b4ae335fd6","_id":"@codewritz/herajs-client@2.0.2","bugs":{"url":"https://github.com/codewritz-repo/herajs-codewritz/issues"},"_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-AsIXukpluoK/z9xKy18lMkdd1sbS7QaGsRmxDBBzqUld6HqySUxGIN6wV+/fXDc+lldnWjZVgHVoOwkKx8dOAQ==","shasum":"2b85cca7dd947ab5d7d0862329d9940ae32d38d9","tarball":"https://registry.npmjs.org/@codewritz/herajs-client/-/herajs-client-2.0.2.tgz","fileCount":83,"unpackedSize":5931756,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEIl9zoZgVOtX13GE46v4lEoW3JvlMOl5SsIMzfw/y2HAiBl9842F23A/d38xT7x+E4oxuvfhkIDoIDX2uiwDROYTA=="}]},"_npmUser":{"name":"codewritz","email":"dev@codewritz.com"},"directories":{},"maintainers":[{"name":"codewritz","email":"dev@codewritz.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/herajs-client_2.0.2_1698731730215_0.17223840821502634"},"_hasShrinkwrap":false},"2.0.3":{"name":"@codewritz/herajs-client","version":"2.0.3","description":"Javascript codewritz client framework for aergo","main":"dist/herajs.common.js","module":"dist/herajs.esm.js","browser":"dist/herajs.js","types":"dist/platforms/node/index.d.ts","scripts":{"test:ts":"run(){ nyc mocha --exit -r babel-register-ts ${1-'test/*.ts'}; }; run","test":"yarn run lint && yarn run type-check && yarn run test:ts","dev":"rollup -w -c scripts/config.js --environment TARGET:node-esm","lint":"eslint --fix src/**/*.ts test/**/*.ts","grpc":"./scripts/gen_proto.sh","release":"bash scripts/release.sh","build:types":"tsc --emitDeclarationOnly","build:js":"babel-node scripts/build.js","build":"yarn run build:types && yarn run build:js","docs":"cd docs && make html","type-check":"tsc --noEmit","type-check:watch":"yarn run type-check -- --watch"},"repository":{"type":"git","url":"git+https://github.com/codewritz-repo/herajs-codewritz.git"},"author":{"name":"Codewritz"},"license":"MIT","homepage":"https://github.com/codewritz-repo/herajs-codewritz#readme","dependencies":{"@herajs/common":"^2.0.1","@improbable-eng/grpc-web":"^0.9.1","@types/google-protobuf":"^3.2.7","google-protobuf":"^3.21.2","@grpc/grpc-js":"^1.9.7","hash.js":"^1.1.7","jsbi":"^3.0.0"},"devDependencies":{"@improbable-eng/grpc-web-node-http-transport":"^0.9.1","grpc_tools_node_protoc_ts":"^5.3.2"},"gitHead":"5c14921cf71bcb01d4103dfccba8c6b4ae335fd6","_id":"@codewritz/herajs-client@2.0.3","bugs":{"url":"https://github.com/codewritz-repo/herajs-codewritz/issues"},"_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-6ebxGUAurO0es1k4LFT5zi/zuD8fWOJe9q8iylshQmfpIVwp9jfm1ErVdMM0yEeoxR8H7TEtzhNeHFeW6THY9g==","shasum":"8aeb046dfde1ce7f575fa8641930d4ad3816fa4d","tarball":"https://registry.npmjs.org/@codewritz/herajs-client/-/herajs-client-2.0.3.tgz","fileCount":83,"unpackedSize":5931761,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDr2OeEiGhxS7BJ8la0Mxgurd1cAmtdANb+smZNw4VhTQIgfXK1pYoEUyp16GuI5IVDylShxF8K8ESounQS8eCEK24="}]},"_npmUser":{"name":"codewritz","email":"dev@codewritz.com"},"directories":{},"maintainers":[{"name":"codewritz","email":"dev@codewritz.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/herajs-client_2.0.3_1698739642274_0.12947943837471665"},"_hasShrinkwrap":false},"2.0.5":{"name":"@codewritz/herajs-client","version":"2.0.5","description":"Codewritz Javascript client framework for aergo","main":"dist/herajs.common.js","module":"dist/herajs.esm.js","browser":"dist/herajs.js","types":"dist/platforms/node/index.d.ts","scripts":{"test:ts":"run(){ nyc mocha --exit -r babel-register-ts ${1-'test/*.ts'}; }; run","test":"yarn run lint && yarn run type-check && yarn run test:ts","dev":"rollup -w -c scripts/config.js --environment TARGET:node-esm","lint":"eslint --fix src/**/*.ts test/**/*.ts","grpc":"./scripts/gen_proto.sh","release":"bash scripts/release.sh","build:types":"tsc --emitDeclarationOnly","build:js":"babel-node scripts/build.js","build":"yarn run build:types && yarn run build:js","docs":"cd docs && make html","type-check":"tsc --noEmit","type-check:watch":"yarn run type-check -- --watch"},"repository":{"type":"git","url":"git+https://github.com/codewritz-repo/herajs-codewritz.git"},"author":{"name":"Codewritz"},"license":"MIT","homepage":"https://github.com/codewritz-repo/herajs-codewritz#readme","dependencies":{"@herajs/common":"^2.0.1","@improbable-eng/grpc-web":"^0.9.1","@types/google-protobuf":"^3.2.7","google-protobuf":"^3.21.2","@grpc/grpc-js":"^1.9.7","hash.js":"^1.1.7","jsbi":"^3.0.0"},"devDependencies":{"@improbable-eng/grpc-web-node-http-transport":"^0.9.1","grpc_tools_node_protoc_ts":"^5.3.2"},"gitHead":"5c14921cf71bcb01d4103dfccba8c6b4ae335fd6","_id":"@codewritz/herajs-client@2.0.5","bugs":{"url":"https://github.com/codewritz-repo/herajs-codewritz/issues"},"_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-qyN2ue1Suj9B4O7JjIwIY2q35udwGowZD+NKpYGLVsW3NRCka87ISz0yDhczXXruMCA/0fJWVJFCarb6JckJqA==","shasum":"f59d7a699ade476a2066732f930fa439dbbf037d","tarball":"https://registry.npmjs.org/@codewritz/herajs-client/-/herajs-client-2.0.5.tgz","fileCount":83,"unpackedSize":5931828,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDSEAoH2e7CHSI7E+5npqalQVQb4g1+jDQGe+RAZnX5DgIgV5E37a7G60piuMUZAYR6X4yp0hK0MZYnS8I5XHrwvPg="}]},"_npmUser":{"name":"codewritz","email":"dev@codewritz.com"},"directories":{},"maintainers":[{"name":"codewritz","email":"dev@codewritz.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/herajs-client_2.0.5_1698739858811_0.056812511811935584"},"_hasShrinkwrap":false}},"time":{"created":"2023-10-31T05:52:45.814Z","2.0.1":"2023-10-31T05:52:46.281Z","modified":"2023-10-31T08:10:59.199Z","2.0.2":"2023-10-31T05:55:30.521Z","2.0.3":"2023-10-31T08:07:22.636Z","2.0.5":"2023-10-31T08:10:59.038Z"},"maintainers":[{"name":"codewritz","email":"dev@codewritz.com"}],"description":"Codewritz Javascript client framework for aergo","homepage":"https://github.com/codewritz-repo/herajs-codewritz#readme","repository":{"type":"git","url":"git+https://github.com/codewritz-repo/herajs-codewritz.git"},"author":{"name":"Codewritz"},"bugs":{"url":"https://github.com/codewritz-repo/herajs-codewritz/issues"},"license":"MIT","readme":"# @herajs/client\n\n[![npm](https://img.shields.io/npm/v/@herajs/client.svg)](https://www.npmjs.com/package/@herajs/client) [![readthedocs](https://readthedocs.org/projects/herajs/badge/)](https://herajs.readthedocs.io/)\n\n- [Documentation](https://herajs.readthedocs.io/)\n- [Changelog](./CHANGELOG.md)\n\nThis package includes the API client and common classes and utils.\n\nThis package supports both Node.js and Web platforms. Please refer to the documentation how to select the platform.\n\n## Quick start\n\n```console\nnpm install @herajs/client\n```\n\nYou can import the module both as CommonJS (require) and ES module (import).\n\n```javascript\nimport AergoClient from '@herajs/client';\nlet aergo = new AergoClient();\naergo.blockchain().then(result => {\n    console.log('Current state', result);\n});\n```\n\nNote that this by default imports the Node.js version which is not compatible with browsers. If you target web browsers, either `import AergoClient from '@herajs/client/dist/herajs.js';` or create an alias in your bundler configuration. Many bundlers like Webpack automatically pick the browser version, so you don't need to configure anything.\n\nYou can also directly import the pre-built bundle in HTML using `<script src=\"herajs/dist/herajs.min.js\"></script>` and use the global `herajs` variable.\n\n## Contribute\n\n### Setup\n\nClone this repository and run\n\n```console\nnpm install\n```\n\n### Scripts\n\nRun tests (requires a local Aergo node running in `--testmode`, listening on port `7845`).\n\n```console\nnpm run test\n```\n\nRegenerate GRPC type definitions\n\n```console\nnpm run grpc\n```\n\nDevelopment build with auto-update\n\n```console\nnpm run dev\n```\n\nBuild all targets for distribution\n\n```console\nnpm run build\n```\n","readmeFilename":"README.md"}