UNPKG

casper-js-sdk

Version:
142 lines (141 loc) 4.64 kB
{ "name": "casper-js-sdk", "version": "5.0.7", "license": "Apache 2.0", "description": "SDK to interact with the Casper blockchain", "homepage": "https://github.com/casper-ecosystem/casper-js-sdk#README.md", "repository": { "type": "git", "url": "https://github.com/casper-ecosystem/casper-js-sdk.git" }, "main": "dist/lib.node.js", "browser": "dist/lib.web.js", "types": "dist/index.d.ts", "scripts": { "prepare": "husky-run install", "lint": "eslint src/ --fix", "lint:ci": "eslint src/ --max-warnings=0", "prebuild": "npm run clean && npm run lint", "build": "webpack --config webpack.config.js", "clean": "rm -rf ./dist", "~build": "tsc --watch", "test:node:unit": "cross-env NODE_ENV=test TS_NODE_FILES=true mocha -r ts-node/register \"src/**/*.test.ts\"", "test:node:unit:coverage": "nyc npm run test:node:unit", "test:browser:unit": "cross-env NODE_ENV=test karma start karma.conf.js --single-run", "test:unit": "cross-env NODE_ENV=test npm run test:node:unit && npm run test:browser:unit", "test:node:e2e": "cross-env NODE_ENV=test TS_NODE_FILES=true mocha -r ts-node/register \"e2e/**/*.test.ts\" --timeout 5000000 --exit", "test:e2e": "cross-env NODE_ENV=test npm run test:node:e2e", "test": "npm run test:unit && npm run test:e2e", "docs:build": "rm -rf docs && typedoc", "docs:watch": "rm -rf docs && typedoc --watch", "docs:serve": "npm run docs:build && serve docs", "docs:dev": "concurrently \"npm run docs:watch\" \"serve docs\"", "prepublishOnly": "npm run build && npm run test:unit" }, "keywords": [ "Casper", "BlockChain", "sdk" ], "author": "Jan Hoffmann <jan@casperlabs.io>", "lint-staged": { "src/**/*.{ts,tsx}": [ "eslint --fix", "git add" ], "*.{js,css,md}": "prettier --write" }, "husky": { "hooks": { "pre-commit": "lint-staged" } }, "devDependencies": { "@jsdevtools/coverage-istanbul-loader": "^3.0.5", "@types/bn.js": "^5.1.6", "@types/chai": "^4.1.7", "@types/chai-as-promised": "^7.1.5", "@types/elliptic": "^6.4.18", "@types/eventsource": "^1.1.15", "@types/humanize-duration": "^3.18.1", "@types/lodash": "^4.14.191", "@types/mocha": "^5.2.7", "@types/node": "^14.14.31", "@types/node-fetch": "^2.6.4", "@types/sinon": "^10.0.13", "@typescript-eslint/eslint-plugin": "^5.52.0", "@typescript-eslint/parser": "^5.52.0", "assert": "^2.0.0", "browserify-zlib": "^0.2.0", "buffer": "^6.0.3", "casper-node-launcher-js": "^0.0.3", "chai": "^4.2.0", "chai-as-promised": "^7.1.1", "copy-webpack-plugin": "^9.0.1", "cross-env": "^7.0.3", "crypto-browserify": "^3.12.0", "dotenv": "^16.0.3", "eslint": "^7.32.0", "eslint-config-prettier": "^8.1.0", "eslint-plugin-jsdoc": "^32.2.0", "eslint-plugin-lodash": "^7.4.0", "eslint-plugin-prefer-arrow": "^1.2.3", "https-browserify": "^1.0.0", "husky": "^4.3.8", "karma": "^6.4.1", "karma-chai": "^0.1.0", "karma-chrome-launcher": "^3.1.1", "karma-coverage-istanbul-reporter": "^3.0.3", "karma-mocha": "^2.0.1", "karma-sourcemap-loader": "^0.4.0", "karma-spec-reporter": "^0.0.36", "karma-webpack": "^5.0.0", "lint-staged": "^10.5.4", "mocha": "^10.1.0", "nyc": "^15.1.0", "prettier": "^1.18.2", "process": "^0.11.10", "serve": "^14.2.0", "sinon": "^15.0.3", "stream-browserify": "^3.0.0", "stream-http": "^3.2.0", "ts-loader": "^9.4.2", "ts-node": "^10.9.1", "typedoc": "^0.23.25", "typescript": "^4.9.5", "url": "^0.11.0", "util": "^0.12.5", "webpack": "^5.76.3", "webpack-bundle-analyzer": "^4.8.0", "webpack-cli": "^4.5.0", "webpack-node-externals": "^2.5.2" }, "overrides": { "elliptic": "6.6.1" }, "dependencies": { "@ethersproject/bignumber": "^5.0.8", "@ethersproject/bytes": "^5.0.5", "@ethersproject/constants": "^5.0.5", "@noble/curves": "^1.1.0", "@noble/ed25519": "^1.7.3", "@noble/hashes": "^1.2.0", "@noble/secp256k1": "^1.7.1", "@open-rpc/client-js": "^1.8.1", "@scure/bip32": "^1.1.5", "@scure/bip39": "^1.2.0", "@types/ws": "^8.2.2", "asn1.js": "^5.4.1", "axios": "^1.8.4", "bn.js": "^5.2.1", "elliptic": "6.6.1", "eventsource": "^2.0.2", "glob": "^7.1.6", "humanize-duration": "^3.24.0", "lodash": "^4.17.21", "node-fetch": "2.6.13", "reflect-metadata": "^0.1.13", "ts-results": "npm:@casperlabs/ts-results@^3.3.4", "typedjson": "^1.6.0-rc2" } }