diff --git a/lib/api/keccak.js b/lib/api/keccak.js index 4dba2ce..6ae6307 100644 --- a/lib/api/keccak.js +++ b/lib/api/keccak.js @@ -1,4 +1,4 @@ -const { Transform } = require('stream') +const { Transform } = require('readable-stream') module.exports = (KeccakState) => class Keccak extends Transform { constructor (rate, capacity, delimitedSuffix, hashBitLength, options) { diff --git a/lib/api/shake.js b/lib/api/shake.js index a890aa7..8895e59 100644 --- a/lib/api/shake.js +++ b/lib/api/shake.js @@ -1,4 +1,4 @@ -const { Transform } = require('stream') +const { Transform } = require('readable-stream') module.exports = (KeccakState) => class Shake extends Transform { constructor (rate, capacity, delimitedSuffix, options) { diff --git a/package.json b/package.json index d807576..7f270a7 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,8 @@ }, "dependencies": { "node-addon-api": "^2.0.0", - "node-gyp-build": "^4.2.0" + "node-gyp-build": "^4.2.0", + "readable-stream": "^3.6.0" }, "devDependencies": { "browserify": "^16.5.0",