-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathpackage.json
More file actions
175 lines (175 loc) · 5.63 KB
/
Copy pathpackage.json
File metadata and controls
175 lines (175 loc) · 5.63 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
{
"name": "aelf-sdk",
"version": "3.5.1-beta.0",
"description": "aelf-sdk js library",
"type": "module",
"main": "dist/aelf.cjs",
"module": "dist/aelf.esm.js",
"browser": "dist/aelf.umd.js",
"unpkg": "dist/aelf.umd.js",
"jsdelivr": "dist/aelf.umd.js",
"exports": {
".": {
"import": "./dist/aelf.esm.js",
"require": "./dist/aelf.cjs"
},
"./src/*": {
"import": "./src/*",
"require": "./src/*"
},
"./wallet": {
"import": "./src/wallet/index.js",
"require": "./src/wallet/index.js",
"types": "./types/wallet/index.d.ts"
},
"./utils": {
"import": "./src/util/utils.js",
"require": "./src/util/utils.js",
"types": "./types/util/utils.d.ts"
},
"./chain": {
"import": "./src/chain/index.js",
"require": "./src/chain/index.js",
"types": "./types/chain/index.d.ts"
},
"./sha256": {
"import": "./src/util/sha256.js",
"require": "./src/util/sha256.js",
"types": "./types/util/sha256.d.ts"
},
"./keyStore": {
"import": "./src/util/keyStore.js",
"require": "./src/util/keyStore.js",
"types": "./types/util/keyStore.d.ts"
},
"./AElf": {
"import": "./src/AElf.js",
"require": "./src/AElf.js",
"types": "./types/index.d.ts"
}
},
"scripts": {
"build": "npm run clean && npm run build:browser && npm run build:node && npm run build:esm && npm run copy-ts",
"build:browser": "cross-env RUNTIME_ENV=browser vite build --config ./config/build/vite.browser.config.js --emptyOutDir false",
"build:node": "cross-env RUNTIME_ENV=node vite build --config ./config/build/vite.node.config.js --emptyOutDir false",
"build:esm": "cross-env RUNTIME_ENV=browser vite build --config ./config/build/vite.esm.config.js --emptyOutDir false",
"analyze:node": "npm run clean && cross-env RUNTIME_ENV=node vite build --config ./config/build/vite.node.config.js --mode analyze",
"analyze:browser": "npm run clean && cross-env RUNTIME_ENV=browser vite build --config ./config/build/vite.browser.config.js --mode analyze",
"clean": "rimraf dist/*",
"commit": "git-cz",
"lint": "eslint src",
"proto": "node scripts/compile-proto.js",
"release": "standard-version -a",
"pre-commit": "lint-staged",
"test": "yarn test:browser && yarn test:node",
"test:browser": "vitest run --config=config/test/vitest.browser.config.js --coverage",
"test:browser:watch": "vitest --config=config/test/vitest.browser.config.js",
"test:node": "vitest run --config=config/test/vitest.config.js --coverage",
"test:node:watch": "vitest --config=config/test/vitest.config.js",
"test:coverage": "vitest run --config=config/test/vitest.browser.config.js --coverage",
"test:coverageNode": "vitest run --config=config/test/vitest.config.js --coverage",
"test:e2e": "vitest run --config=config/test/vitest.e2e.config.js",
"test:e2e:watch": "vitest --config=config/test/vitest.e2e.config.js",
"test:compatibility": "vitest run --config=config/test/vitest.compatibility.config.js",
"test:compatibility:watch": "vitest --config=config/test/vitest.compatibility.config.js",
"test:all": "yarn test && yarn test:e2e && yarn test:compatibility",
"prepare": "husky install",
"copy-ts": "cpx \"types/**/*.ts\" dist/"
},
"keywords": [
"aelf-web3"
],
"files": [
"src",
"types",
"dist",
"proto",
"README.md",
"yarn.lock"
],
"author": "hzz780",
"license": "MIT",
"engines": {
"node": ">=18.18.0"
},
"types": "types",
"engineStrict": true,
"dependencies": {
"@aelfqueen/protobufjs": "^6.8.11",
"@aws-crypto/sha256-js": "^5.0.0",
"@babel/plugin-proposal-optional-chaining": "^7.21.0",
"@babel/runtime": "^7.4.5",
"@scure/base": "^2.0.0",
"@scure/bip32": "^2.0.0",
"@typescript-eslint/parser": "^5.47.1",
"babel-plugin-rewire": "^1.2.0",
"bignumber.js": "^9.0.0",
"bip39": "^3.0.2",
"bn.js": "^5.2.1",
"browserify-cipher": "^1.0.1",
"buffer": "^5.2.1",
"crypto-js": "^4.2.0",
"elliptic": "^6.4.1",
"gbk-string": "^0.1.0",
"isomorphic-fetch": "^3.0.0",
"js-sha256": "^0.9.0",
"keccak": "^3.0.3",
"minimalistic-assert": "^1.0.1",
"node-fetch": "2",
"query-string": "5.1.1",
"randombytes": "^2.1.0",
"readable-stream": "^4.3.0",
"scrypt-js": "^3.0.1",
"stream-browserify": "^3.0.0",
"typescript": "^5.0.4",
"xhr2": "^0.2.1",
"xmlhttprequest": "^1.8.0"
},
"lint-staged": {
"*.js": "eslint"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"repository": {
"type": "git",
"url": "git+https://github.com/AElfProject/aelf-sdk.js.git"
},
"standard-version": {
"scripts": {
"postbump": "npm run build && git add ."
}
},
"devDependencies": {
"@babel/core": "7.21.4",
"@babel/preset-env": "7.21.4",
"@types/elliptic": "^6.4.14",
"@types/hdkey": "^2.0.1",
"@vitest/coverage-v8": "3.2.4",
"@vitest/ui": "^3.2.4",
"babel-eslint": "^10.0.2",
"bundle-analyzer": "^0.0.6",
"chalk": "^4.1.2",
"commitizen": "^4.3.0",
"core-js": "^3.30.1",
"cpx": "^1.5.0",
"cross-env": "^7.0.3",
"cz-conventional-changelog": "^3.0.2",
"eslint": "^8.39.0",
"eslint-config-airbnb-base": "^14.0.0",
"eslint-plugin-babel": "^5.3.1",
"eslint-plugin-import": "^2.27.5",
"git-cz": "^4.9.0",
"glob": "^10.2.2",
"husky": "^8.0.0",
"jsdom": "^27.0.0",
"lint-staged": "^13.2.1",
"rimraf": "^5.0.0",
"size-limit": "^8.1.2",
"standard-version": "^9.5.0",
"vite": "^5.0.0",
"vitest": "^3.2.4"
}
}