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.mjs
CHANGED
|
@@ -721,6 +721,11 @@ var CustomError = class extends Error {
|
|
|
721
721
|
var LibraryError = class extends CustomError {
|
|
722
722
|
};
|
|
723
723
|
var RpcError = class extends LibraryError {
|
|
724
|
+
request;
|
|
725
|
+
// Declared after `request`, and not as a constructor parameter: fields are created in the
|
|
726
|
+
// order they are declared, so `JSON.stringify(error)` and `console.log(error)` list `request`
|
|
727
|
+
// first.
|
|
728
|
+
baseError;
|
|
724
729
|
constructor(baseError, method, params) {
|
|
725
730
|
super(`RPC: ${method} with params ${stringify2(params, null, 2)}
|
|
726
731
|
|
|
@@ -728,7 +733,6 @@ var RpcError = class extends LibraryError {
|
|
|
728
733
|
this.baseError = baseError;
|
|
729
734
|
this.request = { method, params };
|
|
730
735
|
}
|
|
731
|
-
request;
|
|
732
736
|
get code() {
|
|
733
737
|
return this.baseError.code;
|
|
734
738
|
}
|