Skip to content

Commit

Permalink
Update json-rpc-middleware-stream (#228)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpuri authored Oct 28, 2022
1 parent 89b7fc1 commit 5ad828d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"fast-deep-equal": "^2.0.1",
"is-stream": "^2.0.0",
"json-rpc-engine": "^6.1.0",
"json-rpc-middleware-stream": "^4.0.0",
"json-rpc-middleware-stream": "^4.1.0",
"pump": "^3.0.0",
"webextension-polyfill-ts": "^0.25.0"
},
Expand Down
2 changes: 1 addition & 1 deletion src/StreamProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export abstract class AbstractStreamProvider extends BaseProvider {

// Set up RPC connection
this._jsonRpcConnection = createStreamMiddleware({
retryOnMessage: 'METAMASK_EXTENSION_STREAM_CONNECT',
retryOnMessage: 'METAMASK_EXTENSION_CONNECT_CAN_RETRY',
});
pump(
this._jsonRpcConnection.stream,
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3490,10 +3490,10 @@ json-rpc-engine@^6.1.0:
"@metamask/safe-event-emitter" "^2.0.0"
eth-rpc-errors "^4.0.2"

json-rpc-middleware-stream@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/json-rpc-middleware-stream/-/json-rpc-middleware-stream-4.0.0.tgz#54de6f57d795525547219c1581858962618adeeb"
integrity sha512-+s8ps2cO+zmw21W7TA9wVD/5fwNi4C2O7NzLxlrEDrfzNcs3YX76Qw2fXuQLKVFeP654CIa6nkfqkFU9o7x/3g==
json-rpc-middleware-stream@^4.1.0:
version "4.1.0"
resolved "https://registry.yarnpkg.com/json-rpc-middleware-stream/-/json-rpc-middleware-stream-4.1.0.tgz#5bc570cdfc63488805f43b5042273f9a631b052c"
integrity sha512-pg40YNVorY/HICPShALVPIsr7NrH5wgEqzF/MzCSAkk028VJ0sSa3VRvZCjaXd9b2gPigO9DMSo4/znxBpMVAg==
dependencies:
"@metamask/safe-event-emitter" "^2.0.0"
readable-stream "^2.3.3"
Expand Down

0 comments on commit 5ad828d

Please sign in to comment.