-
Notifications
You must be signed in to change notification settings - Fork 353
Expand file tree
/
Copy pathpackage.json
More file actions
188 lines (188 loc) · 7.3 KB
/
Copy pathpackage.json
File metadata and controls
188 lines (188 loc) · 7.3 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
176
177
178
179
180
181
182
183
184
185
186
187
188
{
"name": "@stellar/stellar-sdk",
"version": "16.0.1",
"type": "module",
"packageManager": "pnpm@10.28.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>",
"sideEffects": [
"./lib/esm/base/scval.js",
"./lib/cjs/base/scval.js"
],
"main": "./lib/cjs/index.js",
"module": "./lib/esm/index.js",
"types": "./lib/esm/index.d.ts",
"files": [
"/types",
"/lib",
"/dist",
"/bin"
],
"bin": {
"stellar-js": "./bin/stellar-js"
},
"exports": {
".": {
"types": "./lib/esm/index.d.ts",
"import": "./lib/esm/index.js",
"require": "./lib/cjs/index.js",
"default": "./lib/esm/index.js"
},
"./contract": {
"types": "./lib/esm/contract/index.d.ts",
"import": "./lib/esm/contract/index.js",
"require": "./lib/cjs/contract/index.js",
"default": "./lib/esm/contract/index.js"
},
"./rpc": {
"types": "./lib/esm/rpc/index.d.ts",
"import": "./lib/esm/rpc/index.js",
"require": "./lib/cjs/rpc/index.js",
"default": "./lib/esm/rpc/index.js"
},
"./axios": {
"types": "./lib/axios/esm/index.d.ts",
"import": "./lib/axios/esm/index.js",
"require": "./lib/axios/cjs/index.js",
"default": "./lib/axios/esm/index.js"
},
"./axios/contract": {
"types": "./lib/axios/esm/contract/index.d.ts",
"import": "./lib/axios/esm/contract/index.js",
"require": "./lib/axios/cjs/contract/index.js",
"default": "./lib/axios/esm/contract/index.js"
},
"./axios/rpc": {
"types": "./lib/axios/esm/rpc/index.d.ts",
"import": "./lib/axios/esm/rpc/index.js",
"require": "./lib/axios/cjs/rpc/index.js",
"default": "./lib/axios/esm/rpc/index.js"
},
"./http-client/axios": {
"types": "./lib/esm/http-client/axios.d.ts",
"import": "./lib/esm/http-client/axios.js",
"require": "./lib/cjs/http-client/axios.js",
"default": "./lib/esm/http-client/axios.js"
}
},
"scripts": {
"setup": "git config blame.ignoreRevsFile .git-blame-ignore-revs",
"build": "cross-env NODE_ENV=development pnpm run _build",
"build:prod": "cross-env NODE_ENV=production pnpm run _build",
"build:lib": "rollup -c",
"build:lib:axios": "cross-env USE_AXIOS=true rollup -c",
"build:lib:all": "pnpm run build:lib && pnpm run build:lib:axios",
"build:types": "tsc -p tsconfig.json && mkdir -p lib/esm/base/generated && cp src/base/generated/*.d.ts lib/esm/base/generated/",
"build:types:axios": "tsc -p config/tsconfig.axios.json && mkdir -p lib/axios/esm/base/generated && cp src/base/generated/*.d.ts lib/axios/esm/base/generated/",
"build:types:all": "pnpm run build:types && pnpm run build:types:axios",
"postbuild:lib": "node config/write-module-type.js lib/cjs commonjs",
"postbuild:lib:axios": "node config/write-module-type.js lib/axios/cjs commonjs",
"clean": "rm -rf lib/ dist/ coverage/ jsdoc/ test/e2e/.soroban",
"clean:bundle-size": "rm -rf node_modules lib/ dist/ coverage/ jsdoc/ test/e2e/.soroban",
"docs": "pnpm docs:reference && pnpm docs:llms && pnpm docs:robots && pnpm docs:htaccess && pnpm docs:site",
"docs:reference": "tsx scripts/build-docs.ts",
"docs:llms": "tsx scripts/build-llms.ts",
"docs:robots": "tsx scripts/build-robots.ts",
"docs:htaccess": "tsx scripts/build-htaccess.ts",
"docs:site": "astro build && tsx scripts/build-md-siblings.ts",
"docs:dev": "astro dev",
"docs:preview": "astro preview",
"test": "pnpm run test:node && pnpm run test:node:axios && pnpm run test:integration && pnpm run test:browser",
"test:all": "pnpm run test:node && pnpm run test:node:axios && pnpm run test:integration && pnpm run test:browser && pnpm run test:e2e",
"test:e2e": "./test/e2e/initialize.sh && vitest run --config config/vitest.config.e2e.ts --coverage",
"test:node": "vitest run test/unit --config config/vitest.config.ts --coverage",
"test:node:axios": "cross-env TRANSPORT=axios vitest run test/unit --config config/vitest.config.ts",
"test:e2e:noeval": "NODE_OPTIONS=--disallow-code-generation-from-strings pnpm run test:e2e",
"test:integration": "vitest run test/integration --config config/vitest.config.ts --coverage",
"test:browser": "pnpm run build:lib && vitest run --config config/vitest.config.browser.ts test/unit --coverage",
"test:browser:axios": "pnpm run build:lib:axios && cross-env TRANSPORT=axios vitest run --config config/vitest.config.browser.ts test/unit",
"fmt": "pnpm run _prettier && eslint src/ --fix",
"preversion": "pnpm run clean && pnpm run _prettier && pnpm run build:prod && pnpm run test",
"prepare": "pnpm run build:prod && pnpm run setup && husky",
"download-sac-spec": "node scripts/download-sac-spec.js",
"_build": "pnpm run clean && pnpm run build:lib:all && pnpm run build:types:all",
"_prettier": "prettier --ignore-path config/.prettierignore --write './src/**/*.ts' './test/**/*.{js,ts}'"
},
"lint-staged": {
"**/*.{js,json,ts}": [
"pnpm run fmt"
]
},
"engines": {
"node": ">=22.0.0"
},
"devDependencies": {
"@astrojs/sitemap": "^3.7.3",
"@astrojs/starlight": "^0.40.0",
"@eslint/compat": "^1.4.1",
"@eslint/js": "^9.39.4",
"@rollup/plugin-commonjs": "^29.0.3",
"@rollup/plugin-inject": "^5.0.5",
"@rollup/plugin-node-resolve": "^16.0.1",
"@rollup/plugin-replace": "^6.0.2",
"@rollup/plugin-terser": "^1.0.0",
"@types/detect-node": "^2.0.2",
"@types/json-schema": "^7.0.15",
"@types/node": "^22.19.17",
"@types/sha.js": "^2.4.4",
"@vitest/browser": "^4.1.9",
"@vitest/browser-playwright": "^4.1.9",
"@vitest/coverage-istanbul": "4.1.9",
"@vitest/coverage-v8": "^4.1.9",
"@vitest/ui": "^4.1.9",
"astro": "^6.4.8",
"browserify-zlib": "^0.2.0",
"cross-env": "^10.1.0",
"dotenv": "^17.4.2",
"esbuild": "^0.27.7",
"eslint": "^9.39.1",
"eslint-config-prettier": "^10.1.8",
"eslint-import-resolver-typescript": "^4.4.5",
"eslint-plugin-import": "^2.32.0",
"eslint-plugin-prettier": "^5.5.6",
"eslint-plugin-tsdoc": "^0.5.2",
"github-slugger": "2.0.0",
"globals": "^17.5.0",
"husky": "^9.1.7",
"jsdom": "^29.1.1",
"lint-staged": "^15.5.1",
"lodash": "^4.18.1",
"msw": "^2.14.6",
"playwright": "^1.61.0",
"prettier": "^3.8.4",
"rollup": "^4.62.0",
"rollup-plugin-esbuild": "^6.2.1",
"rollup-plugin-polyfill-node": "^0.13.0",
"tsx": "^4.22.4",
"typedoc": "^0.28.19",
"typescript": "5.9.3",
"typescript-eslint": "^8.61.1",
"vitest": "^4.1.9"
},
"dependencies": {
"@noble/ed25519": "^3.1.0",
"@noble/hashes": "^2.2.0",
"@stellar/js-xdr": "4.0.0",
"axios": "1.18.0",
"base32.js": "^0.1.0",
"bignumber.js": "^11.1.4",
"buffer": "^6.0.3",
"commander": "^14.0.3",
"eventsource": "^4.1.0",
"feaxios": "^0.0.23",
"smol-toml": "^1.6.1",
"uint8array-extras": "^1.5.0"
}
}