forked from stellar/js-stellar-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
225 lines (225 loc) · 8.02 KB
/
package.json
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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
{
"name": "@stellar/stellar-sdk",
"version": "13.0.0",
"description": "A library for working with the Stellar network, including communication with the Horizon and Soroban RPC servers.",
"keywords": [
"stellar"
],
"homepage": "https://github.com/stellar/js-stellar-sdk",
"bugs": {
"url": "https://github.com/stellar/js-stellar-sdk/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/stellar/js-stellar-sdk.git"
},
"license": "Apache-2.0",
"author": "Stellar Development Foundation <hello@stellar.org>",
"main": "./lib/index.js",
"types": "./lib/index.d.ts",
"browser": "./dist/stellar-sdk.min.js",
"files": [
"/types",
"/lib",
"/dist"
],
"exports": {
".": {
"browser": "./dist/stellar-sdk.min.js",
"types": "./lib/index.d.ts",
"default": "./lib/index.js"
},
"./contract": {
"types": "./lib/contract/index.d.ts",
"default": "./lib/contract/index.js"
},
"./rpc": {
"types": "./lib/rpc/index.d.ts",
"default": "./lib/rpc/index.js"
},
"./no-axios": {
"browser": "./dist/stellar-sdk-no-axios.min.js",
"types": "./lib/no-axios/index.d.ts",
"default": "./lib/no-axios/index.js"
},
"./no-axios/contract": {
"types": "./lib/no-axios/contract/index.d.ts",
"default": "./lib/no-axios/contract/index.js"
},
"./no-axios/rpc": {
"types": "./lib/no-axios/rpc/index.d.ts",
"default": "./lib/no-axios/rpc/index.js"
},
"./no-eventsource": {
"browser": "./dist/stellar-sdk-no-eventsource.min.js",
"types": "./lib/no-eventsource/index.d.ts",
"default": "./lib/no-eventsource/index.js"
},
"./no-eventsource/contract": {
"types": "./lib/no-eventsource/contract/index.d.ts",
"default": "./lib/no-eventsource/contract/index.js"
},
"./no-eventsource/rpc": {
"types": "./lib/no-eventsource/rpc/index.d.ts",
"default": "./lib/no-eventsource/rpc/index.js"
},
"./minimal": {
"browser": "./dist/stellar-sdk-minimal.min.js",
"types": "./lib/minimal/index.d.ts",
"default": "./lib/minimal/index.js"
},
"./minimal/contract": {
"types": "./lib/minimal/contract/index.d.ts",
"default": "./lib/minimal/contract/index.js"
},
"./minimal/rpc": {
"types": "./lib/minimal/rpc/index.d.ts",
"default": "./lib/minimal/rpc/index.js"
}
},
"scripts": {
"build": "cross-env NODE_ENV=development yarn _build",
"build:prod": "cross-env NODE_ENV=production yarn _build",
"build:node": "yarn _babel && yarn build:ts",
"build:node:no-axios": "cross-env OUTPUT_DIR=lib/no-axios USE_AXIOS=false yarn build:node",
"build:node:no-eventsource": "cross-env OUTPUT_DIR=lib/no-eventsource USE_EVENTSOURCE=false yarn build:node",
"build:node:minimal": "cross-env OUTPUT_DIR=lib/minimal USE_AXIOS=false USE_EVENTSOURCE=false yarn build:node",
"build:node:all": "yarn build:node && yarn build:node:no-axios && yarn build:node:no-eventsource && yarn build:node:minimal",
"clean:temp": "rm -f ./config/tsconfig.tmp.json",
"build:ts": "node config/set-output-dir.js && tsc -p ./config/tsconfig.tmp.json && yarn clean:temp",
"build:test": "tsc -p ./test/unit/tsconfig.json",
"build:browser": "webpack -c config/webpack.config.browser.js",
"build:browser:no-axios": "cross-env USE_AXIOS=false webpack -c config/webpack.config.browser.js",
"build:browser:no-eventsource": "cross-env USE_EVENTSOURCE=false webpack -c config/webpack.config.browser.js",
"build:browser:minimal": "cross-env USE_AXIOS=false USE_EVENTSOURCE=false webpack -c config/webpack.config.browser.js",
"build:browser:all": "yarn build:browser && cross-env no_clean=true yarn build:browser:no-axios && cross-env no_clean=true yarn build:browser:no-eventsource && cross-env no_clean=true yarn build:browser:minimal",
"build:docs": "cross-env NODE_ENV=docs yarn _babel",
"clean": "rm -rf lib/ dist/ coverage/ .nyc_output/ jsdoc/ test/e2e/.soroban",
"docs": "yarn build:docs && jsdoc -c ./config/.jsdoc.json",
"test": "yarn build:test && yarn test:node && yarn test:integration && yarn test:browser",
"test:e2e": "./test/e2e/initialize.sh && yarn _nyc mocha --recursive 'test/e2e/src/test-*.js'",
"test:node": "yarn _nyc mocha --recursive 'test/unit/**/*.js'",
"test:integration": "yarn _nyc mocha --recursive 'test/integration/**/*.js'",
"test:browser": "karma start config/karma.conf.js",
"test:browser:no-axios": "cross-env USE_AXIOS=false yarn build:browser && cross-env USE_AXIOS=false karma start config/karma.conf.js",
"fmt": "yarn _prettier && yarn eslint -c .eslintrc.js src/ --fix",
"preversion": "yarn clean && yarn _prettier && yarn build:prod && yarn test",
"prepare": "yarn build:prod",
"_build": "yarn build:node:all && yarn build:test && yarn build:browser:all",
"_babel": "babel --extensions '.ts' --out-dir ${OUTPUT_DIR:-lib} src/",
"_nyc": "nyc --nycrc-path config/.nycrc",
"_prettier": "prettier --ignore-path config/.prettierignore --write './test/**/*.js'"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"**/*.{js,json,ts}": [
"yarn fmt"
]
},
"mocha": {
"reporter": "spec",
"require": [
"@babel/register",
"test/test-nodejs.js",
"dotenv/config"
],
"exclude": [
"test/test-browser.js"
],
"sort": true,
"recursive": true,
"timeout": 120000
},
"nyc": {
"instrument": false,
"sourceMap": false,
"reporter": [
"text-summary"
]
},
"devDependencies": {
"@babel/cli": "^7.25.9",
"@babel/core": "^7.26.0",
"@babel/eslint-plugin": "^7.25.9",
"@babel/preset-env": "^7.26.0",
"@babel/preset-typescript": "^7.26.0",
"@babel/register": "^7.25.9",
"@definitelytyped/dtslint": "^0.2.27",
"@istanbuljs/nyc-config-babel": "3.0.0",
"@stellar/tsconfig": "^1.0.2",
"@types/chai": "^4.3.19",
"@types/detect-node": "^2.0.0",
"@types/eventsource": "^1.1.12",
"@types/json-schema": "^7.0.15",
"@types/lodash": "^4.17.13",
"@types/mocha": "^10.0.9",
"@types/node": "^20.14.11",
"@types/randombytes": "^2.0.1",
"@types/sinon": "^17.0.2",
"@types/urijs": "^1.19.20",
"@typescript-eslint/parser": "^7.16.1",
"axios-mock-adapter": "^1.22.0",
"babel-loader": "^9.1.3",
"babel-plugin-istanbul": "^7.0.0",
"babel-plugin-transform-define": "^2.1.4",
"better-docs": "^2.7.3",
"buffer": "^6.0.3",
"chai": "^4.3.10",
"chai-as-promised": "^7.1.1",
"chai-http": "^4.3.0",
"cross-env": "^7.0.3",
"dotenv": "^16.4.5",
"eslint": "^8.57.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-airbnb-typescript": "^18.0.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-import": "^2.30.0",
"eslint-plugin-jsdoc": "^48.8.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prefer-import": "^0.0.1",
"eslint-plugin-prettier": "^5.2.1",
"eslint-webpack-plugin": "^4.2.0",
"ghooks": "^2.0.4",
"husky": "^9.1.6",
"jsdoc": "^4.0.4",
"json-schema-faker": "^0.5.8",
"karma": "^6.4.3",
"karma-chai": "^0.1.0",
"karma-chrome-launcher": "^3.1.0",
"karma-coverage": "^2.2.1",
"karma-firefox-launcher": "^2.1.3",
"karma-mocha": "^2.0.0",
"karma-sinon-chai": "^2.0.2",
"karma-webpack": "^5.0.1",
"lint-staged": "^15.2.10",
"lodash": "^4.17.21",
"mocha": "^10.8.2",
"node-polyfill-webpack-plugin": "^3.0.0",
"null-loader": "^4.0.1",
"nyc": "^17.0.0",
"prettier": "^3.3.3",
"randombytes": "^2.1.0",
"sinon": "^17.0.1",
"sinon-chai": "^3.7.0",
"taffydb": "^2.7.3",
"terser-webpack-plugin": "^5.3.10",
"ts-node": "^10.9.2",
"typescript": "^5.6.3",
"webpack": "^5.96.1",
"webpack-cli": "^5.0.1"
},
"dependencies": {
"@stellar/stellar-base": "^13.0.1",
"axios": "^1.7.7",
"bignumber.js": "^9.1.2",
"eventsource": "^2.0.2",
"feaxios": "^0.0.23",
"randombytes": "^2.1.0",
"toml": "^3.0.0",
"urijs": "^1.19.1"
}
}