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/dist/index.js CHANGED
@@ -929,6 +929,11 @@ var CustomError = class extends Error {
929
929
  var LibraryError = class extends CustomError {
930
930
  };
931
931
  var RpcError = class extends LibraryError {
932
+ request;
933
+ // Declared after `request`, and not as a constructor parameter: fields are created in the
934
+ // order they are declared, so `JSON.stringify(error)` and `console.log(error)` list `request`
935
+ // first.
936
+ baseError;
932
937
  constructor(baseError, method, params) {
933
938
  super(`RPC: ${method} with params ${stringify2(params, null, 2)}
934
939
 
@@ -936,7 +941,6 @@ var RpcError = class extends LibraryError {
936
941
  this.baseError = baseError;
937
942
  this.request = { method, params };
938
943
  }
939
- request;
940
944
  get code() {
941
945
  return this.baseError.code;
942
946
  }