-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
95 lines (95 loc) · 4.32 KB
/
Copy pathpackage.json
File metadata and controls
95 lines (95 loc) · 4.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
{
"name": "xchain-encoder",
"description": "xchain-encoder encodes XChain Platform ACTION commands into blockchain transactions.",
"version": "0.20.0",
"license": "AGPL-3.0-or-later",
"repository": {
"type": "git",
"url": "https://github.com/XChain-Platform/xchain-encoder.git"
},
"dependencies": {
"axios": "^1.18.1",
"bip174": "2.1.1",
"bip32": "4.0.0",
"bip39": "^3.1.0",
"bitcoinjs-lib": "6.1.7",
"bs58check": "^3.0.1",
"cors": "^2.8.5",
"dotenv": "^16.4.5",
"ecpair": "2.1.0",
"express": "^5.2.1",
"express-json-rpc-router": "^1.4.0",
"express-rate-limit": "^8.5.2",
"helmet": "^8.2.0",
"tiny-secp256k1": "2.2.4"
},
"devDependencies": {
"@babel/core": "^7.0.0",
"@babel/preset-env": "^7.0.0",
"@stryker-mutator/core": "^9.6.1",
"@stryker-mutator/mocha-runner": "^9.6.1",
"babelify": "^10.0.0",
"browserify": "^17.0.0",
"c8": "^11.0.0",
"chai": "^4.5.0",
"eslint": "^9.39.5",
"mocha": "^11.7.5"
},
"scripts": {
"api": "node ./src/api.js",
"lint": "eslint .",
"smoke-test": "npx mocha --timeout 10000 'test/smoke/**/*.test.js'",
"test": "npx mocha --timeout 10000 --require ./test/setup/index.js 'test/unit/**/*.test.js' --recursive --exit",
"test:regtest": "mocha --timeout 0 --require ./test/prepare_regtest.test.js",
"coverage": "c8 --reporter=text --reporter=html --include 'src/**/*.js' mocha --timeout 10000 --require ./test/setup/index.js 'test/unit/**/*.test.js' --exit",
"coverage:check": "c8 --check-coverage --lines 86.2 --statements 86.2 --branches 85.1 --functions 66 --reporter=text-summary --include 'src/**/*.js' mocha --timeout 10000 --require ./test/setup/index.js 'test/unit/**/*.test.js' --exit",
"ci": "npx mocha --timeout 10000 --require ./test/setup/index.js 'test/unit/**/*.test.js' --recursive --exit && npm run ci:security && npm run ci:regression && npm run ci:e2e && npm run ci:conformance",
"ci:security": "npx mocha --timeout 30000 'test/security/**/*.test.js' --recursive --exit",
"ci:regression": "npx mocha --timeout 30000 'test/regression/**/*.test.js' --recursive --exit",
"ci:e2e": "npx mocha --timeout 30000 'test/e2e/**/*.test.js' --recursive --exit",
"ci:conformance": "npx mocha --timeout 30000 'test/conformance/**/*.test.js' --recursive --exit",
"ci:full": "bash bin/ci-full.sh",
"test:unit": "npx mocha --timeout 10000 'test/unit/**/*.test.js'",
"test:integration": "npx mocha --timeout 30000 'test/integration/**/*.test.js'",
"test:boundary": "npx mocha --timeout 30000 'test/boundary/**/*.test.js'",
"test:security": "npx mocha --timeout 30000 'test/security/**/*.test.js'",
"test:fuzz": "npx mocha --timeout 120000 'test/fuzz/**/*.fuzz.js' --recursive",
"build": "npx browserify src/browser/index.js -t [ babelify --presets [ @babel/preset-env ] --global ] | npx uglify-js --compress --mangle -o dist/xchain_encoder.min.js",
"build:dev": "npx browserify src/browser/index.js -t [ babelify --presets [ @babel/preset-env ] --global ] -o dist/xchain_encoder.min.js",
"test:chaos": "npx mocha --timeout 30000 'test/chaos/**/*.test.js'",
"test:e2e": "npx mocha --timeout 30000 'test/e2e/**/*.test.js' --recursive --exit",
"test:e2e:service": "npx mocha --timeout 30000 'test/e2e-service/**/*.test.js' --recursive --exit",
"test:regression": "npx mocha --timeout 30000 'test/regression/**/*.test.js'",
"bench": "node test/performance/helpers/bench.js",
"bench:full": "node test/performance/helpers/bench.js --full --json",
"bench:soak": "node test/performance/helpers/soak.js --duration 60",
"bench:k6": "k6 run test/performance/helpers/k6/sustained.js",
"mutate": "npx stryker run test/mutation/stryker.conf.json",
"mutate:quick": "npx stryker run test/mutation/stryker.conf.quick.json"
},
"overrides": {
"brace-expansion": "^5.0.9",
"minimatch": "^10.2.5",
"ajv": "^8.18.0",
"eslint": {
"ajv": "^6.14.0"
},
"@eslint/eslintrc": {
"ajv": "^6.14.0"
},
"elliptic": "^6.6.1",
"qs": "^6.15.2",
"serialize-javascript": "^7.0.5",
"diff": "^8.0.3",
"tmp": "^0.2.7",
"fast-uri": "^3.1.5",
"ip-address": "^10.3.1",
"tough-cookie": "^4.1.3",
"form-data": "^4.0.6",
"js-yaml": "^4.3.1",
"shell-quote": "^1.9.0"
},
"engines": {
"node": ">=22.0.0"
}
}