-
Notifications
You must be signed in to change notification settings - Fork 77
/
Copy pathpackage.json
236 lines (236 loc) · 8.39 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
226
227
228
229
230
231
232
233
234
235
236
{
"name": "@substrate/light-client-extension-helpers",
"version": "2.7.0",
"author": "Matias Volpe (https://github.com/kratico)",
"type": "module",
"repository": {
"type": "git",
"url": "git+https://github.com/paritytech/polkadot-api.git"
},
"license": "MIT",
"main": "./dist/commonjs/index.js",
"types": "./dist/commonjs/index.d.ts",
"module": "./dist/esm/index.js",
"exports": {
"./package.json": "./package.json",
".": {
"import": {
"@substrate-connect/source": "./src/index.ts",
"types": "./dist/esm/index.d.ts",
"default": "./dist/esm/index.js"
},
"require": {
"types": "./dist/commonjs/index.d.ts",
"default": "./dist/commonjs/index.js"
}
},
"./background": {
"import": {
"@substrate-connect/source": "./src/background/background-helper.ts",
"types": "./dist/esm/background/background-helper.d.ts",
"default": "./dist/esm/background/background-helper.js"
},
"require": {
"types": "./dist/commonjs/background/background-helper.d.ts",
"default": "./dist/commonjs/background/background-helper.js"
}
},
"./content-script": {
"import": {
"@substrate-connect/source": "./src/content-script/content-script-helper.ts",
"types": "./dist/esm/content-script/content-script-helper.d.ts",
"default": "./dist/esm/content-script/content-script-helper.js"
},
"require": {
"types": "./dist/commonjs/content-script/content-script-helper.d.ts",
"default": "./dist/commonjs/content-script/content-script-helper.js"
}
},
"./extension-page": {
"import": {
"@substrate-connect/source": "./src/extension-page/extension-page-helper.ts",
"types": "./dist/esm/extension-page/extension-page-helper.d.ts",
"default": "./dist/esm/extension-page/extension-page-helper.js"
},
"require": {
"types": "./dist/commonjs/extension-page/extension-page-helper.d.ts",
"default": "./dist/commonjs/extension-page/extension-page-helper.js"
}
},
"./web-page": {
"import": {
"@substrate-connect/source": "./src/web-page/web-page-helper.ts",
"types": "./dist/esm/web-page/web-page-helper.d.ts",
"default": "./dist/esm/web-page/web-page-helper.js"
},
"require": {
"types": "./dist/commonjs/web-page/web-page-helper.d.ts",
"default": "./dist/commonjs/web-page/web-page-helper.js"
}
},
"./utils": {
"import": {
"@substrate-connect/source": "./src/utils/index.ts",
"types": "./dist/esm/utils/index.d.ts",
"default": "./dist/esm/utils/index.js"
},
"require": {
"types": "./dist/commonjs/utils/index.d.ts",
"default": "./dist/commonjs/utils/index.js"
}
},
"./tx-helper": {
"import": {
"@substrate-connect/source": "./src/tx-helper/index.ts",
"types": "./dist/esm/tx-helper/index.d.ts",
"default": "./dist/esm/tx-helper/index.js"
},
"require": {
"types": "./dist/commonjs/tx-helper/index.d.ts",
"default": "./dist/commonjs/tx-helper/index.js"
}
},
"./known-chain-specs": {
"import": {
"@substrate-connect/source": "./src/known-chain-specs/index.ts",
"types": "./dist/esm/known-chain-specs/index.d.ts",
"default": "./dist/esm/known-chain-specs/index.js"
},
"require": {
"types": "./dist/commonjs/known-chain-specs/index.d.ts",
"default": "./dist/commonjs/known-chain-specs/index.js"
}
},
"./known-chain-specs/ksmcc3": {
"import": {
"@substrate-connect/source": "./src/known-chain-specs/ksmcc3.ts",
"types": "./dist/esm/known-chain-specs/ksmcc3.d.ts",
"default": "./dist/esm/known-chain-specs/ksmcc3.js"
},
"require": {
"types": "./dist/commonjs/known-chain-specs/ksmcc3.d.ts",
"default": "./dist/commonjs/known-chain-specs/ksmcc3.js"
}
},
"./known-chain-specs/paseo": {
"import": {
"@substrate-connect/source": "./src/known-chain-specs/paseo.ts",
"types": "./dist/esm/known-chain-specs/paseo.d.ts",
"default": "./dist/esm/known-chain-specs/paseo.js"
},
"require": {
"types": "./dist/commonjs/known-chain-specs/paseo.d.ts",
"default": "./dist/commonjs/known-chain-specs/paseo.js"
}
},
"./known-chain-specs/polkadot": {
"import": {
"@substrate-connect/source": "./src/known-chain-specs/polkadot.ts",
"types": "./dist/esm/known-chain-specs/polkadot.d.ts",
"default": "./dist/esm/known-chain-specs/polkadot.js"
},
"require": {
"types": "./dist/commonjs/known-chain-specs/polkadot.d.ts",
"default": "./dist/commonjs/known-chain-specs/polkadot.js"
}
},
"./known-chain-specs/rococo_v2_2": {
"import": {
"@substrate-connect/source": "./src/known-chain-specs/rococo_v2_2.ts",
"types": "./dist/esm/known-chain-specs/rococo_v2_2.d.ts",
"default": "./dist/esm/known-chain-specs/rococo_v2_2.js"
},
"require": {
"types": "./dist/commonjs/known-chain-specs/rococo_v2_2.d.ts",
"default": "./dist/commonjs/known-chain-specs/rococo_v2_2.js"
}
},
"./known-chain-specs/westend2": {
"import": {
"@substrate-connect/source": "./src/known-chain-specs/westend2.ts",
"types": "./dist/esm/known-chain-specs/westend2.d.ts",
"default": "./dist/esm/known-chain-specs/westend2.js"
},
"require": {
"types": "./dist/commonjs/known-chain-specs/westend2.d.ts",
"default": "./dist/commonjs/known-chain-specs/westend2.js"
}
},
"./smoldot": {
"import": {
"@substrate-connect/source": "./src/smoldot/index.ts",
"types": "./dist/esm/smoldot/index.d.ts",
"default": "./dist/esm/smoldot/index.js"
},
"require": {
"types": "./dist/commonjs/smoldot/index.d.ts",
"default": "./dist/commonjs/smoldot/index.js"
}
}
},
"files": [
"dist"
],
"tshy": {
"project": "./tsconfig.build.json",
"exports": {
"./package.json": "./package.json",
".": "./src/index.ts",
"./background": "./src/background/background-helper.ts",
"./content-script": "./src/content-script/content-script-helper.ts",
"./extension-page": "./src/extension-page/extension-page-helper.ts",
"./web-page": "./src/web-page/web-page-helper.ts",
"./utils": "./src/utils/index.ts",
"./tx-helper": "./src/tx-helper/index.ts",
"./known-chain-specs": "./src/known-chain-specs/index.ts",
"./known-chain-specs/ksmcc3": "./src/known-chain-specs/ksmcc3.ts",
"./known-chain-specs/paseo": "./src/known-chain-specs/paseo.ts",
"./known-chain-specs/polkadot": "./src/known-chain-specs/polkadot.ts",
"./known-chain-specs/rococo_v2_2": "./src/known-chain-specs/rococo_v2_2.ts",
"./known-chain-specs/westend2": "./src/known-chain-specs/westend2.ts",
"./smoldot": "./src/smoldot/index.ts"
},
"sourceDialects": [
"@substrate-connect/source"
]
},
"scripts": {
"deep-clean": "npm run clean && rimraf dist node_modules",
"clean": "rimraf dist .tshy .tshy-build",
"build": "npm run clean && tshy",
"dev": "pnpm build --watch",
"lint": "prettier --check README.md \"src/**/*.{js,jsx,ts,tsx,json,md}\""
},
"prettier": {
"printWidth": 80,
"semi": false,
"trailingComma": "all"
},
"dependencies": {
"@polkadot-api/json-rpc-provider": "~0.0.4",
"@polkadot-api/polkadot-signer": "~0.1.6",
"@polkadot-api/codegen": "~0.12.12",
"@polkadot-api/json-rpc-provider-proxy": "~0.2.4",
"@polkadot-api/metadata-builders": "~0.10.0",
"@polkadot-api/metadata-compatibility": "~0.1.14",
"@polkadot-api/observable-client": "~0.7.0",
"@polkadot-api/signer": "~0.1.13",
"@polkadot-api/substrate-bindings": "~0.11.0",
"@polkadot-api/substrate-client": "~0.3.0",
"@polkadot-api/utils": "~0.1.2",
"@substrate/connect-extension-protocol": "workspace:^",
"@substrate/connect-known-chains": "workspace:^",
"rxjs": "^7.8.1"
},
"devDependencies": {
"typescript": "5.6.2",
"@polkadot-api/json-rpc-provider": "~0.0.4",
"@polkadot-api/polkadot-signer": "~0.1.6",
"@types/chrome": "^0.0.270",
"smoldot": "^2.0.34",
"vitest": "^2.1.4"
},
"peerDependencies": {
"smoldot": "^2"
}
}