Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

yield-stream

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yield-stream - npm Package Compare versions

Comparing version 2.0.3 to 2.0.4

7

dist/index.js

@@ -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};

4

package.json
{
"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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc