-
Notifications
You must be signed in to change notification settings - Fork 309
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Patch ethereum-cryptography-1.1.2 to work with ncc
- Loading branch information
1 parent
d7bb321
commit 0c23bd5
Showing
5 changed files
with
42 additions
and
9 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file not shown.
17 changes: 17 additions & 0 deletions
17
.yarn/patches/ethereum-cryptography-npm-1.1.2-c16cfd7e8a.patch
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,17 @@ | ||
diff --git a/utils.js b/utils.js | ||
index 48dac71e25592c1060017080abd97b6a8790a2ba..4732516f982a9cf6b2708db2f1d823c69c4636cc 100644 | ||
--- a/utils.js | ||
+++ b/utils.js | ||
@@ -54,10 +54,9 @@ exports.wrapHash = wrapHash; | ||
exports.crypto = (() => { | ||
const webCrypto = typeof self === "object" && "crypto" in self ? self.crypto : undefined; | ||
const nodeRequire = typeof module !== "undefined" && | ||
- typeof module.require === "function" && | ||
- module.require.bind(module); | ||
+ typeof module.require === "function"; | ||
return { | ||
- node: nodeRequire && !webCrypto ? nodeRequire("crypto") : undefined, | ||
+ node: nodeRequire && !webCrypto ? require("crypto") : undefined, | ||
web: webCrypto | ||
}; | ||
})(); |
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 |
---|---|---|
|
@@ -73,5 +73,9 @@ | |
"lint-staged": { | ||
"*.{js,css,md,ts,json,yml,yaml}": "prettier --write" | ||
}, | ||
"packageManager": "[email protected]" | ||
"packageManager": "[email protected]", | ||
"resolutions": { | ||
"ethereum-cryptography@^1.1.2": "patch:ethereum-cryptography@npm%3A1.1.2#./.yarn/patches/ethereum-cryptography-npm-1.1.2-c16cfd7e8a.patch", | ||
"ethereum-cryptography@^1.0.3": "patch:ethereum-cryptography@npm%3A1.1.2#./.yarn/patches/ethereum-cryptography-npm-1.1.2-c16cfd7e8a.patch" | ||
} | ||
} |
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