ipfs-utils
Advanced tools
Comparing version 9.0.12 to 9.0.13
{ | ||
"name": "ipfs-utils", | ||
"version": "9.0.12", | ||
"version": "9.0.13", | ||
"description": "Package to aggregate shared logic and dependencies for the IPFS ecosystem", | ||
@@ -5,0 +5,0 @@ "author": "Hugo Dias <hugomrdias@gmail.com>", |
@@ -285,3 +285,19 @@ /* eslint-disable no-undef */ | ||
if (isWebReadableStream(source)) { | ||
return browserReableStreamToIt(source) | ||
const reader = source.getReader() | ||
return (async function * () { | ||
try { | ||
while (true) { | ||
// Read from the stream | ||
const { done, value } = await reader.read() | ||
// Exit if we're done | ||
if (done) return | ||
// Else yield the chunk | ||
if (value) { | ||
yield value | ||
} | ||
} | ||
} finally { | ||
reader.releaseLock() | ||
} | ||
})() | ||
} | ||
@@ -288,0 +304,0 @@ |
Sorry, the diff of this file is not supported yet
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
53830
1321