Skip to content

Commit

Permalink
deps!: update uint8arraylist to 2.x
Browse files Browse the repository at this point in the history
BREAKING CHANGE: exported uint8arraylist type is now 2.x
  • Loading branch information
achingbrain committed Jul 28, 2022
1 parent 010c6c6 commit 533ff0e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
},
"dependencies": {
"it-stream-types": "^1.0.4",
"uint8arraylist": "^1.2.0"
"uint8arraylist": "^2.0.0"
},
"devDependencies": {
"aegir": "^37.4.7",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export function reader (source: Source<Uint8Array>) {
bl.append(chunk)

while (bl.length >= bytes) {
const data = bl.subarray(0, bytes)
const data = bl.sublist(0, bytes)
bl.consume(bytes)
bytes = yield data

Expand Down

0 comments on commit 533ff0e

Please sign in to comment.