Skip to content

Commit

Permalink
Replace stream with readable-stream (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
byterose authored Aug 20, 2021
1 parent e779624 commit 742b148
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/api/keccak.js
Original file line number Diff line number Diff line change
@@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion lib/api/shake.js
Original file line number Diff line number Diff line change
@@ -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) {
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 742b148

Please sign in to comment.