Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit 7a80b6a

Browse files
switch repo fork for the websocket package
The `michaelsbradleyjr/Websocket-Node#polyfill/globalThis` branch uses a more robust approach to resolve a browser's `window` object. It also includes all the latest commits on the upstream's `master` branch, including fixes for the `.git/` subdir npm bug and Node v12.x compatibility. The `"preinstall"` script in `packages/web3-providers-ws/package.json` is removed because it's not helpful and its use of `rm` causes Windows incompatibility. Closes #2971 and #2973. `packages/web3-providers-ws/src/index.js` is refactored since the `websocket` package already does native WebSocket detection.
1 parent 15817ac commit 7a80b6a

File tree

5 files changed

+3060
-33
lines changed

5 files changed

+3060
-33
lines changed

dist/web3.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/web3-eth-accounts/src/scrypt.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ if (isNode) {
1212
var tryScryptPkg = (function() {
1313
var scryptPkg;
1414
return function() {
15-
if (scryptPkg !== undefined) { return scryptPkg; };
15+
if (scryptPkg !== undefined) { return scryptPkg; }
1616
try {
1717
scryptPkg = (function(m) { return require(m); })('scrypt');
1818
} catch (e) {

0 commit comments

Comments
 (0)