@cspell/cspell-pipe 7.1.1 → 7.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -30,3 +30,4 @@ export function toDistributableIterableSync(iterable) {
30
30
  * @param iterable - the iterable to share
31
31
  */
32
32
  export const toDistributableIterable = toDistributableIterableSync;
33
+ //# sourceMappingURL=distribute.js.map
@@ -4,3 +4,4 @@ export { asyncIteratorToAsyncIterable, iteratorToIterable } from './iteratorToIt
4
4
  export { toArray } from './toArray.js';
5
5
  export { toAsyncIterable } from './toAsyncIterable.js';
6
6
  export { isAsyncIterable } from './util.js';
7
+ //# sourceMappingURL=index.js.map
@@ -15,3 +15,4 @@ export function* interleave(a, b) {
15
15
  yield bNext.value;
16
16
  }
17
17
  }
18
+ //# sourceMappingURL=interleave.js.map
@@ -10,3 +10,4 @@ export async function* asyncIteratorToAsyncIterable(iterator) {
10
10
  yield n.value;
11
11
  }
12
12
  }
13
+ //# sourceMappingURL=iteratorToIterable.js.map
@@ -12,3 +12,4 @@ export async function toArrayAsync(iter) {
12
12
  }
13
13
  return collection;
14
14
  }
15
+ //# sourceMappingURL=toArray.js.map
@@ -12,3 +12,4 @@ export async function* mergeAsyncIterables(iter, ...rest) {
12
12
  * Convert one or more iterables to an AsyncIterable
13
13
  */
14
14
  export const toAsyncIterable = mergeAsyncIterables;
15
+ //# sourceMappingURL=toAsyncIterable.js.map
@@ -7,3 +7,4 @@ export function toPipeFn(syncFn, asyncFn) {
7
7
  export function isAsyncIterable(i) {
8
8
  return typeof i[Symbol.asyncIterator] === 'function';
9
9
  }
10
+ //# sourceMappingURL=util.js.map
package/dist/index.js CHANGED
@@ -8,3 +8,4 @@ export { reduce, reduceAsync, reduceSync } from './reduce.js';
8
8
  export const operators = _operators;
9
9
  // eslint-disable-next-line unicorn/prefer-export-from
10
10
  export const helpers = _helpers;
11
+ //# sourceMappingURL=index.js.map
@@ -1 +1,2 @@
1
1
  export {};
2
+ //# sourceMappingURL=internalTypes.js.map
@@ -33,3 +33,4 @@ export function opAppend(...iterablesToAppend) {
33
33
  }
34
34
  return _;
35
35
  }
36
+ //# sourceMappingURL=append.js.map
@@ -6,3 +6,4 @@ async function* _asyncAwait(iter) {
6
6
  export function opAwaitAsync() {
7
7
  return _asyncAwait;
8
8
  }
9
+ //# sourceMappingURL=await.js.map
@@ -16,3 +16,4 @@ export function opCombineSync(...fns) {
16
16
  }
17
17
  return combine;
18
18
  }
19
+ //# sourceMappingURL=combine.js.map
@@ -16,3 +16,4 @@ export function opConcatMapSync(mapFn) {
16
16
  return fn;
17
17
  }
18
18
  export const opConcatMap = (fn) => toPipeFn(opConcatMapSync(fn), opConcatMapAsync(fn));
19
+ //# sourceMappingURL=concatMap.js.map
@@ -27,3 +27,4 @@ export function opFilter(fn) {
27
27
  }
28
28
  return _;
29
29
  }
30
+ //# sourceMappingURL=filter.js.map
@@ -31,3 +31,4 @@ export function opFirst(fn) {
31
31
  }
32
32
  return _;
33
33
  }
34
+ //# sourceMappingURL=first.js.map
@@ -16,3 +16,4 @@ export function opFlattenSync() {
16
16
  return fn;
17
17
  }
18
18
  export const opFlatten = () => toPipeFn(opFlattenSync(), opFlattenAsync());
19
+ //# sourceMappingURL=flatten.js.map
@@ -13,3 +13,4 @@ export { opSkip, opSkipAsync, opSkipSync } from './skip.js';
13
13
  export { opTake, opTakeAsync, opTakeSync } from './take.js';
14
14
  export { opTap, opTapAsync, opTapSync } from './tap.js';
15
15
  export { opUnique, opUniqueAsync, opUniqueSync } from './unique.js';
16
+ //# sourceMappingURL=index.js.map
@@ -19,3 +19,4 @@ export function opJoinStringsSync(joinCharacter = ',') {
19
19
  return fn;
20
20
  }
21
21
  export const opJoinStrings = (joinCharacter) => toPipeFn(opJoinStringsSync(joinCharacter), opJoinStringsAsync(joinCharacter));
22
+ //# sourceMappingURL=joinStrings.js.map
@@ -36,3 +36,4 @@ export function opLast(fn) {
36
36
  }
37
37
  return _;
38
38
  }
39
+ //# sourceMappingURL=last.js.map
@@ -16,3 +16,4 @@ export function opMapSync(mapFn) {
16
16
  return fn;
17
17
  }
18
18
  export const opMap = (fn) => toPipeFn(opMapSync(fn), opMapAsync(fn));
19
+ //# sourceMappingURL=map.js.map
@@ -46,3 +46,4 @@ async function headTailAsync(iter) {
46
46
  function isIterable(i) {
47
47
  return typeof i[Symbol.iterator] === 'function';
48
48
  }
49
+ //# sourceMappingURL=reduce.js.map
@@ -24,3 +24,4 @@ export function opSkipSync(count) {
24
24
  return fn;
25
25
  }
26
26
  export const opSkip = (count) => toPipeFn(opSkipSync(count), opSkipAsync(count));
27
+ //# sourceMappingURL=skip.js.map
@@ -28,3 +28,4 @@ export function opTakeSync(count) {
28
28
  * @param count - number to take
29
29
  */
30
30
  export const opTake = (count) => toPipeFn(opTakeSync(count), opTakeAsync(count));
31
+ //# sourceMappingURL=take.js.map
@@ -33,3 +33,4 @@ export function opTapSync(tapFn) {
33
33
  * @param fn - function to call for each value.
34
34
  */
35
35
  export const opTap = (fn) => toPipeFn(opTapSync(fn), opTapAsync(fn));
36
+ //# sourceMappingURL=tap.js.map
@@ -1 +1,2 @@
1
1
  export {};
2
+ //# sourceMappingURL=types.js.map
@@ -50,3 +50,4 @@ export function opUniqueSync(k) {
50
50
  return k ? fnK(k) : fn;
51
51
  }
52
52
  export const opUnique = (getKey) => toPipeFn(opUniqueSync(getKey), opUniqueAsync(getKey));
53
+ //# sourceMappingURL=unique.js.map
package/dist/pipe.js CHANGED
@@ -7,3 +7,4 @@ export function pipeAsync(i, ...fns) {
7
7
  export function pipeSync(i, ...fns) {
8
8
  return opCombineSync(...fns)(i);
9
9
  }
10
+ //# sourceMappingURL=pipe.js.map
package/dist/reduce.js CHANGED
@@ -18,3 +18,4 @@ export async function reduceAsync(iter, reduceFn, initialValue) {
18
18
  export function reduce(iter, reduceFn, initialValue) {
19
19
  return isAsyncIterable(iter) ? reduceAsync(iter, reduceFn, initialValue) : reduceSync(iter, reduceFn, initialValue);
20
20
  }
21
+ //# sourceMappingURL=reduce.js.map
@@ -2,3 +2,4 @@ export { toArraySync as toArray } from '../helpers/toArray.js';
2
2
  export { opAppendSync as opAppend, opCombineSync as opCombine, opConcatMapSync as opConcatMap, opFilterSync as opFilter, opFirstSync as opFirst, opFlattenSync as opFlatten, opJoinStringsSync as opJoinStrings, opLastSync as opLast, opMapSync as opMap, opReduceSync as opReduce, opSkipSync as opSkip, opTakeSync as opTake, opTapSync as opTap, opUniqueSync as opUnique, } from '../operators/index.js';
3
3
  export { pipeSync as pipe, pipeSync } from '../pipe.js';
4
4
  export { reduceSync as reduce } from '../reduce.js';
5
+ //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "7.1.1",
6
+ "version": "7.3.0",
7
7
  "description": "Library to make working with Iterators/AsyncIterators easier.",
8
8
  "keywords": [
9
9
  "cspell",
@@ -115,5 +115,5 @@
115
115
  "devDependencies": {
116
116
  "globby": "^13.2.2"
117
117
  },
118
- "gitHead": "2dafa5386c58637614034c7a6d0fa13c03b16e41"
118
+ "gitHead": "4a16b099b64c5b55645529a4ae79bc32aaf0fc8e"
119
119
  }