iter-fest 0.1.1-main.57b2094 → 0.1.1-main.7690009

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.
Files changed (126) hide show
  1. package/README.md +14 -2
  2. package/dist/chunk-4RT2FROS.mjs +10 -0
  3. package/dist/chunk-4RT2FROS.mjs.map +1 -0
  4. package/dist/chunk-4ZBMXHD6.mjs +10 -0
  5. package/dist/chunk-4ZBMXHD6.mjs.map +1 -0
  6. package/dist/chunk-AOZVPHE4.mjs +10 -0
  7. package/dist/chunk-AOZVPHE4.mjs.map +1 -0
  8. package/dist/chunk-CNKIGQUS.mjs +10 -0
  9. package/dist/chunk-CNKIGQUS.mjs.map +1 -0
  10. package/dist/chunk-GFJGWVES.mjs +10 -0
  11. package/dist/chunk-GFJGWVES.mjs.map +1 -0
  12. package/dist/chunk-J3FQSENW.mjs +10 -0
  13. package/dist/chunk-J3FQSENW.mjs.map +1 -0
  14. package/dist/chunk-K4RCFPTZ.mjs +10 -0
  15. package/dist/chunk-K4RCFPTZ.mjs.map +1 -0
  16. package/dist/chunk-LB3MK3EU.mjs +10 -0
  17. package/dist/chunk-LB3MK3EU.mjs.map +1 -0
  18. package/dist/chunk-NLXKATXE.mjs +10 -0
  19. package/dist/chunk-NLXKATXE.mjs.map +1 -0
  20. package/dist/chunk-ODPKEUIR.mjs +10 -0
  21. package/dist/chunk-ODPKEUIR.mjs.map +1 -0
  22. package/dist/chunk-QLVU73KN.mjs +10 -0
  23. package/dist/chunk-QLVU73KN.mjs.map +1 -0
  24. package/dist/chunk-TQCZXEK7.mjs +10 -0
  25. package/dist/chunk-TQCZXEK7.mjs.map +1 -0
  26. package/dist/{chunk-KYMTQJIJ.mjs → chunk-V7VAGILV.mjs} +1 -1
  27. package/dist/chunk-V7VAGILV.mjs.map +1 -0
  28. package/dist/chunk-VIMGYUMQ.mjs +10 -0
  29. package/dist/{chunk-QX6EMOSQ.mjs.map → chunk-VIMGYUMQ.mjs.map} +1 -1
  30. package/dist/chunk-WUFMEPOM.mjs +10 -0
  31. package/dist/chunk-WUFMEPOM.mjs.map +1 -0
  32. package/dist/iter-fest.asyncIteratorDrop.d.mts +12 -0
  33. package/dist/iter-fest.asyncIteratorDrop.d.ts +12 -0
  34. package/dist/iter-fest.asyncIteratorDrop.js +44 -0
  35. package/dist/iter-fest.asyncIteratorDrop.js.map +1 -0
  36. package/dist/iter-fest.asyncIteratorDrop.mjs +7 -0
  37. package/dist/iter-fest.asyncIteratorDrop.mjs.map +1 -0
  38. package/dist/iter-fest.asyncIteratorEvery.d.mts +25 -0
  39. package/dist/iter-fest.asyncIteratorEvery.d.ts +25 -0
  40. package/dist/iter-fest.asyncIteratorEvery.js +44 -0
  41. package/dist/iter-fest.asyncIteratorEvery.js.map +1 -0
  42. package/dist/iter-fest.asyncIteratorEvery.mjs +7 -0
  43. package/dist/iter-fest.asyncIteratorEvery.mjs.map +1 -0
  44. package/dist/iter-fest.asyncIteratorFilter.d.mts +18 -0
  45. package/dist/iter-fest.asyncIteratorFilter.d.ts +18 -0
  46. package/dist/iter-fest.asyncIteratorFilter.js +44 -0
  47. package/dist/iter-fest.asyncIteratorFilter.js.map +1 -0
  48. package/dist/iter-fest.asyncIteratorFilter.mjs +7 -0
  49. package/dist/iter-fest.asyncIteratorFilter.mjs.map +1 -0
  50. package/dist/iter-fest.asyncIteratorFind.d.mts +14 -0
  51. package/dist/iter-fest.asyncIteratorFind.d.ts +14 -0
  52. package/dist/iter-fest.asyncIteratorFind.js +44 -0
  53. package/dist/iter-fest.asyncIteratorFind.js.map +1 -0
  54. package/dist/iter-fest.asyncIteratorFind.mjs +7 -0
  55. package/dist/iter-fest.asyncIteratorFind.mjs.map +1 -0
  56. package/dist/iter-fest.asyncIteratorFlatMap.d.mts +12 -0
  57. package/dist/iter-fest.asyncIteratorFlatMap.d.ts +12 -0
  58. package/dist/iter-fest.asyncIteratorFlatMap.js +44 -0
  59. package/dist/iter-fest.asyncIteratorFlatMap.js.map +1 -0
  60. package/dist/iter-fest.asyncIteratorFlatMap.mjs +7 -0
  61. package/dist/iter-fest.asyncIteratorFlatMap.mjs.map +1 -0
  62. package/dist/iter-fest.asyncIteratorForEach.d.mts +10 -0
  63. package/dist/iter-fest.asyncIteratorForEach.d.ts +10 -0
  64. package/dist/iter-fest.asyncIteratorForEach.js +44 -0
  65. package/dist/iter-fest.asyncIteratorForEach.js.map +1 -0
  66. package/dist/iter-fest.asyncIteratorForEach.mjs +7 -0
  67. package/dist/iter-fest.asyncIteratorForEach.mjs.map +1 -0
  68. package/dist/iter-fest.asyncIteratorFrom.d.mts +10 -0
  69. package/dist/iter-fest.asyncIteratorFrom.d.ts +10 -0
  70. package/dist/iter-fest.asyncIteratorFrom.js +44 -0
  71. package/dist/iter-fest.asyncIteratorFrom.js.map +1 -0
  72. package/dist/iter-fest.asyncIteratorFrom.mjs +7 -0
  73. package/dist/iter-fest.asyncIteratorFrom.mjs.map +1 -0
  74. package/dist/iter-fest.asyncIteratorMap.d.mts +10 -0
  75. package/dist/iter-fest.asyncIteratorMap.d.ts +10 -0
  76. package/dist/iter-fest.asyncIteratorMap.js +44 -0
  77. package/dist/iter-fest.asyncIteratorMap.js.map +1 -0
  78. package/dist/iter-fest.asyncIteratorMap.mjs +7 -0
  79. package/dist/iter-fest.asyncIteratorMap.mjs.map +1 -0
  80. package/dist/iter-fest.asyncIteratorReduce.d.mts +23 -0
  81. package/dist/iter-fest.asyncIteratorReduce.d.ts +23 -0
  82. package/dist/iter-fest.asyncIteratorReduce.js +44 -0
  83. package/dist/iter-fest.asyncIteratorReduce.js.map +1 -0
  84. package/dist/iter-fest.asyncIteratorReduce.mjs +7 -0
  85. package/dist/iter-fest.asyncIteratorReduce.mjs.map +1 -0
  86. package/dist/iter-fest.asyncIteratorSome.d.mts +10 -0
  87. package/dist/iter-fest.asyncIteratorSome.d.ts +10 -0
  88. package/dist/iter-fest.asyncIteratorSome.js +44 -0
  89. package/dist/iter-fest.asyncIteratorSome.js.map +1 -0
  90. package/dist/iter-fest.asyncIteratorSome.mjs +7 -0
  91. package/dist/iter-fest.asyncIteratorSome.mjs.map +1 -0
  92. package/dist/iter-fest.asyncIteratorTake.d.mts +12 -0
  93. package/dist/iter-fest.asyncIteratorTake.d.ts +12 -0
  94. package/dist/iter-fest.asyncIteratorTake.js +44 -0
  95. package/dist/iter-fest.asyncIteratorTake.js.map +1 -0
  96. package/dist/iter-fest.asyncIteratorTake.mjs +7 -0
  97. package/dist/iter-fest.asyncIteratorTake.mjs.map +1 -0
  98. package/dist/iter-fest.asyncIteratorToArray.d.mts +13 -0
  99. package/dist/iter-fest.asyncIteratorToArray.d.ts +13 -0
  100. package/dist/iter-fest.asyncIteratorToArray.js +44 -0
  101. package/dist/iter-fest.asyncIteratorToArray.js.map +1 -0
  102. package/dist/iter-fest.asyncIteratorToArray.mjs +7 -0
  103. package/dist/iter-fest.asyncIteratorToArray.mjs.map +1 -0
  104. package/dist/iter-fest.d.mts +14 -1
  105. package/dist/iter-fest.d.ts +14 -1
  106. package/dist/iter-fest.iteratorFlatMap.d.mts +1 -1
  107. package/dist/iter-fest.iteratorFlatMap.d.ts +1 -1
  108. package/dist/iter-fest.iteratorFlatMap.js +2 -2
  109. package/dist/iter-fest.iteratorFlatMap.js.map +1 -1
  110. package/dist/iter-fest.iteratorFlatMap.mjs +1 -1
  111. package/dist/iter-fest.iteratorFrom.d.mts +0 -2
  112. package/dist/iter-fest.iteratorFrom.d.ts +0 -2
  113. package/dist/iter-fest.iteratorFrom.js.map +1 -1
  114. package/dist/iter-fest.iteratorFrom.mjs +1 -1
  115. package/dist/iter-fest.iteratorToAsync.d.mts +10 -0
  116. package/dist/iter-fest.iteratorToAsync.d.ts +10 -0
  117. package/dist/iter-fest.iteratorToAsync.js +44 -0
  118. package/dist/iter-fest.iteratorToAsync.js.map +1 -0
  119. package/dist/iter-fest.iteratorToAsync.mjs +7 -0
  120. package/dist/iter-fest.iteratorToAsync.mjs.map +1 -0
  121. package/dist/iter-fest.js +179 -75
  122. package/dist/iter-fest.js.map +1 -1
  123. package/dist/iter-fest.mjs +92 -40
  124. package/package.json +132 -2
  125. package/dist/chunk-KYMTQJIJ.mjs.map +0 -1
  126. package/dist/chunk-QX6EMOSQ.mjs +0 -10
@@ -0,0 +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"]}
@@ -0,0 +1,7 @@
1
+ import {
2
+ asyncIteratorSome
3
+ } from "./chunk-ODPKEUIR.mjs";
4
+ export {
5
+ asyncIteratorSome
6
+ };
7
+ //# sourceMappingURL=iter-fest.asyncIteratorSome.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * `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.
3
+ *
4
+ * @param limit
5
+ *
6
+ * @return Returns an iterator with items from the original iterator from 0 until the limit.
7
+ *
8
+ * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md
9
+ */
10
+ declare function asyncIteratorTake<T>(asyncIterator: AsyncIterator<T>, limit: number): AsyncIterator<T>;
11
+
12
+ export { asyncIteratorTake };
@@ -0,0 +1,12 @@
1
+ /**
2
+ * `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.
3
+ *
4
+ * @param limit
5
+ *
6
+ * @return Returns an iterator with items from the original iterator from 0 until the limit.
7
+ *
8
+ * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md
9
+ */
10
+ declare function asyncIteratorTake<T>(asyncIterator: AsyncIterator<T>, limit: number): AsyncIterator<T>;
11
+
12
+ export { asyncIteratorTake };
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // src/asyncIteratorTake.ts
31
+ var asyncIteratorTake_exports = {};
32
+ __export(asyncIteratorTake_exports, {
33
+ asyncIteratorTake: () => asyncIteratorTake
34
+ });
35
+ module.exports = __toCommonJS(asyncIteratorTake_exports);
36
+ var import_take = __toESM(require("core-js-pure/full/async-iterator/take"));
37
+ function asyncIteratorTake(asyncIterator, limit) {
38
+ return (0, import_take.default)(asyncIterator, limit);
39
+ }
40
+ // Annotate the CommonJS export names for ESM import in node:
41
+ 0 && (module.exports = {
42
+ asyncIteratorTake
43
+ });
44
+ //# sourceMappingURL=iter-fest.asyncIteratorTake.js.map
@@ -0,0 +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"]}
@@ -0,0 +1,7 @@
1
+ import {
2
+ asyncIteratorTake
3
+ } from "./chunk-AOZVPHE4.mjs";
4
+ export {
5
+ asyncIteratorTake
6
+ };
7
+ //# sourceMappingURL=iter-fest.asyncIteratorTake.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,13 @@
1
+ type AsyncIteratorLike<T> = Pick<AsyncIterator<T>, 'next'>;
2
+ /**
3
+ * When you have a non-infinite iterator which you wish to transform into an array, you can do so with the builtin toArray method.
4
+ *
5
+ * @param limit
6
+ *
7
+ * @return Returns an Array containing the values from the iterator.
8
+ *
9
+ * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md
10
+ */
11
+ declare function asyncIteratorToArray<T>(asyncIteratorLike: AsyncIteratorLike<T>): Promise<T[]>;
12
+
13
+ export { asyncIteratorToArray };
@@ -0,0 +1,13 @@
1
+ type AsyncIteratorLike<T> = Pick<AsyncIterator<T>, 'next'>;
2
+ /**
3
+ * When you have a non-infinite iterator which you wish to transform into an array, you can do so with the builtin toArray method.
4
+ *
5
+ * @param limit
6
+ *
7
+ * @return Returns an Array containing the values from the iterator.
8
+ *
9
+ * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md
10
+ */
11
+ declare function asyncIteratorToArray<T>(asyncIteratorLike: AsyncIteratorLike<T>): Promise<T[]>;
12
+
13
+ export { asyncIteratorToArray };
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // src/asyncIteratorToArray.ts
31
+ var asyncIteratorToArray_exports = {};
32
+ __export(asyncIteratorToArray_exports, {
33
+ asyncIteratorToArray: () => asyncIteratorToArray
34
+ });
35
+ module.exports = __toCommonJS(asyncIteratorToArray_exports);
36
+ var import_to_array = __toESM(require("core-js-pure/full/async-iterator/to-array"));
37
+ function asyncIteratorToArray(asyncIteratorLike) {
38
+ return (0, import_to_array.default)(asyncIteratorLike);
39
+ }
40
+ // Annotate the CommonJS export names for ESM import in node:
41
+ 0 && (module.exports = {
42
+ asyncIteratorToArray
43
+ });
44
+ //# sourceMappingURL=iter-fest.asyncIteratorToArray.js.map
@@ -0,0 +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\ntype AsyncIteratorLike<T> = Pick<AsyncIterator<T>, 'next'>;\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 * @param limit\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: AsyncIteratorLike<T>): Promise<T[]> {\n return toArray(asyncIteratorLike);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,sBAAoB;AAab,SAAS,qBAAwB,mBAAuD;AAC7F,aAAO,gBAAAA,SAAQ,iBAAiB;AAClC;","names":["toArray"]}
@@ -0,0 +1,7 @@
1
+ import {
2
+ asyncIteratorToArray
3
+ } from "./chunk-TQCZXEK7.mjs";
4
+ export {
5
+ asyncIteratorToArray
6
+ };
7
+ //# sourceMappingURL=iter-fest.asyncIteratorToArray.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,9 +1,20 @@
1
1
  export { CompleteFunction, ErrorFunction, NextFunction, Observable, Observer, StartFunction, SubscriberFunction, Subscription, SubscriptionObserver } from './iter-fest.observable.mjs';
2
2
  export { SymbolObservable } from './iter-fest.symbolObservable.mjs';
3
3
  export { AsyncGeneratorWithLastValue, asyncGeneratorWithLastValue } from './iter-fest.asyncGeneratorWithLastValue.mjs';
4
+ export { asyncIteratorDrop } from './iter-fest.asyncIteratorDrop.mjs';
5
+ export { asyncIteratorEvery } from './iter-fest.asyncIteratorEvery.mjs';
6
+ export { asyncIteratorFilter } from './iter-fest.asyncIteratorFilter.mjs';
7
+ export { asyncIteratorFind } from './iter-fest.asyncIteratorFind.mjs';
8
+ export { asyncIteratorFlatMap } from './iter-fest.asyncIteratorFlatMap.mjs';
9
+ export { asyncIteratorForEach } from './iter-fest.asyncIteratorForEach.mjs';
10
+ export { asyncIteratorFrom } from './iter-fest.asyncIteratorFrom.mjs';
11
+ export { asyncIteratorMap } from './iter-fest.asyncIteratorMap.mjs';
12
+ export { asyncIteratorReduce } from './iter-fest.asyncIteratorReduce.mjs';
13
+ export { asyncIteratorSome } from './iter-fest.asyncIteratorSome.mjs';
14
+ export { asyncIteratorTake } from './iter-fest.asyncIteratorTake.mjs';
15
+ export { asyncIteratorToArray } from './iter-fest.asyncIteratorToArray.mjs';
4
16
  export { asyncIteratorToAsyncIterable } from './iter-fest.asyncIteratorToAsyncIterable.mjs';
5
17
  export { GeneratorWithLastValue, generatorWithLastValue } from './iter-fest.generatorWithLastValue.mjs';
6
- export { iteratorSlice } from './iter-fest.iteratorSlice.mjs';
7
18
  export { IterableWritableStream } from './iter-fest.iterableWritableStream.mjs';
8
19
  export { iteratorAt } from './iter-fest.iteratorAt.mjs';
9
20
  export { iteratorConcat } from './iter-fest.iteratorConcat.mjs';
@@ -24,9 +35,11 @@ export { iteratorJoin } from './iter-fest.iteratorJoin.mjs';
24
35
  export { iteratorKeys } from './iter-fest.iteratorKeys.mjs';
25
36
  export { iteratorMap } from './iter-fest.iteratorMap.mjs';
26
37
  export { iteratorReduce } from './iter-fest.iteratorReduce.mjs';
38
+ export { iteratorSlice } from './iter-fest.iteratorSlice.mjs';
27
39
  export { iteratorSome } from './iter-fest.iteratorSome.mjs';
28
40
  export { iteratorTake } from './iter-fest.iteratorTake.mjs';
29
41
  export { iteratorToArray } from './iter-fest.iteratorToArray.mjs';
42
+ export { iteratorToAsync } from './iter-fest.iteratorToAsync.mjs';
30
43
  export { iteratorToIterable } from './iter-fest.iteratorToIterable.mjs';
31
44
  export { iteratorToSpliced } from './iter-fest.iteratorToSpliced.mjs';
32
45
  export { iteratorToString } from './iter-fest.iteratorToString.mjs';
@@ -1,9 +1,20 @@
1
1
  export { CompleteFunction, ErrorFunction, NextFunction, Observable, Observer, StartFunction, SubscriberFunction, Subscription, SubscriptionObserver } from './iter-fest.observable.js';
2
2
  export { SymbolObservable } from './iter-fest.symbolObservable.js';
3
3
  export { AsyncGeneratorWithLastValue, asyncGeneratorWithLastValue } from './iter-fest.asyncGeneratorWithLastValue.js';
4
+ export { asyncIteratorDrop } from './iter-fest.asyncIteratorDrop.js';
5
+ export { asyncIteratorEvery } from './iter-fest.asyncIteratorEvery.js';
6
+ export { asyncIteratorFilter } from './iter-fest.asyncIteratorFilter.js';
7
+ export { asyncIteratorFind } from './iter-fest.asyncIteratorFind.js';
8
+ export { asyncIteratorFlatMap } from './iter-fest.asyncIteratorFlatMap.js';
9
+ export { asyncIteratorForEach } from './iter-fest.asyncIteratorForEach.js';
10
+ export { asyncIteratorFrom } from './iter-fest.asyncIteratorFrom.js';
11
+ export { asyncIteratorMap } from './iter-fest.asyncIteratorMap.js';
12
+ export { asyncIteratorReduce } from './iter-fest.asyncIteratorReduce.js';
13
+ export { asyncIteratorSome } from './iter-fest.asyncIteratorSome.js';
14
+ export { asyncIteratorTake } from './iter-fest.asyncIteratorTake.js';
15
+ export { asyncIteratorToArray } from './iter-fest.asyncIteratorToArray.js';
4
16
  export { asyncIteratorToAsyncIterable } from './iter-fest.asyncIteratorToAsyncIterable.js';
5
17
  export { GeneratorWithLastValue, generatorWithLastValue } from './iter-fest.generatorWithLastValue.js';
6
- export { iteratorSlice } from './iter-fest.iteratorSlice.js';
7
18
  export { IterableWritableStream } from './iter-fest.iterableWritableStream.js';
8
19
  export { iteratorAt } from './iter-fest.iteratorAt.js';
9
20
  export { iteratorConcat } from './iter-fest.iteratorConcat.js';
@@ -24,9 +35,11 @@ export { iteratorJoin } from './iter-fest.iteratorJoin.js';
24
35
  export { iteratorKeys } from './iter-fest.iteratorKeys.js';
25
36
  export { iteratorMap } from './iter-fest.iteratorMap.js';
26
37
  export { iteratorReduce } from './iter-fest.iteratorReduce.js';
38
+ export { iteratorSlice } from './iter-fest.iteratorSlice.js';
27
39
  export { iteratorSome } from './iter-fest.iteratorSome.js';
28
40
  export { iteratorTake } from './iter-fest.iteratorTake.js';
29
41
  export { iteratorToArray } from './iter-fest.iteratorToArray.js';
42
+ export { iteratorToAsync } from './iter-fest.iteratorToAsync.js';
30
43
  export { iteratorToIterable } from './iter-fest.iteratorToIterable.js';
31
44
  export { iteratorToSpliced } from './iter-fest.iteratorToSpliced.js';
32
45
  export { iteratorToString } from './iter-fest.iteratorToString.js';
@@ -7,6 +7,6 @@
7
7
  *
8
8
  * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md
9
9
  */
10
- declare function iteratorFlatMap<T, U>(iterable: Iterable<T>, mapperFn: (value: T, index: number) => U): Iterator<T>;
10
+ declare function iteratorFlatMap<T, U>(iterator: Iterator<T>, mapperFn: (value: T, index: number) => U): Iterator<T>;
11
11
 
12
12
  export { iteratorFlatMap };
@@ -7,6 +7,6 @@
7
7
  *
8
8
  * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md
9
9
  */
10
- declare function iteratorFlatMap<T, U>(iterable: Iterable<T>, mapperFn: (value: T, index: number) => U): Iterator<T>;
10
+ declare function iteratorFlatMap<T, U>(iterator: Iterator<T>, mapperFn: (value: T, index: number) => U): Iterator<T>;
11
11
 
12
12
  export { iteratorFlatMap };
@@ -34,8 +34,8 @@ __export(iteratorFlatMap_exports, {
34
34
  });
35
35
  module.exports = __toCommonJS(iteratorFlatMap_exports);
36
36
  var import_flat_map = __toESM(require("core-js-pure/full/iterator/flat-map"));
37
- function iteratorFlatMap(iterable, mapperFn) {
38
- return (0, import_flat_map.default)(iterable, mapperFn);
37
+ function iteratorFlatMap(iterator, mapperFn) {
38
+ return (0, import_flat_map.default)(iterator, mapperFn);
39
39
  }
40
40
  // Annotate the CommonJS export names for ESM import in node:
41
41
  0 && (module.exports = {
@@ -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>(iterable: Iterable<T>, mapperFn: (value: T, index: number) => U): Iterator<T> {\n return flatMap(iterable, 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';\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,6 +1,6 @@
1
1
  import {
2
2
  iteratorFlatMap
3
- } from "./chunk-QX6EMOSQ.mjs";
3
+ } from "./chunk-VIMGYUMQ.mjs";
4
4
  export {
5
5
  iteratorFlatMap
6
6
  };
@@ -1,8 +1,6 @@
1
1
  /**
2
2
  * `.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.
3
3
  *
4
- * @param limit
5
- *
6
4
  * @return Returns the object if it is already an iterator, returns a wrapping iterator if the passed object implements a callable @@iterator property.
7
5
  *
8
6
  * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md
@@ -1,8 +1,6 @@
1
1
  /**
2
2
  * `.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.
3
3
  *
4
- * @param limit
5
- *
6
4
  * @return Returns the object if it is already an iterator, returns a wrapping iterator if the passed object implements a callable @@iterator property.
7
5
  *
8
6
  * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/iteratorFrom.ts"],"sourcesContent":["// @ts-expect-error core-js-pure is not typed.\nimport from from 'core-js-pure/full/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 * @param limit\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 iteratorFrom<T>(iteratorLike: Iterator<T>): Iterator<T> {\n return from(iteratorLike);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,kBAAiB;AAWV,SAAS,aAAgB,cAAwC;AACtE,aAAO,YAAAA,SAAK,YAAY;AAC1B;","names":["from"]}
1
+ {"version":3,"sources":["../src/iteratorFrom.ts"],"sourcesContent":["// @ts-expect-error core-js-pure is not typed.\nimport from from 'core-js-pure/full/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 iteratorFrom<T>(iteratorLike: Iterator<T>): Iterator<T> {\n return from(iteratorLike);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,kBAAiB;AASV,SAAS,aAAgB,cAAwC;AACtE,aAAO,YAAAA,SAAK,YAAY;AAC1B;","names":["from"]}
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  iteratorFrom
3
- } from "./chunk-KYMTQJIJ.mjs";
3
+ } from "./chunk-V7VAGILV.mjs";
4
4
  export {
5
5
  iteratorFrom
6
6
  };
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Converts an iterator into async iterator.
3
+ *
4
+ * @return Returns an async iterator.
5
+ *
6
+ * @link https://github.com/tc39/proposal-async-iterator-helpers/blob/main/README.md
7
+ */
8
+ declare function iteratorToAsync<T>(iterator: Iterator<T>): AsyncIterator<T>;
9
+
10
+ export { iteratorToAsync };
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Converts an iterator into async iterator.
3
+ *
4
+ * @return Returns an async iterator.
5
+ *
6
+ * @link https://github.com/tc39/proposal-async-iterator-helpers/blob/main/README.md
7
+ */
8
+ declare function iteratorToAsync<T>(iterator: Iterator<T>): AsyncIterator<T>;
9
+
10
+ export { iteratorToAsync };
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // src/iteratorToAsync.ts
31
+ var iteratorToAsync_exports = {};
32
+ __export(iteratorToAsync_exports, {
33
+ iteratorToAsync: () => iteratorToAsync
34
+ });
35
+ module.exports = __toCommonJS(iteratorToAsync_exports);
36
+ var import_to_async = __toESM(require("core-js-pure/full/iterator/to-async"));
37
+ function iteratorToAsync(iterator) {
38
+ return (0, import_to_async.default)(iterator);
39
+ }
40
+ // Annotate the CommonJS export names for ESM import in node:
41
+ 0 && (module.exports = {
42
+ iteratorToAsync
43
+ });
44
+ //# sourceMappingURL=iter-fest.iteratorToAsync.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/iteratorToAsync.ts"],"sourcesContent":["// @ts-expect-error core-js-pure is not typed.\nimport toAsync from 'core-js-pure/full/iterator/to-async';\n\n/**\n * Converts an iterator into async iterator.\n *\n * @return Returns an async iterator.\n *\n * @link https://github.com/tc39/proposal-async-iterator-helpers/blob/main/README.md\n */\nexport function iteratorToAsync<T>(iterator: Iterator<T>): AsyncIterator<T> {\n return toAsync(iterator);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,sBAAoB;AASb,SAAS,gBAAmB,UAAyC;AAC1E,aAAO,gBAAAA,SAAQ,QAAQ;AACzB;","names":["toAsync"]}
@@ -0,0 +1,7 @@
1
+ import {
2
+ iteratorToAsync
3
+ } from "./chunk-WUFMEPOM.mjs";
4
+ export {
5
+ iteratorToAsync
6
+ };
7
+ //# sourceMappingURL=iter-fest.iteratorToAsync.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}