yield-stream
Advanced tools
Comparing version 3.1.0 to 3.1.1-0
@@ -1,1 +0,1 @@ | ||
export*from"./platforms/edge.js"; | ||
"use strict";var a=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var p=(r,o,f,x)=>{if(o&&typeof o=="object"||typeof o=="function")for(let e of c(o))!d.call(r,e)&&e!==f&&a(r,e,{get:()=>o[e],enumerable:!(x=b(o,e))||x.enumerable});return r},t=(r,o,f)=>(p(r,o,"default"),f&&p(f,o,"default"));var g=r=>p(a({},"__esModule",{value:!0}),r);var m={};module.exports=g(m);t(m,require("./platforms/edge"),module.exports); |
@@ -1,1 +0,1 @@ | ||
import{compose as c,generateArray as s}from"./shared.js";const t=(e,a)=>new ReadableStream({async start(n){for await(const r of e(a))n.enqueue(r);n.close()}}),d=(e,...a)=>{const n=c(...a);return t(async function*(){for await(const r of o(e))yield*n(r)})},f=e=>t(s(e)),o=async function*(e,a){const n=e.getReader();for(;!a?.signal.aborted;){const{done:r,value:u}=await n.read();if(r)break;yield u}},C=async function*(e){const a=[];for await(const n of o(e))a.push(n),yield a};export{C as buffer,t as generateStream,d as pipeline,f as streamArray,o as yieldStream}; | ||
"use strict";var u=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var k=Object.getOwnPropertyNames;var i=Object.prototype.hasOwnProperty;var m=(a,e)=>{for(var n in e)u(a,n,{get:e[n],enumerable:!0})},d=(a,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of k(e))!i.call(a,t)&&t!==n&&u(a,t,{get:()=>e[t],enumerable:!(r=h(e,t))||r.enumerable});return a};var f=a=>d(u({},"__esModule",{value:!0}),a);var p={};m(p,{buffer:()=>b,generateStream:()=>c,pipeline:()=>C,streamArray:()=>l,yieldStream:()=>s});module.exports=f(p);var o=require("./shared"),c=(a,e)=>new ReadableStream({async start(n){for await(let r of a(e))n.enqueue(r);n.close()}}),C=(a,...e)=>{let n=(0,o.compose)(...e);return c(async function*(){for await(let r of s(a))yield*n(r)})},l=a=>c((0,o.generateArray)(a)),s=async function*(a,e){let n=a.getReader();for(;!e?.signal.aborted;){let{done:r,value:t}=await n.read();if(r)break;yield t}},b=async function*(a){let e=[];for await(let n of s(a))e.push(n),yield e};0&&(module.exports={buffer,generateStream,pipeline,streamArray,yieldStream}); |
@@ -1,1 +0,1 @@ | ||
import{Readable as u}from"stream";import{compose as c,generateArray as d}from"./shared.js";const n=(e,r)=>u.from(e(r)),t=async function*(e,r){for await(const a of e){if(r?.signal.aborted)break;yield a}},k=(e,...r)=>{const a=c(...r);return n(async function*(){for await(const o of t(e))yield*a(o)})},l=e=>n(d(e)),S=async function*(e){const r=[];for await(const a of t(e))r.push(a),yield r};export{S as buffer,n as generateStream,k as pipeline,l as streamArray,t as yieldStream}; | ||
"use strict";var u=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var h=Object.prototype.hasOwnProperty;var i=(r,e)=>{for(var a in e)u(r,a,{get:e[a],enumerable:!0})},k=(r,e,a,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of f(e))!h.call(r,n)&&n!==a&&u(r,n,{get:()=>e[n],enumerable:!(t=m(e,n))||t.enumerable});return r};var l=r=>k(u({},"__esModule",{value:!0}),r);var p={};i(p,{buffer:()=>C,generateStream:()=>c,pipeline:()=>S,streamArray:()=>b,yieldStream:()=>d});module.exports=l(p);var s=require("stream"),o=require("./shared"),c=(r,e)=>s.Readable.from(r(e)),d=async function*(r,e){for await(let a of r){if(e?.signal.aborted)break;yield a}},S=(r,...e)=>{let a=(0,o.compose)(...e);return c(async function*(){for await(let t of d(r))yield*a(t)})},b=r=>c((0,o.generateArray)(r)),C=async function*(r){let e=[];for await(let a of d(r))e.push(a),yield e};0&&(module.exports={buffer,generateStream,pipeline,streamArray,yieldStream}); |
@@ -1,1 +0,1 @@ | ||
const a=(...n)=>n.reduce((r,e)=>async function*(o){for await(const t of r(o))yield*e(t)}),f=n=>function*(){for(const r of n)yield r};export{a as compose,f as generateArray}; | ||
"use strict";var u=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var i=(r,n)=>{for(var o in n)u(r,o,{get:n[o],enumerable:!0})},h=(r,n,o,t)=>{if(n&&typeof n=="object"||typeof n=="function")for(let e of a(n))!f.call(r,e)&&e!==o&&u(r,e,{get:()=>n[e],enumerable:!(t=c(n,e))||t.enumerable});return r};var k=r=>h(u({},"__esModule",{value:!0}),r);var m={};i(m,{compose:()=>s,generateArray:()=>C});module.exports=k(m);var s=(...r)=>r.reduce((n,o)=>async function*(t){for await(let e of n(t))yield*o(e)}),C=r=>function*(){for(let n of r)yield n};0&&(module.exports={compose,generateArray}); |
@@ -1,1 +0,1 @@ | ||
const e={},o={},n={}; | ||
"use strict";var t=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var i=(o,e,d,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of a(e))!m.call(o,n)&&n!==d&&t(o,n,{get:()=>e[n],enumerable:!(r=p(e,n))||r.enumerable});return o};var u=o=>i(t({},"__esModule",{value:!0}),o);var s={};module.exports=u(s); |
{ | ||
"type": "module" | ||
"type": "commonjs" | ||
} |
@@ -1,1 +0,1 @@ | ||
export*from"../lib/shared.js";export*from"../lib/edge.js";export*from"../types.js"; | ||
"use strict";var a=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var t=(f,e,p,x)=>{if(e&&typeof e=="object"||typeof e=="function")for(let m of c(e))!d.call(f,m)&&m!==p&&a(f,m,{get:()=>e[m],enumerable:!(x=b(e,m))||x.enumerable});return f},r=(f,e,p)=>(t(f,e,"default"),p&&t(p,e,"default"));var g=f=>t(a({},"__esModule",{value:!0}),f);var o={};module.exports=g(o);r(o,require("../lib/shared"),module.exports);r(o,require("../lib/edge"),module.exports);r(o,require("../types"),module.exports); |
@@ -1,1 +0,1 @@ | ||
export*from"../lib/shared.js";export*from"../lib/node.js";export*from"../types.js"; | ||
"use strict";var a=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var t=(f,e,p,x)=>{if(e&&typeof e=="object"||typeof e=="function")for(let m of c(e))!d.call(f,m)&&m!==p&&a(f,m,{get:()=>e[m],enumerable:!(x=b(e,m))||x.enumerable});return f},r=(f,e,p)=>(t(f,e,"default"),p&&t(p,e,"default"));var g=f=>t(a({},"__esModule",{value:!0}),f);var o={};module.exports=g(o);r(o,require("../lib/shared"),module.exports);r(o,require("../lib/node"),module.exports);r(o,require("../types"),module.exports); |
{ | ||
"name": "yield-stream", | ||
"version": "3.1.0", | ||
"version": "3.1.1-0", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "type": "module", |
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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 2 instances in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
12395
120
6