iter-fest 0.2.1-main.3735548 → 0.2.1-main.fe53e2a

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 (198) hide show
  1. package/dist/{chunk-LIMQXDFK.mjs → chunk-2BBSIYMU.mjs} +2 -2
  2. package/dist/chunk-2BBSIYMU.mjs.map +1 -0
  3. package/dist/{chunk-BWMXKULC.mjs → chunk-5LYB6HR7.mjs} +2 -2
  4. package/dist/chunk-5LYB6HR7.mjs.map +1 -0
  5. package/dist/{chunk-JVR6BUJA.mjs → chunk-745JDME6.mjs} +2 -2
  6. package/dist/chunk-745JDME6.mjs.map +1 -0
  7. package/dist/{chunk-CNKIGQUS.mjs → chunk-AUWAPRBT.mjs} +2 -2
  8. package/dist/chunk-AUWAPRBT.mjs.map +1 -0
  9. package/dist/{chunk-OJMT4K3R.mjs → chunk-BZKIZ3TX.mjs} +2 -2
  10. package/dist/chunk-BZKIZ3TX.mjs.map +1 -0
  11. package/dist/{chunk-FMIHIL6A.mjs → chunk-DSRJWJF3.mjs} +2 -2
  12. package/dist/chunk-DSRJWJF3.mjs.map +1 -0
  13. package/dist/{chunk-GFJGWVES.mjs → chunk-DYPZDL4O.mjs} +2 -2
  14. package/dist/chunk-DYPZDL4O.mjs.map +1 -0
  15. package/dist/{chunk-R6SXIXMH.mjs → chunk-EES7QVUK.mjs} +2 -2
  16. package/dist/chunk-EES7QVUK.mjs.map +1 -0
  17. package/dist/{chunk-3S6LCGE6.mjs → chunk-EOGNKTFW.mjs} +2 -2
  18. package/dist/chunk-EOGNKTFW.mjs.map +1 -0
  19. package/dist/{chunk-S2LECQKY.mjs → chunk-EXAULUZ6.mjs} +2 -2
  20. package/dist/chunk-EXAULUZ6.mjs.map +1 -0
  21. package/dist/{chunk-4RT2FROS.mjs → chunk-EYUTOVZ3.mjs} +2 -2
  22. package/dist/chunk-EYUTOVZ3.mjs.map +1 -0
  23. package/dist/{chunk-AOZVPHE4.mjs → chunk-HTHDBSFD.mjs} +2 -2
  24. package/dist/chunk-HTHDBSFD.mjs.map +1 -0
  25. package/dist/{chunk-K4RCFPTZ.mjs → chunk-IBEDYMB6.mjs} +2 -2
  26. package/dist/chunk-IBEDYMB6.mjs.map +1 -0
  27. package/dist/{chunk-DC2ZV7KQ.mjs → chunk-II2OQXU4.mjs} +2 -2
  28. package/dist/chunk-II2OQXU4.mjs.map +1 -0
  29. package/dist/{chunk-OWUGLCQB.mjs → chunk-J5OJ3I7A.mjs} +2 -2
  30. package/dist/chunk-J5OJ3I7A.mjs.map +1 -0
  31. package/dist/{chunk-J3FQSENW.mjs → chunk-JS222K7K.mjs} +2 -2
  32. package/dist/chunk-JS222K7K.mjs.map +1 -0
  33. package/dist/{chunk-72AEHTPQ.mjs → chunk-KE7SRYHM.mjs} +2 -2
  34. package/dist/chunk-KE7SRYHM.mjs.map +1 -0
  35. package/dist/{chunk-FBST4AUL.mjs → chunk-KQYVNSKA.mjs} +2 -2
  36. package/dist/chunk-KQYVNSKA.mjs.map +1 -0
  37. package/dist/{chunk-QLVU73KN.mjs → chunk-KXQVMKFK.mjs} +2 -2
  38. package/dist/chunk-KXQVMKFK.mjs.map +1 -0
  39. package/dist/{chunk-TDHR35S7.mjs → chunk-MT3HFVKE.mjs} +2 -2
  40. package/dist/chunk-MT3HFVKE.mjs.map +1 -0
  41. package/dist/{chunk-NLXKATXE.mjs → chunk-OHH4ICOH.mjs} +2 -2
  42. package/dist/chunk-OHH4ICOH.mjs.map +1 -0
  43. package/dist/{chunk-4ZBMXHD6.mjs → chunk-OHOZ4GTV.mjs} +2 -2
  44. package/dist/chunk-OHOZ4GTV.mjs.map +1 -0
  45. package/dist/{chunk-EIIP7YWB.mjs → chunk-OVRHHTSG.mjs} +1 -1
  46. package/dist/chunk-OVRHHTSG.mjs.map +1 -0
  47. package/dist/{chunk-XQDGXAAF.mjs → chunk-P7UI3YKU.mjs} +2 -2
  48. package/dist/chunk-P7UI3YKU.mjs.map +1 -0
  49. package/dist/{chunk-ODPKEUIR.mjs → chunk-RE7BGAPD.mjs} +2 -2
  50. package/dist/chunk-RE7BGAPD.mjs.map +1 -0
  51. package/dist/{chunk-FEOLYD5R.mjs → chunk-RHCU757P.mjs} +2 -2
  52. package/dist/chunk-RHCU757P.mjs.map +1 -0
  53. package/dist/{chunk-VLF6DI2U.mjs → chunk-TSHK7TEP.mjs} +3 -3
  54. package/dist/chunk-TSHK7TEP.mjs.map +1 -0
  55. package/dist/{chunk-WUFMEPOM.mjs → chunk-VP5SFGCE.mjs} +2 -2
  56. package/dist/chunk-VP5SFGCE.mjs.map +1 -0
  57. package/dist/{chunk-VCKLUCOT.mjs → chunk-VPA3WEBS.mjs} +2 -2
  58. package/dist/chunk-VPA3WEBS.mjs.map +1 -0
  59. package/dist/{chunk-VIMGYUMQ.mjs → chunk-XPZYZEW2.mjs} +2 -2
  60. package/dist/chunk-XPZYZEW2.mjs.map +1 -0
  61. package/dist/{chunk-LB3MK3EU.mjs → chunk-YJBQPGDC.mjs} +2 -2
  62. package/dist/chunk-YJBQPGDC.mjs.map +1 -0
  63. package/dist/iter-fest.asyncIteratorDrop.js +1 -1
  64. package/dist/iter-fest.asyncIteratorDrop.js.map +1 -1
  65. package/dist/iter-fest.asyncIteratorDrop.mjs +1 -1
  66. package/dist/iter-fest.asyncIteratorEvery.js +1 -1
  67. package/dist/iter-fest.asyncIteratorEvery.js.map +1 -1
  68. package/dist/iter-fest.asyncIteratorEvery.mjs +1 -1
  69. package/dist/iter-fest.asyncIteratorFilter.js +1 -1
  70. package/dist/iter-fest.asyncIteratorFilter.js.map +1 -1
  71. package/dist/iter-fest.asyncIteratorFilter.mjs +1 -1
  72. package/dist/iter-fest.asyncIteratorFind.js +1 -1
  73. package/dist/iter-fest.asyncIteratorFind.js.map +1 -1
  74. package/dist/iter-fest.asyncIteratorFind.mjs +1 -1
  75. package/dist/iter-fest.asyncIteratorFlatMap.js +1 -1
  76. package/dist/iter-fest.asyncIteratorFlatMap.js.map +1 -1
  77. package/dist/iter-fest.asyncIteratorFlatMap.mjs +1 -1
  78. package/dist/iter-fest.asyncIteratorForEach.js +1 -1
  79. package/dist/iter-fest.asyncIteratorForEach.js.map +1 -1
  80. package/dist/iter-fest.asyncIteratorForEach.mjs +1 -1
  81. package/dist/iter-fest.asyncIteratorFrom.js +1 -1
  82. package/dist/iter-fest.asyncIteratorFrom.js.map +1 -1
  83. package/dist/iter-fest.asyncIteratorFrom.mjs +1 -1
  84. package/dist/iter-fest.asyncIteratorMap.js +1 -1
  85. package/dist/iter-fest.asyncIteratorMap.js.map +1 -1
  86. package/dist/iter-fest.asyncIteratorMap.mjs +1 -1
  87. package/dist/iter-fest.asyncIteratorReduce.js +1 -1
  88. package/dist/iter-fest.asyncIteratorReduce.js.map +1 -1
  89. package/dist/iter-fest.asyncIteratorReduce.mjs +1 -1
  90. package/dist/iter-fest.asyncIteratorSome.js +1 -1
  91. package/dist/iter-fest.asyncIteratorSome.js.map +1 -1
  92. package/dist/iter-fest.asyncIteratorSome.mjs +1 -1
  93. package/dist/iter-fest.asyncIteratorTake.js +1 -1
  94. package/dist/iter-fest.asyncIteratorTake.js.map +1 -1
  95. package/dist/iter-fest.asyncIteratorTake.mjs +1 -1
  96. package/dist/iter-fest.asyncIteratorToArray.js +1 -1
  97. package/dist/iter-fest.asyncIteratorToArray.js.map +1 -1
  98. package/dist/iter-fest.asyncIteratorToArray.mjs +1 -1
  99. package/dist/iter-fest.d.mts +1 -1
  100. package/dist/iter-fest.d.ts +1 -1
  101. package/dist/iter-fest.iterableWritableStream.js +1 -1
  102. package/dist/iter-fest.iterableWritableStream.js.map +1 -1
  103. package/dist/iter-fest.iterableWritableStream.mjs +1 -1
  104. package/dist/iter-fest.iteratorDrop.js +1 -1
  105. package/dist/iter-fest.iteratorDrop.js.map +1 -1
  106. package/dist/iter-fest.iteratorDrop.mjs +1 -1
  107. package/dist/iter-fest.iteratorEvery.js +1 -1
  108. package/dist/iter-fest.iteratorEvery.js.map +1 -1
  109. package/dist/iter-fest.iteratorEvery.mjs +1 -1
  110. package/dist/iter-fest.iteratorFilter.js +1 -1
  111. package/dist/iter-fest.iteratorFilter.js.map +1 -1
  112. package/dist/iter-fest.iteratorFilter.mjs +1 -1
  113. package/dist/iter-fest.iteratorFind.js +1 -1
  114. package/dist/iter-fest.iteratorFind.js.map +1 -1
  115. package/dist/iter-fest.iteratorFind.mjs +1 -1
  116. package/dist/iter-fest.iteratorFlatMap.js +1 -1
  117. package/dist/iter-fest.iteratorFlatMap.js.map +1 -1
  118. package/dist/iter-fest.iteratorFlatMap.mjs +1 -1
  119. package/dist/iter-fest.iteratorForEach.js +1 -1
  120. package/dist/iter-fest.iteratorForEach.js.map +1 -1
  121. package/dist/iter-fest.iteratorForEach.mjs +1 -1
  122. package/dist/iter-fest.iteratorFrom.js +1 -1
  123. package/dist/iter-fest.iteratorFrom.js.map +1 -1
  124. package/dist/iter-fest.iteratorFrom.mjs +1 -1
  125. package/dist/iter-fest.iteratorMap.js +1 -1
  126. package/dist/iter-fest.iteratorMap.js.map +1 -1
  127. package/dist/iter-fest.iteratorMap.mjs +1 -1
  128. package/dist/iter-fest.iteratorReduce.js +1 -1
  129. package/dist/iter-fest.iteratorReduce.js.map +1 -1
  130. package/dist/iter-fest.iteratorReduce.mjs +1 -1
  131. package/dist/iter-fest.iteratorSome.js +1 -1
  132. package/dist/iter-fest.iteratorSome.js.map +1 -1
  133. package/dist/iter-fest.iteratorSome.mjs +1 -1
  134. package/dist/iter-fest.iteratorTake.js +1 -1
  135. package/dist/iter-fest.iteratorTake.js.map +1 -1
  136. package/dist/iter-fest.iteratorTake.mjs +1 -1
  137. package/dist/iter-fest.iteratorToArray.js +1 -1
  138. package/dist/iter-fest.iteratorToArray.js.map +1 -1
  139. package/dist/iter-fest.iteratorToArray.mjs +1 -1
  140. package/dist/iter-fest.iteratorToAsync.js +1 -1
  141. package/dist/iter-fest.iteratorToAsync.js.map +1 -1
  142. package/dist/iter-fest.iteratorToAsync.mjs +1 -1
  143. package/dist/iter-fest.js +28 -28
  144. package/dist/iter-fest.js.map +1 -1
  145. package/dist/iter-fest.mjs +31 -31
  146. package/dist/iter-fest.observable.d.mts +1 -1
  147. package/dist/iter-fest.observable.d.ts +1 -1
  148. package/dist/iter-fest.observable.js +2 -2
  149. package/dist/iter-fest.observable.js.map +1 -1
  150. package/dist/iter-fest.observable.mjs +2 -2
  151. package/dist/iter-fest.observableFromAsync.d.mts +1 -1
  152. package/dist/iter-fest.observableFromAsync.d.ts +1 -1
  153. package/dist/iter-fest.observableFromAsync.js +2 -2
  154. package/dist/iter-fest.observableFromAsync.js.map +1 -1
  155. package/dist/iter-fest.observableFromAsync.mjs +3 -3
  156. package/dist/iter-fest.observableSubscribeAsReadable.d.mts +1 -1
  157. package/dist/iter-fest.observableSubscribeAsReadable.d.ts +1 -1
  158. package/dist/iter-fest.observableSubscribeAsReadable.js.map +1 -1
  159. package/dist/iter-fest.observableSubscribeAsReadable.mjs +1 -1
  160. package/dist/iter-fest.observableValues.d.mts +1 -1
  161. package/dist/iter-fest.observableValues.d.ts +1 -1
  162. package/dist/iter-fest.observableValues.js.map +1 -1
  163. package/dist/iter-fest.observableValues.mjs +2 -2
  164. package/dist/iter-fest.symbolObservable.js +1 -1
  165. package/dist/iter-fest.symbolObservable.js.map +1 -1
  166. package/dist/iter-fest.symbolObservable.mjs +1 -1
  167. package/package.json +2 -2
  168. package/dist/chunk-3S6LCGE6.mjs.map +0 -1
  169. package/dist/chunk-4RT2FROS.mjs.map +0 -1
  170. package/dist/chunk-4ZBMXHD6.mjs.map +0 -1
  171. package/dist/chunk-72AEHTPQ.mjs.map +0 -1
  172. package/dist/chunk-AOZVPHE4.mjs.map +0 -1
  173. package/dist/chunk-BWMXKULC.mjs.map +0 -1
  174. package/dist/chunk-CNKIGQUS.mjs.map +0 -1
  175. package/dist/chunk-DC2ZV7KQ.mjs.map +0 -1
  176. package/dist/chunk-EIIP7YWB.mjs.map +0 -1
  177. package/dist/chunk-FBST4AUL.mjs.map +0 -1
  178. package/dist/chunk-FEOLYD5R.mjs.map +0 -1
  179. package/dist/chunk-FMIHIL6A.mjs.map +0 -1
  180. package/dist/chunk-GFJGWVES.mjs.map +0 -1
  181. package/dist/chunk-J3FQSENW.mjs.map +0 -1
  182. package/dist/chunk-JVR6BUJA.mjs.map +0 -1
  183. package/dist/chunk-K4RCFPTZ.mjs.map +0 -1
  184. package/dist/chunk-LB3MK3EU.mjs.map +0 -1
  185. package/dist/chunk-LIMQXDFK.mjs.map +0 -1
  186. package/dist/chunk-NLXKATXE.mjs.map +0 -1
  187. package/dist/chunk-ODPKEUIR.mjs.map +0 -1
  188. package/dist/chunk-OJMT4K3R.mjs.map +0 -1
  189. package/dist/chunk-OWUGLCQB.mjs.map +0 -1
  190. package/dist/chunk-QLVU73KN.mjs.map +0 -1
  191. package/dist/chunk-R6SXIXMH.mjs.map +0 -1
  192. package/dist/chunk-S2LECQKY.mjs.map +0 -1
  193. package/dist/chunk-TDHR35S7.mjs.map +0 -1
  194. package/dist/chunk-VCKLUCOT.mjs.map +0 -1
  195. package/dist/chunk-VIMGYUMQ.mjs.map +0 -1
  196. package/dist/chunk-VLF6DI2U.mjs.map +0 -1
  197. package/dist/chunk-WUFMEPOM.mjs.map +0 -1
  198. package/dist/chunk-XQDGXAAF.mjs.map +0 -1
@@ -1,5 +1,5 @@
1
1
  // src/iteratorReduce.ts
2
- import reduce from "core-js-pure/full/iterator/reduce";
2
+ import reduce from "core-js-pure/full/iterator/reduce.js";
3
3
  function iteratorReduce(iterator, callbackfn, initialValue) {
4
4
  return reduce(iterator, callbackfn, initialValue);
5
5
  }
@@ -7,4 +7,4 @@ function iteratorReduce(iterator, callbackfn, initialValue) {
7
7
  export {
8
8
  iteratorReduce
9
9
  };
10
- //# sourceMappingURL=chunk-LIMQXDFK.mjs.map
10
+ //# sourceMappingURL=chunk-2BBSIYMU.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/iteratorReduce.ts"],"sourcesContent":["// @ts-expect-error core-js-pure is not typed.\nimport reduce from 'core-js-pure/full/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 iteratorReduce<T>(\n iterator: Iterator<T>,\n callbackfn: (previousValue: T, currentValue: T, currentIndex: number) => T\n): T;\n\nexport function iteratorReduce<T>(\n iterator: Iterator<T>,\n callbackfn: (previousValue: T, currentValue: T, currentIndex: number) => 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 iteratorReduce<T, U>(\n iterator: Iterator<T>,\n callbackfn: (previousValue: U, currentValue: T, currentIndex: number) => U,\n initialValue: U\n): U;\n\nexport function iteratorReduce<T, U = undefined>(\n iterator: Iterator<T>,\n callbackfn: (previousValue: U | undefined, currentValue: T, currentIndex: number) => U,\n initialValue?: U\n): U | undefined {\n return reduce(iterator, callbackfn, initialValue);\n}\n"],"mappings":";AACA,OAAO,YAAY;AAqCZ,SAAS,eACd,UACA,YACA,cACe;AACf,SAAO,OAAO,UAAU,YAAY,YAAY;AAClD;","names":[]}
@@ -1,5 +1,5 @@
1
1
  // src/private/withResolvers.ts
2
- import coreJSPromiseWithResolvers from "core-js-pure/full/promise/with-resolvers";
2
+ import coreJSPromiseWithResolvers from "core-js-pure/full/promise/with-resolvers.js";
3
3
  function withResolvers() {
4
4
  return coreJSPromiseWithResolvers();
5
5
  }
@@ -43,4 +43,4 @@ var IterableWritableStream = class extends WritableStream {
43
43
  export {
44
44
  IterableWritableStream
45
45
  };
46
- //# sourceMappingURL=chunk-BWMXKULC.mjs.map
46
+ //# sourceMappingURL=chunk-5LYB6HR7.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/private/withResolvers.ts","../src/iterableWritableStream.ts"],"sourcesContent":["// @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","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"],"mappings":";AACA,OAAO,gCAAgC;AAExB,SAAR,gBAA6D;AAClE,SAAO,2BAA2B;AACpC;;;ACHA,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":[]}
@@ -1,5 +1,5 @@
1
1
  // src/asyncIteratorToArray.ts
2
- import toArray from "core-js-pure/full/async-iterator/to-array";
2
+ import toArray from "core-js-pure/full/async-iterator/to-array.js";
3
3
  function asyncIteratorToArray(asyncIteratorLike) {
4
4
  return toArray(asyncIteratorLike);
5
5
  }
@@ -7,4 +7,4 @@ function asyncIteratorToArray(asyncIteratorLike) {
7
7
  export {
8
8
  asyncIteratorToArray
9
9
  };
10
- //# sourceMappingURL=chunk-JVR6BUJA.mjs.map
10
+ //# sourceMappingURL=chunk-745JDME6.mjs.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.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":";AACA,OAAO,aAAa;AASb,SAAS,qBAAwB,mBAAiE;AACvG,SAAO,QAAQ,iBAAiB;AAClC;","names":[]}
@@ -1,5 +1,5 @@
1
1
  // src/asyncIteratorFind.ts
2
- import find from "core-js-pure/full/async-iterator/find";
2
+ import find from "core-js-pure/full/async-iterator/find.js";
3
3
  function asyncIteratorFind(asyncIterator, predicate) {
4
4
  return find(asyncIterator, predicate);
5
5
  }
@@ -7,4 +7,4 @@ function asyncIteratorFind(asyncIterator, predicate) {
7
7
  export {
8
8
  asyncIteratorFind
9
9
  };
10
- //# sourceMappingURL=chunk-CNKIGQUS.mjs.map
10
+ //# sourceMappingURL=chunk-AUWAPRBT.mjs.map
@@ -0,0 +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.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":";AACA,OAAO,UAAU;AAsBV,SAAS,kBACd,eACA,WACwB;AACxB,SAAO,KAAK,eAAe,SAAS;AACtC;","names":[]}
@@ -1,8 +1,8 @@
1
1
  // src/SymbolObservable.ts
2
- import CoreJSSymbolObservable from "core-js-pure/features/symbol/observable";
2
+ import CoreJSSymbolObservable from "core-js-pure/features/symbol/observable.js";
3
3
  var SymbolObservable = CoreJSSymbolObservable;
4
4
 
5
5
  export {
6
6
  SymbolObservable
7
7
  };
8
- //# sourceMappingURL=chunk-OJMT4K3R.mjs.map
8
+ //# sourceMappingURL=chunk-BZKIZ3TX.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/SymbolObservable.ts"],"sourcesContent":["// @ts-expect-error core-js is not typed.\nimport CoreJSSymbolObservable from 'core-js-pure/features/symbol/observable.js';\n\nconst SymbolObservable: unique symbol = CoreJSSymbolObservable;\n\nexport { SymbolObservable };\n"],"mappings":";AACA,OAAO,4BAA4B;AAEnC,IAAM,mBAAkC;","names":[]}
@@ -1,5 +1,5 @@
1
1
  // src/iteratorForEach.ts
2
- import forEach from "core-js-pure/full/iterator/for-each";
2
+ import forEach from "core-js-pure/full/iterator/for-each.js";
3
3
  function iteratorForEach(iterator, callbackfn) {
4
4
  forEach(iterator, callbackfn);
5
5
  }
@@ -7,4 +7,4 @@ function iteratorForEach(iterator, callbackfn) {
7
7
  export {
8
8
  iteratorForEach
9
9
  };
10
- //# sourceMappingURL=chunk-FMIHIL6A.mjs.map
10
+ //# sourceMappingURL=chunk-DSRJWJF3.mjs.map
@@ -0,0 +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.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":";AACA,OAAO,aAAa;AASb,SAAS,gBAAmB,UAAuB,YAAqD;AAC7G,UAAQ,UAAU,UAAU;AAC9B;","names":[]}
@@ -1,5 +1,5 @@
1
1
  // src/asyncIteratorFlatMap.ts
2
- import flatMap from "core-js-pure/full/async-iterator/flat-map";
2
+ import flatMap from "core-js-pure/full/async-iterator/flat-map.js";
3
3
  function asyncIteratorFlatMap(asyncIterator, mapperFn) {
4
4
  return flatMap(asyncIterator, mapperFn);
5
5
  }
@@ -7,4 +7,4 @@ function asyncIteratorFlatMap(asyncIterator, mapperFn) {
7
7
  export {
8
8
  asyncIteratorFlatMap
9
9
  };
10
- //# sourceMappingURL=chunk-GFJGWVES.mjs.map
10
+ //# sourceMappingURL=chunk-DYPZDL4O.mjs.map
@@ -0,0 +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.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":";AACA,OAAO,aAAa;AAWb,SAAS,qBACd,eACA,UACkB;AAClB,SAAO,QAAQ,eAAe,QAAQ;AACxC;","names":[]}
@@ -1,5 +1,5 @@
1
1
  // src/iteratorDrop.ts
2
- import drop from "core-js-pure/full/iterator/drop";
2
+ import drop from "core-js-pure/full/iterator/drop.js";
3
3
  function iteratorDrop(iterator, limit) {
4
4
  return drop(iterator, limit);
5
5
  }
@@ -7,4 +7,4 @@ function iteratorDrop(iterator, limit) {
7
7
  export {
8
8
  iteratorDrop
9
9
  };
10
- //# sourceMappingURL=chunk-R6SXIXMH.mjs.map
10
+ //# sourceMappingURL=chunk-EES7QVUK.mjs.map
@@ -0,0 +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.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":";AACA,OAAO,UAAU;AAWV,SAAS,aAAgB,UAAuB,OAA4B;AACjF,SAAO,KAAK,UAAU,KAAK;AAC7B;","names":[]}
@@ -1,5 +1,5 @@
1
1
  // src/iteratorSome.ts
2
- import some from "core-js-pure/full/iterator/some";
2
+ import some from "core-js-pure/full/iterator/some.js";
3
3
  function iteratorSome(iterator, predicate) {
4
4
  return some(iterator, predicate);
5
5
  }
@@ -7,4 +7,4 @@ function iteratorSome(iterator, predicate) {
7
7
  export {
8
8
  iteratorSome
9
9
  };
10
- //# sourceMappingURL=chunk-3S6LCGE6.mjs.map
10
+ //# sourceMappingURL=chunk-EOGNKTFW.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/iteratorSome.ts"],"sourcesContent":["// @ts-expect-error core-js-pure is not typed.\nimport some from 'core-js-pure/full/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 iteratorSome<T>(iterator: Iterator<T>, predicate: (value: T, index: number) => unknown): boolean {\n return some(iterator, predicate);\n}\n"],"mappings":";AACA,OAAO,UAAU;AASV,SAAS,aAAgB,UAAuB,WAA0D;AAC/G,SAAO,KAAK,UAAU,SAAS;AACjC;","names":[]}
@@ -1,5 +1,5 @@
1
1
  // src/iteratorToArray.ts
2
- import toArray from "core-js-pure/full/iterator/to-array";
2
+ import toArray from "core-js-pure/full/iterator/to-array.js";
3
3
  function iteratorToArray(iteratorLike) {
4
4
  return toArray(iteratorLike);
5
5
  }
@@ -7,4 +7,4 @@ function iteratorToArray(iteratorLike) {
7
7
  export {
8
8
  iteratorToArray
9
9
  };
10
- //# sourceMappingURL=chunk-S2LECQKY.mjs.map
10
+ //# sourceMappingURL=chunk-EXAULUZ6.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/iteratorToArray.ts"],"sourcesContent":["// @ts-expect-error core-js-pure is not typed.\nimport toArray from 'core-js-pure/full/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 iteratorToArray<T>(iteratorLike: Pick<Iterator<T>, 'next'>): T[] {\n return toArray(iteratorLike);\n}\n"],"mappings":";AACA,OAAO,aAAa;AASb,SAAS,gBAAmB,cAA8C;AAC/E,SAAO,QAAQ,YAAY;AAC7B;","names":[]}
@@ -1,5 +1,5 @@
1
1
  // src/asyncIteratorEvery.ts
2
- import every from "core-js-pure/full/async-iterator/every";
2
+ import every from "core-js-pure/full/async-iterator/every.js";
3
3
  function asyncIteratorEvery(iterator, predicate) {
4
4
  return every(iterator, predicate);
5
5
  }
@@ -7,4 +7,4 @@ function asyncIteratorEvery(iterator, predicate) {
7
7
  export {
8
8
  asyncIteratorEvery
9
9
  };
10
- //# sourceMappingURL=chunk-4RT2FROS.mjs.map
10
+ //# sourceMappingURL=chunk-EYUTOVZ3.mjs.map
@@ -0,0 +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.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":";AACA,OAAO,WAAW;AAiCX,SAAS,mBACd,UACA,WACkB;AAClB,SAAO,MAAM,UAAU,SAAS;AAClC;","names":[]}
@@ -1,5 +1,5 @@
1
1
  // src/asyncIteratorTake.ts
2
- import take from "core-js-pure/full/async-iterator/take";
2
+ import take from "core-js-pure/full/async-iterator/take.js";
3
3
  function asyncIteratorTake(asyncIterator, limit) {
4
4
  return take(asyncIterator, limit);
5
5
  }
@@ -7,4 +7,4 @@ function asyncIteratorTake(asyncIterator, limit) {
7
7
  export {
8
8
  asyncIteratorTake
9
9
  };
10
- //# sourceMappingURL=chunk-AOZVPHE4.mjs.map
10
+ //# sourceMappingURL=chunk-HTHDBSFD.mjs.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.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":";AACA,OAAO,UAAU;AAWV,SAAS,kBAAqB,eAAiC,OAAiC;AACrG,SAAO,KAAK,eAAe,KAAK;AAClC;","names":[]}
@@ -1,5 +1,5 @@
1
1
  // src/asyncIteratorDrop.ts
2
- import drop from "core-js-pure/full/async-iterator/drop";
2
+ import drop from "core-js-pure/full/async-iterator/drop.js";
3
3
  function asyncIteratorDrop(asyncIterator, limit) {
4
4
  return drop(asyncIterator, limit);
5
5
  }
@@ -7,4 +7,4 @@ function asyncIteratorDrop(asyncIterator, limit) {
7
7
  export {
8
8
  asyncIteratorDrop
9
9
  };
10
- //# sourceMappingURL=chunk-K4RCFPTZ.mjs.map
10
+ //# sourceMappingURL=chunk-IBEDYMB6.mjs.map
@@ -0,0 +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.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":";AACA,OAAO,UAAU;AAWV,SAAS,kBAAqB,eAAiC,OAAiC;AACrG,SAAO,KAAK,eAAe,KAAK;AAClC;","names":[]}
@@ -1,5 +1,5 @@
1
1
  // src/iteratorFrom.ts
2
- import from from "core-js-pure/full/iterator/from";
2
+ import from from "core-js-pure/full/iterator/from.js";
3
3
  function iteratorFrom(iteratorLike) {
4
4
  return from(iteratorLike);
5
5
  }
@@ -7,4 +7,4 @@ function iteratorFrom(iteratorLike) {
7
7
  export {
8
8
  iteratorFrom
9
9
  };
10
- //# sourceMappingURL=chunk-DC2ZV7KQ.mjs.map
10
+ //# sourceMappingURL=chunk-II2OQXU4.mjs.map
@@ -0,0 +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.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 iteratorFrom<T>(iteratorLike: Pick<Iterator<T>, 'next'>): Iterator<T> {\n return from(iteratorLike);\n}\n"],"mappings":";AACA,OAAO,UAAU;AASV,SAAS,aAAgB,cAAsD;AACpF,SAAO,KAAK,YAAY;AAC1B;","names":[]}
@@ -1,5 +1,5 @@
1
1
  // src/iteratorEvery.ts
2
- import every from "core-js-pure/full/iterator/every";
2
+ import every from "core-js-pure/full/iterator/every.js";
3
3
  function iteratorEvery(iterator, predicate) {
4
4
  return every(iterator, predicate);
5
5
  }
@@ -7,4 +7,4 @@ function iteratorEvery(iterator, predicate) {
7
7
  export {
8
8
  iteratorEvery
9
9
  };
10
- //# sourceMappingURL=chunk-OWUGLCQB.mjs.map
10
+ //# sourceMappingURL=chunk-J5OJ3I7A.mjs.map
@@ -0,0 +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.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":";AACA,OAAO,WAAW;AA8BX,SAAS,cAAiB,UAAuB,WAA0D;AAChH,SAAO,MAAM,UAAU,SAAS;AAClC;","names":[]}
@@ -1,5 +1,5 @@
1
1
  // src/asyncIteratorForEach.ts
2
- import forEach from "core-js-pure/full/async-iterator/for-each";
2
+ import forEach from "core-js-pure/full/async-iterator/for-each.js";
3
3
  function asyncIteratorForEach(asyncIterator, callbackfn) {
4
4
  return forEach(asyncIterator, callbackfn);
5
5
  }
@@ -7,4 +7,4 @@ function asyncIteratorForEach(asyncIterator, callbackfn) {
7
7
  export {
8
8
  asyncIteratorForEach
9
9
  };
10
- //# sourceMappingURL=chunk-J3FQSENW.mjs.map
10
+ //# sourceMappingURL=chunk-JS222K7K.mjs.map
@@ -0,0 +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.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":";AACA,OAAO,aAAa;AASb,SAAS,qBACd,eACA,YACe;AACf,SAAO,QAAQ,eAAe,UAAU;AAC1C;","names":[]}
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-RVIERPEV.mjs";
4
4
  import {
5
5
  observableSubscribeAsReadable
6
- } from "./chunk-EIIP7YWB.mjs";
6
+ } from "./chunk-OVRHHTSG.mjs";
7
7
 
8
8
  // src/observableValues.ts
9
9
  function observableValues(observable) {
@@ -35,4 +35,4 @@ function observableValues(observable) {
35
35
  export {
36
36
  observableValues
37
37
  };
38
- //# sourceMappingURL=chunk-72AEHTPQ.mjs.map
38
+ //# sourceMappingURL=chunk-KE7SRYHM.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/observableValues.ts"],"sourcesContent":["import type { Observable } from './Observable.js';\nimport { observableSubscribeAsReadable } from './observableSubscribeAsReadable.ts';\nimport { readableStreamValues } from './readableStreamValues.ts';\n\nexport function observableValues<T>(observable: Observable<T>): AsyncIterableIterator<T> {\n const readable = observableSubscribeAsReadable(observable);\n const iterable = readableStreamValues(readable);\n\n const cancellableIterable: AsyncIterableIterator<T> = {\n [Symbol.asyncIterator]() {\n return cancellableIterable;\n },\n next() {\n return iterable.next();\n },\n return() {\n try {\n return iterable.return?.() ?? Promise.resolve({ done: true, value: undefined });\n } finally {\n readable.cancel();\n }\n },\n throw(error) {\n return iterable.throw?.(error) ?? Promise.resolve({ done: true, value: undefined });\n }\n };\n\n return cancellableIterable;\n}\n"],"mappings":";;;;;;;;AAIO,SAAS,iBAAoB,YAAqD;AACvF,QAAM,WAAW,8BAA8B,UAAU;AACzD,QAAM,WAAW,qBAAqB,QAAQ;AAE9C,QAAM,sBAAgD;AAAA,IACpD,CAAC,OAAO,aAAa,IAAI;AACvB,aAAO;AAAA,IACT;AAAA,IACA,OAAO;AACL,aAAO,SAAS,KAAK;AAAA,IACvB;AAAA,IACA,SAAS;AAfb;AAgBM,UAAI;AACF,iBAAO,cAAS,WAAT,sCAAuB,QAAQ,QAAQ,EAAE,MAAM,MAAM,OAAO,OAAU,CAAC;AAAA,MAChF,UAAE;AACA,iBAAS,OAAO;AAAA,MAClB;AAAA,IACF;AAAA,IACA,MAAM,OAAO;AAtBjB;AAuBM,eAAO,cAAS,UAAT,kCAAiB,WAAU,QAAQ,QAAQ,EAAE,MAAM,MAAM,OAAO,OAAU,CAAC;AAAA,IACpF;AAAA,EACF;AAEA,SAAO;AACT;","names":[]}
@@ -1,5 +1,5 @@
1
1
  // src/iteratorFind.ts
2
- import find from "core-js-pure/full/iterator/find";
2
+ import find from "core-js-pure/full/iterator/find.js";
3
3
  function iteratorFind(iterator, predicate) {
4
4
  return find(iterator, predicate);
5
5
  }
@@ -7,4 +7,4 @@ function iteratorFind(iterator, predicate) {
7
7
  export {
8
8
  iteratorFind
9
9
  };
10
- //# sourceMappingURL=chunk-FBST4AUL.mjs.map
10
+ //# sourceMappingURL=chunk-KQYVNSKA.mjs.map
@@ -0,0 +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.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":";AACA,OAAO,UAAU;AAmBV,SAAS,aACd,UACA,WACe;AACf,SAAO,KAAK,UAAU,SAAS;AACjC;","names":[]}
@@ -1,5 +1,5 @@
1
1
  // src/asyncIteratorReduce.ts
2
- import reduce from "core-js-pure/full/async-iterator/reduce";
2
+ import reduce from "core-js-pure/full/async-iterator/reduce.js";
3
3
  function asyncIteratorReduce(asyncIterator, callbackfn, initialValue) {
4
4
  return reduce(asyncIterator, callbackfn, initialValue);
5
5
  }
@@ -7,4 +7,4 @@ function asyncIteratorReduce(asyncIterator, callbackfn, initialValue) {
7
7
  export {
8
8
  asyncIteratorReduce
9
9
  };
10
- //# sourceMappingURL=chunk-QLVU73KN.mjs.map
10
+ //# sourceMappingURL=chunk-KXQVMKFK.mjs.map
@@ -0,0 +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.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":";AACA,OAAO,YAAY;AAqCZ,SAAS,oBACd,eACA,YACA,cACwB;AACxB,SAAO,OAAO,eAAe,YAAY,YAAY;AACvD;","names":[]}
@@ -1,5 +1,5 @@
1
1
  // src/iteratorFilter.ts
2
- import filter from "core-js-pure/full/iterator/filter";
2
+ import filter from "core-js-pure/full/iterator/filter.js";
3
3
  function iteratorFilter(iterator, predicate) {
4
4
  return filter(iterator, predicate);
5
5
  }
@@ -7,4 +7,4 @@ function iteratorFilter(iterator, predicate) {
7
7
  export {
8
8
  iteratorFilter
9
9
  };
10
- //# sourceMappingURL=chunk-TDHR35S7.mjs.map
10
+ //# sourceMappingURL=chunk-MT3HFVKE.mjs.map
@@ -0,0 +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.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":";AACA,OAAO,YAAY;AA0BZ,SAAS,eACd,UACA,WACqB;AACrB,SAAO,OAAO,UAAU,SAAS;AACnC;","names":[]}
@@ -1,5 +1,5 @@
1
1
  // src/asyncIteratorFrom.ts
2
- import from from "core-js-pure/full/async-iterator/from";
2
+ import from from "core-js-pure/full/async-iterator/from.js";
3
3
  function asyncIteratorFrom(asyncIteratorLike) {
4
4
  return from(asyncIteratorLike);
5
5
  }
@@ -7,4 +7,4 @@ function asyncIteratorFrom(asyncIteratorLike) {
7
7
  export {
8
8
  asyncIteratorFrom
9
9
  };
10
- //# sourceMappingURL=chunk-NLXKATXE.mjs.map
10
+ //# sourceMappingURL=chunk-OHH4ICOH.mjs.map
@@ -0,0 +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.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":";AACA,OAAO,UAAU;AASV,SAAS,kBAAqB,mBAAqE;AACxG,SAAO,KAAK,iBAAiB;AAC/B;","names":[]}
@@ -1,5 +1,5 @@
1
1
  // src/asyncIteratorFilter.ts
2
- import filter from "core-js-pure/full/async-iterator/filter";
2
+ import filter from "core-js-pure/full/async-iterator/filter.js";
3
3
  function asyncIteratorFilter(asyncIterator, predicate) {
4
4
  return filter(asyncIterator, predicate);
5
5
  }
@@ -7,4 +7,4 @@ function asyncIteratorFilter(asyncIterator, predicate) {
7
7
  export {
8
8
  asyncIteratorFilter
9
9
  };
10
- //# sourceMappingURL=chunk-4ZBMXHD6.mjs.map
10
+ //# sourceMappingURL=chunk-OHOZ4GTV.mjs.map
@@ -0,0 +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.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":";AACA,OAAO,YAAY;AA0BZ,SAAS,oBACd,eACA,WAC0B;AAC1B,SAAO,OAAO,eAAe,SAAS;AACxC;","names":[]}
@@ -24,4 +24,4 @@ function observableSubscribeAsReadable(observable) {
24
24
  export {
25
25
  observableSubscribeAsReadable
26
26
  };
27
- //# sourceMappingURL=chunk-EIIP7YWB.mjs.map
27
+ //# sourceMappingURL=chunk-OVRHHTSG.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/observableSubscribeAsReadable.ts"],"sourcesContent":["import type { Observable, Subscription } from './Observable.js';\n\nexport function observableSubscribeAsReadable<T>(observable: Observable<T>): ReadableStream<T> {\n let subscription: Subscription;\n\n return new ReadableStream<T>({\n cancel() {\n subscription.unsubscribe();\n },\n start(controller) {\n subscription = observable.subscribe({\n complete() {\n controller.close();\n },\n error(err: unknown) {\n controller.error(err);\n },\n next(value) {\n controller.enqueue(value);\n }\n });\n }\n });\n}\n"],"mappings":";AAEO,SAAS,8BAAiC,YAA8C;AAC7F,MAAI;AAEJ,SAAO,IAAI,eAAkB;AAAA,IAC3B,SAAS;AACP,mBAAa,YAAY;AAAA,IAC3B;AAAA,IACA,MAAM,YAAY;AAChB,qBAAe,WAAW,UAAU;AAAA,QAClC,WAAW;AACT,qBAAW,MAAM;AAAA,QACnB;AAAA,QACA,MAAM,KAAc;AAClB,qBAAW,MAAM,GAAG;AAAA,QACtB;AAAA,QACA,KAAK,OAAO;AACV,qBAAW,QAAQ,KAAK;AAAA,QAC1B;AAAA,MACF,CAAC;AAAA,IACH;AAAA,EACF,CAAC;AACH;","names":[]}
@@ -1,5 +1,5 @@
1
1
  // src/iteratorMap.ts
2
- import map from "core-js-pure/full/iterator/map";
2
+ import map from "core-js-pure/full/iterator/map.js";
3
3
  function iteratorMap(iterator, callbackfn) {
4
4
  return map(iterator, callbackfn);
5
5
  }
@@ -7,4 +7,4 @@ function iteratorMap(iterator, callbackfn) {
7
7
  export {
8
8
  iteratorMap
9
9
  };
10
- //# sourceMappingURL=chunk-XQDGXAAF.mjs.map
10
+ //# sourceMappingURL=chunk-P7UI3YKU.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/iteratorMap.ts"],"sourcesContent":["// @ts-expect-error core-js-pure is not typed.\nimport map from 'core-js-pure/full/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 iteratorMap<T, U>(\n iterator: Iterator<T>,\n callbackfn: (value: T, index: number) => U\n): IterableIterator<U> {\n return map(iterator, callbackfn);\n}\n"],"mappings":";AACA,OAAO,SAAS;AAST,SAAS,YACd,UACA,YACqB;AACrB,SAAO,IAAI,UAAU,UAAU;AACjC;","names":[]}
@@ -1,5 +1,5 @@
1
1
  // src/asyncIteratorSome.ts
2
- import some from "core-js-pure/full/async-iterator/some";
2
+ import some from "core-js-pure/full/async-iterator/some.js";
3
3
  function asyncIteratorSome(asyncIterator, predicate) {
4
4
  return some(asyncIterator, predicate);
5
5
  }
@@ -7,4 +7,4 @@ function asyncIteratorSome(asyncIterator, predicate) {
7
7
  export {
8
8
  asyncIteratorSome
9
9
  };
10
- //# sourceMappingURL=chunk-ODPKEUIR.mjs.map
10
+ //# sourceMappingURL=chunk-RE7BGAPD.mjs.map
@@ -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.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":";AACA,OAAO,UAAU;AASV,SAAS,kBACd,eACA,WACkB;AAClB,SAAO,KAAK,eAAe,SAAS;AACtC;","names":[]}
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Observable
3
- } from "./chunk-VLF6DI2U.mjs";
3
+ } from "./chunk-TSHK7TEP.mjs";
4
4
 
5
5
  // src/observableFromAsync.ts
6
6
  function observableFromAsync(iterable) {
@@ -28,4 +28,4 @@ function observableFromAsync(iterable) {
28
28
  export {
29
29
  observableFromAsync
30
30
  };
31
- //# sourceMappingURL=chunk-FEOLYD5R.mjs.map
31
+ //# sourceMappingURL=chunk-RHCU757P.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/observableFromAsync.ts"],"sourcesContent":["import { Observable } from './Observable.ts';\n\nexport function observableFromAsync<T>(iterable: AsyncIterable<T>): Observable<T> {\n return new Observable(subscriber => {\n let closed = false;\n\n (async function () {\n try {\n for await (const value of iterable) {\n if (closed) {\n break;\n }\n\n subscriber.next(value);\n }\n\n subscriber.complete();\n } catch (error) {\n subscriber.error(error);\n }\n })();\n\n return () => {\n closed = true;\n };\n });\n}\n"],"mappings":";;;;;AAEO,SAAS,oBAAuB,UAA2C;AAChF,SAAO,IAAI,WAAW,gBAAc;AAClC,QAAI,SAAS;AAEb,KAAC,iBAAkB;AACjB,UAAI;AACF,yBAAiB,SAAS,UAAU;AAClC,cAAI,QAAQ;AACV;AAAA,UACF;AAEA,qBAAW,KAAK,KAAK;AAAA,QACvB;AAEA,mBAAW,SAAS;AAAA,MACtB,SAAS,OAAO;AACd,mBAAW,MAAM,KAAK;AAAA,MACxB;AAAA,IACF,GAAG;AAEH,WAAO,MAAM;AACX,eAAS;AAAA,IACX;AAAA,EACF,CAAC;AACH;","names":[]}
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  SymbolObservable
3
- } from "./chunk-OJMT4K3R.mjs";
3
+ } from "./chunk-BZKIZ3TX.mjs";
4
4
 
5
5
  // src/Observable.ts
6
- import CoreJSObservable from "core-js-pure/full/observable";
6
+ import CoreJSObservable from "core-js-pure/full/observable/index.js";
7
7
  var Observable = class extends CoreJSObservable {
8
8
  constructor(subscriber) {
9
9
  super(subscriber);
@@ -27,4 +27,4 @@ var Observable = class extends CoreJSObservable {
27
27
  export {
28
28
  Observable
29
29
  };
30
- //# sourceMappingURL=chunk-VLF6DI2U.mjs.map
30
+ //# sourceMappingURL=chunk-TSHK7TEP.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/Observable.ts"],"sourcesContent":["// @ts-expect-error core-js is not typed.\nimport CoreJSObservable from 'core-js-pure/full/observable/index.js';\n\nimport { SymbolObservable } from './SymbolObservable.ts';\n\nexport interface SubscriptionObserver<T> {\n /** Sends the next value in the sequence */\n next(value: T): void;\n\n /** Sends the sequence error */\n error(errorValue: unknown): void;\n\n /** Sends the completion notification */\n complete(): void;\n\n /** A boolean value indicating whether the subscription is closed */\n get closed(): boolean;\n}\n\nexport interface Subscription {\n /** Cancels the subscription */\n unsubscribe(): void;\n\n /** A boolean value indicating whether the subscription is closed */\n get closed(): boolean;\n}\n\nexport type SubscriberFunction<T> = (observer: SubscriptionObserver<T>) => (() => void) | Subscription | void;\n\nexport type CompleteFunction = () => void;\nexport type ErrorFunction = (errorValue: unknown) => void;\nexport type NextFunction<T> = (value: T) => void;\nexport type StartFunction = (subscription: Subscription) => void;\n\nexport interface Observer<T> {\n /** Receives a completion notification */\n complete?(): void;\n\n /** Receives the sequence error */\n error?(errorValue: unknown): void;\n\n /** Receives the next value in the sequence */\n next?(value: T): void;\n\n /** Receives the subscription object when `subscribe` is called */\n start?(subscription: Subscription): void;\n}\n\nexport class Observable<T> extends CoreJSObservable {\n constructor(subscriber: SubscriberFunction<T>) {\n super(subscriber);\n }\n\n /** Subscribes to the sequence with an observer */\n subscribe(observer: Observer<T>): Subscription;\n\n /** Subscribes to the sequence with callbacks */\n subscribe(\n onNext: NextFunction<T>,\n onError?: ErrorFunction | undefined,\n onComplete?: CompleteFunction | undefined\n ): Subscription;\n\n subscribe(\n observerOrOnNext: Observer<T> | NextFunction<T>,\n onError?: ErrorFunction | undefined,\n onComplete?: CompleteFunction | undefined\n ): Subscription {\n return super.subscribe(observerOrOnNext, onError, onComplete);\n }\n\n /** Returns itself */\n [SymbolObservable](): Observable<T> {\n return this;\n }\n\n /** Converts items to an Observable */\n static of<T>(...items: T[]): Observable<T> {\n return CoreJSObservable.of(...items);\n }\n\n /** Converts an iterable to an Observable */\n static from<T>(iterable: Iterable<T>): Observable<T>;\n\n /** Converts an observable to an Observable */\n static from<T>(observable: Observable<T>): Observable<T>;\n\n static from<T>(iterableOrObservable: Iterable<T> | Observable<T>): Observable<T> {\n return CoreJSObservable.from(iterableOrObservable);\n }\n}\n"],"mappings":";;;;;AACA,OAAO,sBAAsB;AA+CtB,IAAM,aAAN,cAA4B,iBAAiB;AAAA,EAClD,YAAY,YAAmC;AAC7C,UAAM,UAAU;AAAA,EAClB;AAAA,EAYA,UACE,kBACA,SACA,YACc;AACd,WAAO,MAAM,UAAU,kBAAkB,SAAS,UAAU;AAAA,EAC9D;AAAA;AAAA,EAGA,CAAC,gBAAgB,IAAmB;AAClC,WAAO;AAAA,EACT;AAAA;AAAA,EAGA,OAAO,MAAS,OAA2B;AACzC,WAAO,iBAAiB,GAAG,GAAG,KAAK;AAAA,EACrC;AAAA,EAQA,OAAO,KAAQ,sBAAkE;AAC/E,WAAO,iBAAiB,KAAK,oBAAoB;AAAA,EACnD;AACF;","names":[]}
@@ -1,5 +1,5 @@
1
1
  // src/iteratorToAsync.ts
2
- import toAsync from "core-js-pure/full/iterator/to-async";
2
+ import toAsync from "core-js-pure/full/iterator/to-async.js";
3
3
  function iteratorToAsync(iterator) {
4
4
  return toAsync(iterator);
5
5
  }
@@ -7,4 +7,4 @@ function iteratorToAsync(iterator) {
7
7
  export {
8
8
  iteratorToAsync
9
9
  };
10
- //# sourceMappingURL=chunk-WUFMEPOM.mjs.map
10
+ //# sourceMappingURL=chunk-VP5SFGCE.mjs.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.js';\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":";AACA,OAAO,aAAa;AASb,SAAS,gBAAmB,UAAyC;AAC1E,SAAO,QAAQ,QAAQ;AACzB;","names":[]}
@@ -1,5 +1,5 @@
1
1
  // src/iteratorTake.ts
2
- import take from "core-js-pure/full/iterator/take";
2
+ import take from "core-js-pure/full/iterator/take.js";
3
3
  function iteratorTake(iterator, limit) {
4
4
  return take(iterator, limit);
5
5
  }
@@ -7,4 +7,4 @@ function iteratorTake(iterator, limit) {
7
7
  export {
8
8
  iteratorTake
9
9
  };
10
- //# sourceMappingURL=chunk-VCKLUCOT.mjs.map
10
+ //# sourceMappingURL=chunk-VPA3WEBS.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/iteratorTake.ts"],"sourcesContent":["// @ts-expect-error core-js-pure is not typed.\nimport take from 'core-js-pure/full/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 iteratorTake<T>(iterator: Iterator<T>, limit: number): Iterator<T> {\n return take(iterator, limit);\n}\n"],"mappings":";AACA,OAAO,UAAU;AAWV,SAAS,aAAgB,UAAuB,OAA4B;AACjF,SAAO,KAAK,UAAU,KAAK;AAC7B;","names":[]}
@@ -1,5 +1,5 @@
1
1
  // src/iteratorFlatMap.ts
2
- import flatMap from "core-js-pure/full/iterator/flat-map";
2
+ import flatMap from "core-js-pure/full/iterator/flat-map.js";
3
3
  function iteratorFlatMap(iterator, mapperFn) {
4
4
  return flatMap(iterator, mapperFn);
5
5
  }
@@ -7,4 +7,4 @@ function iteratorFlatMap(iterator, mapperFn) {
7
7
  export {
8
8
  iteratorFlatMap
9
9
  };
10
- //# sourceMappingURL=chunk-VIMGYUMQ.mjs.map
10
+ //# sourceMappingURL=chunk-XPZYZEW2.mjs.map
@@ -0,0 +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.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":";AACA,OAAO,aAAa;AAWb,SAAS,gBAAsB,UAAuB,UAAuD;AAClH,SAAO,QAAQ,UAAU,QAAQ;AACnC;","names":[]}
@@ -1,5 +1,5 @@
1
1
  // src/asyncIteratorMap.ts
2
- import map from "core-js-pure/full/async-iterator/map";
2
+ import map from "core-js-pure/full/async-iterator/map.js";
3
3
  function asyncIteratorMap(asyncIterator, callbackfn) {
4
4
  return map(asyncIterator, callbackfn);
5
5
  }
@@ -7,4 +7,4 @@ function asyncIteratorMap(asyncIterator, callbackfn) {
7
7
  export {
8
8
  asyncIteratorMap
9
9
  };
10
- //# sourceMappingURL=chunk-LB3MK3EU.mjs.map
10
+ //# sourceMappingURL=chunk-YJBQPGDC.mjs.map