iter-fest 0.2.1-main.3735548 → 0.2.1-main.4368ff2
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/{chunk-LIMQXDFK.mjs → chunk-2BBSIYMU.mjs} +2 -2
- package/dist/chunk-2BBSIYMU.mjs.map +1 -0
- package/dist/{chunk-BWMXKULC.mjs → chunk-5LYB6HR7.mjs} +2 -2
- package/dist/chunk-5LYB6HR7.mjs.map +1 -0
- package/dist/{chunk-JVR6BUJA.mjs → chunk-745JDME6.mjs} +2 -2
- package/dist/chunk-745JDME6.mjs.map +1 -0
- package/dist/{chunk-CNKIGQUS.mjs → chunk-AUWAPRBT.mjs} +2 -2
- package/dist/chunk-AUWAPRBT.mjs.map +1 -0
- package/dist/{chunk-OJMT4K3R.mjs → chunk-BZKIZ3TX.mjs} +2 -2
- package/dist/chunk-BZKIZ3TX.mjs.map +1 -0
- package/dist/{chunk-FMIHIL6A.mjs → chunk-DSRJWJF3.mjs} +2 -2
- package/dist/chunk-DSRJWJF3.mjs.map +1 -0
- package/dist/{chunk-GFJGWVES.mjs → chunk-DYPZDL4O.mjs} +2 -2
- package/dist/chunk-DYPZDL4O.mjs.map +1 -0
- package/dist/{chunk-R6SXIXMH.mjs → chunk-EES7QVUK.mjs} +2 -2
- package/dist/chunk-EES7QVUK.mjs.map +1 -0
- package/dist/{chunk-3S6LCGE6.mjs → chunk-EOGNKTFW.mjs} +2 -2
- package/dist/chunk-EOGNKTFW.mjs.map +1 -0
- package/dist/{chunk-S2LECQKY.mjs → chunk-EXAULUZ6.mjs} +2 -2
- package/dist/chunk-EXAULUZ6.mjs.map +1 -0
- package/dist/{chunk-4RT2FROS.mjs → chunk-EYUTOVZ3.mjs} +2 -2
- package/dist/chunk-EYUTOVZ3.mjs.map +1 -0
- package/dist/{chunk-AOZVPHE4.mjs → chunk-HTHDBSFD.mjs} +2 -2
- package/dist/chunk-HTHDBSFD.mjs.map +1 -0
- package/dist/{chunk-K4RCFPTZ.mjs → chunk-IBEDYMB6.mjs} +2 -2
- package/dist/chunk-IBEDYMB6.mjs.map +1 -0
- package/dist/{chunk-DC2ZV7KQ.mjs → chunk-II2OQXU4.mjs} +2 -2
- package/dist/chunk-II2OQXU4.mjs.map +1 -0
- package/dist/{chunk-OWUGLCQB.mjs → chunk-J5OJ3I7A.mjs} +2 -2
- package/dist/chunk-J5OJ3I7A.mjs.map +1 -0
- package/dist/{chunk-J3FQSENW.mjs → chunk-JS222K7K.mjs} +2 -2
- package/dist/chunk-JS222K7K.mjs.map +1 -0
- package/dist/{chunk-72AEHTPQ.mjs → chunk-KE7SRYHM.mjs} +2 -2
- package/dist/chunk-KE7SRYHM.mjs.map +1 -0
- package/dist/{chunk-FBST4AUL.mjs → chunk-KQYVNSKA.mjs} +2 -2
- package/dist/chunk-KQYVNSKA.mjs.map +1 -0
- package/dist/{chunk-QLVU73KN.mjs → chunk-KXQVMKFK.mjs} +2 -2
- package/dist/chunk-KXQVMKFK.mjs.map +1 -0
- package/dist/{chunk-TDHR35S7.mjs → chunk-MT3HFVKE.mjs} +2 -2
- package/dist/chunk-MT3HFVKE.mjs.map +1 -0
- package/dist/{chunk-NLXKATXE.mjs → chunk-OHH4ICOH.mjs} +2 -2
- package/dist/chunk-OHH4ICOH.mjs.map +1 -0
- package/dist/{chunk-4ZBMXHD6.mjs → chunk-OHOZ4GTV.mjs} +2 -2
- package/dist/chunk-OHOZ4GTV.mjs.map +1 -0
- package/dist/{chunk-EIIP7YWB.mjs → chunk-OVRHHTSG.mjs} +1 -1
- package/dist/chunk-OVRHHTSG.mjs.map +1 -0
- package/dist/{chunk-XQDGXAAF.mjs → chunk-P7UI3YKU.mjs} +2 -2
- package/dist/chunk-P7UI3YKU.mjs.map +1 -0
- package/dist/{chunk-ODPKEUIR.mjs → chunk-RE7BGAPD.mjs} +2 -2
- package/dist/chunk-RE7BGAPD.mjs.map +1 -0
- package/dist/{chunk-FEOLYD5R.mjs → chunk-RHCU757P.mjs} +2 -2
- package/dist/chunk-RHCU757P.mjs.map +1 -0
- package/dist/{chunk-VLF6DI2U.mjs → chunk-TSHK7TEP.mjs} +3 -3
- package/dist/chunk-TSHK7TEP.mjs.map +1 -0
- package/dist/{chunk-WUFMEPOM.mjs → chunk-VP5SFGCE.mjs} +2 -2
- package/dist/chunk-VP5SFGCE.mjs.map +1 -0
- package/dist/{chunk-VCKLUCOT.mjs → chunk-VPA3WEBS.mjs} +2 -2
- package/dist/chunk-VPA3WEBS.mjs.map +1 -0
- package/dist/{chunk-VIMGYUMQ.mjs → chunk-XPZYZEW2.mjs} +2 -2
- package/dist/chunk-XPZYZEW2.mjs.map +1 -0
- package/dist/{chunk-LB3MK3EU.mjs → chunk-YJBQPGDC.mjs} +2 -2
- package/dist/chunk-YJBQPGDC.mjs.map +1 -0
- package/dist/iter-fest.asyncIteratorDrop.js +1 -1
- package/dist/iter-fest.asyncIteratorDrop.js.map +1 -1
- package/dist/iter-fest.asyncIteratorDrop.mjs +1 -1
- package/dist/iter-fest.asyncIteratorEvery.js +1 -1
- package/dist/iter-fest.asyncIteratorEvery.js.map +1 -1
- package/dist/iter-fest.asyncIteratorEvery.mjs +1 -1
- package/dist/iter-fest.asyncIteratorFilter.js +1 -1
- package/dist/iter-fest.asyncIteratorFilter.js.map +1 -1
- package/dist/iter-fest.asyncIteratorFilter.mjs +1 -1
- package/dist/iter-fest.asyncIteratorFind.js +1 -1
- package/dist/iter-fest.asyncIteratorFind.js.map +1 -1
- package/dist/iter-fest.asyncIteratorFind.mjs +1 -1
- package/dist/iter-fest.asyncIteratorFlatMap.js +1 -1
- package/dist/iter-fest.asyncIteratorFlatMap.js.map +1 -1
- package/dist/iter-fest.asyncIteratorFlatMap.mjs +1 -1
- package/dist/iter-fest.asyncIteratorForEach.js +1 -1
- package/dist/iter-fest.asyncIteratorForEach.js.map +1 -1
- package/dist/iter-fest.asyncIteratorForEach.mjs +1 -1
- package/dist/iter-fest.asyncIteratorFrom.js +1 -1
- package/dist/iter-fest.asyncIteratorFrom.js.map +1 -1
- package/dist/iter-fest.asyncIteratorFrom.mjs +1 -1
- package/dist/iter-fest.asyncIteratorMap.js +1 -1
- package/dist/iter-fest.asyncIteratorMap.js.map +1 -1
- package/dist/iter-fest.asyncIteratorMap.mjs +1 -1
- package/dist/iter-fest.asyncIteratorReduce.js +1 -1
- package/dist/iter-fest.asyncIteratorReduce.js.map +1 -1
- package/dist/iter-fest.asyncIteratorReduce.mjs +1 -1
- package/dist/iter-fest.asyncIteratorSome.js +1 -1
- package/dist/iter-fest.asyncIteratorSome.js.map +1 -1
- package/dist/iter-fest.asyncIteratorSome.mjs +1 -1
- package/dist/iter-fest.asyncIteratorTake.js +1 -1
- package/dist/iter-fest.asyncIteratorTake.js.map +1 -1
- package/dist/iter-fest.asyncIteratorTake.mjs +1 -1
- package/dist/iter-fest.asyncIteratorToArray.js +1 -1
- package/dist/iter-fest.asyncIteratorToArray.js.map +1 -1
- package/dist/iter-fest.asyncIteratorToArray.mjs +1 -1
- package/dist/iter-fest.d.mts +1 -1
- package/dist/iter-fest.d.ts +1 -1
- package/dist/iter-fest.iterableWritableStream.js +1 -1
- package/dist/iter-fest.iterableWritableStream.js.map +1 -1
- package/dist/iter-fest.iterableWritableStream.mjs +1 -1
- package/dist/iter-fest.iteratorDrop.js +1 -1
- package/dist/iter-fest.iteratorDrop.js.map +1 -1
- package/dist/iter-fest.iteratorDrop.mjs +1 -1
- package/dist/iter-fest.iteratorEvery.js +1 -1
- package/dist/iter-fest.iteratorEvery.js.map +1 -1
- package/dist/iter-fest.iteratorEvery.mjs +1 -1
- package/dist/iter-fest.iteratorFilter.js +1 -1
- package/dist/iter-fest.iteratorFilter.js.map +1 -1
- package/dist/iter-fest.iteratorFilter.mjs +1 -1
- package/dist/iter-fest.iteratorFind.js +1 -1
- package/dist/iter-fest.iteratorFind.js.map +1 -1
- package/dist/iter-fest.iteratorFind.mjs +1 -1
- package/dist/iter-fest.iteratorFlatMap.js +1 -1
- package/dist/iter-fest.iteratorFlatMap.js.map +1 -1
- package/dist/iter-fest.iteratorFlatMap.mjs +1 -1
- package/dist/iter-fest.iteratorForEach.js +1 -1
- package/dist/iter-fest.iteratorForEach.js.map +1 -1
- package/dist/iter-fest.iteratorForEach.mjs +1 -1
- package/dist/iter-fest.iteratorFrom.js +1 -1
- package/dist/iter-fest.iteratorFrom.js.map +1 -1
- package/dist/iter-fest.iteratorFrom.mjs +1 -1
- package/dist/iter-fest.iteratorMap.js +1 -1
- package/dist/iter-fest.iteratorMap.js.map +1 -1
- package/dist/iter-fest.iteratorMap.mjs +1 -1
- package/dist/iter-fest.iteratorReduce.js +1 -1
- package/dist/iter-fest.iteratorReduce.js.map +1 -1
- package/dist/iter-fest.iteratorReduce.mjs +1 -1
- package/dist/iter-fest.iteratorSome.js +1 -1
- package/dist/iter-fest.iteratorSome.js.map +1 -1
- package/dist/iter-fest.iteratorSome.mjs +1 -1
- package/dist/iter-fest.iteratorTake.js +1 -1
- package/dist/iter-fest.iteratorTake.js.map +1 -1
- package/dist/iter-fest.iteratorTake.mjs +1 -1
- package/dist/iter-fest.iteratorToArray.js +1 -1
- package/dist/iter-fest.iteratorToArray.js.map +1 -1
- package/dist/iter-fest.iteratorToArray.mjs +1 -1
- package/dist/iter-fest.iteratorToAsync.js +1 -1
- package/dist/iter-fest.iteratorToAsync.js.map +1 -1
- package/dist/iter-fest.iteratorToAsync.mjs +1 -1
- package/dist/iter-fest.js +28 -28
- package/dist/iter-fest.js.map +1 -1
- package/dist/iter-fest.mjs +31 -31
- package/dist/iter-fest.observable.d.mts +1 -1
- package/dist/iter-fest.observable.d.ts +1 -1
- package/dist/iter-fest.observable.js +2 -2
- package/dist/iter-fest.observable.js.map +1 -1
- package/dist/iter-fest.observable.mjs +2 -2
- package/dist/iter-fest.observableFromAsync.d.mts +1 -1
- package/dist/iter-fest.observableFromAsync.d.ts +1 -1
- package/dist/iter-fest.observableFromAsync.js +2 -2
- package/dist/iter-fest.observableFromAsync.js.map +1 -1
- package/dist/iter-fest.observableFromAsync.mjs +3 -3
- package/dist/iter-fest.observableSubscribeAsReadable.d.mts +1 -1
- package/dist/iter-fest.observableSubscribeAsReadable.d.ts +1 -1
- package/dist/iter-fest.observableSubscribeAsReadable.js.map +1 -1
- package/dist/iter-fest.observableSubscribeAsReadable.mjs +1 -1
- package/dist/iter-fest.observableValues.d.mts +1 -1
- package/dist/iter-fest.observableValues.d.ts +1 -1
- package/dist/iter-fest.observableValues.js.map +1 -1
- package/dist/iter-fest.observableValues.mjs +2 -2
- package/dist/iter-fest.symbolObservable.js +1 -1
- package/dist/iter-fest.symbolObservable.js.map +1 -1
- package/dist/iter-fest.symbolObservable.mjs +1 -1
- package/package.json +10 -10
- package/dist/chunk-3S6LCGE6.mjs.map +0 -1
- package/dist/chunk-4RT2FROS.mjs.map +0 -1
- package/dist/chunk-4ZBMXHD6.mjs.map +0 -1
- package/dist/chunk-72AEHTPQ.mjs.map +0 -1
- package/dist/chunk-AOZVPHE4.mjs.map +0 -1
- package/dist/chunk-BWMXKULC.mjs.map +0 -1
- package/dist/chunk-CNKIGQUS.mjs.map +0 -1
- package/dist/chunk-DC2ZV7KQ.mjs.map +0 -1
- package/dist/chunk-EIIP7YWB.mjs.map +0 -1
- package/dist/chunk-FBST4AUL.mjs.map +0 -1
- package/dist/chunk-FEOLYD5R.mjs.map +0 -1
- package/dist/chunk-FMIHIL6A.mjs.map +0 -1
- package/dist/chunk-GFJGWVES.mjs.map +0 -1
- package/dist/chunk-J3FQSENW.mjs.map +0 -1
- package/dist/chunk-JVR6BUJA.mjs.map +0 -1
- package/dist/chunk-K4RCFPTZ.mjs.map +0 -1
- package/dist/chunk-LB3MK3EU.mjs.map +0 -1
- package/dist/chunk-LIMQXDFK.mjs.map +0 -1
- package/dist/chunk-NLXKATXE.mjs.map +0 -1
- package/dist/chunk-ODPKEUIR.mjs.map +0 -1
- package/dist/chunk-OJMT4K3R.mjs.map +0 -1
- package/dist/chunk-OWUGLCQB.mjs.map +0 -1
- package/dist/chunk-QLVU73KN.mjs.map +0 -1
- package/dist/chunk-R6SXIXMH.mjs.map +0 -1
- package/dist/chunk-S2LECQKY.mjs.map +0 -1
- package/dist/chunk-TDHR35S7.mjs.map +0 -1
- package/dist/chunk-VCKLUCOT.mjs.map +0 -1
- package/dist/chunk-VIMGYUMQ.mjs.map +0 -1
- package/dist/chunk-VLF6DI2U.mjs.map +0 -1
- package/dist/chunk-WUFMEPOM.mjs.map +0 -1
- package/dist/chunk-XQDGXAAF.mjs.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/asyncIteratorMap.ts"],"sourcesContent":["// @ts-expect-error core-js-pure is not typed.\nimport map from 'core-js-pure/full/async-iterator/map.js';\n\n/**\n * Calls a defined callback function on each element of an array, and returns an array that contains the results.\n *\n * @param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function asyncIteratorMap<T, U>(\n asyncIterator: AsyncIterator<T>,\n callbackfn: (value: T, index: number) => U\n): AsyncIterableIterator<U> {\n return map(asyncIterator, callbackfn);\n}\n"],"mappings":";AACA,OAAO,SAAS;AAST,SAAS,iBACd,eACA,YAC0B;AAC1B,SAAO,IAAI,eAAe,UAAU;AACtC;","names":[]}
|
|
@@ -33,7 +33,7 @@ __export(asyncIteratorDrop_exports, {
|
|
|
33
33
|
asyncIteratorDrop: () => asyncIteratorDrop
|
|
34
34
|
});
|
|
35
35
|
module.exports = __toCommonJS(asyncIteratorDrop_exports);
|
|
36
|
-
var import_drop = __toESM(require("core-js-pure/full/async-iterator/drop"));
|
|
36
|
+
var import_drop = __toESM(require("core-js-pure/full/async-iterator/drop.js"));
|
|
37
37
|
function asyncIteratorDrop(asyncIterator, limit) {
|
|
38
38
|
return (0, import_drop.default)(asyncIterator, limit);
|
|
39
39
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/asyncIteratorDrop.ts"],"sourcesContent":["// @ts-expect-error core-js-pure is not typed.\nimport drop from 'core-js-pure/full/async-iterator/drop';\n\n/**\n * `drop` takes an integer as an argument. It skips the given number of elements produced by the underlying iterator before itself producing any remaining elements.\n *\n * @param limit\n *\n * @return Returns an iterator of items after the limit.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function asyncIteratorDrop<T>(asyncIterator: AsyncIterator<T>, limit: number): AsyncIterator<T> {\n return drop(asyncIterator, limit);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,kBAAiB;AAWV,SAAS,kBAAqB,eAAiC,OAAiC;AACrG,aAAO,YAAAA,SAAK,eAAe,KAAK;AAClC;","names":["drop"]}
|
|
1
|
+
{"version":3,"sources":["../src/asyncIteratorDrop.ts"],"sourcesContent":["// @ts-expect-error core-js-pure is not typed.\nimport drop from 'core-js-pure/full/async-iterator/drop.js';\n\n/**\n * `drop` takes an integer as an argument. It skips the given number of elements produced by the underlying iterator before itself producing any remaining elements.\n *\n * @param limit\n *\n * @return Returns an iterator of items after the limit.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function asyncIteratorDrop<T>(asyncIterator: AsyncIterator<T>, limit: number): AsyncIterator<T> {\n return drop(asyncIterator, limit);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,kBAAiB;AAWV,SAAS,kBAAqB,eAAiC,OAAiC;AACrG,aAAO,YAAAA,SAAK,eAAe,KAAK;AAClC;","names":["drop"]}
|
|
@@ -33,7 +33,7 @@ __export(asyncIteratorEvery_exports, {
|
|
|
33
33
|
asyncIteratorEvery: () => asyncIteratorEvery
|
|
34
34
|
});
|
|
35
35
|
module.exports = __toCommonJS(asyncIteratorEvery_exports);
|
|
36
|
-
var import_every = __toESM(require("core-js-pure/full/async-iterator/every"));
|
|
36
|
+
var import_every = __toESM(require("core-js-pure/full/async-iterator/every.js"));
|
|
37
37
|
function asyncIteratorEvery(iterator, predicate) {
|
|
38
38
|
return (0, import_every.default)(iterator, predicate);
|
|
39
39
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/asyncIteratorEvery.ts"],"sourcesContent":["// @ts-expect-error core-js-pure is not typed.\nimport every from 'core-js-pure/full/async-iterator/every';\n\n/**\n * Determines whether all the members of an iterator satisfy the specified test.\n *\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the iterator until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the iterator.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function asyncIteratorEvery<T>(\n asyncIterator: AsyncIterator<T>,\n predicate: (value: T, index: number) => Promise<boolean>\n): Promise<boolean>;\n\n/**\n * Determines whether all the members of an iterator satisfy the specified test.\n *\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the iterator until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the iterator.\n *\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function asyncIteratorEvery<T>(\n iterator: AsyncIterator<T>,\n predicate: (value: T, index: number) => Promise<unknown>\n): Promise<boolean>;\n\nexport function asyncIteratorEvery<T>(\n iterator: AsyncIterator<T>,\n predicate: (value: T, index: number) => Promise<unknown>\n): Promise<boolean> {\n return every(iterator, predicate);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,mBAAkB;AAiCX,SAAS,mBACd,UACA,WACkB;AAClB,aAAO,aAAAA,SAAM,UAAU,SAAS;AAClC;","names":["every"]}
|
|
1
|
+
{"version":3,"sources":["../src/asyncIteratorEvery.ts"],"sourcesContent":["// @ts-expect-error core-js-pure is not typed.\nimport every from 'core-js-pure/full/async-iterator/every.js';\n\n/**\n * Determines whether all the members of an iterator satisfy the specified test.\n *\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the iterator until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the iterator.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function asyncIteratorEvery<T>(\n asyncIterator: AsyncIterator<T>,\n predicate: (value: T, index: number) => Promise<boolean>\n): Promise<boolean>;\n\n/**\n * Determines whether all the members of an iterator satisfy the specified test.\n *\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the iterator until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the iterator.\n *\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function asyncIteratorEvery<T>(\n iterator: AsyncIterator<T>,\n predicate: (value: T, index: number) => Promise<unknown>\n): Promise<boolean>;\n\nexport function asyncIteratorEvery<T>(\n iterator: AsyncIterator<T>,\n predicate: (value: T, index: number) => Promise<unknown>\n): Promise<boolean> {\n return every(iterator, predicate);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,mBAAkB;AAiCX,SAAS,mBACd,UACA,WACkB;AAClB,aAAO,aAAAA,SAAM,UAAU,SAAS;AAClC;","names":["every"]}
|
|
@@ -33,7 +33,7 @@ __export(asyncIteratorFilter_exports, {
|
|
|
33
33
|
asyncIteratorFilter: () => asyncIteratorFilter
|
|
34
34
|
});
|
|
35
35
|
module.exports = __toCommonJS(asyncIteratorFilter_exports);
|
|
36
|
-
var import_filter = __toESM(require("core-js-pure/full/async-iterator/filter"));
|
|
36
|
+
var import_filter = __toESM(require("core-js-pure/full/async-iterator/filter.js"));
|
|
37
37
|
function asyncIteratorFilter(asyncIterator, predicate) {
|
|
38
38
|
return (0, import_filter.default)(asyncIterator, predicate);
|
|
39
39
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/asyncIteratorFilter.ts"],"sourcesContent":["// @ts-expect-error core-js-pure is not typed.\nimport filter from 'core-js-pure/full/async-iterator/filter';\n\n/**\n * Returns the elements of an iterator that meet the condition specified in a callback function.\n *\n * @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the iterator.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function asyncIteratorFilter<T, S extends T>(\n asyncIterator: AsyncIterator<T>,\n predicate: (value: T, index: number) => value is S\n): AsyncIterableIterator<S>;\n\n/**\n * Returns the elements of an iterator that meet the condition specified in a callback function.\n *\n * @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the iterator.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function asyncIteratorFilter<T>(\n asyncIterator: AsyncIterator<T>,\n predicate: (value: T, index: number) => unknown\n): AsyncIterableIterator<T>;\n\nexport function asyncIteratorFilter<T, S extends T>(\n asyncIterator: AsyncIterator<T>,\n predicate: (value: T, index: number) => unknown\n): AsyncIterableIterator<S> {\n return filter(asyncIterator, predicate);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,oBAAmB;AA0BZ,SAAS,oBACd,eACA,WAC0B;AAC1B,aAAO,cAAAA,SAAO,eAAe,SAAS;AACxC;","names":["filter"]}
|
|
1
|
+
{"version":3,"sources":["../src/asyncIteratorFilter.ts"],"sourcesContent":["// @ts-expect-error core-js-pure is not typed.\nimport filter from 'core-js-pure/full/async-iterator/filter.js';\n\n/**\n * Returns the elements of an iterator that meet the condition specified in a callback function.\n *\n * @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the iterator.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function asyncIteratorFilter<T, S extends T>(\n asyncIterator: AsyncIterator<T>,\n predicate: (value: T, index: number) => value is S\n): AsyncIterableIterator<S>;\n\n/**\n * Returns the elements of an iterator that meet the condition specified in a callback function.\n *\n * @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the iterator.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function asyncIteratorFilter<T>(\n asyncIterator: AsyncIterator<T>,\n predicate: (value: T, index: number) => unknown\n): AsyncIterableIterator<T>;\n\nexport function asyncIteratorFilter<T, S extends T>(\n asyncIterator: AsyncIterator<T>,\n predicate: (value: T, index: number) => unknown\n): AsyncIterableIterator<S> {\n return filter(asyncIterator, predicate);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,oBAAmB;AA0BZ,SAAS,oBACd,eACA,WAC0B;AAC1B,aAAO,cAAAA,SAAO,eAAe,SAAS;AACxC;","names":["filter"]}
|
|
@@ -33,7 +33,7 @@ __export(asyncIteratorFind_exports, {
|
|
|
33
33
|
asyncIteratorFind: () => asyncIteratorFind
|
|
34
34
|
});
|
|
35
35
|
module.exports = __toCommonJS(asyncIteratorFind_exports);
|
|
36
|
-
var import_find = __toESM(require("core-js-pure/full/async-iterator/find"));
|
|
36
|
+
var import_find = __toESM(require("core-js-pure/full/async-iterator/find.js"));
|
|
37
37
|
function asyncIteratorFind(asyncIterator, predicate) {
|
|
38
38
|
return (0, import_find.default)(asyncIterator, predicate);
|
|
39
39
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/asyncIteratorFind.ts"],"sourcesContent":["// @ts-expect-error core-js-pure is not typed.\nimport find from 'core-js-pure/full/async-iterator/find';\n\n/**\n * Returns the value of the first element in the iterator where predicate is true, and undefined\n * otherwise.\n *\n * @param predicate find calls predicate once for each element of the iterator, in ascending\n * order, until it finds one where predicate returns true. If such an element is found, find\n * immediately returns that element value. Otherwise, find returns undefined.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function asyncIteratorFind<T, S extends T>(\n asyncIterator: AsyncIterator<T>,\n predicate: (value: T, index: number) => Promise<boolean>\n): Promise<S | undefined>;\n\nexport function asyncIteratorFind<T>(\n asyncIterator: AsyncIterator<T>,\n predicate: (value: T, index: number) => Promise<unknown>\n): Promise<T | undefined>;\n\nexport function asyncIteratorFind<T, S extends T>(\n asyncIterator: AsyncIterator<T>,\n predicate: (value: T, index: number) => Promise<unknown>\n): Promise<S | undefined> {\n return find(asyncIterator, predicate);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,kBAAiB;AAsBV,SAAS,kBACd,eACA,WACwB;AACxB,aAAO,YAAAA,SAAK,eAAe,SAAS;AACtC;","names":["find"]}
|
|
1
|
+
{"version":3,"sources":["../src/asyncIteratorFind.ts"],"sourcesContent":["// @ts-expect-error core-js-pure is not typed.\nimport find from 'core-js-pure/full/async-iterator/find.js';\n\n/**\n * Returns the value of the first element in the iterator where predicate is true, and undefined\n * otherwise.\n *\n * @param predicate find calls predicate once for each element of the iterator, in ascending\n * order, until it finds one where predicate returns true. If such an element is found, find\n * immediately returns that element value. Otherwise, find returns undefined.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function asyncIteratorFind<T, S extends T>(\n asyncIterator: AsyncIterator<T>,\n predicate: (value: T, index: number) => Promise<boolean>\n): Promise<S | undefined>;\n\nexport function asyncIteratorFind<T>(\n asyncIterator: AsyncIterator<T>,\n predicate: (value: T, index: number) => Promise<unknown>\n): Promise<T | undefined>;\n\nexport function asyncIteratorFind<T, S extends T>(\n asyncIterator: AsyncIterator<T>,\n predicate: (value: T, index: number) => Promise<unknown>\n): Promise<S | undefined> {\n return find(asyncIterator, predicate);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,kBAAiB;AAsBV,SAAS,kBACd,eACA,WACwB;AACxB,aAAO,YAAAA,SAAK,eAAe,SAAS;AACtC;","names":["find"]}
|
|
@@ -33,7 +33,7 @@ __export(asyncIteratorFlatMap_exports, {
|
|
|
33
33
|
asyncIteratorFlatMap: () => asyncIteratorFlatMap
|
|
34
34
|
});
|
|
35
35
|
module.exports = __toCommonJS(asyncIteratorFlatMap_exports);
|
|
36
|
-
var import_flat_map = __toESM(require("core-js-pure/full/async-iterator/flat-map"));
|
|
36
|
+
var import_flat_map = __toESM(require("core-js-pure/full/async-iterator/flat-map.js"));
|
|
37
37
|
function asyncIteratorFlatMap(asyncIterator, mapperFn) {
|
|
38
38
|
return (0, import_flat_map.default)(asyncIterator, mapperFn);
|
|
39
39
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/asyncIteratorFlatMap.ts"],"sourcesContent":["// @ts-expect-error core-js-pure is not typed.\nimport flatMap from 'core-js-pure/full/async-iterator/flat-map';\n\n/**\n * `.flatMap` takes a mapping function as an argument. It returns an iterator that produces all elements of the iterators produced by applying the mapping function to the elements produced by the underlying iterator.\n *\n * @param mapperFn\n *\n * @return Returns an iterator of flat values.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function asyncIteratorFlatMap<T, U>(\n asyncIterator: AsyncIterator<T>,\n mapperFn: (value: T, index: number) => Promise<U>\n): AsyncIterator<T> {\n return flatMap(asyncIterator, mapperFn);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,sBAAoB;AAWb,SAAS,qBACd,eACA,UACkB;AAClB,aAAO,gBAAAA,SAAQ,eAAe,QAAQ;AACxC;","names":["flatMap"]}
|
|
1
|
+
{"version":3,"sources":["../src/asyncIteratorFlatMap.ts"],"sourcesContent":["// @ts-expect-error core-js-pure is not typed.\nimport flatMap from 'core-js-pure/full/async-iterator/flat-map.js';\n\n/**\n * `.flatMap` takes a mapping function as an argument. It returns an iterator that produces all elements of the iterators produced by applying the mapping function to the elements produced by the underlying iterator.\n *\n * @param mapperFn\n *\n * @return Returns an iterator of flat values.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function asyncIteratorFlatMap<T, U>(\n asyncIterator: AsyncIterator<T>,\n mapperFn: (value: T, index: number) => Promise<U>\n): AsyncIterator<T> {\n return flatMap(asyncIterator, mapperFn);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,sBAAoB;AAWb,SAAS,qBACd,eACA,UACkB;AAClB,aAAO,gBAAAA,SAAQ,eAAe,QAAQ;AACxC;","names":["flatMap"]}
|
|
@@ -33,7 +33,7 @@ __export(asyncIteratorForEach_exports, {
|
|
|
33
33
|
asyncIteratorForEach: () => asyncIteratorForEach
|
|
34
34
|
});
|
|
35
35
|
module.exports = __toCommonJS(asyncIteratorForEach_exports);
|
|
36
|
-
var import_for_each = __toESM(require("core-js-pure/full/async-iterator/for-each"));
|
|
36
|
+
var import_for_each = __toESM(require("core-js-pure/full/async-iterator/for-each.js"));
|
|
37
37
|
function asyncIteratorForEach(asyncIterator, callbackfn) {
|
|
38
38
|
return (0, import_for_each.default)(asyncIterator, callbackfn);
|
|
39
39
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/asyncIteratorForEach.ts"],"sourcesContent":["// @ts-expect-error core-js-pure is not typed.\nimport forEach from 'core-js-pure/full/async-iterator/for-each';\n\n/**\n * Performs the specified action for each element in an iterator.\n *\n * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the iterator.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function asyncIteratorForEach<T>(\n asyncIterator: AsyncIterator<T>,\n callbackfn: (value: T, index: number) => Promise<void>\n): Promise<void> {\n return forEach(asyncIterator, callbackfn);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,sBAAoB;AASb,SAAS,qBACd,eACA,YACe;AACf,aAAO,gBAAAA,SAAQ,eAAe,UAAU;AAC1C;","names":["forEach"]}
|
|
1
|
+
{"version":3,"sources":["../src/asyncIteratorForEach.ts"],"sourcesContent":["// @ts-expect-error core-js-pure is not typed.\nimport forEach from 'core-js-pure/full/async-iterator/for-each.js';\n\n/**\n * Performs the specified action for each element in an iterator.\n *\n * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the iterator.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function asyncIteratorForEach<T>(\n asyncIterator: AsyncIterator<T>,\n callbackfn: (value: T, index: number) => Promise<void>\n): Promise<void> {\n return forEach(asyncIterator, callbackfn);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,sBAAoB;AASb,SAAS,qBACd,eACA,YACe;AACf,aAAO,gBAAAA,SAAQ,eAAe,UAAU;AAC1C;","names":["forEach"]}
|
|
@@ -33,7 +33,7 @@ __export(asyncIteratorFrom_exports, {
|
|
|
33
33
|
asyncIteratorFrom: () => asyncIteratorFrom
|
|
34
34
|
});
|
|
35
35
|
module.exports = __toCommonJS(asyncIteratorFrom_exports);
|
|
36
|
-
var import_from = __toESM(require("core-js-pure/full/async-iterator/from"));
|
|
36
|
+
var import_from = __toESM(require("core-js-pure/full/async-iterator/from.js"));
|
|
37
37
|
function asyncIteratorFrom(asyncIteratorLike) {
|
|
38
38
|
return (0, import_from.default)(asyncIteratorLike);
|
|
39
39
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/asyncIteratorFrom.ts"],"sourcesContent":["// @ts-expect-error core-js-pure is not typed.\nimport from from 'core-js-pure/full/async-iterator/from';\n\n/**\n * `.from` is a static method (unlike the others listed above) which takes an object as an argument. This method allows wrapping \"iterator-like\" objects with an iterator.\n *\n * @return Returns the object if it is already an iterator, returns a wrapping iterator if the passed object implements a callable @@iterator property.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function asyncIteratorFrom<T>(asyncIteratorLike: Pick<AsyncIterator<T>, 'next'>): AsyncIterator<T> {\n return from(asyncIteratorLike);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,kBAAiB;AASV,SAAS,kBAAqB,mBAAqE;AACxG,aAAO,YAAAA,SAAK,iBAAiB;AAC/B;","names":["from"]}
|
|
1
|
+
{"version":3,"sources":["../src/asyncIteratorFrom.ts"],"sourcesContent":["// @ts-expect-error core-js-pure is not typed.\nimport from from 'core-js-pure/full/async-iterator/from.js';\n\n/**\n * `.from` is a static method (unlike the others listed above) which takes an object as an argument. This method allows wrapping \"iterator-like\" objects with an iterator.\n *\n * @return Returns the object if it is already an iterator, returns a wrapping iterator if the passed object implements a callable @@iterator property.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function asyncIteratorFrom<T>(asyncIteratorLike: Pick<AsyncIterator<T>, 'next'>): AsyncIterator<T> {\n return from(asyncIteratorLike);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,kBAAiB;AASV,SAAS,kBAAqB,mBAAqE;AACxG,aAAO,YAAAA,SAAK,iBAAiB;AAC/B;","names":["from"]}
|
|
@@ -33,7 +33,7 @@ __export(asyncIteratorMap_exports, {
|
|
|
33
33
|
asyncIteratorMap: () => asyncIteratorMap
|
|
34
34
|
});
|
|
35
35
|
module.exports = __toCommonJS(asyncIteratorMap_exports);
|
|
36
|
-
var import_map = __toESM(require("core-js-pure/full/async-iterator/map"));
|
|
36
|
+
var import_map = __toESM(require("core-js-pure/full/async-iterator/map.js"));
|
|
37
37
|
function asyncIteratorMap(asyncIterator, callbackfn) {
|
|
38
38
|
return (0, import_map.default)(asyncIterator, callbackfn);
|
|
39
39
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/asyncIteratorMap.ts"],"sourcesContent":["// @ts-expect-error core-js-pure is not typed.\nimport map from 'core-js-pure/full/async-iterator/map';\n\n/**\n * Calls a defined callback function on each element of an array, and returns an array that contains the results.\n *\n * @param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function asyncIteratorMap<T, U>(\n asyncIterator: AsyncIterator<T>,\n callbackfn: (value: T, index: number) => U\n): AsyncIterableIterator<U> {\n return map(asyncIterator, callbackfn);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,iBAAgB;AAST,SAAS,iBACd,eACA,YAC0B;AAC1B,aAAO,WAAAA,SAAI,eAAe,UAAU;AACtC;","names":["map"]}
|
|
1
|
+
{"version":3,"sources":["../src/asyncIteratorMap.ts"],"sourcesContent":["// @ts-expect-error core-js-pure is not typed.\nimport map from 'core-js-pure/full/async-iterator/map.js';\n\n/**\n * Calls a defined callback function on each element of an array, and returns an array that contains the results.\n *\n * @param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function asyncIteratorMap<T, U>(\n asyncIterator: AsyncIterator<T>,\n callbackfn: (value: T, index: number) => U\n): AsyncIterableIterator<U> {\n return map(asyncIterator, callbackfn);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,iBAAgB;AAST,SAAS,iBACd,eACA,YAC0B;AAC1B,aAAO,WAAAA,SAAI,eAAe,UAAU;AACtC;","names":["map"]}
|
|
@@ -33,7 +33,7 @@ __export(asyncIteratorReduce_exports, {
|
|
|
33
33
|
asyncIteratorReduce: () => asyncIteratorReduce
|
|
34
34
|
});
|
|
35
35
|
module.exports = __toCommonJS(asyncIteratorReduce_exports);
|
|
36
|
-
var import_reduce = __toESM(require("core-js-pure/full/async-iterator/reduce"));
|
|
36
|
+
var import_reduce = __toESM(require("core-js-pure/full/async-iterator/reduce.js"));
|
|
37
37
|
function asyncIteratorReduce(asyncIterator, callbackfn, initialValue) {
|
|
38
38
|
return (0, import_reduce.default)(asyncIterator, callbackfn, initialValue);
|
|
39
39
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/asyncIteratorReduce.ts"],"sourcesContent":["// @ts-expect-error core-js-pure is not typed.\nimport reduce from 'core-js-pure/full/async-iterator/reduce';\n\n/**\n * Calls the specified callback function for all the elements in an iterator. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\n *\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the iterator.\n *\n * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an iterator value.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function asyncIteratorReduce<T>(\n asyncIterator: AsyncIterator<T>,\n callbackfn: (previousValue: T, currentValue: T, currentIndex: number) => Promise<T>\n): Promise<T>;\n\nexport function asyncIteratorReduce<T>(\n asyncIterator: AsyncIterator<T>,\n callbackfn: (previousValue: T, currentValue: T, currentIndex: number) => Promise<T>,\n initialValue: T\n): T;\n\n/**\n * Calls the specified callback function for all the elements in an iterator. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\n *\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the iterator.\n *\n * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function asyncIteratorReduce<T, U>(\n asyncIterator: AsyncIterator<T>,\n callbackfn: (previousValue: U, currentValue: T, currentIndex: number) => Promise<U>,\n initialValue: U\n): U;\n\nexport function asyncIteratorReduce<T, U = undefined>(\n asyncIterator: AsyncIterator<T>,\n callbackfn: (previousValue: U | undefined, currentValue: T, currentIndex: number) => Promise<U>,\n initialValue?: U\n): Promise<U | undefined> {\n return reduce(asyncIterator, callbackfn, initialValue);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,oBAAmB;AAqCZ,SAAS,oBACd,eACA,YACA,cACwB;AACxB,aAAO,cAAAA,SAAO,eAAe,YAAY,YAAY;AACvD;","names":["reduce"]}
|
|
1
|
+
{"version":3,"sources":["../src/asyncIteratorReduce.ts"],"sourcesContent":["// @ts-expect-error core-js-pure is not typed.\nimport reduce from 'core-js-pure/full/async-iterator/reduce.js';\n\n/**\n * Calls the specified callback function for all the elements in an iterator. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\n *\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the iterator.\n *\n * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an iterator value.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function asyncIteratorReduce<T>(\n asyncIterator: AsyncIterator<T>,\n callbackfn: (previousValue: T, currentValue: T, currentIndex: number) => Promise<T>\n): Promise<T>;\n\nexport function asyncIteratorReduce<T>(\n asyncIterator: AsyncIterator<T>,\n callbackfn: (previousValue: T, currentValue: T, currentIndex: number) => Promise<T>,\n initialValue: T\n): T;\n\n/**\n * Calls the specified callback function for all the elements in an iterator. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\n *\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the iterator.\n *\n * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function asyncIteratorReduce<T, U>(\n asyncIterator: AsyncIterator<T>,\n callbackfn: (previousValue: U, currentValue: T, currentIndex: number) => Promise<U>,\n initialValue: U\n): U;\n\nexport function asyncIteratorReduce<T, U = undefined>(\n asyncIterator: AsyncIterator<T>,\n callbackfn: (previousValue: U | undefined, currentValue: T, currentIndex: number) => Promise<U>,\n initialValue?: U\n): Promise<U | undefined> {\n return reduce(asyncIterator, callbackfn, initialValue);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,oBAAmB;AAqCZ,SAAS,oBACd,eACA,YACA,cACwB;AACxB,aAAO,cAAAA,SAAO,eAAe,YAAY,YAAY;AACvD;","names":["reduce"]}
|
|
@@ -33,7 +33,7 @@ __export(asyncIteratorSome_exports, {
|
|
|
33
33
|
asyncIteratorSome: () => asyncIteratorSome
|
|
34
34
|
});
|
|
35
35
|
module.exports = __toCommonJS(asyncIteratorSome_exports);
|
|
36
|
-
var import_some = __toESM(require("core-js-pure/full/async-iterator/some"));
|
|
36
|
+
var import_some = __toESM(require("core-js-pure/full/async-iterator/some.js"));
|
|
37
37
|
function asyncIteratorSome(asyncIterator, predicate) {
|
|
38
38
|
return (0, import_some.default)(asyncIterator, predicate);
|
|
39
39
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/asyncIteratorSome.ts"],"sourcesContent":["// @ts-expect-error core-js-pure is not typed.\nimport some from 'core-js-pure/full/async-iterator/some';\n\n/**\n * Determines whether the specified callback function returns true for any element of an iterable.\n *\n * @param predicate A function that accepts up to three arguments. The some method calls the predicate function for each element in the iterable until the predicate returns a value which is coercible to the Boolean value true, or until the end of the iterable.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function asyncIteratorSome<T>(\n asyncIterator: AsyncIterator<T>,\n predicate: (value: T, index: number) => Promise<unknown>\n): Promise<boolean> {\n return some(asyncIterator, predicate);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,kBAAiB;AASV,SAAS,kBACd,eACA,WACkB;AAClB,aAAO,YAAAA,SAAK,eAAe,SAAS;AACtC;","names":["some"]}
|
|
1
|
+
{"version":3,"sources":["../src/asyncIteratorSome.ts"],"sourcesContent":["// @ts-expect-error core-js-pure is not typed.\nimport some from 'core-js-pure/full/async-iterator/some.js';\n\n/**\n * Determines whether the specified callback function returns true for any element of an iterable.\n *\n * @param predicate A function that accepts up to three arguments. The some method calls the predicate function for each element in the iterable until the predicate returns a value which is coercible to the Boolean value true, or until the end of the iterable.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function asyncIteratorSome<T>(\n asyncIterator: AsyncIterator<T>,\n predicate: (value: T, index: number) => Promise<unknown>\n): Promise<boolean> {\n return some(asyncIterator, predicate);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,kBAAiB;AASV,SAAS,kBACd,eACA,WACkB;AAClB,aAAO,YAAAA,SAAK,eAAe,SAAS;AACtC;","names":["some"]}
|
|
@@ -33,7 +33,7 @@ __export(asyncIteratorTake_exports, {
|
|
|
33
33
|
asyncIteratorTake: () => asyncIteratorTake
|
|
34
34
|
});
|
|
35
35
|
module.exports = __toCommonJS(asyncIteratorTake_exports);
|
|
36
|
-
var import_take = __toESM(require("core-js-pure/full/async-iterator/take"));
|
|
36
|
+
var import_take = __toESM(require("core-js-pure/full/async-iterator/take.js"));
|
|
37
37
|
function asyncIteratorTake(asyncIterator, limit) {
|
|
38
38
|
return (0, import_take.default)(asyncIterator, limit);
|
|
39
39
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/asyncIteratorTake.ts"],"sourcesContent":["// @ts-expect-error core-js-pure is not typed.\nimport take from 'core-js-pure/full/async-iterator/take';\n\n/**\n * `take` takes an integer as an argument. It returns an iterator that produces, at most, the given number of elements produced by the underlying iterator.\n *\n * @param limit\n *\n * @return Returns an iterator with items from the original iterator from 0 until the limit.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function asyncIteratorTake<T>(asyncIterator: AsyncIterator<T>, limit: number): AsyncIterator<T> {\n return take(asyncIterator, limit);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,kBAAiB;AAWV,SAAS,kBAAqB,eAAiC,OAAiC;AACrG,aAAO,YAAAA,SAAK,eAAe,KAAK;AAClC;","names":["take"]}
|
|
1
|
+
{"version":3,"sources":["../src/asyncIteratorTake.ts"],"sourcesContent":["// @ts-expect-error core-js-pure is not typed.\nimport take from 'core-js-pure/full/async-iterator/take.js';\n\n/**\n * `take` takes an integer as an argument. It returns an iterator that produces, at most, the given number of elements produced by the underlying iterator.\n *\n * @param limit\n *\n * @return Returns an iterator with items from the original iterator from 0 until the limit.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function asyncIteratorTake<T>(asyncIterator: AsyncIterator<T>, limit: number): AsyncIterator<T> {\n return take(asyncIterator, limit);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,kBAAiB;AAWV,SAAS,kBAAqB,eAAiC,OAAiC;AACrG,aAAO,YAAAA,SAAK,eAAe,KAAK;AAClC;","names":["take"]}
|
|
@@ -33,7 +33,7 @@ __export(asyncIteratorToArray_exports, {
|
|
|
33
33
|
asyncIteratorToArray: () => asyncIteratorToArray
|
|
34
34
|
});
|
|
35
35
|
module.exports = __toCommonJS(asyncIteratorToArray_exports);
|
|
36
|
-
var import_to_array = __toESM(require("core-js-pure/full/async-iterator/to-array"));
|
|
36
|
+
var import_to_array = __toESM(require("core-js-pure/full/async-iterator/to-array.js"));
|
|
37
37
|
function asyncIteratorToArray(asyncIteratorLike) {
|
|
38
38
|
return (0, import_to_array.default)(asyncIteratorLike);
|
|
39
39
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/asyncIteratorToArray.ts"],"sourcesContent":["// @ts-expect-error core-js-pure is not typed.\nimport toArray from 'core-js-pure/full/async-iterator/to-array';\n\n/**\n * When you have a non-infinite iterator which you wish to transform into an array, you can do so with the builtin toArray method.\n *\n * @return Returns an Array containing the values from the iterator.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function asyncIteratorToArray<T>(asyncIteratorLike: Pick<AsyncIterator<T>, 'next'>): Promise<T[]> {\n return toArray(asyncIteratorLike);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,sBAAoB;AASb,SAAS,qBAAwB,mBAAiE;AACvG,aAAO,gBAAAA,SAAQ,iBAAiB;AAClC;","names":["toArray"]}
|
|
1
|
+
{"version":3,"sources":["../src/asyncIteratorToArray.ts"],"sourcesContent":["// @ts-expect-error core-js-pure is not typed.\nimport toArray from 'core-js-pure/full/async-iterator/to-array.js';\n\n/**\n * When you have a non-infinite iterator which you wish to transform into an array, you can do so with the builtin toArray method.\n *\n * @return Returns an Array containing the values from the iterator.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function asyncIteratorToArray<T>(asyncIteratorLike: Pick<AsyncIterator<T>, 'next'>): Promise<T[]> {\n return toArray(asyncIteratorLike);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,sBAAoB;AASb,SAAS,qBAAwB,mBAAiE;AACvG,aAAO,gBAAAA,SAAQ,iBAAiB;AAClC;","names":["toArray"]}
|
package/dist/iter-fest.d.mts
CHANGED
|
@@ -48,4 +48,4 @@ export { observableSubscribeAsReadable } from './iter-fest.observableSubscribeAs
|
|
|
48
48
|
export { observableValues } from './iter-fest.observableValues.mjs';
|
|
49
49
|
export { readableStreamFrom } from './iter-fest.readableStreamFrom.mjs';
|
|
50
50
|
export { readableStreamValues } from './iter-fest.readableStreamValues.mjs';
|
|
51
|
-
import 'core-js-pure/full/observable';
|
|
51
|
+
import 'core-js-pure/full/observable/index.js';
|
package/dist/iter-fest.d.ts
CHANGED
|
@@ -48,4 +48,4 @@ export { observableSubscribeAsReadable } from './iter-fest.observableSubscribeAs
|
|
|
48
48
|
export { observableValues } from './iter-fest.observableValues.js';
|
|
49
49
|
export { readableStreamFrom } from './iter-fest.readableStreamFrom.js';
|
|
50
50
|
export { readableStreamValues } from './iter-fest.readableStreamValues.js';
|
|
51
|
-
import 'core-js-pure/full/observable';
|
|
51
|
+
import 'core-js-pure/full/observable/index.js';
|
|
@@ -35,7 +35,7 @@ __export(iterableWritableStream_exports, {
|
|
|
35
35
|
module.exports = __toCommonJS(iterableWritableStream_exports);
|
|
36
36
|
|
|
37
37
|
// src/private/withResolvers.ts
|
|
38
|
-
var import_with_resolvers = __toESM(require("core-js-pure/full/promise/with-resolvers"));
|
|
38
|
+
var import_with_resolvers = __toESM(require("core-js-pure/full/promise/with-resolvers.js"));
|
|
39
39
|
function withResolvers() {
|
|
40
40
|
return (0, import_with_resolvers.default)();
|
|
41
41
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/iterableWritableStream.ts","../src/private/withResolvers.ts"],"sourcesContent":["import withResolvers from './private/withResolvers';\n\nconst CLOSE = Symbol();\n\nexport class IterableWritableStream<T> extends WritableStream<T> {\n constructor() {\n super({\n close: () => {\n this.#buffer.push(CLOSE);\n this.#writeResolvers.resolve();\n },\n write: (chunk: T) => {\n this.#buffer.push(chunk);\n this.#writeResolvers.resolve();\n this.#writeResolvers = withResolvers();\n }\n });\n }\n\n #buffer: (T | typeof CLOSE)[] = [];\n #writeResolvers: PromiseWithResolvers<void> = withResolvers();\n\n [Symbol.asyncIterator](): AsyncIterator<T> {\n return {\n next: async () => {\n while (!this.#buffer.length) {\n await this.#writeResolvers.promise;\n }\n\n const value = this.#buffer[0] as T | typeof CLOSE;\n\n if (value === CLOSE) {\n return { done: true, value: undefined };\n }\n\n // If it is not CLOSE, remove it from the queue.\n this.#buffer.shift();\n\n // Idle here so concurrent iteration has a chance to pick up the next value in a round robin fashion.\n await undefined;\n\n return { done: false, value };\n }\n };\n }\n}\n","// @ts-expect-error \"core-js\" is not typed.\nimport coreJSPromiseWithResolvers from 'core-js-pure/full/promise/with-resolvers';\n\nexport default function withResolvers<T>(): PromiseWithResolvers<T> {\n return coreJSPromiseWithResolvers();\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACCA,4BAAuC;AAExB,SAAR,gBAA6D;AAClE,aAAO,sBAAAA,SAA2B;AACpC;;;ADHA,IAAM,QAAQ,OAAO;AAEd,IAAM,yBAAN,cAAwC,eAAkB;AAAA,EAC/D,cAAc;AACZ,UAAM;AAAA,MACJ,OAAO,MAAM;AACX,aAAK,QAAQ,KAAK,KAAK;AACvB,aAAK,gBAAgB,QAAQ;AAAA,MAC/B;AAAA,MACA,OAAO,CAAC,UAAa;AACnB,aAAK,QAAQ,KAAK,KAAK;AACvB,aAAK,gBAAgB,QAAQ;AAC7B,aAAK,kBAAkB,cAAc;AAAA,MACvC;AAAA,IACF,CAAC;AAAA,EACH;AAAA,EAEA,UAAgC,CAAC;AAAA,EACjC,kBAA8C,cAAc;AAAA,EAE5D,CAAC,OAAO,aAAa,IAAsB;AACzC,WAAO;AAAA,MACL,MAAM,YAAY;AAChB,eAAO,CAAC,KAAK,QAAQ,QAAQ;AAC3B,gBAAM,KAAK,gBAAgB;AAAA,QAC7B;AAEA,cAAM,QAAQ,KAAK,QAAQ,CAAC;AAE5B,YAAI,UAAU,OAAO;AACnB,iBAAO,EAAE,MAAM,MAAM,OAAO,OAAU;AAAA,QACxC;AAGA,aAAK,QAAQ,MAAM;AAGnB,cAAM;AAEN,eAAO,EAAE,MAAM,OAAO,MAAM;AAAA,MAC9B;AAAA,IACF;AAAA,EACF;AACF;","names":["coreJSPromiseWithResolvers"]}
|
|
1
|
+
{"version":3,"sources":["../src/iterableWritableStream.ts","../src/private/withResolvers.ts"],"sourcesContent":["import withResolvers from './private/withResolvers';\n\nconst CLOSE = Symbol();\n\nexport class IterableWritableStream<T> extends WritableStream<T> {\n constructor() {\n super({\n close: () => {\n this.#buffer.push(CLOSE);\n this.#writeResolvers.resolve();\n },\n write: (chunk: T) => {\n this.#buffer.push(chunk);\n this.#writeResolvers.resolve();\n this.#writeResolvers = withResolvers();\n }\n });\n }\n\n #buffer: (T | typeof CLOSE)[] = [];\n #writeResolvers: PromiseWithResolvers<void> = withResolvers();\n\n [Symbol.asyncIterator](): AsyncIterator<T> {\n return {\n next: async () => {\n while (!this.#buffer.length) {\n await this.#writeResolvers.promise;\n }\n\n const value = this.#buffer[0] as T | typeof CLOSE;\n\n if (value === CLOSE) {\n return { done: true, value: undefined };\n }\n\n // If it is not CLOSE, remove it from the queue.\n this.#buffer.shift();\n\n // Idle here so concurrent iteration has a chance to pick up the next value in a round robin fashion.\n await undefined;\n\n return { done: false, value };\n }\n };\n }\n}\n","// @ts-expect-error \"core-js\" is not typed.\nimport coreJSPromiseWithResolvers from 'core-js-pure/full/promise/with-resolvers.js';\n\nexport default function withResolvers<T>(): PromiseWithResolvers<T> {\n return coreJSPromiseWithResolvers();\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACCA,4BAAuC;AAExB,SAAR,gBAA6D;AAClE,aAAO,sBAAAA,SAA2B;AACpC;;;ADHA,IAAM,QAAQ,OAAO;AAEd,IAAM,yBAAN,cAAwC,eAAkB;AAAA,EAC/D,cAAc;AACZ,UAAM;AAAA,MACJ,OAAO,MAAM;AACX,aAAK,QAAQ,KAAK,KAAK;AACvB,aAAK,gBAAgB,QAAQ;AAAA,MAC/B;AAAA,MACA,OAAO,CAAC,UAAa;AACnB,aAAK,QAAQ,KAAK,KAAK;AACvB,aAAK,gBAAgB,QAAQ;AAC7B,aAAK,kBAAkB,cAAc;AAAA,MACvC;AAAA,IACF,CAAC;AAAA,EACH;AAAA,EAEA,UAAgC,CAAC;AAAA,EACjC,kBAA8C,cAAc;AAAA,EAE5D,CAAC,OAAO,aAAa,IAAsB;AACzC,WAAO;AAAA,MACL,MAAM,YAAY;AAChB,eAAO,CAAC,KAAK,QAAQ,QAAQ;AAC3B,gBAAM,KAAK,gBAAgB;AAAA,QAC7B;AAEA,cAAM,QAAQ,KAAK,QAAQ,CAAC;AAE5B,YAAI,UAAU,OAAO;AACnB,iBAAO,EAAE,MAAM,MAAM,OAAO,OAAU;AAAA,QACxC;AAGA,aAAK,QAAQ,MAAM;AAGnB,cAAM;AAEN,eAAO,EAAE,MAAM,OAAO,MAAM;AAAA,MAC9B;AAAA,IACF;AAAA,EACF;AACF;","names":["coreJSPromiseWithResolvers"]}
|
|
@@ -33,7 +33,7 @@ __export(iteratorDrop_exports, {
|
|
|
33
33
|
iteratorDrop: () => iteratorDrop
|
|
34
34
|
});
|
|
35
35
|
module.exports = __toCommonJS(iteratorDrop_exports);
|
|
36
|
-
var import_drop = __toESM(require("core-js-pure/full/iterator/drop"));
|
|
36
|
+
var import_drop = __toESM(require("core-js-pure/full/iterator/drop.js"));
|
|
37
37
|
function iteratorDrop(iterator, limit) {
|
|
38
38
|
return (0, import_drop.default)(iterator, limit);
|
|
39
39
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/iteratorDrop.ts"],"sourcesContent":["// @ts-expect-error core-js-pure is not typed.\nimport drop from 'core-js-pure/full/iterator/drop';\n\n/**\n * `drop` takes an integer as an argument. It skips the given number of elements produced by the underlying iterator before itself producing any remaining elements.\n *\n * @param limit\n *\n * @return Returns an iterator of items after the limit.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function iteratorDrop<T>(iterator: Iterator<T>, limit: number): Iterator<T> {\n return drop(iterator, limit);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,kBAAiB;AAWV,SAAS,aAAgB,UAAuB,OAA4B;AACjF,aAAO,YAAAA,SAAK,UAAU,KAAK;AAC7B;","names":["drop"]}
|
|
1
|
+
{"version":3,"sources":["../src/iteratorDrop.ts"],"sourcesContent":["// @ts-expect-error core-js-pure is not typed.\nimport drop from 'core-js-pure/full/iterator/drop.js';\n\n/**\n * `drop` takes an integer as an argument. It skips the given number of elements produced by the underlying iterator before itself producing any remaining elements.\n *\n * @param limit\n *\n * @return Returns an iterator of items after the limit.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function iteratorDrop<T>(iterator: Iterator<T>, limit: number): Iterator<T> {\n return drop(iterator, limit);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,kBAAiB;AAWV,SAAS,aAAgB,UAAuB,OAA4B;AACjF,aAAO,YAAAA,SAAK,UAAU,KAAK;AAC7B;","names":["drop"]}
|
|
@@ -33,7 +33,7 @@ __export(iteratorEvery_exports, {
|
|
|
33
33
|
iteratorEvery: () => iteratorEvery
|
|
34
34
|
});
|
|
35
35
|
module.exports = __toCommonJS(iteratorEvery_exports);
|
|
36
|
-
var import_every = __toESM(require("core-js-pure/full/iterator/every"));
|
|
36
|
+
var import_every = __toESM(require("core-js-pure/full/iterator/every.js"));
|
|
37
37
|
function iteratorEvery(iterator, predicate) {
|
|
38
38
|
return (0, import_every.default)(iterator, predicate);
|
|
39
39
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/iteratorEvery.ts"],"sourcesContent":["// @ts-expect-error core-js-pure is not typed.\nimport every from 'core-js-pure/full/iterator/every';\n\n/**\n * Determines whether all the members of an iterator satisfy the specified test.\n *\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the iterator until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the iterator.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function iteratorEvery<T, S extends T>(\n iterator: Iterator<T>,\n predicate: (value: T, index: number) => value is S\n): iterator is Iterator<S>;\n\n/**\n * Determines whether all the members of an iterator satisfy the specified test.\n *\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the iterator until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the iterator.\n *\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function iteratorEvery<T>(iterator: Iterator<T>, predicate: (value: T, index: number) => unknown): boolean;\n\nexport function iteratorEvery<T>(iterator: Iterator<T>, predicate: (value: T, index: number) => unknown): boolean {\n return every(iterator, predicate);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,mBAAkB;AA8BX,SAAS,cAAiB,UAAuB,WAA0D;AAChH,aAAO,aAAAA,SAAM,UAAU,SAAS;AAClC;","names":["every"]}
|
|
1
|
+
{"version":3,"sources":["../src/iteratorEvery.ts"],"sourcesContent":["// @ts-expect-error core-js-pure is not typed.\nimport every from 'core-js-pure/full/iterator/every.js';\n\n/**\n * Determines whether all the members of an iterator satisfy the specified test.\n *\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the iterator until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the iterator.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function iteratorEvery<T, S extends T>(\n iterator: Iterator<T>,\n predicate: (value: T, index: number) => value is S\n): iterator is Iterator<S>;\n\n/**\n * Determines whether all the members of an iterator satisfy the specified test.\n *\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the iterator until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the iterator.\n *\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function iteratorEvery<T>(iterator: Iterator<T>, predicate: (value: T, index: number) => unknown): boolean;\n\nexport function iteratorEvery<T>(iterator: Iterator<T>, predicate: (value: T, index: number) => unknown): boolean {\n return every(iterator, predicate);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,mBAAkB;AA8BX,SAAS,cAAiB,UAAuB,WAA0D;AAChH,aAAO,aAAAA,SAAM,UAAU,SAAS;AAClC;","names":["every"]}
|
|
@@ -33,7 +33,7 @@ __export(iteratorFilter_exports, {
|
|
|
33
33
|
iteratorFilter: () => iteratorFilter
|
|
34
34
|
});
|
|
35
35
|
module.exports = __toCommonJS(iteratorFilter_exports);
|
|
36
|
-
var import_filter = __toESM(require("core-js-pure/full/iterator/filter"));
|
|
36
|
+
var import_filter = __toESM(require("core-js-pure/full/iterator/filter.js"));
|
|
37
37
|
function iteratorFilter(iterator, predicate) {
|
|
38
38
|
return (0, import_filter.default)(iterator, predicate);
|
|
39
39
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/iteratorFilter.ts"],"sourcesContent":["// @ts-expect-error core-js-pure is not typed.\nimport filter from 'core-js-pure/full/iterator/filter';\n\n/**\n * Returns the elements of an iterator that meet the condition specified in a callback function.\n *\n * @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the iterator.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function iteratorFilter<T, S extends T>(\n iterator: Iterator<T>,\n predicate: (value: T, index: number) => value is S\n): IterableIterator<S>;\n\n/**\n * Returns the elements of an iterator that meet the condition specified in a callback function.\n *\n * @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the iterator.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function iteratorFilter<T>(\n iterator: Iterator<T>,\n predicate: (value: T, index: number) => unknown\n): IterableIterator<T>;\n\nexport function iteratorFilter<T, S extends T>(\n iterator: Iterator<T>,\n predicate: (value: T, index: number) => unknown\n): IterableIterator<S> {\n return filter(iterator, predicate);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,oBAAmB;AA0BZ,SAAS,eACd,UACA,WACqB;AACrB,aAAO,cAAAA,SAAO,UAAU,SAAS;AACnC;","names":["filter"]}
|
|
1
|
+
{"version":3,"sources":["../src/iteratorFilter.ts"],"sourcesContent":["// @ts-expect-error core-js-pure is not typed.\nimport filter from 'core-js-pure/full/iterator/filter.js';\n\n/**\n * Returns the elements of an iterator that meet the condition specified in a callback function.\n *\n * @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the iterator.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function iteratorFilter<T, S extends T>(\n iterator: Iterator<T>,\n predicate: (value: T, index: number) => value is S\n): IterableIterator<S>;\n\n/**\n * Returns the elements of an iterator that meet the condition specified in a callback function.\n *\n * @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the iterator.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function iteratorFilter<T>(\n iterator: Iterator<T>,\n predicate: (value: T, index: number) => unknown\n): IterableIterator<T>;\n\nexport function iteratorFilter<T, S extends T>(\n iterator: Iterator<T>,\n predicate: (value: T, index: number) => unknown\n): IterableIterator<S> {\n return filter(iterator, predicate);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,oBAAmB;AA0BZ,SAAS,eACd,UACA,WACqB;AACrB,aAAO,cAAAA,SAAO,UAAU,SAAS;AACnC;","names":["filter"]}
|
|
@@ -33,7 +33,7 @@ __export(iteratorFind_exports, {
|
|
|
33
33
|
iteratorFind: () => iteratorFind
|
|
34
34
|
});
|
|
35
35
|
module.exports = __toCommonJS(iteratorFind_exports);
|
|
36
|
-
var import_find = __toESM(require("core-js-pure/full/iterator/find"));
|
|
36
|
+
var import_find = __toESM(require("core-js-pure/full/iterator/find.js"));
|
|
37
37
|
function iteratorFind(iterator, predicate) {
|
|
38
38
|
return (0, import_find.default)(iterator, predicate);
|
|
39
39
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/iteratorFind.ts"],"sourcesContent":["// @ts-expect-error core-js-pure is not typed.\nimport find from 'core-js-pure/full/iterator/find';\n\n/**\n * Returns the value of the first element in the iterator where predicate is true, and undefined\n * otherwise.\n *\n * @param predicate find calls predicate once for each element of the iterator, in ascending\n * order, until it finds one where predicate returns true. If such an element is found, find\n * immediately returns that element value. Otherwise, find returns undefined.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function iteratorFind<T, S extends T>(\n iterator: Iterator<T>,\n predicate: (value: T, index: number) => value is S\n): S | undefined;\n\nexport function iteratorFind<T>(iterator: Iterator<T>, predicate: (value: T, index: number) => unknown): T | undefined;\n\nexport function iteratorFind<T, S extends T>(\n iterator: Iterator<T>,\n predicate: (value: T, index: number) => unknown\n): S | undefined {\n return find(iterator, predicate);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,kBAAiB;AAmBV,SAAS,aACd,UACA,WACe;AACf,aAAO,YAAAA,SAAK,UAAU,SAAS;AACjC;","names":["find"]}
|
|
1
|
+
{"version":3,"sources":["../src/iteratorFind.ts"],"sourcesContent":["// @ts-expect-error core-js-pure is not typed.\nimport find from 'core-js-pure/full/iterator/find.js';\n\n/**\n * Returns the value of the first element in the iterator where predicate is true, and undefined\n * otherwise.\n *\n * @param predicate find calls predicate once for each element of the iterator, in ascending\n * order, until it finds one where predicate returns true. If such an element is found, find\n * immediately returns that element value. Otherwise, find returns undefined.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function iteratorFind<T, S extends T>(\n iterator: Iterator<T>,\n predicate: (value: T, index: number) => value is S\n): S | undefined;\n\nexport function iteratorFind<T>(iterator: Iterator<T>, predicate: (value: T, index: number) => unknown): T | undefined;\n\nexport function iteratorFind<T, S extends T>(\n iterator: Iterator<T>,\n predicate: (value: T, index: number) => unknown\n): S | undefined {\n return find(iterator, predicate);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,kBAAiB;AAmBV,SAAS,aACd,UACA,WACe;AACf,aAAO,YAAAA,SAAK,UAAU,SAAS;AACjC;","names":["find"]}
|
|
@@ -33,7 +33,7 @@ __export(iteratorFlatMap_exports, {
|
|
|
33
33
|
iteratorFlatMap: () => iteratorFlatMap
|
|
34
34
|
});
|
|
35
35
|
module.exports = __toCommonJS(iteratorFlatMap_exports);
|
|
36
|
-
var import_flat_map = __toESM(require("core-js-pure/full/iterator/flat-map"));
|
|
36
|
+
var import_flat_map = __toESM(require("core-js-pure/full/iterator/flat-map.js"));
|
|
37
37
|
function iteratorFlatMap(iterator, mapperFn) {
|
|
38
38
|
return (0, import_flat_map.default)(iterator, mapperFn);
|
|
39
39
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/iteratorFlatMap.ts"],"sourcesContent":["// @ts-expect-error core-js-pure is not typed.\nimport flatMap from 'core-js-pure/full/iterator/flat-map';\n\n/**\n * `.flatMap` takes a mapping function as an argument. It returns an iterator that produces all elements of the iterators produced by applying the mapping function to the elements produced by the underlying iterator.\n *\n * @param mapperFn\n *\n * @return Returns an iterator of flat values.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function iteratorFlatMap<T, U>(iterator: Iterator<T>, mapperFn: (value: T, index: number) => U): Iterator<T> {\n return flatMap(iterator, mapperFn);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,sBAAoB;AAWb,SAAS,gBAAsB,UAAuB,UAAuD;AAClH,aAAO,gBAAAA,SAAQ,UAAU,QAAQ;AACnC;","names":["flatMap"]}
|
|
1
|
+
{"version":3,"sources":["../src/iteratorFlatMap.ts"],"sourcesContent":["// @ts-expect-error core-js-pure is not typed.\nimport flatMap from 'core-js-pure/full/iterator/flat-map.js';\n\n/**\n * `.flatMap` takes a mapping function as an argument. It returns an iterator that produces all elements of the iterators produced by applying the mapping function to the elements produced by the underlying iterator.\n *\n * @param mapperFn\n *\n * @return Returns an iterator of flat values.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function iteratorFlatMap<T, U>(iterator: Iterator<T>, mapperFn: (value: T, index: number) => U): Iterator<T> {\n return flatMap(iterator, mapperFn);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,sBAAoB;AAWb,SAAS,gBAAsB,UAAuB,UAAuD;AAClH,aAAO,gBAAAA,SAAQ,UAAU,QAAQ;AACnC;","names":["flatMap"]}
|
|
@@ -33,7 +33,7 @@ __export(iteratorForEach_exports, {
|
|
|
33
33
|
iteratorForEach: () => iteratorForEach
|
|
34
34
|
});
|
|
35
35
|
module.exports = __toCommonJS(iteratorForEach_exports);
|
|
36
|
-
var import_for_each = __toESM(require("core-js-pure/full/iterator/for-each"));
|
|
36
|
+
var import_for_each = __toESM(require("core-js-pure/full/iterator/for-each.js"));
|
|
37
37
|
function iteratorForEach(iterator, callbackfn) {
|
|
38
38
|
(0, import_for_each.default)(iterator, callbackfn);
|
|
39
39
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/iteratorForEach.ts"],"sourcesContent":["// @ts-expect-error core-js-pure is not typed.\nimport forEach from 'core-js-pure/full/iterator/for-each';\n\n/**\n * Performs the specified action for each element in an iterator.\n *\n * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the iterator.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function iteratorForEach<T>(iterator: Iterator<T>, callbackfn: (value: T, index: number) => void): void {\n forEach(iterator, callbackfn);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,sBAAoB;AASb,SAAS,gBAAmB,UAAuB,YAAqD;AAC7G,sBAAAA,SAAQ,UAAU,UAAU;AAC9B;","names":["forEach"]}
|
|
1
|
+
{"version":3,"sources":["../src/iteratorForEach.ts"],"sourcesContent":["// @ts-expect-error core-js-pure is not typed.\nimport forEach from 'core-js-pure/full/iterator/for-each.js';\n\n/**\n * Performs the specified action for each element in an iterator.\n *\n * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the iterator.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function iteratorForEach<T>(iterator: Iterator<T>, callbackfn: (value: T, index: number) => void): void {\n forEach(iterator, callbackfn);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,sBAAoB;AASb,SAAS,gBAAmB,UAAuB,YAAqD;AAC7G,sBAAAA,SAAQ,UAAU,UAAU;AAC9B;","names":["forEach"]}
|
|
@@ -33,7 +33,7 @@ __export(iteratorFrom_exports, {
|
|
|
33
33
|
iteratorFrom: () => iteratorFrom
|
|
34
34
|
});
|
|
35
35
|
module.exports = __toCommonJS(iteratorFrom_exports);
|
|
36
|
-
var import_from = __toESM(require("core-js-pure/full/iterator/from"));
|
|
36
|
+
var import_from = __toESM(require("core-js-pure/full/iterator/from.js"));
|
|
37
37
|
function iteratorFrom(iteratorLike) {
|
|
38
38
|
return (0, import_from.default)(iteratorLike);
|
|
39
39
|
}
|