starknet 11.6.0 → 11.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/falcon/index.d.ts +11 -2
- package/dist/index.d.ts +355 -51
- package/dist/index.global.js +10 -2
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +26 -27
package/dist/index.global.js
CHANGED
|
@@ -11,7 +11,11 @@ var starknet = (() => {
|
|
|
11
11
|
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
12
12
|
});
|
|
13
13
|
var __commonJS = (cb, mod2) => function __require2() {
|
|
14
|
-
|
|
14
|
+
try {
|
|
15
|
+
return mod2 || (0, cb[__getOwnPropNames(cb)[0]])((mod2 = { exports: {} }).exports, mod2), mod2.exports;
|
|
16
|
+
} catch (e) {
|
|
17
|
+
throw mod2 = 0, e;
|
|
18
|
+
}
|
|
15
19
|
};
|
|
16
20
|
var __export = (target, all) => {
|
|
17
21
|
for (var name in all)
|
|
@@ -2274,6 +2278,11 @@ ${indent}}` : "}";
|
|
|
2274
2278
|
var LibraryError = class extends CustomError {
|
|
2275
2279
|
};
|
|
2276
2280
|
var RpcError = class extends LibraryError {
|
|
2281
|
+
request;
|
|
2282
|
+
// Declared after `request`, and not as a constructor parameter: fields are created in the
|
|
2283
|
+
// order they are declared, so `JSON.stringify(error)` and `console.log(error)` list `request`
|
|
2284
|
+
// first.
|
|
2285
|
+
baseError;
|
|
2277
2286
|
constructor(baseError, method, params) {
|
|
2278
2287
|
super(`RPC: ${method} with params ${stringify2(params, null, 2)}
|
|
2279
2288
|
|
|
@@ -2281,7 +2290,6 @@ ${indent}}` : "}";
|
|
|
2281
2290
|
this.baseError = baseError;
|
|
2282
2291
|
this.request = { method, params };
|
|
2283
2292
|
}
|
|
2284
|
-
request;
|
|
2285
2293
|
get code() {
|
|
2286
2294
|
return this.baseError.code;
|
|
2287
2295
|
}
|