fast-readable-async-iterator
Advanced tools
Comparing version 1.1.1 to 1.1.2
10
index.js
@@ -11,7 +11,9 @@ if (typeof ReadableStream !== 'undefined' && !ReadableStream.prototype[Symbol.asyncIterator]) { | ||
}, | ||
return () { | ||
last.then(() => reader.releaseLock()) | ||
async return (value) { | ||
await last | ||
reader.releaseLock() | ||
return { done: true, value } | ||
}, | ||
throw (err) { | ||
this.return() | ||
async throw (err) { | ||
await this.return() | ||
throw err | ||
@@ -18,0 +20,0 @@ }, |
{ | ||
"name": "fast-readable-async-iterator", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Fast Async Iterator for browser Readable Streams.", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"repository": { | ||
@@ -27,3 +24,6 @@ "type": "git", | ||
}, | ||
"homepage": "https://github.com/ThaUnknown/fast-readable-async-iterator#readme" | ||
} | ||
"homepage": "https://github.com/ThaUnknown/fast-readable-async-iterator#readme", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1501
25