From daca7857f7173b6f547c59f4ee86fdd46023ebdf Mon Sep 17 00:00:00 2001 From: cgewecke Date: Thu, 14 Nov 2019 16:27:04 -0800 Subject: [PATCH] Fix import package names in web3-ws / web3-accounts --- packages/web3-eth-accounts/src/index.js | 2 +- packages/web3-providers-ws/src/index.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/web3-eth-accounts/src/index.js b/packages/web3-eth-accounts/src/index.js index a57241af808..ca73e7bffab 100644 --- a/packages/web3-eth-accounts/src/index.js +++ b/packages/web3-eth-accounts/src/index.js @@ -31,7 +31,7 @@ var Hash = require('eth-lib/lib/hash'); var RLP = require('eth-lib/lib/rlp');// jshint ignore:line var Bytes = require('eth-lib/lib/bytes');// jshint ignore:line var cryp = (typeof global === 'undefined') ? require('crypto-browserify') : require('crypto'); -var scrypt = require('scrypt-shim'); +var scrypt = require('@web3-js/scrypt-shim'); var uuid = require('uuid'); var utils = require('web3-utils'); var helpers = require('web3-core-helpers'); diff --git a/packages/web3-providers-ws/src/index.js b/packages/web3-providers-ws/src/index.js index b9a271f5cd6..15cc1ab6b4e 100644 --- a/packages/web3-providers-ws/src/index.js +++ b/packages/web3-providers-ws/src/index.js @@ -24,7 +24,7 @@ var _ = require('underscore'); var errors = require('web3-core-helpers').errors; -var Ws = require('websocket').w3cwebsocket; +var Ws = require('@web3-js/websocket').w3cwebsocket; var isNode = Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]'; @@ -81,7 +81,7 @@ var WebsocketProvider = function WebsocketProvider(url, options) { // Allow a custom client configuration var clientConfig = options.clientConfig || undefined; - + // Allow a custom request options // https://github.com/theturtle32/WebSocket-Node/blob/master/docs/WebSocketClient.md#connectrequesturl-requestedprotocols-origin-headers-requestoptions var requestOptions = options.requestOptions || undefined;