Skip to content

Commit

Permalink
Upgrade ReadableStream ponyfill (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky authored Jul 21, 2024
1 parent cd27167 commit 46e0ec3
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 @@ -45,7 +45,7 @@
"concat"
],
"dependencies": {
"@sec-ant/readable-stream": "^0.4.1",
"@sec-ant/readable-stream": "^0.5.0",
"is-stream": "^4.0.1"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion source/stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const getAsyncIterable = stream => {

// `ReadableStream[Symbol.asyncIterator]` support is missing in multiple browsers, so we ponyfill it
if (toString.call(stream) === '[object ReadableStream]') {
return asyncIterator.call(stream);
return asyncIterator(stream);
}

throw new TypeError('The first argument must be a Readable, a ReadableStream, or an async iterable.');
Expand Down

0 comments on commit 46e0ec3

Please sign in to comment.