iter-fest 0.1.1-main.f9dfd27 → 0.2.1-main.25af1d2

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 (514) hide show
  1. package/README.md +189 -62
  2. package/dist/chunk-2BBSIYMU.mjs +10 -0
  3. package/dist/chunk-2BBSIYMU.mjs.map +1 -0
  4. package/dist/chunk-2DE3J4J7.mjs +35 -0
  5. package/dist/chunk-2DE3J4J7.mjs.map +1 -0
  6. package/dist/chunk-5LYB6HR7.mjs +46 -0
  7. package/dist/chunk-5LYB6HR7.mjs.map +1 -0
  8. package/dist/chunk-745JDME6.mjs +10 -0
  9. package/dist/chunk-745JDME6.mjs.map +1 -0
  10. package/dist/{chunk-UIEKIMLW.mjs → chunk-AN54W42O.mjs} +8 -5
  11. package/dist/chunk-AN54W42O.mjs.map +1 -0
  12. package/dist/chunk-ANRVAYLW.mjs +35 -0
  13. package/dist/chunk-ANRVAYLW.mjs.map +1 -0
  14. package/dist/chunk-AUWAPRBT.mjs +10 -0
  15. package/dist/chunk-AUWAPRBT.mjs.map +1 -0
  16. package/dist/chunk-BSAPKNNZ.mjs +16 -0
  17. package/dist/chunk-BSAPKNNZ.mjs.map +1 -0
  18. package/dist/{chunk-OJMT4K3R.mjs → chunk-BZKIZ3TX.mjs} +2 -2
  19. package/dist/chunk-BZKIZ3TX.mjs.map +1 -0
  20. package/dist/chunk-CNCNQPK3.mjs +16 -0
  21. package/dist/chunk-CNCNQPK3.mjs.map +1 -0
  22. package/dist/chunk-DSRJWJF3.mjs +10 -0
  23. package/dist/chunk-DSRJWJF3.mjs.map +1 -0
  24. package/dist/chunk-DYPZDL4O.mjs +10 -0
  25. package/dist/chunk-DYPZDL4O.mjs.map +1 -0
  26. package/dist/chunk-EES7QVUK.mjs +10 -0
  27. package/dist/chunk-EES7QVUK.mjs.map +1 -0
  28. package/dist/chunk-EOGNKTFW.mjs +10 -0
  29. package/dist/chunk-EOGNKTFW.mjs.map +1 -0
  30. package/dist/{chunk-KONB7TV6.mjs → chunk-EQZQP6GW.mjs} +8 -5
  31. package/dist/chunk-EQZQP6GW.mjs.map +1 -0
  32. package/dist/chunk-EXAULUZ6.mjs +10 -0
  33. package/dist/chunk-EXAULUZ6.mjs.map +1 -0
  34. package/dist/chunk-EYUTOVZ3.mjs +10 -0
  35. package/dist/chunk-EYUTOVZ3.mjs.map +1 -0
  36. package/dist/chunk-FEEBFWAI.mjs +24 -0
  37. package/dist/chunk-FEEBFWAI.mjs.map +1 -0
  38. package/dist/{chunk-27NJVC7K.mjs → chunk-H27CTQGV.mjs} +8 -5
  39. package/dist/chunk-H27CTQGV.mjs.map +1 -0
  40. package/dist/{chunk-MDBK7ND5.mjs → chunk-H5ARVU55.mjs} +8 -5
  41. package/dist/chunk-H5ARVU55.mjs.map +1 -0
  42. package/dist/chunk-HTHDBSFD.mjs +10 -0
  43. package/dist/chunk-HTHDBSFD.mjs.map +1 -0
  44. package/dist/chunk-IBEDYMB6.mjs +10 -0
  45. package/dist/chunk-IBEDYMB6.mjs.map +1 -0
  46. package/dist/chunk-II2OQXU4.mjs +10 -0
  47. package/dist/chunk-II2OQXU4.mjs.map +1 -0
  48. package/dist/{chunk-WKIRSZXX.mjs → chunk-IZXDQ25M.mjs} +8 -5
  49. package/dist/chunk-IZXDQ25M.mjs.map +1 -0
  50. package/dist/chunk-J5OJ3I7A.mjs +10 -0
  51. package/dist/chunk-J5OJ3I7A.mjs.map +1 -0
  52. package/dist/chunk-JS222K7K.mjs +10 -0
  53. package/dist/chunk-JS222K7K.mjs.map +1 -0
  54. package/dist/chunk-KE7SRYHM.mjs +38 -0
  55. package/dist/chunk-KE7SRYHM.mjs.map +1 -0
  56. package/dist/chunk-KQYVNSKA.mjs +10 -0
  57. package/dist/chunk-KQYVNSKA.mjs.map +1 -0
  58. package/dist/chunk-KXQVMKFK.mjs +10 -0
  59. package/dist/chunk-KXQVMKFK.mjs.map +1 -0
  60. package/dist/chunk-MO7HMLOZ.mjs +24 -0
  61. package/dist/chunk-MO7HMLOZ.mjs.map +1 -0
  62. package/dist/chunk-MT3HFVKE.mjs +10 -0
  63. package/dist/chunk-MT3HFVKE.mjs.map +1 -0
  64. package/dist/chunk-MYSNSDM7.mjs +13 -0
  65. package/dist/chunk-MYSNSDM7.mjs.map +1 -0
  66. package/dist/chunk-NZRXO7EY.mjs +24 -0
  67. package/dist/chunk-NZRXO7EY.mjs.map +1 -0
  68. package/dist/chunk-OCK7PKGO.mjs +23 -0
  69. package/dist/chunk-OCK7PKGO.mjs.map +1 -0
  70. package/dist/chunk-OHH4ICOH.mjs +10 -0
  71. package/dist/chunk-OHH4ICOH.mjs.map +1 -0
  72. package/dist/chunk-OHOZ4GTV.mjs +10 -0
  73. package/dist/chunk-OHOZ4GTV.mjs.map +1 -0
  74. package/dist/{chunk-EIIP7YWB.mjs → chunk-OVRHHTSG.mjs} +1 -1
  75. package/dist/chunk-OVRHHTSG.mjs.map +1 -0
  76. package/dist/chunk-P4OSZLEH.mjs +15 -0
  77. package/dist/chunk-P4OSZLEH.mjs.map +1 -0
  78. package/dist/chunk-P7UI3YKU.mjs +10 -0
  79. package/dist/chunk-P7UI3YKU.mjs.map +1 -0
  80. package/dist/chunk-PGJSIDLV.mjs +25 -0
  81. package/dist/chunk-PGJSIDLV.mjs.map +1 -0
  82. package/dist/chunk-RE7BGAPD.mjs +10 -0
  83. package/dist/chunk-RE7BGAPD.mjs.map +1 -0
  84. package/dist/{chunk-FEOLYD5R.mjs → chunk-RHCU757P.mjs} +2 -2
  85. package/dist/chunk-RHCU757P.mjs.map +1 -0
  86. package/dist/{chunk-EUVK4YM7.mjs → chunk-RVIERPEV.mjs} +6 -5
  87. package/dist/chunk-RVIERPEV.mjs.map +1 -0
  88. package/dist/{chunk-VLF6DI2U.mjs → chunk-TSHK7TEP.mjs} +3 -3
  89. package/dist/chunk-TSHK7TEP.mjs.map +1 -0
  90. package/dist/chunk-VP5SFGCE.mjs +10 -0
  91. package/dist/chunk-VP5SFGCE.mjs.map +1 -0
  92. package/dist/chunk-VPA3WEBS.mjs +10 -0
  93. package/dist/chunk-VPA3WEBS.mjs.map +1 -0
  94. package/dist/chunk-XPZYZEW2.mjs +10 -0
  95. package/dist/chunk-XPZYZEW2.mjs.map +1 -0
  96. package/dist/chunk-YJBQPGDC.mjs +10 -0
  97. package/dist/chunk-YJBQPGDC.mjs.map +1 -0
  98. package/dist/chunk-YJSIVBF7.mjs +22 -0
  99. package/dist/chunk-YJSIVBF7.mjs.map +1 -0
  100. package/dist/iter-fest.asyncGeneratorWithLastValue.d.mts +6 -0
  101. package/dist/iter-fest.asyncGeneratorWithLastValue.d.ts +6 -0
  102. package/dist/iter-fest.asyncGeneratorWithLastValue.js +59 -0
  103. package/dist/iter-fest.asyncGeneratorWithLastValue.js.map +1 -0
  104. package/dist/iter-fest.asyncGeneratorWithLastValue.mjs +7 -0
  105. package/dist/iter-fest.asyncIteratorDrop.d.mts +12 -0
  106. package/dist/iter-fest.asyncIteratorDrop.d.ts +12 -0
  107. package/dist/iter-fest.asyncIteratorDrop.js +44 -0
  108. package/dist/iter-fest.asyncIteratorDrop.js.map +1 -0
  109. package/dist/iter-fest.asyncIteratorDrop.mjs +7 -0
  110. package/dist/iter-fest.asyncIteratorEvery.d.mts +25 -0
  111. package/dist/iter-fest.asyncIteratorEvery.d.ts +25 -0
  112. package/dist/iter-fest.asyncIteratorEvery.js +44 -0
  113. package/dist/iter-fest.asyncIteratorEvery.js.map +1 -0
  114. package/dist/iter-fest.asyncIteratorEvery.mjs +7 -0
  115. package/dist/iter-fest.asyncIteratorFilter.d.mts +18 -0
  116. package/dist/iter-fest.asyncIteratorFilter.d.ts +18 -0
  117. package/dist/iter-fest.asyncIteratorFilter.js +44 -0
  118. package/dist/iter-fest.asyncIteratorFilter.js.map +1 -0
  119. package/dist/iter-fest.asyncIteratorFilter.mjs +7 -0
  120. package/dist/iter-fest.asyncIteratorFind.d.mts +14 -0
  121. package/dist/iter-fest.asyncIteratorFind.d.ts +14 -0
  122. package/dist/iter-fest.asyncIteratorFind.js +44 -0
  123. package/dist/iter-fest.asyncIteratorFind.js.map +1 -0
  124. package/dist/iter-fest.asyncIteratorFind.mjs +7 -0
  125. package/dist/iter-fest.asyncIteratorFlatMap.d.mts +12 -0
  126. package/dist/iter-fest.asyncIteratorFlatMap.d.ts +12 -0
  127. package/dist/iter-fest.asyncIteratorFlatMap.js +44 -0
  128. package/dist/iter-fest.asyncIteratorFlatMap.js.map +1 -0
  129. package/dist/iter-fest.asyncIteratorFlatMap.mjs +7 -0
  130. package/dist/iter-fest.asyncIteratorForEach.d.mts +10 -0
  131. package/dist/iter-fest.asyncIteratorForEach.d.ts +10 -0
  132. package/dist/iter-fest.asyncIteratorForEach.js +44 -0
  133. package/dist/iter-fest.asyncIteratorForEach.js.map +1 -0
  134. package/dist/iter-fest.asyncIteratorForEach.mjs +7 -0
  135. package/dist/iter-fest.asyncIteratorFrom.d.mts +10 -0
  136. package/dist/iter-fest.asyncIteratorFrom.d.ts +10 -0
  137. package/dist/iter-fest.asyncIteratorFrom.js +44 -0
  138. package/dist/iter-fest.asyncIteratorFrom.js.map +1 -0
  139. package/dist/iter-fest.asyncIteratorFrom.mjs +7 -0
  140. package/dist/iter-fest.asyncIteratorMap.d.mts +10 -0
  141. package/dist/iter-fest.asyncIteratorMap.d.ts +10 -0
  142. package/dist/iter-fest.asyncIteratorMap.js +44 -0
  143. package/dist/iter-fest.asyncIteratorMap.js.map +1 -0
  144. package/dist/iter-fest.asyncIteratorMap.mjs +7 -0
  145. package/dist/iter-fest.asyncIteratorReduce.d.mts +23 -0
  146. package/dist/iter-fest.asyncIteratorReduce.d.ts +23 -0
  147. package/dist/iter-fest.asyncIteratorReduce.js +44 -0
  148. package/dist/iter-fest.asyncIteratorReduce.js.map +1 -0
  149. package/dist/iter-fest.asyncIteratorReduce.mjs +7 -0
  150. package/dist/iter-fest.asyncIteratorSome.d.mts +10 -0
  151. package/dist/iter-fest.asyncIteratorSome.d.ts +10 -0
  152. package/dist/iter-fest.asyncIteratorSome.js +44 -0
  153. package/dist/iter-fest.asyncIteratorSome.js.map +1 -0
  154. package/dist/iter-fest.asyncIteratorSome.mjs +7 -0
  155. package/dist/iter-fest.asyncIteratorTake.d.mts +12 -0
  156. package/dist/iter-fest.asyncIteratorTake.d.ts +12 -0
  157. package/dist/iter-fest.asyncIteratorTake.js +44 -0
  158. package/dist/iter-fest.asyncIteratorTake.js.map +1 -0
  159. package/dist/iter-fest.asyncIteratorTake.mjs +7 -0
  160. package/dist/iter-fest.asyncIteratorToArray.d.mts +10 -0
  161. package/dist/iter-fest.asyncIteratorToArray.d.ts +10 -0
  162. package/dist/iter-fest.asyncIteratorToArray.js +44 -0
  163. package/dist/iter-fest.asyncIteratorToArray.js.map +1 -0
  164. package/dist/iter-fest.asyncIteratorToArray.mjs +7 -0
  165. package/dist/iter-fest.asyncIteratorToAsyncIterable.d.mts +3 -0
  166. package/dist/iter-fest.asyncIteratorToAsyncIterable.d.ts +3 -0
  167. package/dist/{iter-fest.iterableConcat.js → iter-fest.asyncIteratorToAsyncIterable.js} +15 -16
  168. package/dist/iter-fest.asyncIteratorToAsyncIterable.js.map +1 -0
  169. package/dist/iter-fest.asyncIteratorToAsyncIterable.mjs +7 -0
  170. package/dist/iter-fest.d.mts +46 -23
  171. package/dist/iter-fest.d.ts +46 -23
  172. package/dist/iter-fest.generatorWithLastValue.d.mts +6 -0
  173. package/dist/iter-fest.generatorWithLastValue.d.ts +6 -0
  174. package/dist/iter-fest.generatorWithLastValue.js +59 -0
  175. package/dist/iter-fest.generatorWithLastValue.js.map +1 -0
  176. package/dist/iter-fest.generatorWithLastValue.mjs +7 -0
  177. package/dist/iter-fest.iterableWritableStream.d.mts +7 -0
  178. package/dist/iter-fest.iterableWritableStream.d.ts +7 -0
  179. package/dist/{iter-fest.pushAsyncIterableIterator.js → iter-fest.iterableWritableStream.js} +40 -31
  180. package/dist/iter-fest.iterableWritableStream.js.map +1 -0
  181. package/dist/iter-fest.iterableWritableStream.mjs +7 -0
  182. package/dist/{iter-fest.iterableAt.d.mts → iter-fest.iteratorAt.d.mts} +2 -2
  183. package/dist/{iter-fest.iterableAt.d.ts → iter-fest.iteratorAt.d.ts} +2 -2
  184. package/dist/{iter-fest.iterableAt.js → iter-fest.iteratorAt.js} +21 -10
  185. package/dist/iter-fest.iteratorAt.js.map +1 -0
  186. package/dist/iter-fest.iteratorAt.mjs +9 -0
  187. package/dist/iter-fest.iteratorConcat.d.mts +16 -0
  188. package/dist/iter-fest.iteratorConcat.d.ts +16 -0
  189. package/dist/iter-fest.iteratorConcat.js +56 -0
  190. package/dist/iter-fest.iteratorConcat.js.map +1 -0
  191. package/dist/iter-fest.iteratorConcat.mjs +8 -0
  192. package/dist/iter-fest.iteratorDrop.d.mts +12 -0
  193. package/dist/iter-fest.iteratorDrop.d.ts +12 -0
  194. package/dist/iter-fest.iteratorDrop.js +44 -0
  195. package/dist/iter-fest.iteratorDrop.js.map +1 -0
  196. package/dist/iter-fest.iteratorDrop.mjs +7 -0
  197. package/dist/iter-fest.iteratorEntries.d.mts +6 -0
  198. package/dist/iter-fest.iteratorEntries.d.ts +6 -0
  199. package/dist/{iter-fest.iterableEntries.js → iter-fest.iteratorEntries.js} +22 -9
  200. package/dist/iter-fest.iteratorEntries.js.map +1 -0
  201. package/dist/iter-fest.iteratorEntries.mjs +8 -0
  202. package/dist/iter-fest.iteratorEvery.d.mts +25 -0
  203. package/dist/iter-fest.iteratorEvery.d.ts +25 -0
  204. package/dist/iter-fest.iteratorEvery.js +44 -0
  205. package/dist/iter-fest.iteratorEvery.js.map +1 -0
  206. package/dist/iter-fest.iteratorEvery.mjs +7 -0
  207. package/dist/iter-fest.iteratorFilter.d.mts +18 -0
  208. package/dist/iter-fest.iteratorFilter.d.ts +18 -0
  209. package/dist/iter-fest.iteratorFilter.js +44 -0
  210. package/dist/iter-fest.iteratorFilter.js.map +1 -0
  211. package/dist/iter-fest.iteratorFilter.mjs +7 -0
  212. package/dist/iter-fest.iteratorFind.d.mts +14 -0
  213. package/dist/iter-fest.iteratorFind.d.ts +14 -0
  214. package/dist/iter-fest.iteratorFind.js +44 -0
  215. package/dist/iter-fest.iteratorFind.js.map +1 -0
  216. package/dist/iter-fest.iteratorFind.mjs +7 -0
  217. package/dist/iter-fest.iteratorFind.mjs.map +1 -0
  218. package/dist/{iter-fest.iterableFindIndex.d.mts → iter-fest.iteratorFindIndex.d.mts} +4 -4
  219. package/dist/{iter-fest.iterableFindIndex.d.ts → iter-fest.iteratorFindIndex.d.ts} +4 -4
  220. package/dist/{iter-fest.iterableFindIndex.js → iter-fest.iteratorFindIndex.js} +23 -10
  221. package/dist/iter-fest.iteratorFindIndex.js.map +1 -0
  222. package/dist/iter-fest.iteratorFindIndex.mjs +8 -0
  223. package/dist/iter-fest.iteratorFindIndex.mjs.map +1 -0
  224. package/dist/{iter-fest.iterableFindLast.d.mts → iter-fest.iteratorFindLast.d.mts} +5 -5
  225. package/dist/{iter-fest.iterableFindLast.d.ts → iter-fest.iteratorFindLast.d.ts} +5 -5
  226. package/dist/{iter-fest.iterableFindLast.js → iter-fest.iteratorFindLast.js} +23 -10
  227. package/dist/iter-fest.iteratorFindLast.js.map +1 -0
  228. package/dist/iter-fest.iteratorFindLast.mjs +8 -0
  229. package/dist/iter-fest.iteratorFindLast.mjs.map +1 -0
  230. package/dist/{iter-fest.iterableFindLastIndex.d.mts → iter-fest.iteratorFindLastIndex.d.mts} +4 -4
  231. package/dist/{iter-fest.iterableFindLastIndex.d.ts → iter-fest.iteratorFindLastIndex.d.ts} +4 -4
  232. package/dist/{iter-fest.iterableFindLastIndex.js → iter-fest.iteratorFindLastIndex.js} +23 -10
  233. package/dist/iter-fest.iteratorFindLastIndex.js.map +1 -0
  234. package/dist/iter-fest.iteratorFindLastIndex.mjs +8 -0
  235. package/dist/iter-fest.iteratorFindLastIndex.mjs.map +1 -0
  236. package/dist/iter-fest.iteratorFlatMap.d.mts +12 -0
  237. package/dist/iter-fest.iteratorFlatMap.d.ts +12 -0
  238. package/dist/iter-fest.iteratorFlatMap.js +44 -0
  239. package/dist/iter-fest.iteratorFlatMap.js.map +1 -0
  240. package/dist/iter-fest.iteratorFlatMap.mjs +7 -0
  241. package/dist/iter-fest.iteratorFlatMap.mjs.map +1 -0
  242. package/dist/iter-fest.iteratorForEach.d.mts +10 -0
  243. package/dist/iter-fest.iteratorForEach.d.ts +10 -0
  244. package/dist/iter-fest.iteratorForEach.js +44 -0
  245. package/dist/iter-fest.iteratorForEach.js.map +1 -0
  246. package/dist/iter-fest.iteratorForEach.mjs +7 -0
  247. package/dist/iter-fest.iteratorForEach.mjs.map +1 -0
  248. package/dist/iter-fest.iteratorFrom.d.mts +10 -0
  249. package/dist/iter-fest.iteratorFrom.d.ts +10 -0
  250. package/dist/iter-fest.iteratorFrom.js +44 -0
  251. package/dist/iter-fest.iteratorFrom.js.map +1 -0
  252. package/dist/iter-fest.iteratorFrom.mjs +7 -0
  253. package/dist/iter-fest.iteratorFrom.mjs.map +1 -0
  254. package/dist/iter-fest.iteratorIncludes.d.mts +9 -0
  255. package/dist/iter-fest.iteratorIncludes.d.ts +9 -0
  256. package/dist/{iter-fest.iterableIncludes.js → iter-fest.iteratorIncludes.js} +21 -10
  257. package/dist/iter-fest.iteratorIncludes.js.map +1 -0
  258. package/dist/iter-fest.iteratorIncludes.mjs +9 -0
  259. package/dist/iter-fest.iteratorIncludes.mjs.map +1 -0
  260. package/dist/iter-fest.iteratorIndexOf.d.mts +9 -0
  261. package/dist/iter-fest.iteratorIndexOf.d.ts +9 -0
  262. package/dist/{iter-fest.iterableIndexOf.js → iter-fest.iteratorIndexOf.js} +21 -10
  263. package/dist/iter-fest.iteratorIndexOf.js.map +1 -0
  264. package/dist/iter-fest.iteratorIndexOf.mjs +9 -0
  265. package/dist/iter-fest.iteratorIndexOf.mjs.map +1 -0
  266. package/dist/iter-fest.iteratorJoin.d.mts +8 -0
  267. package/dist/iter-fest.iteratorJoin.d.ts +8 -0
  268. package/dist/{iter-fest.iterableToString.js → iter-fest.iteratorJoin.js} +21 -15
  269. package/dist/iter-fest.iteratorJoin.js.map +1 -0
  270. package/dist/iter-fest.iteratorJoin.mjs +8 -0
  271. package/dist/iter-fest.iteratorJoin.mjs.map +1 -0
  272. package/dist/iter-fest.iteratorKeys.d.mts +6 -0
  273. package/dist/iter-fest.iteratorKeys.d.ts +6 -0
  274. package/dist/{iter-fest.iterableKeys.js → iter-fest.iteratorKeys.js} +22 -9
  275. package/dist/iter-fest.iteratorKeys.js.map +1 -0
  276. package/dist/iter-fest.iteratorKeys.mjs +8 -0
  277. package/dist/iter-fest.iteratorKeys.mjs.map +1 -0
  278. package/dist/iter-fest.iteratorMap.d.mts +10 -0
  279. package/dist/iter-fest.iteratorMap.d.ts +10 -0
  280. package/dist/iter-fest.iteratorMap.js +44 -0
  281. package/dist/iter-fest.iteratorMap.js.map +1 -0
  282. package/dist/iter-fest.iteratorMap.mjs +7 -0
  283. package/dist/iter-fest.iteratorMap.mjs.map +1 -0
  284. package/dist/{iter-fest.iterableReduce.d.mts → iter-fest.iteratorReduce.d.mts} +13 -9
  285. package/dist/{iter-fest.iterableReduce.d.ts → iter-fest.iteratorReduce.d.ts} +13 -9
  286. package/dist/iter-fest.iteratorReduce.js +44 -0
  287. package/dist/iter-fest.iteratorReduce.js.map +1 -0
  288. package/dist/iter-fest.iteratorReduce.mjs +7 -0
  289. package/dist/iter-fest.iteratorReduce.mjs.map +1 -0
  290. package/dist/{iter-fest.iterableSlice.d.mts → iter-fest.iteratorSlice.d.mts} +8 -8
  291. package/dist/{iter-fest.iterableSlice.d.ts → iter-fest.iteratorSlice.d.ts} +8 -8
  292. package/dist/{iter-fest.iterableSlice.js → iter-fest.iteratorSlice.js} +21 -10
  293. package/dist/iter-fest.iteratorSlice.js.map +1 -0
  294. package/dist/iter-fest.iteratorSlice.mjs +9 -0
  295. package/dist/iter-fest.iteratorSlice.mjs.map +1 -0
  296. package/dist/iter-fest.iteratorSome.d.mts +10 -0
  297. package/dist/iter-fest.iteratorSome.d.ts +10 -0
  298. package/dist/iter-fest.iteratorSome.js +44 -0
  299. package/dist/iter-fest.iteratorSome.js.map +1 -0
  300. package/dist/iter-fest.iteratorSome.mjs +7 -0
  301. package/dist/iter-fest.iteratorSome.mjs.map +1 -0
  302. package/dist/iter-fest.iteratorTake.d.mts +12 -0
  303. package/dist/iter-fest.iteratorTake.d.ts +12 -0
  304. package/dist/iter-fest.iteratorTake.js +44 -0
  305. package/dist/iter-fest.iteratorTake.js.map +1 -0
  306. package/dist/iter-fest.iteratorTake.mjs +7 -0
  307. package/dist/iter-fest.iteratorTake.mjs.map +1 -0
  308. package/dist/iter-fest.iteratorToArray.d.mts +10 -0
  309. package/dist/iter-fest.iteratorToArray.d.ts +10 -0
  310. package/dist/iter-fest.iteratorToArray.js +44 -0
  311. package/dist/iter-fest.iteratorToArray.js.map +1 -0
  312. package/dist/iter-fest.iteratorToArray.mjs +7 -0
  313. package/dist/iter-fest.iteratorToArray.mjs.map +1 -0
  314. package/dist/iter-fest.iteratorToAsync.d.mts +10 -0
  315. package/dist/iter-fest.iteratorToAsync.d.ts +10 -0
  316. package/dist/iter-fest.iteratorToAsync.js +44 -0
  317. package/dist/iter-fest.iteratorToAsync.js.map +1 -0
  318. package/dist/iter-fest.iteratorToAsync.mjs +7 -0
  319. package/dist/iter-fest.iteratorToAsync.mjs.map +1 -0
  320. package/dist/{iter-fest.iterableToSpliced.d.mts → iter-fest.iteratorToSpliced.d.mts} +3 -3
  321. package/dist/{iter-fest.iterableToSpliced.d.ts → iter-fest.iteratorToSpliced.d.ts} +3 -3
  322. package/dist/{iter-fest.iterableToSpliced.js → iter-fest.iteratorToSpliced.js} +21 -10
  323. package/dist/iter-fest.iteratorToSpliced.js.map +1 -0
  324. package/dist/iter-fest.iteratorToSpliced.mjs +9 -0
  325. package/dist/iter-fest.iteratorToSpliced.mjs.map +1 -0
  326. package/dist/iter-fest.iteratorToString.d.mts +6 -0
  327. package/dist/iter-fest.iteratorToString.d.ts +6 -0
  328. package/dist/{iter-fest.iterableJoin.js → iter-fest.iteratorToString.js} +27 -9
  329. package/dist/iter-fest.iteratorToString.js.map +1 -0
  330. package/dist/iter-fest.iteratorToString.mjs +9 -0
  331. package/dist/iter-fest.iteratorToString.mjs.map +1 -0
  332. package/dist/iter-fest.js +445 -213
  333. package/dist/iter-fest.js.map +1 -1
  334. package/dist/iter-fest.mjs +166 -74
  335. package/dist/iter-fest.observable.d.mts +1 -1
  336. package/dist/iter-fest.observable.d.ts +1 -1
  337. package/dist/iter-fest.observable.js +2 -2
  338. package/dist/iter-fest.observable.js.map +1 -1
  339. package/dist/iter-fest.observable.mjs +2 -2
  340. package/dist/iter-fest.observableFromAsync.d.mts +1 -1
  341. package/dist/iter-fest.observableFromAsync.d.ts +1 -1
  342. package/dist/iter-fest.observableFromAsync.js +2 -2
  343. package/dist/iter-fest.observableFromAsync.js.map +1 -1
  344. package/dist/iter-fest.observableFromAsync.mjs +3 -3
  345. package/dist/iter-fest.observableSubscribeAsReadable.d.mts +1 -1
  346. package/dist/iter-fest.observableSubscribeAsReadable.d.ts +1 -1
  347. package/dist/iter-fest.observableSubscribeAsReadable.js.map +1 -1
  348. package/dist/iter-fest.observableSubscribeAsReadable.mjs +1 -1
  349. package/dist/iter-fest.observableValues.d.mts +7 -0
  350. package/dist/iter-fest.observableValues.d.ts +7 -0
  351. package/dist/iter-fest.observableValues.js +102 -0
  352. package/dist/iter-fest.observableValues.js.map +1 -0
  353. package/dist/iter-fest.observableValues.mjs +9 -0
  354. package/dist/iter-fest.observableValues.mjs.map +1 -0
  355. package/dist/iter-fest.readableStreamFrom.d.mts +3 -0
  356. package/dist/iter-fest.readableStreamFrom.d.ts +3 -0
  357. package/dist/{iter-fest.iterableFilter.js → iter-fest.readableStreamFrom.js} +21 -17
  358. package/dist/iter-fest.readableStreamFrom.js.map +1 -0
  359. package/dist/iter-fest.readableStreamFrom.mjs +7 -0
  360. package/dist/iter-fest.readableStreamFrom.mjs.map +1 -0
  361. package/dist/iter-fest.readableStreamValues.d.mts +3 -0
  362. package/dist/iter-fest.readableStreamValues.d.ts +3 -0
  363. package/dist/{iter-fest.readerValues.js → iter-fest.readableStreamValues.js} +10 -9
  364. package/dist/iter-fest.readableStreamValues.js.map +1 -0
  365. package/dist/iter-fest.readableStreamValues.mjs +7 -0
  366. package/dist/iter-fest.readableStreamValues.mjs.map +1 -0
  367. package/dist/iter-fest.symbolObservable.js +1 -1
  368. package/dist/iter-fest.symbolObservable.js.map +1 -1
  369. package/dist/iter-fest.symbolObservable.mjs +1 -1
  370. package/package.json +342 -112
  371. package/dist/chunk-27NJVC7K.mjs.map +0 -1
  372. package/dist/chunk-44W7OTNE.mjs +0 -12
  373. package/dist/chunk-44W7OTNE.mjs.map +0 -1
  374. package/dist/chunk-5CHMNKXJ.mjs +0 -20
  375. package/dist/chunk-5CHMNKXJ.mjs.map +0 -1
  376. package/dist/chunk-5CRMPYKD.mjs +0 -19
  377. package/dist/chunk-5CRMPYKD.mjs.map +0 -1
  378. package/dist/chunk-6C3P4TNK.mjs +0 -19
  379. package/dist/chunk-6C3P4TNK.mjs.map +0 -1
  380. package/dist/chunk-EIIP7YWB.mjs.map +0 -1
  381. package/dist/chunk-EUVK4YM7.mjs.map +0 -1
  382. package/dist/chunk-EZC33HE6.mjs +0 -15
  383. package/dist/chunk-EZC33HE6.mjs.map +0 -1
  384. package/dist/chunk-FEOLYD5R.mjs.map +0 -1
  385. package/dist/chunk-GWZF5BB7.mjs +0 -16
  386. package/dist/chunk-GWZF5BB7.mjs.map +0 -1
  387. package/dist/chunk-HYU4EN7J.mjs +0 -20
  388. package/dist/chunk-HYU4EN7J.mjs.map +0 -1
  389. package/dist/chunk-JU353VSE.mjs +0 -16
  390. package/dist/chunk-JU353VSE.mjs.map +0 -1
  391. package/dist/chunk-KONB7TV6.mjs.map +0 -1
  392. package/dist/chunk-MDBK7ND5.mjs.map +0 -1
  393. package/dist/chunk-MNLOWKTC.mjs +0 -19
  394. package/dist/chunk-MNLOWKTC.mjs.map +0 -1
  395. package/dist/chunk-O5SQJUKB.mjs +0 -37
  396. package/dist/chunk-O5SQJUKB.mjs.map +0 -1
  397. package/dist/chunk-OJMT4K3R.mjs.map +0 -1
  398. package/dist/chunk-TEI3K6GT.mjs +0 -21
  399. package/dist/chunk-TEI3K6GT.mjs.map +0 -1
  400. package/dist/chunk-UIEKIMLW.mjs.map +0 -1
  401. package/dist/chunk-V6OWQQ3Q.mjs +0 -20
  402. package/dist/chunk-V6OWQQ3Q.mjs.map +0 -1
  403. package/dist/chunk-VLF6DI2U.mjs.map +0 -1
  404. package/dist/chunk-WKIRSZXX.mjs.map +0 -1
  405. package/dist/chunk-XKBVB2JN.mjs +0 -12
  406. package/dist/chunk-XKBVB2JN.mjs.map +0 -1
  407. package/dist/chunk-XW34KZRY.mjs +0 -17
  408. package/dist/chunk-XW34KZRY.mjs.map +0 -1
  409. package/dist/chunk-Y5M2C7NQ.mjs +0 -13
  410. package/dist/chunk-Y5M2C7NQ.mjs.map +0 -1
  411. package/dist/chunk-ZUBHGSCW.mjs +0 -18
  412. package/dist/chunk-ZUBHGSCW.mjs.map +0 -1
  413. package/dist/iter-fest.iterableAt.js.map +0 -1
  414. package/dist/iter-fest.iterableAt.mjs +0 -8
  415. package/dist/iter-fest.iterableConcat.d.mts +0 -16
  416. package/dist/iter-fest.iterableConcat.d.ts +0 -16
  417. package/dist/iter-fest.iterableConcat.js.map +0 -1
  418. package/dist/iter-fest.iterableConcat.mjs +0 -7
  419. package/dist/iter-fest.iterableEntries.d.mts +0 -6
  420. package/dist/iter-fest.iterableEntries.d.ts +0 -6
  421. package/dist/iter-fest.iterableEntries.js.map +0 -1
  422. package/dist/iter-fest.iterableEntries.mjs +0 -7
  423. package/dist/iter-fest.iterableEvery.d.mts +0 -24
  424. package/dist/iter-fest.iterableEvery.d.ts +0 -24
  425. package/dist/iter-fest.iterableEvery.js +0 -43
  426. package/dist/iter-fest.iterableEvery.js.map +0 -1
  427. package/dist/iter-fest.iterableEvery.mjs +0 -7
  428. package/dist/iter-fest.iterableFilter.d.mts +0 -16
  429. package/dist/iter-fest.iterableFilter.d.ts +0 -16
  430. package/dist/iter-fest.iterableFilter.js.map +0 -1
  431. package/dist/iter-fest.iterableFilter.mjs +0 -7
  432. package/dist/iter-fest.iterableFind.d.mts +0 -15
  433. package/dist/iter-fest.iterableFind.d.ts +0 -15
  434. package/dist/iter-fest.iterableFind.js +0 -43
  435. package/dist/iter-fest.iterableFind.js.map +0 -1
  436. package/dist/iter-fest.iterableFind.mjs +0 -7
  437. package/dist/iter-fest.iterableFindIndex.js.map +0 -1
  438. package/dist/iter-fest.iterableFindIndex.mjs +0 -7
  439. package/dist/iter-fest.iterableFindLast.js.map +0 -1
  440. package/dist/iter-fest.iterableFindLast.mjs +0 -7
  441. package/dist/iter-fest.iterableFindLastIndex.js.map +0 -1
  442. package/dist/iter-fest.iterableFindLastIndex.mjs +0 -7
  443. package/dist/iter-fest.iterableForEach.d.mts +0 -10
  444. package/dist/iter-fest.iterableForEach.d.ts +0 -10
  445. package/dist/iter-fest.iterableForEach.js +0 -40
  446. package/dist/iter-fest.iterableForEach.js.map +0 -1
  447. package/dist/iter-fest.iterableForEach.mjs +0 -7
  448. package/dist/iter-fest.iterableIncludes.d.mts +0 -9
  449. package/dist/iter-fest.iterableIncludes.d.ts +0 -9
  450. package/dist/iter-fest.iterableIncludes.js.map +0 -1
  451. package/dist/iter-fest.iterableIncludes.mjs +0 -8
  452. package/dist/iter-fest.iterableIndexOf.d.mts +0 -9
  453. package/dist/iter-fest.iterableIndexOf.d.ts +0 -9
  454. package/dist/iter-fest.iterableIndexOf.js.map +0 -1
  455. package/dist/iter-fest.iterableIndexOf.mjs +0 -8
  456. package/dist/iter-fest.iterableJoin.d.mts +0 -8
  457. package/dist/iter-fest.iterableJoin.d.ts +0 -8
  458. package/dist/iter-fest.iterableJoin.js.map +0 -1
  459. package/dist/iter-fest.iterableJoin.mjs +0 -7
  460. package/dist/iter-fest.iterableKeys.d.mts +0 -6
  461. package/dist/iter-fest.iterableKeys.d.ts +0 -6
  462. package/dist/iter-fest.iterableKeys.js.map +0 -1
  463. package/dist/iter-fest.iterableKeys.mjs +0 -7
  464. package/dist/iter-fest.iterableMap.d.mts +0 -8
  465. package/dist/iter-fest.iterableMap.d.ts +0 -8
  466. package/dist/iter-fest.iterableMap.js +0 -39
  467. package/dist/iter-fest.iterableMap.js.map +0 -1
  468. package/dist/iter-fest.iterableMap.mjs +0 -7
  469. package/dist/iter-fest.iterableReduce.js +0 -41
  470. package/dist/iter-fest.iterableReduce.js.map +0 -1
  471. package/dist/iter-fest.iterableReduce.mjs +0 -7
  472. package/dist/iter-fest.iterableSlice.js.map +0 -1
  473. package/dist/iter-fest.iterableSlice.mjs +0 -8
  474. package/dist/iter-fest.iterableSome.d.mts +0 -12
  475. package/dist/iter-fest.iterableSome.d.ts +0 -12
  476. package/dist/iter-fest.iterableSome.js +0 -43
  477. package/dist/iter-fest.iterableSome.js.map +0 -1
  478. package/dist/iter-fest.iterableSome.mjs +0 -7
  479. package/dist/iter-fest.iterableToSpliced.js.map +0 -1
  480. package/dist/iter-fest.iterableToSpliced.mjs +0 -8
  481. package/dist/iter-fest.iterableToString.d.mts +0 -6
  482. package/dist/iter-fest.iterableToString.d.ts +0 -6
  483. package/dist/iter-fest.iterableToString.js.map +0 -1
  484. package/dist/iter-fest.iterableToString.mjs +0 -8
  485. package/dist/iter-fest.pushAsyncIterableIterator.d.mts +0 -9
  486. package/dist/iter-fest.pushAsyncIterableIterator.d.ts +0 -9
  487. package/dist/iter-fest.pushAsyncIterableIterator.js.map +0 -1
  488. package/dist/iter-fest.pushAsyncIterableIterator.mjs +0 -7
  489. package/dist/iter-fest.readerValues.d.mts +0 -3
  490. package/dist/iter-fest.readerValues.d.ts +0 -3
  491. package/dist/iter-fest.readerValues.js.map +0 -1
  492. package/dist/iter-fest.readerValues.mjs +0 -7
  493. /package/dist/{iter-fest.iterableAt.mjs.map → iter-fest.asyncGeneratorWithLastValue.mjs.map} +0 -0
  494. /package/dist/{iter-fest.iterableConcat.mjs.map → iter-fest.asyncIteratorDrop.mjs.map} +0 -0
  495. /package/dist/{iter-fest.iterableEntries.mjs.map → iter-fest.asyncIteratorEvery.mjs.map} +0 -0
  496. /package/dist/{iter-fest.iterableEvery.mjs.map → iter-fest.asyncIteratorFilter.mjs.map} +0 -0
  497. /package/dist/{iter-fest.iterableFilter.mjs.map → iter-fest.asyncIteratorFind.mjs.map} +0 -0
  498. /package/dist/{iter-fest.iterableFind.mjs.map → iter-fest.asyncIteratorFlatMap.mjs.map} +0 -0
  499. /package/dist/{iter-fest.iterableFindIndex.mjs.map → iter-fest.asyncIteratorForEach.mjs.map} +0 -0
  500. /package/dist/{iter-fest.iterableFindLast.mjs.map → iter-fest.asyncIteratorFrom.mjs.map} +0 -0
  501. /package/dist/{iter-fest.iterableFindLastIndex.mjs.map → iter-fest.asyncIteratorMap.mjs.map} +0 -0
  502. /package/dist/{iter-fest.iterableForEach.mjs.map → iter-fest.asyncIteratorReduce.mjs.map} +0 -0
  503. /package/dist/{iter-fest.iterableIncludes.mjs.map → iter-fest.asyncIteratorSome.mjs.map} +0 -0
  504. /package/dist/{iter-fest.iterableIndexOf.mjs.map → iter-fest.asyncIteratorTake.mjs.map} +0 -0
  505. /package/dist/{iter-fest.iterableJoin.mjs.map → iter-fest.asyncIteratorToArray.mjs.map} +0 -0
  506. /package/dist/{iter-fest.iterableKeys.mjs.map → iter-fest.asyncIteratorToAsyncIterable.mjs.map} +0 -0
  507. /package/dist/{iter-fest.iterableMap.mjs.map → iter-fest.generatorWithLastValue.mjs.map} +0 -0
  508. /package/dist/{iter-fest.iterableReduce.mjs.map → iter-fest.iterableWritableStream.mjs.map} +0 -0
  509. /package/dist/{iter-fest.iterableSlice.mjs.map → iter-fest.iteratorAt.mjs.map} +0 -0
  510. /package/dist/{iter-fest.iterableSome.mjs.map → iter-fest.iteratorConcat.mjs.map} +0 -0
  511. /package/dist/{iter-fest.iterableToSpliced.mjs.map → iter-fest.iteratorDrop.mjs.map} +0 -0
  512. /package/dist/{iter-fest.iterableToString.mjs.map → iter-fest.iteratorEntries.mjs.map} +0 -0
  513. /package/dist/{iter-fest.pushAsyncIterableIterator.mjs.map → iter-fest.iteratorEvery.mjs.map} +0 -0
  514. /package/dist/{iter-fest.readerValues.mjs.map → iter-fest.iteratorFilter.mjs.map} +0 -0
@@ -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":[]}
@@ -0,0 +1,16 @@
1
+ import {
2
+ iteratorToIterable
3
+ } from "./chunk-MNDAEMYM.mjs";
4
+
5
+ // src/iteratorKeys.ts
6
+ function* iteratorKeys(iterator) {
7
+ let index = 0;
8
+ for (const _ of iteratorToIterable(iterator)) {
9
+ yield index++;
10
+ }
11
+ }
12
+
13
+ export {
14
+ iteratorKeys
15
+ };
16
+ //# sourceMappingURL=chunk-CNCNQPK3.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/iteratorKeys.ts"],"sourcesContent":["import { iteratorToIterable } from './iteratorToIterable';\n\n/**\n * Returns an iterator of keys in the iterator\n */\nexport function* iteratorKeys<T>(iterator: Iterator<T>): IterableIterator<number> {\n let index = 0;\n\n for (const _ of iteratorToIterable(iterator)) {\n yield index++;\n }\n}\n"],"mappings":";;;;;AAKO,UAAU,aAAgB,UAAiD;AAChF,MAAI,QAAQ;AAEZ,aAAW,KAAK,mBAAmB,QAAQ,GAAG;AAC5C,UAAM;AAAA,EACR;AACF;","names":[]}
@@ -0,0 +1,10 @@
1
+ // src/iteratorForEach.ts
2
+ import forEach from "core-js-pure/full/iterator/for-each.js";
3
+ function iteratorForEach(iterator, callbackfn) {
4
+ forEach(iterator, callbackfn);
5
+ }
6
+
7
+ export {
8
+ iteratorForEach
9
+ };
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":[]}
@@ -0,0 +1,10 @@
1
+ // src/asyncIteratorFlatMap.ts
2
+ import flatMap from "core-js-pure/full/async-iterator/flat-map.js";
3
+ function asyncIteratorFlatMap(asyncIterator, mapperFn) {
4
+ return flatMap(asyncIterator, mapperFn);
5
+ }
6
+
7
+ export {
8
+ asyncIteratorFlatMap
9
+ };
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":[]}
@@ -0,0 +1,10 @@
1
+ // src/iteratorDrop.ts
2
+ import drop from "core-js-pure/full/iterator/drop.js";
3
+ function iteratorDrop(iterator, limit) {
4
+ return drop(iterator, limit);
5
+ }
6
+
7
+ export {
8
+ iteratorDrop
9
+ };
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":[]}
@@ -0,0 +1,10 @@
1
+ // src/iteratorSome.ts
2
+ import some from "core-js-pure/full/iterator/some.js";
3
+ function iteratorSome(iterator, predicate) {
4
+ return some(iterator, predicate);
5
+ }
6
+
7
+ export {
8
+ iteratorSome
9
+ };
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,9 +1,12 @@
1
1
  import {
2
2
  toIntegerOrInfinity
3
3
  } from "./chunk-W5NEOEVE.mjs";
4
+ import {
5
+ iteratorToIterable
6
+ } from "./chunk-MNDAEMYM.mjs";
4
7
 
5
- // src/iterableSlice.ts
6
- function* iterableSlice(iterable, start = 0, end = Infinity) {
8
+ // src/iteratorSlice.ts
9
+ function* iteratorSlice(iterator, start = 0, end = Infinity) {
7
10
  let index = 0;
8
11
  start = toIntegerOrInfinity(start);
9
12
  start = start === -Infinity ? 0 : start;
@@ -18,7 +21,7 @@ function* iterableSlice(iterable, start = 0, end = Infinity) {
18
21
  if (start === Infinity) {
19
22
  return;
20
23
  }
21
- for (const item of iterable) {
24
+ for (const item of iteratorToIterable(iterator)) {
22
25
  if (index >= start && index < end) {
23
26
  yield item;
24
27
  }
@@ -30,6 +33,6 @@ function* iterableSlice(iterable, start = 0, end = Infinity) {
30
33
  }
31
34
 
32
35
  export {
33
- iterableSlice
36
+ iteratorSlice
34
37
  };
35
- //# sourceMappingURL=chunk-KONB7TV6.mjs.map
38
+ //# sourceMappingURL=chunk-EQZQP6GW.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/iteratorSlice.ts"],"sourcesContent":["import { iteratorToIterable } from './iteratorToIterable';\nimport toIntegerOrInfinity from './private/toIntegerOrInfinity';\n\n/**\n * Returns a copy of a section of an iterator.\n * For both start and end, a negative index can be used to indicate an offset from the end of the iterator.\n * For example, -2 refers to the second to last element of the iterator.\n *\n * @param start The beginning index of the specified portion of the iterator.\n * If start is undefined, then the slice begins at index 0.\n *\n * @param end The end index of the specified portion of the iterator. This is exclusive of the element at the index 'end'.\n * If end is undefined, then the slice extends to the end of the iterator.\n */\nexport function* iteratorSlice<T>(\n iterator: Iterator<T>,\n start: number = 0,\n end: number = Infinity\n): IterableIterator<T> {\n let index = 0;\n\n start = toIntegerOrInfinity(start);\n start = start === -Infinity ? 0 : start;\n end = toIntegerOrInfinity(end);\n end = end === -Infinity ? 0 : end;\n\n if (start < 0) {\n throw new TypeError('start cannot be a negative finite number');\n }\n\n if (end < 0) {\n throw new TypeError('end cannot be a negative finite number');\n }\n\n if (start === Infinity) {\n return;\n }\n\n for (const item of iteratorToIterable(iterator)) {\n if (index >= start && index < end) {\n yield item;\n }\n\n index++;\n\n if (index > end) {\n break;\n }\n }\n}\n"],"mappings":";;;;;;;;AAcO,UAAU,cACf,UACA,QAAgB,GAChB,MAAc,UACO;AACrB,MAAI,QAAQ;AAEZ,UAAQ,oBAAoB,KAAK;AACjC,UAAQ,UAAU,YAAY,IAAI;AAClC,QAAM,oBAAoB,GAAG;AAC7B,QAAM,QAAQ,YAAY,IAAI;AAE9B,MAAI,QAAQ,GAAG;AACb,UAAM,IAAI,UAAU,0CAA0C;AAAA,EAChE;AAEA,MAAI,MAAM,GAAG;AACX,UAAM,IAAI,UAAU,wCAAwC;AAAA,EAC9D;AAEA,MAAI,UAAU,UAAU;AACtB;AAAA,EACF;AAEA,aAAW,QAAQ,mBAAmB,QAAQ,GAAG;AAC/C,QAAI,SAAS,SAAS,QAAQ,KAAK;AACjC,YAAM;AAAA,IACR;AAEA;AAEA,QAAI,QAAQ,KAAK;AACf;AAAA,IACF;AAAA,EACF;AACF;","names":[]}
@@ -0,0 +1,10 @@
1
+ // src/iteratorToArray.ts
2
+ import toArray from "core-js-pure/full/iterator/to-array.js";
3
+ function iteratorToArray(iteratorLike) {
4
+ return toArray(iteratorLike);
5
+ }
6
+
7
+ export {
8
+ iteratorToArray
9
+ };
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":[]}
@@ -0,0 +1,10 @@
1
+ // src/asyncIteratorEvery.ts
2
+ import every from "core-js-pure/full/async-iterator/every.js";
3
+ function asyncIteratorEvery(iterator, predicate) {
4
+ return every(iterator, predicate);
5
+ }
6
+
7
+ export {
8
+ asyncIteratorEvery
9
+ };
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":[]}
@@ -0,0 +1,24 @@
1
+ import {
2
+ iteratorToIterable
3
+ } from "./chunk-MNDAEMYM.mjs";
4
+
5
+ // src/iteratorJoin.ts
6
+ function iteratorJoin(iterator, separator = ",") {
7
+ let index = 0;
8
+ let result = "";
9
+ for (const item of iteratorToIterable(iterator)) {
10
+ if (index) {
11
+ result += separator;
12
+ }
13
+ if (typeof item !== "undefined" && item !== null) {
14
+ result += item;
15
+ }
16
+ index++;
17
+ }
18
+ return result;
19
+ }
20
+
21
+ export {
22
+ iteratorJoin
23
+ };
24
+ //# sourceMappingURL=chunk-FEEBFWAI.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/iteratorJoin.ts"],"sourcesContent":["import { iteratorToIterable } from './iteratorToIterable';\n\n/**\n * Adds all the elements of an iterator into a string, separated by the specified separator string.\n *\n * @param separator A string used to separate one element of the iterator from the next in the resulting string. If omitted, the iterator elements are separated with a comma.\n */\nexport function iteratorJoin<T>(iterator: Iterator<T>, separator: string = ','): string {\n let index = 0;\n let result = '';\n\n for (const item of iteratorToIterable(iterator)) {\n if (index) {\n result += separator;\n }\n\n if (typeof item !== 'undefined' && item !== null) {\n result += item;\n }\n\n index++;\n }\n\n return result;\n}\n"],"mappings":";;;;;AAOO,SAAS,aAAgB,UAAuB,YAAoB,KAAa;AACtF,MAAI,QAAQ;AACZ,MAAI,SAAS;AAEb,aAAW,QAAQ,mBAAmB,QAAQ,GAAG;AAC/C,QAAI,OAAO;AACT,gBAAU;AAAA,IACZ;AAEA,QAAI,OAAO,SAAS,eAAe,SAAS,MAAM;AAChD,gBAAU;AAAA,IACZ;AAEA;AAAA,EACF;AAEA,SAAO;AACT;","names":[]}
@@ -1,9 +1,12 @@
1
1
  import {
2
2
  toIntegerOrInfinity
3
3
  } from "./chunk-W5NEOEVE.mjs";
4
+ import {
5
+ iteratorToIterable
6
+ } from "./chunk-MNDAEMYM.mjs";
4
7
 
5
- // src/iterableIncludes.ts
6
- function iterableIncludes(iterable, searchElement, fromIndex = 0) {
8
+ // src/iteratorIncludes.ts
9
+ function iteratorIncludes(iterator, searchElement, fromIndex = 0) {
7
10
  let index = 0;
8
11
  fromIndex = toIntegerOrInfinity(fromIndex);
9
12
  if (fromIndex !== Infinity) {
@@ -11,7 +14,7 @@ function iterableIncludes(iterable, searchElement, fromIndex = 0) {
11
14
  if (fromIndex < 0) {
12
15
  throw new TypeError("fromIndex cannot be a negative finite number");
13
16
  }
14
- for (const item of iterable) {
17
+ for (const item of iteratorToIterable(iterator)) {
15
18
  if (index++ >= fromIndex && Object.is(item, searchElement)) {
16
19
  return true;
17
20
  }
@@ -21,6 +24,6 @@ function iterableIncludes(iterable, searchElement, fromIndex = 0) {
21
24
  }
22
25
 
23
26
  export {
24
- iterableIncludes
27
+ iteratorIncludes
25
28
  };
26
- //# sourceMappingURL=chunk-27NJVC7K.mjs.map
29
+ //# sourceMappingURL=chunk-H27CTQGV.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/iteratorIncludes.ts"],"sourcesContent":["import { iteratorToIterable } from './iteratorToIterable';\nimport toIntegerOrInfinity from './private/toIntegerOrInfinity';\n\n/**\n * Determines whether an iterator includes a certain element, returning true or false as appropriate.\n *\n * @param searchElement The element to search for.\n * @param fromIndex The position in this iterator at which to begin searching for searchElement.\n */\nexport function iteratorIncludes<T>(iterator: Iterator<T>, searchElement: T, fromIndex: number = 0): boolean {\n let index = 0;\n\n fromIndex = toIntegerOrInfinity(fromIndex);\n\n if (fromIndex !== Infinity) {\n fromIndex = fromIndex === -Infinity ? 0 : fromIndex;\n\n if (fromIndex < 0) {\n // TODO: Support negative fromIndex.\n throw new TypeError('fromIndex cannot be a negative finite number');\n }\n\n for (const item of iteratorToIterable(iterator)) {\n if (index++ >= fromIndex && Object.is(item, searchElement)) {\n return true;\n }\n }\n }\n\n return false;\n}\n"],"mappings":";;;;;;;;AASO,SAAS,iBAAoB,UAAuB,eAAkB,YAAoB,GAAY;AAC3G,MAAI,QAAQ;AAEZ,cAAY,oBAAoB,SAAS;AAEzC,MAAI,cAAc,UAAU;AAC1B,gBAAY,cAAc,YAAY,IAAI;AAE1C,QAAI,YAAY,GAAG;AAEjB,YAAM,IAAI,UAAU,8CAA8C;AAAA,IACpE;AAEA,eAAW,QAAQ,mBAAmB,QAAQ,GAAG;AAC/C,UAAI,WAAW,aAAa,OAAO,GAAG,MAAM,aAAa,GAAG;AAC1D,eAAO;AAAA,MACT;AAAA,IACF;AAAA,EACF;AAEA,SAAO;AACT;","names":[]}
@@ -1,9 +1,12 @@
1
1
  import {
2
2
  toIntegerOrInfinity
3
3
  } from "./chunk-W5NEOEVE.mjs";
4
+ import {
5
+ iteratorToIterable
6
+ } from "./chunk-MNDAEMYM.mjs";
4
7
 
5
- // src/iterableAt.ts
6
- function iterableAt(iterable, index) {
8
+ // src/iteratorAt.ts
9
+ function iteratorAt(iterator, index) {
7
10
  let currentIndex = 0;
8
11
  index = toIntegerOrInfinity(index);
9
12
  if (!isFinite(index)) {
@@ -12,7 +15,7 @@ function iterableAt(iterable, index) {
12
15
  if (index < 0) {
13
16
  throw new TypeError("index cannot be a negative finite number");
14
17
  }
15
- for (const value of iterable) {
18
+ for (const value of iteratorToIterable(iterator)) {
16
19
  if (currentIndex++ === index) {
17
20
  return value;
18
21
  }
@@ -21,6 +24,6 @@ function iterableAt(iterable, index) {
21
24
  }
22
25
 
23
26
  export {
24
- iterableAt
27
+ iteratorAt
25
28
  };
26
- //# sourceMappingURL=chunk-MDBK7ND5.mjs.map
29
+ //# sourceMappingURL=chunk-H5ARVU55.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/iteratorAt.ts"],"sourcesContent":["import { iteratorToIterable } from './iteratorToIterable';\nimport toIntegerOrInfinity from './private/toIntegerOrInfinity';\n\n/**\n * Returns the item located at the specified index.\n *\n * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.\n */\nexport function iteratorAt<T>(iterator: Iterator<T>, index: number): T | undefined {\n let currentIndex = 0;\n\n index = toIntegerOrInfinity(index);\n\n if (!isFinite(index)) {\n return;\n }\n\n if (index < 0) {\n throw new TypeError('index cannot be a negative finite number');\n }\n\n for (const value of iteratorToIterable(iterator)) {\n if (currentIndex++ === index) {\n return value;\n }\n }\n\n return undefined;\n}\n"],"mappings":";;;;;;;;AAQO,SAAS,WAAc,UAAuB,OAA8B;AACjF,MAAI,eAAe;AAEnB,UAAQ,oBAAoB,KAAK;AAEjC,MAAI,CAAC,SAAS,KAAK,GAAG;AACpB;AAAA,EACF;AAEA,MAAI,QAAQ,GAAG;AACb,UAAM,IAAI,UAAU,0CAA0C;AAAA,EAChE;AAEA,aAAW,SAAS,mBAAmB,QAAQ,GAAG;AAChD,QAAI,mBAAmB,OAAO;AAC5B,aAAO;AAAA,IACT;AAAA,EACF;AAEA,SAAO;AACT;","names":[]}
@@ -0,0 +1,10 @@
1
+ // src/asyncIteratorTake.ts
2
+ import take from "core-js-pure/full/async-iterator/take.js";
3
+ function asyncIteratorTake(asyncIterator, limit) {
4
+ return take(asyncIterator, limit);
5
+ }
6
+
7
+ export {
8
+ asyncIteratorTake
9
+ };
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":[]}
@@ -0,0 +1,10 @@
1
+ // src/asyncIteratorDrop.ts
2
+ import drop from "core-js-pure/full/async-iterator/drop.js";
3
+ function asyncIteratorDrop(asyncIterator, limit) {
4
+ return drop(asyncIterator, limit);
5
+ }
6
+
7
+ export {
8
+ asyncIteratorDrop
9
+ };
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":[]}
@@ -0,0 +1,10 @@
1
+ // src/iteratorFrom.ts
2
+ import from from "core-js-pure/full/iterator/from.js";
3
+ function iteratorFrom(iteratorLike) {
4
+ return from(iteratorLike);
5
+ }
6
+
7
+ export {
8
+ iteratorFrom
9
+ };
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,9 +1,12 @@
1
1
  import {
2
2
  toIntegerOrInfinity
3
3
  } from "./chunk-W5NEOEVE.mjs";
4
+ import {
5
+ iteratorToIterable
6
+ } from "./chunk-MNDAEMYM.mjs";
4
7
 
5
- // src/iterableToSpliced.ts
6
- function* iterableToSpliced(iterable, start = 0, deleteCount = 0, ...items) {
8
+ // src/iteratorToSpliced.ts
9
+ function* iteratorToSpliced(iterator, start = 0, deleteCount = 0, ...items) {
7
10
  let index = 0;
8
11
  start = toIntegerOrInfinity(start);
9
12
  start = start === -Infinity ? 0 : start;
@@ -11,7 +14,7 @@ function* iterableToSpliced(iterable, start = 0, deleteCount = 0, ...items) {
11
14
  throw new TypeError("start cannot be a negative finite number");
12
15
  }
13
16
  let inserted = false;
14
- for (const item of iterable) {
17
+ for (const item of iteratorToIterable(iterator)) {
15
18
  if (index + 1 > start && !inserted) {
16
19
  yield* items;
17
20
  inserted = true;
@@ -27,6 +30,6 @@ function* iterableToSpliced(iterable, start = 0, deleteCount = 0, ...items) {
27
30
  }
28
31
 
29
32
  export {
30
- iterableToSpliced
33
+ iteratorToSpliced
31
34
  };
32
- //# sourceMappingURL=chunk-WKIRSZXX.mjs.map
35
+ //# sourceMappingURL=chunk-IZXDQ25M.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/iteratorToSpliced.ts"],"sourcesContent":["import { iteratorToIterable } from './iteratorToIterable';\nimport toIntegerOrInfinity from './private/toIntegerOrInfinity';\n\n/**\n * Copies an array and removes elements and, if necessary, inserts new elements in their place. Returns the copied array.\n * @param start The zero-based location in the array from which to start removing elements.\n * @param deleteCount The number of elements to remove.\n * @param items Elements to insert into the copied array in place of the deleted elements.\n * @returns The copied array.\n */\nexport function iteratorToSpliced<T>(\n iterator: Iterator<T>,\n start?: number | undefined,\n deleteCount?: number | undefined,\n ...items: T[]\n): IterableIterator<T>;\n\n/**\n * Copies an array and removes elements while returning the remaining elements.\n * @param start The zero-based location in the array from which to start removing elements.\n * @param deleteCount The number of elements to remove.\n * @returns A copy of the original array with the remaining elements.\n */\nexport function iteratorToSpliced<T>(\n iterator: Iterator<T>,\n start?: number | undefined,\n deleteCount?: number | undefined\n): IterableIterator<T>;\n\nexport function* iteratorToSpliced<T>(\n iterator: Iterator<T>,\n start: number = 0,\n deleteCount: number = 0,\n ...items: T[]\n): IterableIterator<T> {\n let index = 0;\n\n start = toIntegerOrInfinity(start);\n start = start === -Infinity ? 0 : start;\n\n if (start < 0) {\n throw new TypeError('start cannot be a negative finite number');\n }\n\n let inserted = false;\n\n for (const item of iteratorToIterable(iterator)) {\n if (index + 1 > start && !inserted) {\n yield* items;\n inserted = true;\n }\n\n if (index < start || index >= start + deleteCount) {\n yield item;\n }\n\n index++;\n }\n\n if (!inserted) {\n yield* items;\n }\n}\n"],"mappings":";;;;;;;;AA6BO,UAAU,kBACf,UACA,QAAgB,GAChB,cAAsB,MACnB,OACkB;AACrB,MAAI,QAAQ;AAEZ,UAAQ,oBAAoB,KAAK;AACjC,UAAQ,UAAU,YAAY,IAAI;AAElC,MAAI,QAAQ,GAAG;AACb,UAAM,IAAI,UAAU,0CAA0C;AAAA,EAChE;AAEA,MAAI,WAAW;AAEf,aAAW,QAAQ,mBAAmB,QAAQ,GAAG;AAC/C,QAAI,QAAQ,IAAI,SAAS,CAAC,UAAU;AAClC,aAAO;AACP,iBAAW;AAAA,IACb;AAEA,QAAI,QAAQ,SAAS,SAAS,QAAQ,aAAa;AACjD,YAAM;AAAA,IACR;AAEA;AAAA,EACF;AAEA,MAAI,CAAC,UAAU;AACb,WAAO;AAAA,EACT;AACF;","names":[]}
@@ -0,0 +1,10 @@
1
+ // src/iteratorEvery.ts
2
+ import every from "core-js-pure/full/iterator/every.js";
3
+ function iteratorEvery(iterator, predicate) {
4
+ return every(iterator, predicate);
5
+ }
6
+
7
+ export {
8
+ iteratorEvery
9
+ };
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":[]}
@@ -0,0 +1,10 @@
1
+ // src/asyncIteratorForEach.ts
2
+ import forEach from "core-js-pure/full/async-iterator/for-each.js";
3
+ function asyncIteratorForEach(asyncIterator, callbackfn) {
4
+ return forEach(asyncIterator, callbackfn);
5
+ }
6
+
7
+ export {
8
+ asyncIteratorForEach
9
+ };
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":[]}
@@ -0,0 +1,38 @@
1
+ import {
2
+ readableStreamValues
3
+ } from "./chunk-RVIERPEV.mjs";
4
+ import {
5
+ observableSubscribeAsReadable
6
+ } from "./chunk-OVRHHTSG.mjs";
7
+
8
+ // src/observableValues.ts
9
+ function observableValues(observable) {
10
+ const readable = observableSubscribeAsReadable(observable);
11
+ const iterable = readableStreamValues(readable);
12
+ const cancellableIterable = {
13
+ [Symbol.asyncIterator]() {
14
+ return cancellableIterable;
15
+ },
16
+ next() {
17
+ return iterable.next();
18
+ },
19
+ return() {
20
+ var _a;
21
+ try {
22
+ return ((_a = iterable.return) == null ? void 0 : _a.call(iterable)) ?? Promise.resolve({ done: true, value: void 0 });
23
+ } finally {
24
+ readable.cancel();
25
+ }
26
+ },
27
+ throw(error) {
28
+ var _a;
29
+ return ((_a = iterable.throw) == null ? void 0 : _a.call(iterable, error)) ?? Promise.resolve({ done: true, value: void 0 });
30
+ }
31
+ };
32
+ return cancellableIterable;
33
+ }
34
+
35
+ export {
36
+ observableValues
37
+ };
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":[]}
@@ -0,0 +1,10 @@
1
+ // src/iteratorFind.ts
2
+ import find from "core-js-pure/full/iterator/find.js";
3
+ function iteratorFind(iterator, predicate) {
4
+ return find(iterator, predicate);
5
+ }
6
+
7
+ export {
8
+ iteratorFind
9
+ };
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":[]}
@@ -0,0 +1,10 @@
1
+ // src/asyncIteratorReduce.ts
2
+ import reduce from "core-js-pure/full/async-iterator/reduce.js";
3
+ function asyncIteratorReduce(asyncIterator, callbackfn, initialValue) {
4
+ return reduce(asyncIterator, callbackfn, initialValue);
5
+ }
6
+
7
+ export {
8
+ asyncIteratorReduce
9
+ };
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":[]}
@@ -0,0 +1,24 @@
1
+ import {
2
+ iteratorToIterable
3
+ } from "./chunk-MNDAEMYM.mjs";
4
+
5
+ // src/iteratorFindIndex.ts
6
+ function iteratorFindIndex(iterator, predicate, thisArg) {
7
+ let index = 0;
8
+ if (typeof predicate !== "function") {
9
+ throw new TypeError(`${predicate} is not a function`);
10
+ }
11
+ const boundPredicate = predicate.bind(thisArg);
12
+ for (const value of iteratorToIterable(iterator)) {
13
+ if (boundPredicate(value, index, iterator)) {
14
+ return index;
15
+ }
16
+ index++;
17
+ }
18
+ return -1;
19
+ }
20
+
21
+ export {
22
+ iteratorFindIndex
23
+ };
24
+ //# sourceMappingURL=chunk-MO7HMLOZ.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/iteratorFindIndex.ts"],"sourcesContent":["import { iteratorToIterable } from './iteratorToIterable';\n\n/**\n * Returns the index of the first element in the iterator where predicate is true, and -1\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,\n * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n *\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\nexport function iteratorFindIndex<T>(\n iterator: Iterator<T>,\n predicate: (value: T, index: number, obj: Iterator<T>) => unknown,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n thisArg?: any\n): number {\n let index = 0;\n\n if (typeof predicate !== 'function') {\n throw new TypeError(`${predicate} is not a function`);\n }\n\n const boundPredicate = predicate.bind(thisArg);\n\n for (const value of iteratorToIterable(iterator)) {\n if (boundPredicate(value, index, iterator)) {\n return index;\n }\n\n index++;\n }\n\n return -1;\n}\n"],"mappings":";;;;;AAaO,SAAS,kBACd,UACA,WAEA,SACQ;AACR,MAAI,QAAQ;AAEZ,MAAI,OAAO,cAAc,YAAY;AACnC,UAAM,IAAI,UAAU,GAAG,SAAS,oBAAoB;AAAA,EACtD;AAEA,QAAM,iBAAiB,UAAU,KAAK,OAAO;AAE7C,aAAW,SAAS,mBAAmB,QAAQ,GAAG;AAChD,QAAI,eAAe,OAAO,OAAO,QAAQ,GAAG;AAC1C,aAAO;AAAA,IACT;AAEA;AAAA,EACF;AAEA,SAAO;AACT;","names":[]}
@@ -0,0 +1,10 @@
1
+ // src/iteratorFilter.ts
2
+ import filter from "core-js-pure/full/iterator/filter.js";
3
+ function iteratorFilter(iterator, predicate) {
4
+ return filter(iterator, predicate);
5
+ }
6
+
7
+ export {
8
+ iteratorFilter
9
+ };
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":[]}
@@ -0,0 +1,13 @@
1
+ import {
2
+ iteratorJoin
3
+ } from "./chunk-FEEBFWAI.mjs";
4
+
5
+ // src/iteratorToString.ts
6
+ function iteratorToString(iterator) {
7
+ return iteratorJoin(iterator);
8
+ }
9
+
10
+ export {
11
+ iteratorToString
12
+ };
13
+ //# sourceMappingURL=chunk-MYSNSDM7.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/iteratorToString.ts"],"sourcesContent":["import { iteratorJoin } from './iteratorJoin';\n\n/**\n * Returns a string representation of an iterator.\n */\nexport function iteratorToString<T>(iterator: Iterator<T>): string {\n return iteratorJoin(iterator);\n}\n"],"mappings":";;;;;AAKO,SAAS,iBAAoB,UAA+B;AACjE,SAAO,aAAa,QAAQ;AAC9B;","names":[]}
@@ -0,0 +1,24 @@
1
+ import {
2
+ iteratorToIterable
3
+ } from "./chunk-MNDAEMYM.mjs";
4
+
5
+ // src/iteratorFindLast.ts
6
+ function iteratorFindLast(iterator, predicate, thisArg) {
7
+ let index = 0;
8
+ let last;
9
+ if (typeof predicate !== "function") {
10
+ throw new TypeError(`${predicate} is not a function`);
11
+ }
12
+ const boundPredicate = predicate.bind(thisArg);
13
+ for (const value of iteratorToIterable(iterator)) {
14
+ if (boundPredicate(value, index++, iterator)) {
15
+ last = value;
16
+ }
17
+ }
18
+ return last;
19
+ }
20
+
21
+ export {
22
+ iteratorFindLast
23
+ };
24
+ //# sourceMappingURL=chunk-NZRXO7EY.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/iteratorFindLast.ts"],"sourcesContent":["import { iteratorToIterable } from './iteratorToIterable';\n\n/**\n * Returns the value of the last element in the iterator where predicate is true, and undefined\n * otherwise.\n *\n * @param predicate findLast calls predicate once for each element of the iterator, in descending\n * order, until it finds one where predicate returns true. If such an element is found, findLast\n * immediately returns that element value. Otherwise, findLast returns undefined.\n *\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\nexport function iteratorFindLast<T, S extends T>(\n iterator: Iterator<T>,\n predicate: (value: T, index: number, iterator: Iterator<T>) => value is S,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n thisArg?: any\n): S | undefined;\n\nexport function iteratorFindLast<T>(\n iterator: Iterator<T>,\n predicate: (value: T, index: number, iterator: Iterator<T>) => unknown,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n thisArg?: any\n): T | undefined;\n\nexport function iteratorFindLast<T, S extends T>(\n iterator: Iterator<T>,\n predicate: (value: T, index: number, iterator: Iterator<T>) => unknown,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n thisArg?: any\n): S | undefined {\n let index = 0;\n let last: S | undefined;\n\n if (typeof predicate !== 'function') {\n throw new TypeError(`${predicate} is not a function`);\n }\n\n const boundPredicate = predicate.bind(thisArg);\n\n for (const value of iteratorToIterable(iterator)) {\n if (boundPredicate(value, index++, iterator)) {\n last = value as S;\n }\n }\n\n return last;\n}\n"],"mappings":";;;;;AA2BO,SAAS,iBACd,UACA,WAEA,SACe;AACf,MAAI,QAAQ;AACZ,MAAI;AAEJ,MAAI,OAAO,cAAc,YAAY;AACnC,UAAM,IAAI,UAAU,GAAG,SAAS,oBAAoB;AAAA,EACtD;AAEA,QAAM,iBAAiB,UAAU,KAAK,OAAO;AAE7C,aAAW,SAAS,mBAAmB,QAAQ,GAAG;AAChD,QAAI,eAAe,OAAO,SAAS,QAAQ,GAAG;AAC5C,aAAO;AAAA,IACT;AAAA,EACF;AAEA,SAAO;AACT;","names":[]}
@@ -0,0 +1,23 @@
1
+ import {
2
+ iteratorToIterable
3
+ } from "./chunk-MNDAEMYM.mjs";
4
+
5
+ // src/iteratorConcat.ts
6
+ function isIterator(value) {
7
+ return !!value && typeof value === "object" && Symbol.iterator in value;
8
+ }
9
+ function* iteratorConcat(iterator, ...items) {
10
+ yield* iteratorToIterable(iterator);
11
+ for (const item of items) {
12
+ if (isIterator(item)) {
13
+ yield* iteratorToIterable(item);
14
+ } else {
15
+ yield item;
16
+ }
17
+ }
18
+ }
19
+
20
+ export {
21
+ iteratorConcat
22
+ };
23
+ //# sourceMappingURL=chunk-OCK7PKGO.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/iteratorConcat.ts"],"sourcesContent":["import { iteratorToIterable } from './iteratorToIterable';\n\nfunction isIterator<T>(value: unknown): value is Iterator<T> {\n return !!value && typeof value === 'object' && Symbol.iterator in value;\n}\n\n/**\n * Combines two or more iterators.\n * This method returns a new iterator without modifying any existing iterators.\n *\n * @param items Additional iterators and/or items to add to the end of the iterator.\n */\nexport function iteratorConcat<T>(iterator: Iterator<T>, ...items: Iterator<T>[]): IterableIterator<T>;\n\n/**\n * Combines two or more iterators.\n * This method returns a new iterator without modifying any existing iterators.\n *\n * @param items Additional iterators and/or items to add to the end of the iterator.\n */\nexport function iteratorConcat<T>(iterator: Iterator<T>, ...items: (T | Iterator<T>)[]): IterableIterator<T>;\n\nexport function* iteratorConcat<T>(iterator: Iterator<T>, ...items: (T | Iterator<T>)[]): IterableIterator<T> {\n yield* iteratorToIterable(iterator);\n\n for (const item of items) {\n if (isIterator(item)) {\n yield* iteratorToIterable(item);\n } else {\n yield item;\n }\n }\n}\n"],"mappings":";;;;;AAEA,SAAS,WAAc,OAAsC;AAC3D,SAAO,CAAC,CAAC,SAAS,OAAO,UAAU,YAAY,OAAO,YAAY;AACpE;AAkBO,UAAU,eAAkB,aAA0B,OAAiD;AAC5G,SAAO,mBAAmB,QAAQ;AAElC,aAAW,QAAQ,OAAO;AACxB,QAAI,WAAW,IAAI,GAAG;AACpB,aAAO,mBAAmB,IAAI;AAAA,IAChC,OAAO;AACL,YAAM;AAAA,IACR;AAAA,EACF;AACF;","names":[]}