-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: migrate patch for @metamask/rpc-errors
- Loading branch information
Showing
2 changed files
with
38 additions
and
19 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
diff --git a/node_modules/@metamask/rpc-errors/dist/classes.cjs b/node_modules/@metamask/rpc-errors/dist/classes.cjs | ||
index 2cf07ef..63d76e8 100644 | ||
--- a/node_modules/@metamask/rpc-errors/dist/classes.cjs | ||
+++ b/node_modules/@metamask/rpc-errors/dist/classes.cjs | ||
@@ -56,9 +56,14 @@ class JsonRpcError extends Error { | ||
serialized.data.cause = (0, utils_2.serializeCause)(this.data.cause); | ||
} | ||
} | ||
+ /** | ||
+ * passing the stack creates a loop, possible conflicting with hermes, since it's hermes that throws an error | ||
+ */ | ||
+ /* | ||
if (this.stack) { | ||
serialized.stack = this.stack; | ||
} | ||
+ */ | ||
return serialized; | ||
} | ||
/** | ||
diff --git a/node_modules/@metamask/rpc-errors/dist/classes.mjs b/node_modules/@metamask/rpc-errors/dist/classes.mjs | ||
index 9d4c652..81f8518 100644 | ||
--- a/node_modules/@metamask/rpc-errors/dist/classes.mjs | ||
+++ b/node_modules/@metamask/rpc-errors/dist/classes.mjs | ||
@@ -57,9 +57,14 @@ export class JsonRpcError extends Error { | ||
serialized.data.cause = serializeCause(this.data.cause); | ||
} | ||
} | ||
+ /** | ||
+ * passing the stack creates a loop, possible conflicting with hermes, since it's hermes that throws an error | ||
+ */ | ||
+ /* | ||
if (this.stack) { | ||
serialized.stack = this.stack; | ||
} | ||
+ */ | ||
return serialized; | ||
} | ||
/** |