@cspell/cspell-pipe
Advanced tools
Comparing version 6.12.0 to 6.13.0
export { opAppend, opAppendAsync, opAppendSync } from './append'; | ||
export { opAwaitAsync } from './await'; | ||
export { opCombineAsync, opCombineSync } from './combine'; | ||
export { opConcatMap, opConcatMapAsync, opConcatMapSync } from './concatMap'; | ||
@@ -13,3 +14,4 @@ export { opFilter, opFilterAsync, opFilterSync } from './filter'; | ||
export { opTap, opTapAsync, opTapSync } from './tap'; | ||
export type { OperatorAsync, OperatorSync, OperatorSyncToAsync } from './types'; | ||
export { opUnique, opUniqueAsync, opUniqueSync } from './unique'; | ||
//# sourceMappingURL=index.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.opUniqueSync = exports.opUniqueAsync = exports.opUnique = exports.opTapSync = exports.opTapAsync = exports.opTap = exports.opTakeSync = exports.opTakeAsync = exports.opTake = exports.opSkipSync = exports.opSkipAsync = exports.opSkip = exports.opMapSync = exports.opMapAsync = exports.opMap = exports.opLastSync = exports.opLastAsync = exports.opLast = exports.opJoinStringsSync = exports.opJoinStringsAsync = exports.opJoinStrings = exports.opFlattenSync = exports.opFlattenAsync = exports.opFlatten = exports.opFirstSync = exports.opFirstAsync = exports.opFirst = exports.opFilterSync = exports.opFilterAsync = exports.opFilter = exports.opConcatMapSync = exports.opConcatMapAsync = exports.opConcatMap = exports.opAwaitAsync = exports.opAppendSync = exports.opAppendAsync = exports.opAppend = void 0; | ||
exports.opUniqueSync = exports.opUniqueAsync = exports.opUnique = exports.opTapSync = exports.opTapAsync = exports.opTap = exports.opTakeSync = exports.opTakeAsync = exports.opTake = exports.opSkipSync = exports.opSkipAsync = exports.opSkip = exports.opMapSync = exports.opMapAsync = exports.opMap = exports.opLastSync = exports.opLastAsync = exports.opLast = exports.opJoinStringsSync = exports.opJoinStringsAsync = exports.opJoinStrings = exports.opFlattenSync = exports.opFlattenAsync = exports.opFlatten = exports.opFirstSync = exports.opFirstAsync = exports.opFirst = exports.opFilterSync = exports.opFilterAsync = exports.opFilter = exports.opConcatMapSync = exports.opConcatMapAsync = exports.opConcatMap = exports.opCombineSync = exports.opCombineAsync = exports.opAwaitAsync = exports.opAppendSync = exports.opAppendAsync = exports.opAppend = void 0; | ||
var append_1 = require("./append"); | ||
@@ -10,2 +10,5 @@ Object.defineProperty(exports, "opAppend", { enumerable: true, get: function () { return append_1.opAppend; } }); | ||
Object.defineProperty(exports, "opAwaitAsync", { enumerable: true, get: function () { return await_1.opAwaitAsync; } }); | ||
var combine_1 = require("./combine"); | ||
Object.defineProperty(exports, "opCombineAsync", { enumerable: true, get: function () { return combine_1.opCombineAsync; } }); | ||
Object.defineProperty(exports, "opCombineSync", { enumerable: true, get: function () { return combine_1.opCombineSync; } }); | ||
var concatMap_1 = require("./concatMap"); | ||
@@ -12,0 +15,0 @@ Object.defineProperty(exports, "opConcatMap", { enumerable: true, get: function () { return concatMap_1.opConcatMap; } }); |
@@ -5,18 +5,12 @@ "use strict"; | ||
const helpers_1 = require("./helpers"); | ||
const operators_1 = require("./operators"); | ||
function pipeAsync(i, ...fns) { | ||
let iter = (0, helpers_1.toAsyncIterable)(i); | ||
for (const fn of fns) { | ||
iter = fn(iter); | ||
} | ||
return iter; | ||
const iter = (0, helpers_1.toAsyncIterable)(i); | ||
return (0, operators_1.opCombineAsync)(...fns)(iter); | ||
} | ||
exports.pipeAsync = pipeAsync; | ||
function pipeSync(i, ...fns) { | ||
let iter = i; | ||
for (const fn of fns) { | ||
iter = fn(iter); | ||
} | ||
return iter; | ||
return (0, operators_1.opCombineSync)(...fns)(i); | ||
} | ||
exports.pipeSync = pipeSync; | ||
//# sourceMappingURL=pipe.js.map |
export { toArraySync as toArray } from '../helpers/toArray'; | ||
export { opAppendSync as opAppend, opConcatMapSync as opConcatMap, opFilterSync as opFilter, opFirstSync as opFirst, opFlattenSync as opFlatten, opJoinStringsSync as opJoinStrings, opLastSync as opLast, opMapSync as opMap, opSkipSync as opSkip, opTakeSync as opTake, opTapSync as opTap, opUniqueSync as opUnique, } from '../operators'; | ||
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, opSkipSync as opSkip, opTakeSync as opTake, opTapSync as opTap, opUniqueSync as opUnique, } from '../operators'; | ||
export type { OperatorSync as Operator } from '../operators'; | ||
export { pipeSync as pipe, pipeSync } from '../pipe'; | ||
//# sourceMappingURL=index.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.pipeSync = exports.pipe = exports.opUnique = exports.opTap = exports.opTake = exports.opSkip = exports.opMap = exports.opLast = exports.opJoinStrings = exports.opFlatten = exports.opFirst = exports.opFilter = exports.opConcatMap = exports.opAppend = exports.toArray = void 0; | ||
exports.pipeSync = exports.pipe = exports.opUnique = exports.opTap = exports.opTake = exports.opSkip = exports.opMap = exports.opLast = exports.opJoinStrings = exports.opFlatten = exports.opFirst = exports.opFilter = exports.opConcatMap = exports.opCombine = exports.opAppend = exports.toArray = void 0; | ||
var toArray_1 = require("../helpers/toArray"); | ||
@@ -8,2 +8,3 @@ Object.defineProperty(exports, "toArray", { enumerable: true, get: function () { return toArray_1.toArraySync; } }); | ||
Object.defineProperty(exports, "opAppend", { enumerable: true, get: function () { return operators_1.opAppendSync; } }); | ||
Object.defineProperty(exports, "opCombine", { enumerable: true, get: function () { return operators_1.opCombineSync; } }); | ||
Object.defineProperty(exports, "opConcatMap", { enumerable: true, get: function () { return operators_1.opConcatMapSync; } }); | ||
@@ -10,0 +11,0 @@ Object.defineProperty(exports, "opFilter", { enumerable: true, get: function () { return operators_1.opFilterSync; } }); |
@@ -6,3 +6,3 @@ { | ||
}, | ||
"version": "6.12.0", | ||
"version": "6.13.0", | ||
"description": "Library to make working with Iterators/AsyncIterators easier.", | ||
@@ -114,7 +114,7 @@ "keywords": [ | ||
"devDependencies": { | ||
"@types/node": "^18.7.23", | ||
"jest": "^29.1.1", | ||
"@types/node": "^18.11.5", | ||
"jest": "^29.2.2", | ||
"rimraf": "^3.0.2" | ||
}, | ||
"gitHead": "211105141a72268d45710661d2a9b15656ecf65e" | ||
"gitHead": "e111bc5af5d1f578dbef5454cfa23b6f2b28050e" | ||
} |
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
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
54646
55
944