aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2017-09-08 12:19:24 +0800
committerkumavis <aaron@kumavis.me>2017-09-08 12:19:24 +0800
commit0e8e655fdb9b65df151f23ede74807025226ab66 (patch)
tree3b70a943502bb30a42af5122a936936a8e855b05 /app/scripts
parent57e4805c621155cd86169064f4aaba34b73644c6 (diff)
downloadtangerine-wallet-browser-0e8e655fdb9b65df151f23ede74807025226ab66.tar
tangerine-wallet-browser-0e8e655fdb9b65df151f23ede74807025226ab66.tar.gz
tangerine-wallet-browser-0e8e655fdb9b65df151f23ede74807025226ab66.tar.bz2
tangerine-wallet-browser-0e8e655fdb9b65df151f23ede74807025226ab66.tar.lz
tangerine-wallet-browser-0e8e655fdb9b65df151f23ede74807025226ab66.tar.xz
tangerine-wallet-browser-0e8e655fdb9b65df151f23ede74807025226ab66.tar.zst
tangerine-wallet-browser-0e8e655fdb9b65df151f23ede74807025226ab66.zip
inpage - distinguish pump vs pipe
Diffstat (limited to 'app/scripts')
-rw-r--r--app/scripts/lib/inpage-provider.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/scripts/lib/inpage-provider.js b/app/scripts/lib/inpage-provider.js
index c095846e1..eb24dfcab 100644
--- a/app/scripts/lib/inpage-provider.js
+++ b/app/scripts/lib/inpage-provider.js
@@ -1,4 +1,4 @@
-const pipe = require('pump')
+const pump = require('pump')
const RpcEngine = require('json-rpc-engine')
const createIdRemapMiddleware = require('json-rpc-engine/src/idRemapMiddleware')
const createStreamMiddleware = require('json-rpc-middleware-stream')
@@ -12,7 +12,7 @@ function MetamaskInpageProvider (connectionStream) {
// setup connectionStream multiplexing
var multiStream = self.multiStream = ObjectMultiplex()
- pipe(
+ pump(
connectionStream,
multiStream,
connectionStream,
@@ -21,7 +21,7 @@ function MetamaskInpageProvider (connectionStream) {
// subscribe to metamask public config (one-way)
self.publicConfigStore = new LocalStorageStore({ storageKey: 'MetaMask-Config' })
- pipe(
+ pump(
multiStream.createStream('publicConfig'),
self.publicConfigStore,
(err) => logStreamDisconnectWarning('MetaMask PublicConfigStore', err)
@@ -32,7 +32,7 @@ function MetamaskInpageProvider (connectionStream) {
// connect to async provider
const streamMiddleware = createStreamMiddleware()
- pipe(
+ pump(
streamMiddleware.stream,
multiStream.createStream('provider'),
streamMiddleware.stream,