Skip to content

Commit

Permalink
build: use readable-stream instead of node:stream for browser com…
Browse files Browse the repository at this point in the history
…patibility
  • Loading branch information
foxxyz committed Nov 27, 2023
1 parent e148941 commit 960a016
Show file tree
Hide file tree
Showing 3 changed files with 134 additions and 10 deletions.
141 changes: 132 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"dependencies": {
"color-rgba": "^2.4.0",
"events": "^3.3.0",
"readable-stream": "^4.4.2",
"serialport": "^10.5.0",
"ws": "^8.14.2"
},
Expand Down
2 changes: 1 addition & 1 deletion parser.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { Transform } = require('stream')
const { Transform } = require('readable-stream')

// Parser to split incoming serial data by a magic byte sequence
// followed by a length
Expand Down

0 comments on commit 960a016

Please sign in to comment.