Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: bump rpc-errors #12147

Merged
merged 3 commits into from
Nov 1, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// eslint-disable-next-line import/no-commonjs
module.exports = {
ignore: [/ses\.cjs/],
ignore: ['ses.cjs'],
matthewwalsh0 marked this conversation as resolved.
Show resolved Hide resolved
presets: ['module:metro-react-native-babel-preset'],
plugins: [
'transform-inline-environment-variables',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@
"@metamask/react-native-payments": "^2.0.0",
"@metamask/react-native-search-api": "1.0.1",
"@metamask/react-native-webview": "^14.0.4",
"@metamask/rpc-errors": "^6.2.1",
"@metamask/rpc-errors": "^6.4.0",
"@metamask/scure-bip39": "^2.1.0",
"@metamask/sdk-communication-layer": "0.29.0-wallet",
"@metamask/selected-network-controller": "^15.0.2",
Expand Down
19 changes: 0 additions & 19 deletions patches/@metamask+rpc-errors+6.3.1.patch

This file was deleted.

19 changes: 19 additions & 0 deletions patches/@metamask+rpc-errors+6.4.0.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
diff --git a/node_modules/@metamask/rpc-errors/dist/classes.cjs b/node_modules/@metamask/rpc-errors/dist/classes.cjs
index 2cf07ef..fbc304c 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;
}
/**
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5311,10 +5311,10 @@
escape-string-regexp "^4.0.0"
invariant "2.2.4"

"@metamask/rpc-errors@^6.0.0", "@metamask/rpc-errors@^6.2.1", "@metamask/rpc-errors@^6.3.1":
version "6.3.1"
resolved "https://registry.yarnpkg.com/@metamask/rpc-errors/-/rpc-errors-6.3.1.tgz#d5bb4740e070c3d87e91717ff4c3c6061a081cab"
integrity sha512-ugDY7cKjF4/yH5LtBaOIKHw/AiGGSAmzptAUEiAEGr/78LwuzcXAxmzEQfSfMIfI+f9Djr8cttq1pRJJKfTuCg==
"@metamask/rpc-errors@^6.0.0", "@metamask/rpc-errors@^6.2.1", "@metamask/rpc-errors@^6.3.1", "@metamask/rpc-errors@^6.4.0":
version "6.4.0"
resolved "https://registry.yarnpkg.com/@metamask/rpc-errors/-/rpc-errors-6.4.0.tgz#a7ce01c06c9a347ab853e55818ac5654a73bd006"
integrity sha512-1ugFO1UoirU2esS3juZanS/Fo8C8XYocCuBpfZI5N7ECtoG+zu0wF+uWZASik6CkO6w9n/Iebt4iI4pT0vptpg==
dependencies:
"@metamask/utils" "^9.0.0"
fast-safe-stringify "^2.0.6"
Expand Down
Loading