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

@cspell/cspell-pipe

Package Overview
Dependencies
Maintainers
1
Versions
174
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cspell/cspell-pipe - npm Package Compare versions

Comparing version 8.10.4 to 8.11.0

dist/helpers/fork.d.ts

1

dist/helpers/index.d.ts
export { toDistributableIterable } from './distribute.js';
export { fork } from './fork.js';
export { interleave } from './interleave.js';

@@ -3,0 +4,0 @@ export { asyncIteratorToAsyncIterable, iteratorToIterable } from './iteratorToIterable.js';

export { toDistributableIterable } from './distribute.js';
export { fork } from './fork.js';
export { interleave } from './interleave.js';

@@ -3,0 +4,0 @@ export { asyncIteratorToAsyncIterable, iteratorToIterable } from './iteratorToIterable.js';

export function* iteratorToIterable(iterator) {
let n;
while (!(n = iterator.next()).done) {
yield n.value;
try {
let n;
while (!(n = iterator.next()).done) {
yield n.value;
}
}
catch (e) {
if (iterator.throw) {
return iterator.throw(e);
}
throw e;
}
finally {
// ensure that clean up happens.
iterator.return?.();
}
}
export async function* asyncIteratorToAsyncIterable(iterator) {
let n;
while (!(n = await iterator.next()).done) {
yield n.value;
try {
let n;
while (!(n = await iterator.next()).done) {
yield n.value;
}
}
catch (e) {
if (iterator.throw) {
return iterator.throw(e);
}
throw e;
}
finally {
// ensure that clean up happens.
iterator.return?.();
}
}
//# sourceMappingURL=iteratorToIterable.js.map

2

dist/index.d.ts
import * as _helpers from './helpers/index.js';
import * as _operators from './operators/index.js';
export { interleave, isAsyncIterable, toArray, toAsyncIterable, toDistributableIterable } from './helpers/index.js';
export { fork, interleave, isAsyncIterable, toArray, toAsyncIterable, toDistributableIterable, } from './helpers/index.js';
export { opAppend, opAwaitAsync, opBuffer, opConcatMap, opFilter, opFirst, opFlatten, opJoinStrings, opLast, opMap, opSkip, opTake, opTap, opUnique, } from './operators/index.js';

@@ -5,0 +5,0 @@ export { pipeAsync, pipeSync } from './pipe.js';

import * as _helpers from './helpers/index.js';
import * as _operators from './operators/index.js';
export { interleave, isAsyncIterable, toArray, toAsyncIterable, toDistributableIterable } from './helpers/index.js';
export { fork, interleave, isAsyncIterable, toArray, toAsyncIterable, toDistributableIterable, } from './helpers/index.js';
export { opAppend, opAwaitAsync, opBuffer, opConcatMap, opFilter, opFirst, opFlatten, opJoinStrings, opLast, opMap, opSkip, opTake, opTap, opUnique, } from './operators/index.js';

@@ -5,0 +5,0 @@ export { pipeAsync, pipeSync } from './pipe.js';

@@ -6,3 +6,3 @@ {

},
"version": "8.10.4",
"version": "8.11.0",
"description": "Library to make working with Iterators/AsyncIterators easier.",

@@ -130,3 +130,3 @@ "keywords": [

},
"gitHead": "96707a892a95a7e10dd5894e8cdd8f288b841c2f"
"gitHead": "2b85b2b458b1117870a4f0aee18fb45ce991848d"
}
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