yield-stream
Advanced tools
Comparing version 2.0.3 to 2.0.4
@@ -1,6 +0,1 @@ | ||
/** __ESM_SHIM_START */ | ||
if(typeof process<"u"){let{dirname:e}=await import("path"),{fileURLToPath:i}=await import("url");globalThis.__filename=i(import.meta.url),globalThis.__dirname=e(globalThis.__filename);let{default:a}=await import("module");globalThis.require=a.createRequire(import.meta.url)} | ||
/** __ESM_SHIM_END */ | ||
export*from"./types.js";var s=(...r)=>r.reduce((e,t)=>async function*(a){for await(let n of e(a))yield*t(n)}),i=(r,...e)=>{let t=s(...e);return c(async function*(){for await(let a of o(r))yield*t(a)})},o=async function*(r,e){let t=r.getReader();for(;!e?.signal.aborted;){let{done:a,value:n}=await t.read();if(a)break;yield n}},c=(r,e)=>new ReadableStream({async start(t){for await(let a of r(e))t.enqueue(a);t.close()}}),f=r=>c(function*(){for(let e of r)yield e}),u=async function*(r){let e=[];for await(let t of o(r))e.push(t),yield e};export{u as buffer,s as compose,c as generateStream,i as pipeline,f as streamArray,o as yieldStream}; | ||
const s=(...r)=>r.reduce((e,t)=>async function*(a){for await(const n of e(a))yield*t(n)}),T=(r,...e)=>{const t=s(...e);return c(async function*(){for await(const a of o(r))yield*t(a)})},o=async function*(r,e){const t=r.getReader();for(;!e?.signal.aborted;){const{done:a,value:n}=await t.read();if(a)break;yield n}},c=(r,e)=>new ReadableStream({async start(t){for await(const a of r(e))t.enqueue(a);t.close()}}),d=r=>c(function*(){for(const e of r)yield e}),l=async function*(r){const e=[];for await(const t of o(r))e.push(t),yield e};export*from"./types.js";export{l as buffer,s as compose,c as generateStream,T as pipeline,d as streamArray,o as yieldStream}; |
{ | ||
"name": "yield-stream", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"license": "MIT", | ||
@@ -23,3 +23,3 @@ "type": "module", | ||
"prebuild": "yarn docs", | ||
"build": "tsmodule build -b", | ||
"build": "tsmodule build", | ||
"test": "ava", | ||
@@ -26,0 +26,0 @@ "pretest": "yarn build", |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
7017
48