@cspell/cspell-pipe 6.26.2 → 6.27.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.
- package/dist/cjs/helpers/distribute.js +37 -0
- package/dist/cjs/helpers/index.js +17 -0
- package/dist/cjs/helpers/interleave.js +22 -0
- package/dist/cjs/helpers/iteratorToIterable.js +18 -0
- package/dist/cjs/helpers/toArray.js +21 -0
- package/dist/cjs/helpers/toAsyncIterable.js +19 -0
- package/dist/cjs/helpers/util.js +15 -0
- package/dist/cjs/index.js +60 -0
- package/dist/cjs/internalTypes.js +3 -0
- package/dist/cjs/operators/{append.cjs → append.js} +8 -10
- package/dist/cjs/operators/await.js +13 -0
- package/dist/cjs/operators/{combine.cjs → combine.js} +5 -4
- package/dist/cjs/operators/{concatMap.cjs → concatMap.js} +8 -16
- package/dist/cjs/operators/{filter.cjs → filter.js} +8 -10
- package/dist/cjs/operators/{first.cjs → first.js} +8 -10
- package/dist/cjs/operators/{flatten.cjs → flatten.js} +8 -16
- package/dist/cjs/operators/index.js +60 -0
- package/dist/cjs/operators/joinStrings.js +28 -0
- package/dist/cjs/operators/{last.cjs → last.js} +8 -10
- package/dist/cjs/operators/{map.cjs → map.js} +8 -16
- package/dist/cjs/operators/{reduce.cjs → reduce.js} +9 -20
- package/dist/cjs/operators/{skip.cjs → skip.js} +8 -16
- package/dist/cjs/operators/{take.cjs → take.js} +8 -16
- package/dist/cjs/operators/{tap.cjs → tap.js} +8 -16
- package/dist/cjs/operators/types.js +3 -0
- package/dist/cjs/operators/{unique.cjs → unique.js} +8 -16
- package/dist/cjs/pipe.js +15 -0
- package/dist/cjs/reduce.js +27 -0
- package/dist/cjs/sync/index.js +26 -0
- package/dist/{cjs/operators/helpers/distribute.d.ts → esm/helpers/distribute.d.mts} +1 -1
- package/dist/esm/helpers/distribute.mjs +33 -0
- package/dist/esm/helpers/index.d.mts +7 -0
- package/dist/esm/helpers/index.mjs +7 -0
- package/dist/{cjs/operators/helpers/interleave.d.ts → esm/helpers/interleave.d.mts} +1 -1
- package/dist/esm/helpers/interleave.mjs +18 -0
- package/dist/{cjs/operators/helpers/iteratorToIterable.d.ts → esm/helpers/iteratorToIterable.d.mts} +1 -1
- package/dist/esm/helpers/iteratorToIterable.mjs +13 -0
- package/dist/{cjs/operators/helpers/toArray.d.ts → esm/helpers/toArray.d.mts} +1 -1
- package/dist/esm/helpers/toArray.mjs +15 -0
- package/dist/{cjs/sync/helpers/toAsyncIterable.d.ts → esm/helpers/toAsyncIterable.d.mts} +2 -2
- package/dist/esm/helpers/toAsyncIterable.mjs +15 -0
- package/dist/{cjs/operators/helpers/util.d.ts → esm/helpers/util.d.mts} +2 -2
- package/dist/esm/helpers/util.mjs +10 -0
- package/dist/esm/index.d.mts +9 -0
- package/dist/esm/index.mjs +11 -0
- package/dist/{cjs/operators/internalTypes.d.ts → esm/internalTypes.d.mts} +1 -1
- package/dist/esm/internalTypes.mjs +2 -0
- package/dist/{cjs/sync/operators/append.d.ts → esm/operators/append.d.mts} +2 -2
- package/dist/esm/operators/append.mjs +36 -0
- package/dist/{cjs/operators/operators/await.d.ts → esm/operators/await.d.mts} +1 -1
- package/dist/{cjs/operators/await.cjs → esm/operators/await.mjs} +2 -5
- package/dist/{cjs/operators/operators/combine.d.ts → esm/operators/combine.d.mts} +3 -3
- package/dist/esm/operators/combine.mjs +19 -0
- package/dist/{cjs/operators/operators/concatMap.d.ts → esm/operators/concatMap.d.mts} +1 -1
- package/dist/esm/operators/concatMap.mjs +19 -0
- package/dist/{cjs/operators/operators/filter.d.ts → esm/operators/filter.d.mts} +2 -2
- package/dist/esm/operators/filter.mjs +30 -0
- package/dist/{cjs/operators/operators/first.d.ts → esm/operators/first.d.mts} +2 -2
- package/dist/esm/operators/first.mjs +34 -0
- package/dist/{cjs/operators/operators/flatten.d.ts → esm/operators/flatten.d.mts} +1 -1
- package/dist/esm/operators/flatten.mjs +19 -0
- package/dist/esm/operators/index.d.mts +17 -0
- package/dist/esm/operators/index.mjs +16 -0
- package/dist/{cjs/operators/operators/joinStrings.d.ts → esm/operators/joinStrings.d.mts} +1 -1
- package/dist/esm/operators/joinStrings.mjs +22 -0
- package/dist/{cjs/operators/operators/last.d.ts → esm/operators/last.d.mts} +2 -2
- package/dist/esm/operators/last.mjs +39 -0
- package/dist/{cjs/operators/operators/map.d.ts → esm/operators/map.d.mts} +1 -1
- package/dist/esm/operators/map.mjs +19 -0
- package/dist/{cjs/operators/operators/reduce.d.ts → esm/operators/reduce.d.mts} +1 -1
- package/dist/esm/operators/reduce.mjs +49 -0
- package/dist/{cjs/operators/operators/skip.d.ts → esm/operators/skip.d.mts} +1 -1
- package/dist/esm/operators/skip.mjs +27 -0
- package/dist/{operators/take.d.ts → esm/operators/take.d.mts} +1 -1
- package/dist/esm/operators/take.mjs +31 -0
- package/dist/{cjs/sync/operators/tap.d.ts → esm/operators/tap.d.mts} +1 -1
- package/dist/esm/operators/tap.mjs +36 -0
- package/dist/{cjs/operators/operators/types.d.ts → esm/operators/types.d.mts} +1 -1
- package/dist/esm/operators/types.mjs +2 -0
- package/dist/{operators/unique.d.ts → esm/operators/unique.d.mts} +1 -1
- package/dist/esm/operators/unique.mjs +53 -0
- package/dist/{cjs/operators/pipe.d.ts → esm/pipe.d.mts} +2 -2
- package/dist/esm/pipe.mjs +10 -0
- package/dist/{cjs/sync/reduce.d.ts → esm/reduce.d.mts} +2 -2
- package/dist/esm/reduce.mjs +21 -0
- package/dist/{cjs/operators/sync/index.d.ts → esm/sync/index.d.mts} +6 -6
- package/dist/{cjs/sync/sync/index.d.ts → esm/sync/index.mjs} +5 -6
- package/package.json +41 -57
- package/dist/cjs/index.cjs +0 -644
- package/dist/cjs/operators/helpers/index.d.ts +0 -7
- package/dist/cjs/operators/helpers/toAsyncIterable.d.ts +0 -11
- package/dist/cjs/operators/index.cjs +0 -508
- package/dist/cjs/operators/joinStrings.cjs +0 -49
- package/dist/cjs/operators/operators/append.d.ts +0 -15
- package/dist/cjs/operators/operators/index.d.ts +0 -17
- package/dist/cjs/operators/operators/take.d.ts +0 -8
- package/dist/cjs/operators/operators/tap.d.ts +0 -19
- package/dist/cjs/operators/operators/unique.d.ts +0 -4
- package/dist/cjs/operators/types.cjs +0 -2
- package/dist/cjs/sync/helpers/distribute.d.ts +0 -13
- package/dist/cjs/sync/helpers/index.d.ts +0 -7
- package/dist/cjs/sync/helpers/interleave.d.ts +0 -2
- package/dist/cjs/sync/helpers/iteratorToIterable.d.ts +0 -3
- package/dist/cjs/sync/helpers/toArray.d.ts +0 -6
- package/dist/cjs/sync/helpers/util.d.ts +0 -4
- package/dist/cjs/sync/index.cjs +0 -245
- package/dist/cjs/sync/internalTypes.d.ts +0 -17
- package/dist/cjs/sync/operators/await.d.ts +0 -2
- package/dist/cjs/sync/operators/combine.d.ts +0 -23
- package/dist/cjs/sync/operators/concatMap.d.ts +0 -4
- package/dist/cjs/sync/operators/filter.d.ts +0 -10
- package/dist/cjs/sync/operators/first.d.ts +0 -10
- package/dist/cjs/sync/operators/flatten.d.ts +0 -4
- package/dist/cjs/sync/operators/index.d.ts +0 -17
- package/dist/cjs/sync/operators/joinStrings.d.ts +0 -4
- package/dist/cjs/sync/operators/last.d.ts +0 -10
- package/dist/cjs/sync/operators/map.d.ts +0 -4
- package/dist/cjs/sync/operators/reduce.d.ts +0 -7
- package/dist/cjs/sync/operators/skip.d.ts +0 -4
- package/dist/cjs/sync/operators/take.d.ts +0 -8
- package/dist/cjs/sync/operators/types.d.ts +0 -4
- package/dist/cjs/sync/operators/unique.d.ts +0 -4
- package/dist/cjs/sync/pipe.d.ts +0 -20
- package/dist/helpers/distribute.d.ts +0 -13
- package/dist/helpers/index.d.ts +0 -7
- package/dist/helpers/interleave.d.ts +0 -2
- package/dist/helpers/iteratorToIterable.d.ts +0 -3
- package/dist/helpers/toArray.d.ts +0 -6
- package/dist/helpers/toAsyncIterable.d.ts +0 -11
- package/dist/helpers/util.d.ts +0 -4
- package/dist/index.d.ts +0 -9
- package/dist/internalTypes.d.ts +0 -17
- package/dist/operators/append.d.ts +0 -15
- package/dist/operators/await.d.ts +0 -2
- package/dist/operators/combine.d.ts +0 -23
- package/dist/operators/concatMap.d.ts +0 -4
- package/dist/operators/filter.d.ts +0 -10
- package/dist/operators/first.d.ts +0 -10
- package/dist/operators/flatten.d.ts +0 -4
- package/dist/operators/index.d.ts +0 -17
- package/dist/operators/joinStrings.d.ts +0 -4
- package/dist/operators/last.d.ts +0 -10
- package/dist/operators/map.d.ts +0 -4
- package/dist/operators/reduce.d.ts +0 -7
- package/dist/operators/skip.d.ts +0 -4
- package/dist/operators/tap.d.ts +0 -19
- package/dist/operators/types.d.ts +0 -4
- package/dist/pipe.d.ts +0 -20
- package/dist/reduce.d.ts +0 -16
- package/dist/sync/index.d.ts +0 -6
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { toPipeFn } from '../helpers/util.mjs';
|
|
2
|
+
export function opConcatMapAsync(mapFn) {
|
|
3
|
+
async function* fn(iter) {
|
|
4
|
+
for await (const v of iter) {
|
|
5
|
+
yield* mapFn(v);
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
return fn;
|
|
9
|
+
}
|
|
10
|
+
export function opConcatMapSync(mapFn) {
|
|
11
|
+
function* fn(iter) {
|
|
12
|
+
for (const v of iter) {
|
|
13
|
+
yield* mapFn(v);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
return fn;
|
|
17
|
+
}
|
|
18
|
+
export const opConcatMap = (fn) => toPipeFn(opConcatMapSync(fn), opConcatMapAsync(fn));
|
|
19
|
+
//# sourceMappingURL=concatMap.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PipeFn } from '../internalTypes.
|
|
1
|
+
import type { PipeFn } from '../internalTypes.mjs';
|
|
2
2
|
export declare function opFilterAsync<T, S extends T>(filterFn: (v: T) => v is S): (iter: AsyncIterable<T>) => AsyncIterable<S>;
|
|
3
3
|
export declare function opFilterAsync<T, S extends Awaited<T>>(filterFn: (v: Awaited<T>) => v is S): (iter: AsyncIterable<T>) => AsyncIterable<S>;
|
|
4
4
|
export declare function opFilterAsync<T>(filterFn: (v: Awaited<T>) => boolean): (iter: AsyncIterable<T>) => AsyncIterable<Awaited<T>>;
|
|
@@ -7,4 +7,4 @@ export declare function opFilterSync<T, S extends T>(filterFn: (v: T) => v is S)
|
|
|
7
7
|
export declare function opFilterSync<T>(filterFn: (v: T) => boolean): (iter: Iterable<T>) => Iterable<T>;
|
|
8
8
|
export declare function opFilter<T, S extends T>(fn: (v: T) => v is S): PipeFn<T, S>;
|
|
9
9
|
export declare function opFilter<T>(fn: (v: T) => boolean): PipeFn<T, T>;
|
|
10
|
-
//# sourceMappingURL=filter.d.
|
|
10
|
+
//# sourceMappingURL=filter.d.mts.map
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { isAsyncIterable } from '../helpers/util.mjs';
|
|
2
|
+
// prettier-ignore
|
|
3
|
+
export function opFilterAsync(filterFn) {
|
|
4
|
+
async function* fn(iter) {
|
|
5
|
+
for await (const v of iter) {
|
|
6
|
+
const pass = await filterFn(v);
|
|
7
|
+
if (pass)
|
|
8
|
+
yield v;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
return fn;
|
|
12
|
+
}
|
|
13
|
+
export function opFilterSync(filterFn) {
|
|
14
|
+
function* fn(iter) {
|
|
15
|
+
for (const v of iter) {
|
|
16
|
+
if (filterFn(v))
|
|
17
|
+
yield v;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
return fn;
|
|
21
|
+
}
|
|
22
|
+
export function opFilter(fn) {
|
|
23
|
+
const asyncFn = opFilterAsync(fn);
|
|
24
|
+
const syncFn = opFilterSync(fn);
|
|
25
|
+
function _(i) {
|
|
26
|
+
return isAsyncIterable(i) ? asyncFn(i) : syncFn(i);
|
|
27
|
+
}
|
|
28
|
+
return _;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=filter.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PipeFn } from '../internalTypes.
|
|
1
|
+
import type { PipeFn } from '../internalTypes.mjs';
|
|
2
2
|
export declare function opFirstAsync<T, S extends T>(firstFn: (v: T) => v is S): (iter: AsyncIterable<T>) => AsyncIterable<S>;
|
|
3
3
|
export declare function opFirstAsync<T, S extends Awaited<T>>(firstFn: (v: Awaited<T>) => v is S): (iter: AsyncIterable<T>) => AsyncIterable<S>;
|
|
4
4
|
export declare function opFirstAsync<T>(firstFn: (v: Awaited<T>) => boolean): (iter: AsyncIterable<T>) => AsyncIterable<Awaited<T>>;
|
|
@@ -7,4 +7,4 @@ export declare function opFirstSync<T, S extends T>(firstFn: (v: T) => v is S):
|
|
|
7
7
|
export declare function opFirstSync<T>(firstFn: (v: T) => boolean): (iter: Iterable<T>) => Iterable<T>;
|
|
8
8
|
export declare function opFirst<T, S extends T>(fn: (v: T) => v is S): PipeFn<T, S>;
|
|
9
9
|
export declare function opFirst<T>(fn: (v: T) => boolean): PipeFn<T, T>;
|
|
10
|
-
//# sourceMappingURL=first.d.
|
|
10
|
+
//# sourceMappingURL=first.d.mts.map
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { isAsyncIterable } from '../helpers/util.mjs';
|
|
2
|
+
// prettier-ignore
|
|
3
|
+
export function opFirstAsync(firstFn) {
|
|
4
|
+
async function* fn(iter) {
|
|
5
|
+
for await (const v of iter) {
|
|
6
|
+
const pass = await firstFn(v);
|
|
7
|
+
if (pass) {
|
|
8
|
+
yield v;
|
|
9
|
+
break;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
return fn;
|
|
14
|
+
}
|
|
15
|
+
export function opFirstSync(firstFn) {
|
|
16
|
+
function* fn(iter) {
|
|
17
|
+
for (const v of iter) {
|
|
18
|
+
if (firstFn(v)) {
|
|
19
|
+
yield v;
|
|
20
|
+
break;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
return fn;
|
|
25
|
+
}
|
|
26
|
+
export function opFirst(fn) {
|
|
27
|
+
const asyncFn = opFirstAsync(fn);
|
|
28
|
+
const syncFn = opFirstSync(fn);
|
|
29
|
+
function _(i) {
|
|
30
|
+
return isAsyncIterable(i) ? asyncFn(i) : syncFn(i);
|
|
31
|
+
}
|
|
32
|
+
return _;
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=first.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare function opFlattenAsync<T>(): (iter: AsyncIterable<AsyncIterable<T> | Iterable<T>>) => AsyncIterable<T>;
|
|
2
2
|
export declare function opFlattenSync<T>(): (iter: Iterable<Iterable<T>>) => Iterable<T>;
|
|
3
3
|
export declare const opFlatten: <T>() => import("../internalTypes.js").PipeFn<Iterable<T>, T>;
|
|
4
|
-
//# sourceMappingURL=flatten.d.
|
|
4
|
+
//# sourceMappingURL=flatten.d.mts.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { toPipeFn } from '../helpers/util.mjs';
|
|
2
|
+
export function opFlattenAsync() {
|
|
3
|
+
async function* fn(iter) {
|
|
4
|
+
for await (const v of iter) {
|
|
5
|
+
yield* v;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
return fn;
|
|
9
|
+
}
|
|
10
|
+
export function opFlattenSync() {
|
|
11
|
+
function* fn(iter) {
|
|
12
|
+
for (const v of iter) {
|
|
13
|
+
yield* v;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
return fn;
|
|
17
|
+
}
|
|
18
|
+
export const opFlatten = () => toPipeFn(opFlattenSync(), opFlattenAsync());
|
|
19
|
+
//# sourceMappingURL=flatten.mjs.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export { opAppend, opAppendAsync, opAppendSync } from './append.mjs';
|
|
2
|
+
export { opAwaitAsync } from './await.mjs';
|
|
3
|
+
export { opCombineAsync, opCombineSync } from './combine.mjs';
|
|
4
|
+
export { opConcatMap, opConcatMapAsync, opConcatMapSync } from './concatMap.mjs';
|
|
5
|
+
export { opFilter, opFilterAsync, opFilterSync } from './filter.mjs';
|
|
6
|
+
export { opFirst, opFirstAsync, opFirstSync } from './first.mjs';
|
|
7
|
+
export { opFlatten, opFlattenAsync, opFlattenSync } from './flatten.mjs';
|
|
8
|
+
export { opJoinStrings, opJoinStringsAsync, opJoinStringsSync } from './joinStrings.mjs';
|
|
9
|
+
export { opLast, opLastAsync, opLastSync } from './last.mjs';
|
|
10
|
+
export { opMap, opMapAsync, opMapSync } from './map.mjs';
|
|
11
|
+
export { opReduceAsync, opReduceSync } from './reduce.mjs';
|
|
12
|
+
export { opSkip, opSkipAsync, opSkipSync } from './skip.mjs';
|
|
13
|
+
export { opTake, opTakeAsync, opTakeSync } from './take.mjs';
|
|
14
|
+
export { opTap, opTapAsync, opTapSync } from './tap.mjs';
|
|
15
|
+
export type { OperatorAsync, OperatorSync, OperatorSyncToAsync } from './types.mjs';
|
|
16
|
+
export { opUnique, opUniqueAsync, opUniqueSync } from './unique.mjs';
|
|
17
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export { opAppend, opAppendAsync, opAppendSync } from './append.mjs';
|
|
2
|
+
export { opAwaitAsync } from './await.mjs';
|
|
3
|
+
export { opCombineAsync, opCombineSync } from './combine.mjs';
|
|
4
|
+
export { opConcatMap, opConcatMapAsync, opConcatMapSync } from './concatMap.mjs';
|
|
5
|
+
export { opFilter, opFilterAsync, opFilterSync } from './filter.mjs';
|
|
6
|
+
export { opFirst, opFirstAsync, opFirstSync } from './first.mjs';
|
|
7
|
+
export { opFlatten, opFlattenAsync, opFlattenSync } from './flatten.mjs';
|
|
8
|
+
export { opJoinStrings, opJoinStringsAsync, opJoinStringsSync } from './joinStrings.mjs';
|
|
9
|
+
export { opLast, opLastAsync, opLastSync } from './last.mjs';
|
|
10
|
+
export { opMap, opMapAsync, opMapSync } from './map.mjs';
|
|
11
|
+
export { opReduceAsync, opReduceSync } from './reduce.mjs';
|
|
12
|
+
export { opSkip, opSkipAsync, opSkipSync } from './skip.mjs';
|
|
13
|
+
export { opTake, opTakeAsync, opTakeSync } from './take.mjs';
|
|
14
|
+
export { opTap, opTapAsync, opTapSync } from './tap.mjs';
|
|
15
|
+
export { opUnique, opUniqueAsync, opUniqueSync } from './unique.mjs';
|
|
16
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare function opJoinStringsAsync(joinCharacter?: string): (iter: AsyncIterable<AsyncIterable<string> | Iterable<string>>) => AsyncIterable<string>;
|
|
2
2
|
export declare function opJoinStringsSync(joinCharacter?: string): (iter: Iterable<Iterable<string>>) => Iterable<string>;
|
|
3
3
|
export declare const opJoinStrings: (joinCharacter?: string) => import("../internalTypes.js").PipeFn<Iterable<string>, string>;
|
|
4
|
-
//# sourceMappingURL=joinStrings.d.
|
|
4
|
+
//# sourceMappingURL=joinStrings.d.mts.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { toArray } from '../helpers/toArray.mjs';
|
|
2
|
+
import { toPipeFn } from '../helpers/util.mjs';
|
|
3
|
+
export function opJoinStringsAsync(joinCharacter = ',') {
|
|
4
|
+
async function* fn(iter) {
|
|
5
|
+
for await (const v of iter) {
|
|
6
|
+
const a = await toArray(v);
|
|
7
|
+
yield a.join(joinCharacter);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
return fn;
|
|
11
|
+
}
|
|
12
|
+
export function opJoinStringsSync(joinCharacter = ',') {
|
|
13
|
+
function* fn(iter) {
|
|
14
|
+
for (const v of iter) {
|
|
15
|
+
const a = toArray(v);
|
|
16
|
+
yield a.join(joinCharacter);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
return fn;
|
|
20
|
+
}
|
|
21
|
+
export const opJoinStrings = (joinCharacter) => toPipeFn(opJoinStringsSync(joinCharacter), opJoinStringsAsync(joinCharacter));
|
|
22
|
+
//# sourceMappingURL=joinStrings.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PipeFn } from '../internalTypes.
|
|
1
|
+
import type { PipeFn } from '../internalTypes.mjs';
|
|
2
2
|
export declare function opLastAsync<T, S extends T>(lastFn: (v: T) => v is S): (iter: AsyncIterable<T>) => AsyncIterable<S>;
|
|
3
3
|
export declare function opLastAsync<T, S extends Awaited<T>>(lastFn: (v: Awaited<T>) => v is S): (iter: AsyncIterable<T>) => AsyncIterable<S>;
|
|
4
4
|
export declare function opLastAsync<T>(lastFn: (v: Awaited<T>) => boolean): (iter: AsyncIterable<T>) => AsyncIterable<Awaited<T>>;
|
|
@@ -7,4 +7,4 @@ export declare function opLastSync<T, S extends T>(lastFn: (v: T) => v is S): (i
|
|
|
7
7
|
export declare function opLastSync<T>(lastFn: (v: T) => boolean): (iter: Iterable<T>) => Iterable<T>;
|
|
8
8
|
export declare function opLast<T, S extends T>(fn: (v: T) => v is S): PipeFn<T, S>;
|
|
9
9
|
export declare function opLast<T>(fn: (v: T) => boolean): PipeFn<T, T>;
|
|
10
|
-
//# sourceMappingURL=last.d.
|
|
10
|
+
//# sourceMappingURL=last.d.mts.map
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { isAsyncIterable } from '../helpers/util.mjs';
|
|
2
|
+
const symNotFound = Symbol('LastNotFound');
|
|
3
|
+
// prettier-ignore
|
|
4
|
+
export function opLastAsync(lastFn) {
|
|
5
|
+
async function* fn(iter) {
|
|
6
|
+
let last = symNotFound;
|
|
7
|
+
for await (const v of iter) {
|
|
8
|
+
const pass = await lastFn(v);
|
|
9
|
+
if (pass) {
|
|
10
|
+
last = v;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
if (last !== symNotFound)
|
|
14
|
+
yield last;
|
|
15
|
+
}
|
|
16
|
+
return fn;
|
|
17
|
+
}
|
|
18
|
+
export function opLastSync(lastFn) {
|
|
19
|
+
function* fn(iter) {
|
|
20
|
+
let last = symNotFound;
|
|
21
|
+
for (const v of iter) {
|
|
22
|
+
if (lastFn(v)) {
|
|
23
|
+
last = v;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
if (last !== symNotFound)
|
|
27
|
+
yield last;
|
|
28
|
+
}
|
|
29
|
+
return fn;
|
|
30
|
+
}
|
|
31
|
+
export function opLast(fn) {
|
|
32
|
+
const asyncFn = opLastAsync(fn);
|
|
33
|
+
const syncFn = opLastSync(fn);
|
|
34
|
+
function _(i) {
|
|
35
|
+
return isAsyncIterable(i) ? asyncFn(i) : syncFn(i);
|
|
36
|
+
}
|
|
37
|
+
return _;
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=last.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare function opMapAsync<T, U = T>(mapFn: (v: T) => U): (iter: AsyncIterable<T>) => AsyncIterable<U>;
|
|
2
2
|
export declare function opMapSync<T, U = T>(mapFn: (v: T) => U): (iter: Iterable<T>) => Iterable<U>;
|
|
3
3
|
export declare const opMap: <T, U>(fn: (v: T) => U) => import("../internalTypes.js").PipeFn<T, U>;
|
|
4
|
-
//# sourceMappingURL=map.d.
|
|
4
|
+
//# sourceMappingURL=map.d.mts.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { toPipeFn } from '../helpers/util.mjs';
|
|
2
|
+
export function opMapAsync(mapFn) {
|
|
3
|
+
async function* fn(iter) {
|
|
4
|
+
for await (const v of iter) {
|
|
5
|
+
yield mapFn(v);
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
return fn;
|
|
9
|
+
}
|
|
10
|
+
export function opMapSync(mapFn) {
|
|
11
|
+
function* fn(iter) {
|
|
12
|
+
for (const v of iter) {
|
|
13
|
+
yield mapFn(v);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
return fn;
|
|
17
|
+
}
|
|
18
|
+
export const opMap = (fn) => toPipeFn(opMapSync(fn), opMapAsync(fn));
|
|
19
|
+
//# sourceMappingURL=map.mjs.map
|
|
@@ -4,4 +4,4 @@ export declare function opReduceAsync<T, U>(reduceFn: (previousValue: U, current
|
|
|
4
4
|
export declare function opReduceSync<T>(reduceFn: (previousValue: T, currentValue: T) => T): (iter: Iterable<T>) => Iterable<T>;
|
|
5
5
|
export declare function opReduceSync<T>(reduceFn: (previousValue: T, currentValue: T) => T, initialValue: T): (iter: Iterable<T>) => Iterable<T>;
|
|
6
6
|
export declare function opReduceSync<T, U>(reduceFn: (previousValue: U, currentValue: T) => U, initialValue: U): (iter: Iterable<T>) => Iterable<U>;
|
|
7
|
-
//# sourceMappingURL=reduce.d.
|
|
7
|
+
//# sourceMappingURL=reduce.d.mts.map
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { asyncIteratorToAsyncIterable, iteratorToIterable } from '../helpers/index.mjs';
|
|
2
|
+
export function opReduceAsync(reduceFn, initialValue) {
|
|
3
|
+
async function* reduce(head, tail) {
|
|
4
|
+
for await (const v of tail) {
|
|
5
|
+
head = reduceFn(head, v);
|
|
6
|
+
}
|
|
7
|
+
yield head;
|
|
8
|
+
}
|
|
9
|
+
async function* fn(iter) {
|
|
10
|
+
const ht = initialValue === undefined ? await headTailAsync(iter) : { head: await initialValue, tail: iter };
|
|
11
|
+
if (!ht)
|
|
12
|
+
return;
|
|
13
|
+
yield* reduce(ht.head, ht.tail);
|
|
14
|
+
}
|
|
15
|
+
return fn;
|
|
16
|
+
}
|
|
17
|
+
export function opReduceSync(reduceFn, initialValue) {
|
|
18
|
+
function* reduce(head, tail) {
|
|
19
|
+
for (const v of tail) {
|
|
20
|
+
head = reduceFn(head, v);
|
|
21
|
+
}
|
|
22
|
+
yield head;
|
|
23
|
+
}
|
|
24
|
+
function* fn(iter) {
|
|
25
|
+
const ht = initialValue === undefined ? headTail(iter) : { head: initialValue, tail: iter };
|
|
26
|
+
if (!ht)
|
|
27
|
+
return;
|
|
28
|
+
yield* reduce(ht.head, ht.tail);
|
|
29
|
+
}
|
|
30
|
+
return fn;
|
|
31
|
+
}
|
|
32
|
+
function headTail(iter) {
|
|
33
|
+
const iterator = iter[Symbol.iterator]();
|
|
34
|
+
const first = iterator.next();
|
|
35
|
+
if (first.done)
|
|
36
|
+
return undefined;
|
|
37
|
+
return { head: first.value, tail: iteratorToIterable(iterator) };
|
|
38
|
+
}
|
|
39
|
+
async function headTailAsync(iter) {
|
|
40
|
+
const iterator = isIterable(iter) ? iter[Symbol.iterator]() : iter[Symbol.asyncIterator]();
|
|
41
|
+
const first = await iterator.next();
|
|
42
|
+
if (first.done)
|
|
43
|
+
return undefined;
|
|
44
|
+
return { head: first.value, tail: asyncIteratorToAsyncIterable(iterator) };
|
|
45
|
+
}
|
|
46
|
+
function isIterable(i) {
|
|
47
|
+
return typeof i[Symbol.iterator] === 'function';
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=reduce.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare function opSkipAsync<T>(count: number): (iter: AsyncIterable<T> | Iterable<T>) => AsyncIterable<T>;
|
|
2
2
|
export declare function opSkipSync<T>(count: number): (iter: Iterable<T>) => Iterable<T>;
|
|
3
3
|
export declare const opSkip: <T>(count: number) => import("../internalTypes.js").PipeFn<T, T>;
|
|
4
|
-
//# sourceMappingURL=skip.d.
|
|
4
|
+
//# sourceMappingURL=skip.d.mts.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { toPipeFn } from '../helpers/util.mjs';
|
|
2
|
+
export function opSkipAsync(count) {
|
|
3
|
+
async function* fn(iter) {
|
|
4
|
+
for await (const v of iter) {
|
|
5
|
+
if (count > 0) {
|
|
6
|
+
--count;
|
|
7
|
+
continue;
|
|
8
|
+
}
|
|
9
|
+
yield v;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
return fn;
|
|
13
|
+
}
|
|
14
|
+
export function opSkipSync(count) {
|
|
15
|
+
function* fn(iter) {
|
|
16
|
+
for (const v of iter) {
|
|
17
|
+
if (count > 0) {
|
|
18
|
+
--count;
|
|
19
|
+
continue;
|
|
20
|
+
}
|
|
21
|
+
yield v;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
return fn;
|
|
25
|
+
}
|
|
26
|
+
export const opSkip = (count) => toPipeFn(opSkipSync(count), opSkipAsync(count));
|
|
27
|
+
//# sourceMappingURL=skip.mjs.map
|
|
@@ -5,4 +5,4 @@ export declare function opTakeSync<T>(count: number): (iter: Iterable<T>) => Ite
|
|
|
5
5
|
* @param count - number to take
|
|
6
6
|
*/
|
|
7
7
|
export declare const opTake: <T>(count: number) => import("../internalTypes.js").PipeFn<T, T>;
|
|
8
|
-
//# sourceMappingURL=take.d.
|
|
8
|
+
//# sourceMappingURL=take.d.mts.map
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { toPipeFn } from '../helpers/util.mjs';
|
|
2
|
+
export function opTakeAsync(count) {
|
|
3
|
+
async function* fn(iter) {
|
|
4
|
+
if (count <= 0)
|
|
5
|
+
return;
|
|
6
|
+
for await (const v of iter) {
|
|
7
|
+
yield v;
|
|
8
|
+
if (--count <= 0)
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
return fn;
|
|
13
|
+
}
|
|
14
|
+
export function opTakeSync(count) {
|
|
15
|
+
function* fn(iter) {
|
|
16
|
+
if (count <= 0)
|
|
17
|
+
return;
|
|
18
|
+
for (const v of iter) {
|
|
19
|
+
yield v;
|
|
20
|
+
if (--count <= 0)
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
return fn;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Consume only the first `count` number from the iterable.
|
|
28
|
+
* @param count - number to take
|
|
29
|
+
*/
|
|
30
|
+
export const opTake = (count) => toPipeFn(opTakeSync(count), opTakeAsync(count));
|
|
31
|
+
//# sourceMappingURL=take.mjs.map
|
|
@@ -16,4 +16,4 @@ export declare function opTapSync<T>(tapFn: (v: T) => void): (iter: Iterable<T>)
|
|
|
16
16
|
* @param fn - function to call for each value.
|
|
17
17
|
*/
|
|
18
18
|
export declare const opTap: <T>(fn: (v: T) => void) => import("../internalTypes.js").PipeFn<T, T>;
|
|
19
|
-
//# sourceMappingURL=tap.d.
|
|
19
|
+
//# sourceMappingURL=tap.d.mts.map
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { toPipeFn } from '../helpers/util.mjs';
|
|
2
|
+
/**
|
|
3
|
+
* Tap allows you to listen on values, without modifying them.
|
|
4
|
+
*
|
|
5
|
+
* @param fn - function to call for each value.
|
|
6
|
+
*/
|
|
7
|
+
export function opTapAsync(tapFn) {
|
|
8
|
+
async function* fn(iter) {
|
|
9
|
+
for await (const v of iter) {
|
|
10
|
+
tapFn(v);
|
|
11
|
+
yield v;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
return fn;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Tap allows you to listen on values, without modifying them.
|
|
18
|
+
*
|
|
19
|
+
* @param fn - function to call for each value.
|
|
20
|
+
*/
|
|
21
|
+
export function opTapSync(tapFn) {
|
|
22
|
+
function* fn(iter) {
|
|
23
|
+
for (const v of iter) {
|
|
24
|
+
tapFn(v);
|
|
25
|
+
yield v;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
return fn;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Tap allows you to listen on values, without modifying them.
|
|
32
|
+
*
|
|
33
|
+
* @param fn - function to call for each value.
|
|
34
|
+
*/
|
|
35
|
+
export const opTap = (fn) => toPipeFn(opTapSync(fn), opTapAsync(fn));
|
|
36
|
+
//# sourceMappingURL=tap.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export type OperatorSync<T, U = T> = (i: Iterable<T>) => Iterable<U>;
|
|
2
2
|
export type OperatorAsync<T, U = T> = (i: AsyncIterable<T>) => AsyncIterable<U>;
|
|
3
3
|
export type OperatorSyncToAsync<T, U = T> = (i: Iterable<T>) => AsyncIterable<U>;
|
|
4
|
-
//# sourceMappingURL=types.d.
|
|
4
|
+
//# sourceMappingURL=types.d.mts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare function opUniqueAsync<T, U>(k?: (v: T) => U): (iter: AsyncIterable<T>) => AsyncIterable<T>;
|
|
2
2
|
export declare function opUniqueSync<T, U>(k?: (v: T) => U): (iter: Iterable<T>) => Iterable<T>;
|
|
3
3
|
export declare const opUnique: <T, U = T>(getKey?: ((v: T) => U) | undefined) => import("../internalTypes.js").PipeFn<T, T>;
|
|
4
|
-
//# sourceMappingURL=unique.d.
|
|
4
|
+
//# sourceMappingURL=unique.d.mts.map
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { toPipeFn } from '../helpers/util.mjs';
|
|
2
|
+
export function opUniqueAsync(k) {
|
|
3
|
+
function fnK(k) {
|
|
4
|
+
async function* fn(iter) {
|
|
5
|
+
const s = new Set();
|
|
6
|
+
for await (const v of iter) {
|
|
7
|
+
const kk = k(v);
|
|
8
|
+
if (s.has(kk))
|
|
9
|
+
continue;
|
|
10
|
+
s.add(kk);
|
|
11
|
+
yield v;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
return fn;
|
|
15
|
+
}
|
|
16
|
+
async function* fn(iter) {
|
|
17
|
+
const s = new Set();
|
|
18
|
+
for await (const v of iter) {
|
|
19
|
+
if (s.has(v))
|
|
20
|
+
continue;
|
|
21
|
+
s.add(v);
|
|
22
|
+
yield v;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
return k ? fnK(k) : fn;
|
|
26
|
+
}
|
|
27
|
+
export function opUniqueSync(k) {
|
|
28
|
+
function fnK(key) {
|
|
29
|
+
function* fn(iter) {
|
|
30
|
+
const s = new Set();
|
|
31
|
+
for (const v of iter) {
|
|
32
|
+
const kk = key(v);
|
|
33
|
+
if (s.has(kk))
|
|
34
|
+
continue;
|
|
35
|
+
s.add(kk);
|
|
36
|
+
yield v;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return fn;
|
|
40
|
+
}
|
|
41
|
+
function* fn(iter) {
|
|
42
|
+
const s = new Set();
|
|
43
|
+
for (const v of iter) {
|
|
44
|
+
if (s.has(v))
|
|
45
|
+
continue;
|
|
46
|
+
s.add(v);
|
|
47
|
+
yield v;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
return k ? fnK(k) : fn;
|
|
51
|
+
}
|
|
52
|
+
export const opUnique = (getKey) => toPipeFn(opUniqueSync(getKey), opUniqueAsync(getKey));
|
|
53
|
+
//# sourceMappingURL=unique.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AnyIterable, PipeAsyncTx, PipeSyncTx } from './internalTypes.
|
|
1
|
+
import type { AnyIterable, PipeAsyncTx, PipeSyncTx } from './internalTypes.mjs';
|
|
2
2
|
export declare function pipeAsync<T>(i: AnyIterable<T>): AsyncIterable<T>;
|
|
3
3
|
export declare function pipeAsync<T, T0>(i: AnyIterable<T>, ...f: PipeAsyncTx<[T, T0]>): AsyncIterable<T0>;
|
|
4
4
|
export declare function pipeAsync<T, T0, T1>(i: AnyIterable<T>, ...f: PipeAsyncTx<[T, T0, T1]>): AsyncIterable<T1>;
|
|
@@ -17,4 +17,4 @@ export declare function pipeSync<T, T0, T1, T2, T3, T4>(i: Iterable<T>, ...f: Pi
|
|
|
17
17
|
export declare function pipeSync<T, T0, T1, T2, T3, T4, T5>(i: Iterable<T>, ...f: PipeSyncTx<[T, T0, T1, T2, T3, T4, T5]>): Iterable<T5>;
|
|
18
18
|
export declare function pipeSync<T, T0, T1, T2, T3, T4, T5, T6>(i: Iterable<T>, ...f: PipeSyncTx<[T, T0, T1, T2, T3, T4, T5, T6]>): Iterable<T6>;
|
|
19
19
|
export declare function pipeSync<T, T0, T1, T2, T3, T4, T5, T6, T7>(i: Iterable<T>, ...f: PipeSyncTx<[T, T0, T1, T2, T3, T4, T5, T6, T7]>): Iterable<T7>;
|
|
20
|
-
//# sourceMappingURL=pipe.d.
|
|
20
|
+
//# sourceMappingURL=pipe.d.mts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { toAsyncIterable } from './helpers/index.mjs';
|
|
2
|
+
import { opCombineAsync, opCombineSync } from './operators/index.mjs';
|
|
3
|
+
export function pipeAsync(i, ...fns) {
|
|
4
|
+
const iter = toAsyncIterable(i);
|
|
5
|
+
return opCombineAsync(...fns)(iter);
|
|
6
|
+
}
|
|
7
|
+
export function pipeSync(i, ...fns) {
|
|
8
|
+
return opCombineSync(...fns)(i);
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=pipe.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AnyIterable } from './internalTypes.
|
|
1
|
+
import type { AnyIterable } from './internalTypes.mjs';
|
|
2
2
|
export declare function reduceSync<T>(iter: Iterable<T>, reduceFn: (prev: T, curr: T) => T): T | undefined;
|
|
3
3
|
export declare function reduceSync<T>(iter: Iterable<T>, reduceFn: (prev: T, curr: T) => T, initialValue: T): T;
|
|
4
4
|
export declare function reduceSync<T>(iter: Iterable<T>, reduceFn: (prev: T, curr: T) => T, initialValue?: T): T | undefined;
|
|
@@ -13,4 +13,4 @@ export declare function reduce<T, U>(iter: Iterable<T>, reduceFn: (prev: U, curr
|
|
|
13
13
|
export declare function reduce<T>(iter: AsyncIterable<T>, reduceFn: (prev: T, curr: T) => T): Promise<T | undefined>;
|
|
14
14
|
export declare function reduce<T>(iter: AsyncIterable<T>, reduceFn: (prev: T, curr: T) => T, initialValue: T): Promise<T>;
|
|
15
15
|
export declare function reduce<T, U>(iter: AsyncIterable<T>, reduceFn: (prev: U, curr: T) => U, initialValue: U): Promise<U>;
|
|
16
|
-
//# sourceMappingURL=reduce.d.
|
|
16
|
+
//# sourceMappingURL=reduce.d.mts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { isAsyncIterable } from './helpers/index.mjs';
|
|
2
|
+
import { toArrayAsync } from './helpers/toArray.mjs';
|
|
3
|
+
import { opReduceAsync, opReduceSync } from './operators/index.mjs';
|
|
4
|
+
import { pipeAsync, pipeSync } from './pipe.mjs';
|
|
5
|
+
export function reduceSync(iter, reduceFn, initialValue) {
|
|
6
|
+
const i = initialValue === undefined
|
|
7
|
+
? pipeSync(iter, opReduceSync(reduceFn))
|
|
8
|
+
: pipeSync(iter, opReduceSync(reduceFn, initialValue));
|
|
9
|
+
return [...i][0];
|
|
10
|
+
}
|
|
11
|
+
export async function reduceAsync(iter, reduceFn, initialValue) {
|
|
12
|
+
const i = initialValue === undefined
|
|
13
|
+
? pipeAsync(iter, opReduceAsync(reduceFn))
|
|
14
|
+
: pipeAsync(iter, opReduceAsync(reduceFn, initialValue));
|
|
15
|
+
const arr = await toArrayAsync(i);
|
|
16
|
+
return arr[0];
|
|
17
|
+
}
|
|
18
|
+
export function reduce(iter, reduceFn, initialValue) {
|
|
19
|
+
return isAsyncIterable(iter) ? reduceAsync(iter, reduceFn, initialValue) : reduceSync(iter, reduceFn, initialValue);
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=reduce.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { toArraySync as toArray } from '../helpers/toArray.
|
|
2
|
-
export type { OperatorSync as Operator } from '../operators/index.
|
|
3
|
-
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.
|
|
4
|
-
export { pipeSync as pipe, pipeSync } from '../pipe.
|
|
5
|
-
export { reduceSync as reduce } from '../reduce.
|
|
6
|
-
//# sourceMappingURL=index.d.
|
|
1
|
+
export { toArraySync as toArray } from '../helpers/toArray.mjs';
|
|
2
|
+
export type { OperatorSync as Operator } from '../operators/index.mjs';
|
|
3
|
+
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.mjs';
|
|
4
|
+
export { pipeSync as pipe, pipeSync } from '../pipe.mjs';
|
|
5
|
+
export { reduceSync as reduce } from '../reduce.mjs';
|
|
6
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
export { toArraySync as toArray } from '../helpers/toArray.
|
|
2
|
-
export
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
|
|
6
|
-
//# sourceMappingURL=index.d.ts.map
|
|
1
|
+
export { toArraySync as toArray } from '../helpers/toArray.mjs';
|
|
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.mjs';
|
|
3
|
+
export { pipeSync as pipe, pipeSync } from '../pipe.mjs';
|
|
4
|
+
export { reduceSync as reduce } from '../reduce.mjs';
|
|
5
|
+
//# sourceMappingURL=index.mjs.map
|