postchain-client
Version:
Client library for accessing a Postchain node through REST.
101 lines (100 loc) • 3.48 kB
JSON
{
"name": "postchain-client",
"version": "2.0.0",
"main": "built/cjs/index.js",
"browser": "built/esm/index.js",
"types": "built/index.d.ts",
"files": [
"built/*"
],
"exports": {
"import": "./built/esm/index.js",
"require": "./built/cjs/index.js",
"browser": "./built/esm/index.js",
"script": "./built/umd/index.js",
"types": "./built/index.d.ts"
},
"description": "Client library for accessing a Postchain node through REST.",
"repository": {
"type": "git",
"url": "ssh://git@bitbucket.org/chromawallet/postchain-client.git"
},
"lint-staged": {
"*.ts": [
"prettier -w",
"eslint --fix --max-warnings 0"
]
},
"scripts": {
"test:unit": "jest --testMatch='<rootDir>/test/unit/**/*.test.ts'",
"test:integration": "BLOCKCHAIN_RID=$(curl -s http://localhost:7740/brid/iid_0) jest --testMatch='<rootDir>/test/integration/*.test.ts'",
"test:chromiaNetwork": "bash scripts/setup-chromia-network-and-deploy-dapps.sh && BLOCKCHAIN_RID=$(curl -s http://localhost:7740/brid/iid_0) jest --testMatch='<rootDir>test/integrationChromiaNetwork/**/*.test.ts'",
"test:manually": "jest test/manual/**/*.test.ts",
"test:unit:coverage": "jest --testMatch='<rootDir>/test/unit/**/*.test.ts' --coverage",
"test:integration:coverage": "jest test/integration/**/*.test.ts' --coverage",
"test:chromiaNetwork:coverage": "jest test/integrationChromiaNetwork/**/*.test.ts --coverage",
"setup:chromiaNetwork": "bash scripts/setup-chromia-network-and-deploy-dapps.sh",
"build": "npm run clean && tsc && rollup -c rollup.config.mjs && echo '{\"type\": \"module\"}' > built/esm/package.json",
"clean": "rimraf built",
"prepack": "npm run build",
"publish": "npm run prepack && npm publish --access public",
"prepare": "husky install",
"lint": "eslint . --ext .ts --fix",
"format": "prettier --write ."
},
"author": "ChromaWay AB",
"contributors": [
{
"name": "Kalle Rosenbaum",
"email": "kalle@popeller.io"
}
],
"license": "BSD-2-Clause-FreeBSD",
"dependencies": {
"@chromia/asn1": "^1.0.1",
"@types/bn.js": "^5.1.1",
"crypto-browserify": "^3.12.0",
"lodash": "^4.17.21",
"secp256k1": "^4.0.4",
"stream-browserify": "^3.0.0",
"zod": "^3.22.4"
},
"devDependencies": {
"@rollup/plugin-alias": "^4.0.3",
"@rollup/plugin-commonjs": "^24.0.1",
"@rollup/plugin-inject": "^5.0.3",
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-node-resolve": "^15.0.1",
"@types/body-parser": "^1.19.3",
"@types/express": "^4.17.14",
"@types/jest": "^29.5.14",
"@types/lodash": "^4.14.186",
"@types/node": "^18.8.5",
"@types/node-fetch": "^2.6.2",
"@types/request": "^2.48.8",
"@types/secp256k1": "^4.0.3",
"@typescript-eslint/eslint-plugin": "^5.46.0",
"@typescript-eslint/parser": "^5.46.0",
"babel-preset-es2015": "^6.24.1",
"body-parser": "^1.17.1",
"dotenv": "^16.4.7",
"eslint": "^8.29.0",
"eslint-config-prettier": "^8.5.0",
"express": "^4.15.2",
"husky": "^8.0.2",
"jest": "^29.7.0",
"msw": "^2.2.13",
"prettier": "2.8.1",
"rimraf": "^3.0.2",
"rollup": "^3.10.1",
"rollup-plugin-visualizer": "^5.12.0",
"source-map-support": "^0.5.21",
"ts-jest": "^29.2.6",
"ts-node": "^10.9.1",
"lint-staged": "^15.2.0"
},
"peerDependencies": {
"buffer": "^5.x || ^6.x",
"events": "^3.3.0"
}
}