iter-fest 0.1.1-main.dd552c2 → 0.1.1-main.edf2470

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 (184) hide show
  1. package/README.md +50 -91
  2. package/dist/chunk-5CRMPYKD.mjs +19 -0
  3. package/dist/chunk-5CRMPYKD.mjs.map +1 -0
  4. package/dist/chunk-6C3P4TNK.mjs +19 -0
  5. package/dist/chunk-6C3P4TNK.mjs.map +1 -0
  6. package/dist/chunk-EZC33HE6.mjs +15 -0
  7. package/dist/chunk-EZC33HE6.mjs.map +1 -0
  8. package/dist/chunk-JU353VSE.mjs +16 -0
  9. package/dist/chunk-JU353VSE.mjs.map +1 -0
  10. package/dist/chunk-MNLOWKTC.mjs +19 -0
  11. package/dist/chunk-MNLOWKTC.mjs.map +1 -0
  12. package/dist/{chunk-YJSIVBF7.mjs → chunk-MOBXUTO5.mjs} +5 -5
  13. package/dist/chunk-MOBXUTO5.mjs.map +1 -0
  14. package/dist/chunk-O5SQJUKB.mjs +37 -0
  15. package/dist/chunk-O5SQJUKB.mjs.map +1 -0
  16. package/dist/chunk-XW34KZRY.mjs +17 -0
  17. package/dist/chunk-XW34KZRY.mjs.map +1 -0
  18. package/dist/chunk-ZUBHGSCW.mjs +18 -0
  19. package/dist/chunk-ZUBHGSCW.mjs.map +1 -0
  20. package/dist/iter-fest.d.mts +9 -15
  21. package/dist/iter-fest.d.ts +9 -15
  22. package/dist/iter-fest.iterableEvery.d.mts +24 -0
  23. package/dist/iter-fest.iterableEvery.d.ts +24 -0
  24. package/dist/{iter-fest.asyncIteratorToAsyncIterable.js → iter-fest.iterableEvery.js} +19 -15
  25. package/dist/iter-fest.iterableEvery.js.map +1 -0
  26. package/dist/iter-fest.iterableEvery.mjs +7 -0
  27. package/dist/iter-fest.iterableFilter.d.mts +16 -0
  28. package/dist/iter-fest.iterableFilter.d.ts +16 -0
  29. package/dist/iter-fest.iterableFilter.js +42 -0
  30. package/dist/iter-fest.iterableFilter.js.map +1 -0
  31. package/dist/iter-fest.iterableFilter.mjs +7 -0
  32. package/dist/iter-fest.iterableFind.d.mts +15 -0
  33. package/dist/iter-fest.iterableFind.d.ts +15 -0
  34. package/dist/iter-fest.iterableFind.js +43 -0
  35. package/dist/iter-fest.iterableFind.js.map +1 -0
  36. package/dist/iter-fest.iterableFind.mjs +7 -0
  37. package/dist/iter-fest.iterableForEach.d.mts +10 -0
  38. package/dist/iter-fest.iterableForEach.d.ts +10 -0
  39. package/dist/iter-fest.iterableForEach.js +40 -0
  40. package/dist/iter-fest.iterableForEach.js.map +1 -0
  41. package/dist/iter-fest.iterableForEach.mjs +7 -0
  42. package/dist/iter-fest.iterableGetReadable.d.mts +3 -0
  43. package/dist/iter-fest.iterableGetReadable.d.ts +3 -0
  44. package/dist/{iter-fest.readableStreamFrom.js → iter-fest.iterableGetReadable.js} +9 -9
  45. package/dist/iter-fest.iterableGetReadable.js.map +1 -0
  46. package/dist/iter-fest.iterableGetReadable.mjs +7 -0
  47. package/dist/iter-fest.iterableMap.d.mts +8 -0
  48. package/dist/iter-fest.iterableMap.d.ts +8 -0
  49. package/dist/iter-fest.iterableMap.js +39 -0
  50. package/dist/iter-fest.iterableMap.js.map +1 -0
  51. package/dist/iter-fest.iterableMap.mjs +7 -0
  52. package/dist/{iter-fest.iteratorReduce.d.mts → iter-fest.iterableReduce.d.mts} +9 -13
  53. package/dist/{iter-fest.iteratorReduce.d.ts → iter-fest.iterableReduce.d.ts} +9 -13
  54. package/dist/iter-fest.iterableReduce.js +41 -0
  55. package/dist/iter-fest.iterableReduce.js.map +1 -0
  56. package/dist/iter-fest.iterableReduce.mjs +7 -0
  57. package/dist/iter-fest.iterableSome.d.mts +12 -0
  58. package/dist/iter-fest.iterableSome.d.ts +12 -0
  59. package/dist/iter-fest.iterableSome.js +43 -0
  60. package/dist/iter-fest.iterableSome.js.map +1 -0
  61. package/dist/iter-fest.iterableSome.mjs +7 -0
  62. package/dist/iter-fest.js +168 -177
  63. package/dist/iter-fest.js.map +1 -1
  64. package/dist/iter-fest.mjs +48 -72
  65. package/dist/iter-fest.pushAsyncIterableIterator.d.mts +9 -0
  66. package/dist/iter-fest.pushAsyncIterableIterator.d.ts +9 -0
  67. package/dist/{iter-fest.iterableWritableStream.js → iter-fest.pushAsyncIterableIterator.js} +30 -39
  68. package/dist/iter-fest.pushAsyncIterableIterator.js.map +1 -0
  69. package/dist/iter-fest.pushAsyncIterableIterator.mjs +7 -0
  70. package/package.json +87 -147
  71. package/dist/chunk-3S6LCGE6.mjs +0 -10
  72. package/dist/chunk-3S6LCGE6.mjs.map +0 -1
  73. package/dist/chunk-BWMXKULC.mjs +0 -46
  74. package/dist/chunk-BWMXKULC.mjs.map +0 -1
  75. package/dist/chunk-FBST4AUL.mjs +0 -10
  76. package/dist/chunk-FBST4AUL.mjs.map +0 -1
  77. package/dist/chunk-FMIHIL6A.mjs +0 -10
  78. package/dist/chunk-FMIHIL6A.mjs.map +0 -1
  79. package/dist/chunk-KYMTQJIJ.mjs +0 -10
  80. package/dist/chunk-KYMTQJIJ.mjs.map +0 -1
  81. package/dist/chunk-LIMQXDFK.mjs +0 -10
  82. package/dist/chunk-LIMQXDFK.mjs.map +0 -1
  83. package/dist/chunk-OWUGLCQB.mjs +0 -10
  84. package/dist/chunk-OWUGLCQB.mjs.map +0 -1
  85. package/dist/chunk-P4OSZLEH.mjs +0 -15
  86. package/dist/chunk-P4OSZLEH.mjs.map +0 -1
  87. package/dist/chunk-QX6EMOSQ.mjs +0 -10
  88. package/dist/chunk-QX6EMOSQ.mjs.map +0 -1
  89. package/dist/chunk-R6SXIXMH.mjs +0 -10
  90. package/dist/chunk-R6SXIXMH.mjs.map +0 -1
  91. package/dist/chunk-TDHR35S7.mjs +0 -10
  92. package/dist/chunk-TDHR35S7.mjs.map +0 -1
  93. package/dist/chunk-VCKLUCOT.mjs +0 -10
  94. package/dist/chunk-VCKLUCOT.mjs.map +0 -1
  95. package/dist/chunk-XQDGXAAF.mjs +0 -10
  96. package/dist/chunk-XQDGXAAF.mjs.map +0 -1
  97. package/dist/chunk-YJSIVBF7.mjs.map +0 -1
  98. package/dist/chunk-YLERARWI.mjs +0 -10
  99. package/dist/chunk-YLERARWI.mjs.map +0 -1
  100. package/dist/iter-fest.asyncIteratorToAsyncIterable.d.mts +0 -3
  101. package/dist/iter-fest.asyncIteratorToAsyncIterable.d.ts +0 -3
  102. package/dist/iter-fest.asyncIteratorToAsyncIterable.js.map +0 -1
  103. package/dist/iter-fest.asyncIteratorToAsyncIterable.mjs +0 -7
  104. package/dist/iter-fest.iterableWritableStream.d.mts +0 -7
  105. package/dist/iter-fest.iterableWritableStream.d.ts +0 -7
  106. package/dist/iter-fest.iterableWritableStream.js.map +0 -1
  107. package/dist/iter-fest.iterableWritableStream.mjs +0 -7
  108. package/dist/iter-fest.iteratorDrop.d.mts +0 -12
  109. package/dist/iter-fest.iteratorDrop.d.ts +0 -12
  110. package/dist/iter-fest.iteratorDrop.js +0 -44
  111. package/dist/iter-fest.iteratorDrop.js.map +0 -1
  112. package/dist/iter-fest.iteratorDrop.mjs +0 -7
  113. package/dist/iter-fest.iteratorEvery.d.mts +0 -25
  114. package/dist/iter-fest.iteratorEvery.d.ts +0 -25
  115. package/dist/iter-fest.iteratorEvery.js +0 -44
  116. package/dist/iter-fest.iteratorEvery.js.map +0 -1
  117. package/dist/iter-fest.iteratorEvery.mjs +0 -7
  118. package/dist/iter-fest.iteratorFilter.d.mts +0 -18
  119. package/dist/iter-fest.iteratorFilter.d.ts +0 -18
  120. package/dist/iter-fest.iteratorFilter.js +0 -44
  121. package/dist/iter-fest.iteratorFilter.js.map +0 -1
  122. package/dist/iter-fest.iteratorFilter.mjs +0 -7
  123. package/dist/iter-fest.iteratorFind.d.mts +0 -14
  124. package/dist/iter-fest.iteratorFind.d.ts +0 -14
  125. package/dist/iter-fest.iteratorFind.js +0 -44
  126. package/dist/iter-fest.iteratorFind.js.map +0 -1
  127. package/dist/iter-fest.iteratorFind.mjs +0 -7
  128. package/dist/iter-fest.iteratorFlatMap.d.mts +0 -12
  129. package/dist/iter-fest.iteratorFlatMap.d.ts +0 -12
  130. package/dist/iter-fest.iteratorFlatMap.js +0 -44
  131. package/dist/iter-fest.iteratorFlatMap.js.map +0 -1
  132. package/dist/iter-fest.iteratorFlatMap.mjs +0 -7
  133. package/dist/iter-fest.iteratorForEach.d.mts +0 -10
  134. package/dist/iter-fest.iteratorForEach.d.ts +0 -10
  135. package/dist/iter-fest.iteratorForEach.js +0 -44
  136. package/dist/iter-fest.iteratorForEach.js.map +0 -1
  137. package/dist/iter-fest.iteratorForEach.mjs +0 -7
  138. package/dist/iter-fest.iteratorFrom.d.mts +0 -12
  139. package/dist/iter-fest.iteratorFrom.d.ts +0 -12
  140. package/dist/iter-fest.iteratorFrom.js +0 -44
  141. package/dist/iter-fest.iteratorFrom.js.map +0 -1
  142. package/dist/iter-fest.iteratorFrom.mjs +0 -7
  143. package/dist/iter-fest.iteratorMap.d.mts +0 -10
  144. package/dist/iter-fest.iteratorMap.d.ts +0 -10
  145. package/dist/iter-fest.iteratorMap.js +0 -44
  146. package/dist/iter-fest.iteratorMap.js.map +0 -1
  147. package/dist/iter-fest.iteratorMap.mjs +0 -7
  148. package/dist/iter-fest.iteratorMap.mjs.map +0 -1
  149. package/dist/iter-fest.iteratorReduce.js +0 -44
  150. package/dist/iter-fest.iteratorReduce.js.map +0 -1
  151. package/dist/iter-fest.iteratorReduce.mjs +0 -7
  152. package/dist/iter-fest.iteratorReduce.mjs.map +0 -1
  153. package/dist/iter-fest.iteratorSome.d.mts +0 -10
  154. package/dist/iter-fest.iteratorSome.d.ts +0 -10
  155. package/dist/iter-fest.iteratorSome.js +0 -44
  156. package/dist/iter-fest.iteratorSome.js.map +0 -1
  157. package/dist/iter-fest.iteratorSome.mjs +0 -7
  158. package/dist/iter-fest.iteratorSome.mjs.map +0 -1
  159. package/dist/iter-fest.iteratorTake.d.mts +0 -12
  160. package/dist/iter-fest.iteratorTake.d.ts +0 -12
  161. package/dist/iter-fest.iteratorTake.js +0 -44
  162. package/dist/iter-fest.iteratorTake.js.map +0 -1
  163. package/dist/iter-fest.iteratorTake.mjs +0 -7
  164. package/dist/iter-fest.iteratorTake.mjs.map +0 -1
  165. package/dist/iter-fest.iteratorToArray.d.mts +0 -13
  166. package/dist/iter-fest.iteratorToArray.d.ts +0 -13
  167. package/dist/iter-fest.iteratorToArray.js +0 -44
  168. package/dist/iter-fest.iteratorToArray.js.map +0 -1
  169. package/dist/iter-fest.iteratorToArray.mjs +0 -7
  170. package/dist/iter-fest.iteratorToArray.mjs.map +0 -1
  171. package/dist/iter-fest.readableStreamFrom.d.mts +0 -3
  172. package/dist/iter-fest.readableStreamFrom.d.ts +0 -3
  173. package/dist/iter-fest.readableStreamFrom.js.map +0 -1
  174. package/dist/iter-fest.readableStreamFrom.mjs +0 -7
  175. package/dist/iter-fest.readableStreamFrom.mjs.map +0 -1
  176. /package/dist/{iter-fest.asyncIteratorToAsyncIterable.mjs.map → iter-fest.iterableEvery.mjs.map} +0 -0
  177. /package/dist/{iter-fest.iterableWritableStream.mjs.map → iter-fest.iterableFilter.mjs.map} +0 -0
  178. /package/dist/{iter-fest.iteratorDrop.mjs.map → iter-fest.iterableFind.mjs.map} +0 -0
  179. /package/dist/{iter-fest.iteratorEvery.mjs.map → iter-fest.iterableForEach.mjs.map} +0 -0
  180. /package/dist/{iter-fest.iteratorFilter.mjs.map → iter-fest.iterableGetReadable.mjs.map} +0 -0
  181. /package/dist/{iter-fest.iteratorFind.mjs.map → iter-fest.iterableMap.mjs.map} +0 -0
  182. /package/dist/{iter-fest.iteratorFlatMap.mjs.map → iter-fest.iterableReduce.mjs.map} +0 -0
  183. /package/dist/{iter-fest.iteratorForEach.mjs.map → iter-fest.iterableSome.mjs.map} +0 -0
  184. /package/dist/{iter-fest.iteratorFrom.mjs.map → iter-fest.pushAsyncIterableIterator.mjs.map} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iter-fest",
3
- "version": "0.1.1-main.dd552c2",
3
+ "version": "0.1.1-main.edf2470",
4
4
  "description": "A collection of utilities for iterations.",
5
5
  "files": [
6
6
  "./dist/"
@@ -16,16 +16,6 @@
16
16
  "default": "./dist/iter-fest.asyncGeneratorWithLastValue.js"
17
17
  }
18
18
  },
19
- "./asyncIteratorToAsyncIterable": {
20
- "import": {
21
- "types": "./dist/iter-fest.asyncIteratorToAsyncIterable.d.mts",
22
- "default": "./dist/iter-fest.asyncIteratorToAsyncIterable.mjs"
23
- },
24
- "require": {
25
- "types": "./dist/iter-fest.asyncIteratorToAsyncIterable.d.ts",
26
- "default": "./dist/iter-fest.asyncIteratorToAsyncIterable.js"
27
- }
28
- },
29
19
  "./generatorWithLastValue": {
30
20
  "import": {
31
21
  "types": "./dist/iter-fest.generatorWithLastValue.d.mts",
@@ -66,6 +56,36 @@
66
56
  "default": "./dist/iter-fest.iterableEntries.js"
67
57
  }
68
58
  },
59
+ "./iterableEvery": {
60
+ "import": {
61
+ "types": "./dist/iter-fest.iterableEvery.d.mts",
62
+ "default": "./dist/iter-fest.iterableEvery.mjs"
63
+ },
64
+ "require": {
65
+ "types": "./dist/iter-fest.iterableEvery.d.ts",
66
+ "default": "./dist/iter-fest.iterableEvery.js"
67
+ }
68
+ },
69
+ "./iterableFilter": {
70
+ "import": {
71
+ "types": "./dist/iter-fest.iterableFilter.d.mts",
72
+ "default": "./dist/iter-fest.iterableFilter.mjs"
73
+ },
74
+ "require": {
75
+ "types": "./dist/iter-fest.iterableFilter.d.ts",
76
+ "default": "./dist/iter-fest.iterableFilter.js"
77
+ }
78
+ },
79
+ "./iterableFind": {
80
+ "import": {
81
+ "types": "./dist/iter-fest.iterableFind.d.mts",
82
+ "default": "./dist/iter-fest.iterableFind.mjs"
83
+ },
84
+ "require": {
85
+ "types": "./dist/iter-fest.iterableFind.d.ts",
86
+ "default": "./dist/iter-fest.iterableFind.js"
87
+ }
88
+ },
69
89
  "./iterableFindIndex": {
70
90
  "import": {
71
91
  "types": "./dist/iter-fest.iterableFindIndex.d.mts",
@@ -96,6 +116,26 @@
96
116
  "default": "./dist/iter-fest.iterableFindLastIndex.js"
97
117
  }
98
118
  },
119
+ "./iterableForEach": {
120
+ "import": {
121
+ "types": "./dist/iter-fest.iterableForEach.d.mts",
122
+ "default": "./dist/iter-fest.iterableForEach.mjs"
123
+ },
124
+ "require": {
125
+ "types": "./dist/iter-fest.iterableForEach.d.ts",
126
+ "default": "./dist/iter-fest.iterableForEach.js"
127
+ }
128
+ },
129
+ "./iterableGetReadable": {
130
+ "import": {
131
+ "types": "./dist/iter-fest.iterableGetReadable.d.mts",
132
+ "default": "./dist/iter-fest.iterableGetReadable.mjs"
133
+ },
134
+ "require": {
135
+ "types": "./dist/iter-fest.iterableGetReadable.d.ts",
136
+ "default": "./dist/iter-fest.iterableGetReadable.js"
137
+ }
138
+ },
99
139
  "./iterableIncludes": {
100
140
  "import": {
101
141
  "types": "./dist/iter-fest.iterableIncludes.d.mts",
@@ -136,164 +176,64 @@
136
176
  "default": "./dist/iter-fest.iterableJoin.js"
137
177
  }
138
178
  },
139
- "./iterableSlice": {
140
- "import": {
141
- "types": "./dist/iter-fest.iterableSlice.d.mts",
142
- "default": "./dist/iter-fest.iterableSlice.mjs"
143
- },
144
- "require": {
145
- "types": "./dist/iter-fest.iterableSlice.d.ts",
146
- "default": "./dist/iter-fest.iterableSlice.js"
147
- }
148
- },
149
- "./iterableToSpliced": {
150
- "import": {
151
- "types": "./dist/iter-fest.iterableToSpliced.d.mts",
152
- "default": "./dist/iter-fest.iterableToSpliced.mjs"
153
- },
154
- "require": {
155
- "types": "./dist/iter-fest.iterableToSpliced.d.ts",
156
- "default": "./dist/iter-fest.iterableToSpliced.js"
157
- }
158
- },
159
- "./iterableToString": {
160
- "import": {
161
- "types": "./dist/iter-fest.iterableToString.d.mts",
162
- "default": "./dist/iter-fest.iterableToString.mjs"
163
- },
164
- "require": {
165
- "types": "./dist/iter-fest.iterableToString.d.ts",
166
- "default": "./dist/iter-fest.iterableToString.js"
167
- }
168
- },
169
- "./iterableWritableStream": {
170
- "import": {
171
- "types": "./dist/iter-fest.iterableWritableStream.d.mts",
172
- "default": "./dist/iter-fest.iterableWritableStream.mjs"
173
- },
174
- "require": {
175
- "types": "./dist/iter-fest.iterableWritableStream.d.ts",
176
- "default": "./dist/iter-fest.iterableWritableStream.js"
177
- }
178
- },
179
- "./iteratorDrop": {
180
- "import": {
181
- "types": "./dist/iter-fest.iteratorDrop.d.mts",
182
- "default": "./dist/iter-fest.iteratorDrop.mjs"
183
- },
184
- "require": {
185
- "types": "./dist/iter-fest.iteratorDrop.d.ts",
186
- "default": "./dist/iter-fest.iteratorDrop.js"
187
- }
188
- },
189
- "./iteratorEvery": {
190
- "import": {
191
- "types": "./dist/iter-fest.iteratorEvery.d.mts",
192
- "default": "./dist/iter-fest.iteratorEvery.mjs"
193
- },
194
- "require": {
195
- "types": "./dist/iter-fest.iteratorEvery.d.ts",
196
- "default": "./dist/iter-fest.iteratorEvery.js"
197
- }
198
- },
199
- "./iteratorFilter": {
200
- "import": {
201
- "types": "./dist/iter-fest.iteratorFilter.d.mts",
202
- "default": "./dist/iter-fest.iteratorFilter.mjs"
203
- },
204
- "require": {
205
- "types": "./dist/iter-fest.iteratorFilter.d.ts",
206
- "default": "./dist/iter-fest.iteratorFilter.js"
207
- }
208
- },
209
- "./iteratorFind": {
179
+ "./iterableMap": {
210
180
  "import": {
211
- "types": "./dist/iter-fest.iteratorFind.d.mts",
212
- "default": "./dist/iter-fest.iteratorFind.mjs"
181
+ "types": "./dist/iter-fest.iterableMap.d.mts",
182
+ "default": "./dist/iter-fest.iterableMap.mjs"
213
183
  },
214
184
  "require": {
215
- "types": "./dist/iter-fest.iteratorFind.d.ts",
216
- "default": "./dist/iter-fest.iteratorFind.js"
185
+ "types": "./dist/iter-fest.iterableMap.d.ts",
186
+ "default": "./dist/iter-fest.iterableMap.js"
217
187
  }
218
188
  },
219
- "./iteratorFlatMap": {
189
+ "./iterableReduce": {
220
190
  "import": {
221
- "types": "./dist/iter-fest.iteratorFlatMap.d.mts",
222
- "default": "./dist/iter-fest.iteratorFlatMap.mjs"
191
+ "types": "./dist/iter-fest.iterableReduce.d.mts",
192
+ "default": "./dist/iter-fest.iterableReduce.mjs"
223
193
  },
224
194
  "require": {
225
- "types": "./dist/iter-fest.iteratorFlatMap.d.ts",
226
- "default": "./dist/iter-fest.iteratorFlatMap.js"
195
+ "types": "./dist/iter-fest.iterableReduce.d.ts",
196
+ "default": "./dist/iter-fest.iterableReduce.js"
227
197
  }
228
198
  },
229
- "./iteratorForEach": {
230
- "import": {
231
- "types": "./dist/iter-fest.iteratorForEach.d.mts",
232
- "default": "./dist/iter-fest.iteratorForEach.mjs"
233
- },
234
- "require": {
235
- "types": "./dist/iter-fest.iteratorForEach.d.ts",
236
- "default": "./dist/iter-fest.iteratorForEach.js"
237
- }
238
- },
239
- "./iteratorFrom": {
240
- "import": {
241
- "types": "./dist/iter-fest.iteratorFrom.d.mts",
242
- "default": "./dist/iter-fest.iteratorFrom.mjs"
243
- },
244
- "require": {
245
- "types": "./dist/iter-fest.iteratorFrom.d.ts",
246
- "default": "./dist/iter-fest.iteratorFrom.js"
247
- }
248
- },
249
- "./iteratorMap": {
250
- "import": {
251
- "types": "./dist/iter-fest.iteratorMap.d.mts",
252
- "default": "./dist/iter-fest.iteratorMap.mjs"
253
- },
254
- "require": {
255
- "types": "./dist/iter-fest.iteratorMap.d.ts",
256
- "default": "./dist/iter-fest.iteratorMap.js"
257
- }
258
- },
259
- "./iteratorReduce": {
199
+ "./iterableSlice": {
260
200
  "import": {
261
- "types": "./dist/iter-fest.iteratorReduce.d.mts",
262
- "default": "./dist/iter-fest.iteratorReduce.mjs"
201
+ "types": "./dist/iter-fest.iterableSlice.d.mts",
202
+ "default": "./dist/iter-fest.iterableSlice.mjs"
263
203
  },
264
204
  "require": {
265
- "types": "./dist/iter-fest.iteratorReduce.d.ts",
266
- "default": "./dist/iter-fest.iteratorReduce.js"
205
+ "types": "./dist/iter-fest.iterableSlice.d.ts",
206
+ "default": "./dist/iter-fest.iterableSlice.js"
267
207
  }
268
208
  },
269
- "./iteratorSome": {
209
+ "./iterableSome": {
270
210
  "import": {
271
- "types": "./dist/iter-fest.iteratorSome.d.mts",
272
- "default": "./dist/iter-fest.iteratorSome.mjs"
211
+ "types": "./dist/iter-fest.iterableSome.d.mts",
212
+ "default": "./dist/iter-fest.iterableSome.mjs"
273
213
  },
274
214
  "require": {
275
- "types": "./dist/iter-fest.iteratorSome.d.ts",
276
- "default": "./dist/iter-fest.iteratorSome.js"
215
+ "types": "./dist/iter-fest.iterableSome.d.ts",
216
+ "default": "./dist/iter-fest.iterableSome.js"
277
217
  }
278
218
  },
279
- "./iteratorTake": {
219
+ "./iterableToSpliced": {
280
220
  "import": {
281
- "types": "./dist/iter-fest.iteratorTake.d.mts",
282
- "default": "./dist/iter-fest.iteratorTake.mjs"
221
+ "types": "./dist/iter-fest.iterableToSpliced.d.mts",
222
+ "default": "./dist/iter-fest.iterableToSpliced.mjs"
283
223
  },
284
224
  "require": {
285
- "types": "./dist/iter-fest.iteratorTake.d.ts",
286
- "default": "./dist/iter-fest.iteratorTake.js"
225
+ "types": "./dist/iter-fest.iterableToSpliced.d.ts",
226
+ "default": "./dist/iter-fest.iterableToSpliced.js"
287
227
  }
288
228
  },
289
- "./iteratorToArray": {
229
+ "./iterableToString": {
290
230
  "import": {
291
- "types": "./dist/iter-fest.iteratorToArray.d.mts",
292
- "default": "./dist/iter-fest.iteratorToArray.mjs"
231
+ "types": "./dist/iter-fest.iterableToString.d.mts",
232
+ "default": "./dist/iter-fest.iterableToString.mjs"
293
233
  },
294
234
  "require": {
295
- "types": "./dist/iter-fest.iteratorToArray.d.ts",
296
- "default": "./dist/iter-fest.iteratorToArray.js"
235
+ "types": "./dist/iter-fest.iterableToString.d.ts",
236
+ "default": "./dist/iter-fest.iterableToString.js"
297
237
  }
298
238
  },
299
239
  "./iteratorToIterable": {
@@ -336,14 +276,14 @@
336
276
  "default": "./dist/iter-fest.observableSubscribeAsReadable.js"
337
277
  }
338
278
  },
339
- "./readableStreamFrom": {
279
+ "./pushAsyncIterableIterator": {
340
280
  "import": {
341
- "types": "./dist/iter-fest.readableStreamFrom.d.mts",
342
- "default": "./dist/iter-fest.readableStreamFrom.mjs"
281
+ "types": "./dist/iter-fest.pushAsyncIterableIterator.d.mts",
282
+ "default": "./dist/iter-fest.pushAsyncIterableIterator.mjs"
343
283
  },
344
284
  "require": {
345
- "types": "./dist/iter-fest.readableStreamFrom.d.ts",
346
- "default": "./dist/iter-fest.readableStreamFrom.js"
285
+ "types": "./dist/iter-fest.pushAsyncIterableIterator.d.ts",
286
+ "default": "./dist/iter-fest.pushAsyncIterableIterator.js"
347
287
  }
348
288
  },
349
289
  "./readerValues": {
@@ -428,6 +368,6 @@
428
368
  "typescript": "^5.4.5"
429
369
  },
430
370
  "dependencies": {
431
- "iter-fest": "^0.1.1-main.dd552c2"
371
+ "iter-fest": "^0.1.1-main.edf2470"
432
372
  }
433
373
  }
@@ -1,10 +0,0 @@
1
- // src/iteratorSome.ts
2
- import some from "core-js-pure/full/iterator/some";
3
- function iteratorSome(iterator, predicate) {
4
- return some(iterator, predicate);
5
- }
6
-
7
- export {
8
- iteratorSome
9
- };
10
- //# sourceMappingURL=chunk-3S6LCGE6.mjs.map
@@ -1 +0,0 @@
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';\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,46 +0,0 @@
1
- // src/private/withResolvers.ts
2
- import coreJSPromiseWithResolvers from "core-js-pure/full/promise/with-resolvers";
3
- function withResolvers() {
4
- return coreJSPromiseWithResolvers();
5
- }
6
-
7
- // src/iterableWritableStream.ts
8
- var CLOSE = Symbol();
9
- var IterableWritableStream = class extends WritableStream {
10
- constructor() {
11
- super({
12
- close: () => {
13
- this.#buffer.push(CLOSE);
14
- this.#writeResolvers.resolve();
15
- },
16
- write: (chunk) => {
17
- this.#buffer.push(chunk);
18
- this.#writeResolvers.resolve();
19
- this.#writeResolvers = withResolvers();
20
- }
21
- });
22
- }
23
- #buffer = [];
24
- #writeResolvers = withResolvers();
25
- [Symbol.asyncIterator]() {
26
- return {
27
- next: async () => {
28
- while (!this.#buffer.length) {
29
- await this.#writeResolvers.promise;
30
- }
31
- const value = this.#buffer[0];
32
- if (value === CLOSE) {
33
- return { done: true, value: void 0 };
34
- }
35
- this.#buffer.shift();
36
- await void 0;
37
- return { done: false, value };
38
- }
39
- };
40
- }
41
- };
42
-
43
- export {
44
- IterableWritableStream
45
- };
46
- //# sourceMappingURL=chunk-BWMXKULC.mjs.map
@@ -1 +0,0 @@
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';\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,10 +0,0 @@
1
- // src/iteratorFind.ts
2
- import find from "core-js-pure/full/iterator/find";
3
- function iteratorFind(iterator, predicate) {
4
- return find(iterator, predicate);
5
- }
6
-
7
- export {
8
- iteratorFind
9
- };
10
- //# sourceMappingURL=chunk-FBST4AUL.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/iteratorFind.ts"],"sourcesContent":["// @ts-expect-error core-js-pure is not typed.\nimport find from 'core-js-pure/full/iterator/find';\n\n/**\n * Returns the value of the first element in the iterator where predicate is true, and undefined\n * otherwise.\n *\n * @param predicate find calls predicate once for each element of the iterator, in ascending\n * order, until it finds one where predicate returns true. If such an element is found, find\n * immediately returns that element value. Otherwise, find returns undefined.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function iteratorFind<T, S extends T>(\n iterator: Iterator<T>,\n predicate: (value: T, index: number) => value is S\n): S | undefined;\n\nexport function iteratorFind<T>(iterator: Iterator<T>, predicate: (value: T, index: number) => unknown): T | undefined;\n\nexport function iteratorFind<T, S extends T>(\n iterator: Iterator<T>,\n predicate: (value: T, index: number) => unknown\n): S | undefined {\n return find(iterator, predicate);\n}\n"],"mappings":";AACA,OAAO,UAAU;AAmBV,SAAS,aACd,UACA,WACe;AACf,SAAO,KAAK,UAAU,SAAS;AACjC;","names":[]}
@@ -1,10 +0,0 @@
1
- // src/iteratorForEach.ts
2
- import forEach from "core-js-pure/full/iterator/for-each";
3
- function iteratorForEach(iterator, callbackfn) {
4
- forEach(iterator, callbackfn);
5
- }
6
-
7
- export {
8
- iteratorForEach
9
- };
10
- //# sourceMappingURL=chunk-FMIHIL6A.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/iteratorForEach.ts"],"sourcesContent":["// @ts-expect-error core-js-pure is not typed.\nimport forEach from 'core-js-pure/full/iterator/for-each';\n\n/**\n * Performs the specified action for each element in an iterator.\n *\n * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the iterator.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function iteratorForEach<T>(iterator: Iterator<T>, callbackfn: (value: T, index: number) => void): void {\n forEach(iterator, callbackfn);\n}\n"],"mappings":";AACA,OAAO,aAAa;AASb,SAAS,gBAAmB,UAAuB,YAAqD;AAC7G,UAAQ,UAAU,UAAU;AAC9B;","names":[]}
@@ -1,10 +0,0 @@
1
- // src/iteratorFrom.ts
2
- import from from "core-js-pure/full/iterator/from";
3
- function iteratorFrom(iteratorLike) {
4
- return from(iteratorLike);
5
- }
6
-
7
- export {
8
- iteratorFrom
9
- };
10
- //# sourceMappingURL=chunk-KYMTQJIJ.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/iteratorFrom.ts"],"sourcesContent":["// @ts-expect-error core-js-pure is not typed.\nimport from from 'core-js-pure/full/iterator/from';\n\n/**\n * `.from` is a static method (unlike the others listed above) which takes an object as an argument. This method allows wrapping \"iterator-like\" objects with an iterator.\n *\n * @param limit\n *\n * @return Returns the object if it is already an iterator, returns a wrapping iterator if the passed object implements a callable @@iterator property.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function iteratorFrom<T>(iteratorLike: Iterator<T>): Iterator<T> {\n return from(iteratorLike);\n}\n"],"mappings":";AACA,OAAO,UAAU;AAWV,SAAS,aAAgB,cAAwC;AACtE,SAAO,KAAK,YAAY;AAC1B;","names":[]}
@@ -1,10 +0,0 @@
1
- // src/iteratorReduce.ts
2
- import reduce from "core-js-pure/full/iterator/reduce";
3
- function iteratorReduce(iterator, callbackfn, initialValue) {
4
- return reduce(iterator, callbackfn, initialValue);
5
- }
6
-
7
- export {
8
- iteratorReduce
9
- };
10
- //# sourceMappingURL=chunk-LIMQXDFK.mjs.map
@@ -1 +0,0 @@
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';\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,10 +0,0 @@
1
- // src/iteratorEvery.ts
2
- import every from "core-js-pure/full/iterator/every";
3
- function iteratorEvery(iterator, predicate) {
4
- return every(iterator, predicate);
5
- }
6
-
7
- export {
8
- iteratorEvery
9
- };
10
- //# sourceMappingURL=chunk-OWUGLCQB.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/iteratorEvery.ts"],"sourcesContent":["// @ts-expect-error core-js-pure is not typed.\nimport every from 'core-js-pure/full/iterator/every';\n\n/**\n * Determines whether all the members of an iterator satisfy the specified test.\n *\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the iterator until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the iterator.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function iteratorEvery<T, S extends T>(\n iterator: Iterator<T>,\n predicate: (value: T, index: number) => value is S\n): iterator is Iterator<S>;\n\n/**\n * Determines whether all the members of an iterator satisfy the specified test.\n *\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the iterator until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the iterator.\n *\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function iteratorEvery<T>(iterator: Iterator<T>, predicate: (value: T, index: number) => unknown): boolean;\n\nexport function iteratorEvery<T>(iterator: Iterator<T>, predicate: (value: T, index: number) => unknown): boolean {\n return every(iterator, predicate);\n}\n"],"mappings":";AACA,OAAO,WAAW;AA8BX,SAAS,cAAiB,UAAuB,WAA0D;AAChH,SAAO,MAAM,UAAU,SAAS;AAClC;","names":[]}
@@ -1,15 +0,0 @@
1
- // src/asyncIteratorToAsyncIterable.ts
2
- function asyncIteratorToAsyncIterable(asyncIterator) {
3
- const asyncIterableIterator = {
4
- [Symbol.asyncIterator]: () => asyncIterableIterator,
5
- next: asyncIterator.next.bind(asyncIterator),
6
- ...asyncIterator.return ? { return: asyncIterator.return.bind(asyncIterator) } : {},
7
- ...asyncIterator.throw ? { throw: asyncIterator.throw.bind(asyncIterator) } : {}
8
- };
9
- return asyncIterableIterator;
10
- }
11
-
12
- export {
13
- asyncIteratorToAsyncIterable
14
- };
15
- //# sourceMappingURL=chunk-P4OSZLEH.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/asyncIteratorToAsyncIterable.ts"],"sourcesContent":["export function asyncIteratorToAsyncIterable<T>(asyncIterator: AsyncIterator<T>): AsyncIterableIterator<T> {\n const asyncIterableIterator: AsyncIterableIterator<T> = {\n [Symbol.asyncIterator]: () => asyncIterableIterator,\n next: asyncIterator.next.bind(asyncIterator),\n ...(asyncIterator.return ? { return: asyncIterator.return.bind(asyncIterator) } : {}),\n ...(asyncIterator.throw ? { throw: asyncIterator.throw.bind(asyncIterator) } : {})\n };\n\n return asyncIterableIterator;\n}\n"],"mappings":";AAAO,SAAS,6BAAgC,eAA2D;AACzG,QAAM,wBAAkD;AAAA,IACtD,CAAC,OAAO,aAAa,GAAG,MAAM;AAAA,IAC9B,MAAM,cAAc,KAAK,KAAK,aAAa;AAAA,IAC3C,GAAI,cAAc,SAAS,EAAE,QAAQ,cAAc,OAAO,KAAK,aAAa,EAAE,IAAI,CAAC;AAAA,IACnF,GAAI,cAAc,QAAQ,EAAE,OAAO,cAAc,MAAM,KAAK,aAAa,EAAE,IAAI,CAAC;AAAA,EAClF;AAEA,SAAO;AACT;","names":[]}
@@ -1,10 +0,0 @@
1
- // src/iteratorFlatMap.ts
2
- import flatMap from "core-js-pure/full/iterator/flat-map";
3
- function iteratorFlatMap(iterable, mapperFn) {
4
- return flatMap(iterable, mapperFn);
5
- }
6
-
7
- export {
8
- iteratorFlatMap
9
- };
10
- //# sourceMappingURL=chunk-QX6EMOSQ.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/iteratorFlatMap.ts"],"sourcesContent":["// @ts-expect-error core-js-pure is not typed.\nimport flatMap from 'core-js-pure/full/iterator/flat-map';\n\n/**\n * `.flatMap` takes a mapping function as an argument. It returns an iterator that produces all elements of the iterators produced by applying the mapping function to the elements produced by the underlying iterator.\n *\n * @param mapperFn\n *\n * @return Returns an iterator of flat values.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function iteratorFlatMap<T, U>(iterable: Iterable<T>, mapperFn: (value: T, index: number) => U): Iterator<T> {\n return flatMap(iterable, mapperFn);\n}\n"],"mappings":";AACA,OAAO,aAAa;AAWb,SAAS,gBAAsB,UAAuB,UAAuD;AAClH,SAAO,QAAQ,UAAU,QAAQ;AACnC;","names":[]}
@@ -1,10 +0,0 @@
1
- // src/iteratorDrop.ts
2
- import drop from "core-js-pure/full/iterator/drop";
3
- function iteratorDrop(iterator, limit) {
4
- return drop(iterator, limit);
5
- }
6
-
7
- export {
8
- iteratorDrop
9
- };
10
- //# sourceMappingURL=chunk-R6SXIXMH.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/iteratorDrop.ts"],"sourcesContent":["// @ts-expect-error core-js-pure is not typed.\nimport drop from 'core-js-pure/full/iterator/drop';\n\n/**\n * `drop` takes an integer as an argument. It skips the given number of elements produced by the underlying iterator before itself producing any remaining elements.\n *\n * @param limit\n *\n * @return Returns an iterator of items after the limit.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function iteratorDrop<T>(iterator: Iterator<T>, limit: number): Iterator<T> {\n return drop(iterator, limit);\n}\n"],"mappings":";AACA,OAAO,UAAU;AAWV,SAAS,aAAgB,UAAuB,OAA4B;AACjF,SAAO,KAAK,UAAU,KAAK;AAC7B;","names":[]}
@@ -1,10 +0,0 @@
1
- // src/iteratorFilter.ts
2
- import filter from "core-js-pure/full/iterator/filter";
3
- function iteratorFilter(iterator, predicate) {
4
- return filter(iterator, predicate);
5
- }
6
-
7
- export {
8
- iteratorFilter
9
- };
10
- //# sourceMappingURL=chunk-TDHR35S7.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/iteratorFilter.ts"],"sourcesContent":["// @ts-expect-error core-js-pure is not typed.\nimport filter from 'core-js-pure/full/iterator/filter';\n\n/**\n * Returns the elements of an iterator that meet the condition specified in a callback function.\n *\n * @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the iterator.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function iteratorFilter<T, S extends T>(\n iterator: Iterator<T>,\n predicate: (value: T, index: number) => value is S\n): IterableIterator<S>;\n\n/**\n * Returns the elements of an iterator that meet the condition specified in a callback function.\n *\n * @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the iterator.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function iteratorFilter<T>(\n iterator: Iterator<T>,\n predicate: (value: T, index: number) => unknown\n): IterableIterator<T>;\n\nexport function iteratorFilter<T, S extends T>(\n iterator: Iterator<T>,\n predicate: (value: T, index: number) => unknown\n): IterableIterator<S> {\n return filter(iterator, predicate);\n}\n"],"mappings":";AACA,OAAO,YAAY;AA0BZ,SAAS,eACd,UACA,WACqB;AACrB,SAAO,OAAO,UAAU,SAAS;AACnC;","names":[]}
@@ -1,10 +0,0 @@
1
- // src/iteratorTake.ts
2
- import take from "core-js-pure/full/iterator/take";
3
- function iteratorTake(iterator, limit) {
4
- return take(iterator, limit);
5
- }
6
-
7
- export {
8
- iteratorTake
9
- };
10
- //# sourceMappingURL=chunk-VCKLUCOT.mjs.map
@@ -1 +0,0 @@
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';\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,10 +0,0 @@
1
- // src/iteratorMap.ts
2
- import map from "core-js-pure/full/iterator/map";
3
- function iteratorMap(iterator, callbackfn) {
4
- return map(iterator, callbackfn);
5
- }
6
-
7
- export {
8
- iteratorMap
9
- };
10
- //# sourceMappingURL=chunk-XQDGXAAF.mjs.map
@@ -1 +0,0 @@
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';\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 +0,0 @@
1
- {"version":3,"sources":["../src/readableStreamFrom.ts"],"sourcesContent":["function isIterable(iterable: unknown): iterable is Iterable<unknown> {\n return !!(iterable && typeof iterable === 'object' && Symbol.iterator in iterable);\n}\n\nexport function readableStreamFrom<T>(anyIterable: AsyncIterable<T> | Iterable<T>): ReadableStream<T> {\n const iterator = isIterable(anyIterable) ? anyIterable[Symbol.iterator]() : anyIterable[Symbol.asyncIterator]();\n\n return new ReadableStream({\n async pull(controller) {\n const result = await iterator.next();\n\n if (result.done) {\n controller.close();\n } else {\n controller.enqueue(result.value);\n }\n }\n });\n}\n"],"mappings":";AAAA,SAAS,WAAW,UAAkD;AACpE,SAAO,CAAC,EAAE,YAAY,OAAO,aAAa,YAAY,OAAO,YAAY;AAC3E;AAEO,SAAS,mBAAsB,aAAgE;AACpG,QAAM,WAAW,WAAW,WAAW,IAAI,YAAY,OAAO,QAAQ,EAAE,IAAI,YAAY,OAAO,aAAa,EAAE;AAE9G,SAAO,IAAI,eAAe;AAAA,IACxB,MAAM,KAAK,YAAY;AACrB,YAAM,SAAS,MAAM,SAAS,KAAK;AAEnC,UAAI,OAAO,MAAM;AACf,mBAAW,MAAM;AAAA,MACnB,OAAO;AACL,mBAAW,QAAQ,OAAO,KAAK;AAAA,MACjC;AAAA,IACF;AAAA,EACF,CAAC;AACH;","names":[]}
@@ -1,10 +0,0 @@
1
- // src/iteratorToArray.ts
2
- import toArray from "core-js-pure/full/iterator/to-array";
3
- function iteratorToArray(iteratorLike) {
4
- return toArray(iteratorLike);
5
- }
6
-
7
- export {
8
- iteratorToArray
9
- };
10
- //# sourceMappingURL=chunk-YLERARWI.mjs.map
@@ -1 +0,0 @@
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';\n\ntype IteratorLike<T> = Pick<Iterator<T>, 'next'>;\n\n/**\n * When you have a non-infinite iterator which you wish to transform into an array, you can do so with the builtin toArray method.\n *\n * @param limit\n *\n * @return Returns an Array containing the values from the iterator.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function iteratorToArray<T>(iteratorLike: IteratorLike<T>): T[] {\n return toArray(iteratorLike);\n}\n"],"mappings":";AACA,OAAO,aAAa;AAab,SAAS,gBAAmB,cAAoC;AACrE,SAAO,QAAQ,YAAY;AAC7B;","names":[]}
@@ -1,3 +0,0 @@
1
- declare function asyncIteratorToAsyncIterable<T>(asyncIterator: AsyncIterator<T>): AsyncIterableIterator<T>;
2
-
3
- export { asyncIteratorToAsyncIterable };
@@ -1,3 +0,0 @@
1
- declare function asyncIteratorToAsyncIterable<T>(asyncIterator: AsyncIterator<T>): AsyncIterableIterator<T>;
2
-
3
- export { asyncIteratorToAsyncIterable };
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/asyncIteratorToAsyncIterable.ts"],"sourcesContent":["export function asyncIteratorToAsyncIterable<T>(asyncIterator: AsyncIterator<T>): AsyncIterableIterator<T> {\n const asyncIterableIterator: AsyncIterableIterator<T> = {\n [Symbol.asyncIterator]: () => asyncIterableIterator,\n next: asyncIterator.next.bind(asyncIterator),\n ...(asyncIterator.return ? { return: asyncIterator.return.bind(asyncIterator) } : {}),\n ...(asyncIterator.throw ? { throw: asyncIterator.throw.bind(asyncIterator) } : {})\n };\n\n return asyncIterableIterator;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,SAAS,6BAAgC,eAA2D;AACzG,QAAM,wBAAkD;AAAA,IACtD,CAAC,OAAO,aAAa,GAAG,MAAM;AAAA,IAC9B,MAAM,cAAc,KAAK,KAAK,aAAa;AAAA,IAC3C,GAAI,cAAc,SAAS,EAAE,QAAQ,cAAc,OAAO,KAAK,aAAa,EAAE,IAAI,CAAC;AAAA,IACnF,GAAI,cAAc,QAAQ,EAAE,OAAO,cAAc,MAAM,KAAK,aAAa,EAAE,IAAI,CAAC;AAAA,EAClF;AAEA,SAAO;AACT;","names":[]}
@@ -1,7 +0,0 @@
1
- import {
2
- asyncIteratorToAsyncIterable
3
- } from "./chunk-P4OSZLEH.mjs";
4
- export {
5
- asyncIteratorToAsyncIterable
6
- };
7
- //# sourceMappingURL=iter-fest.asyncIteratorToAsyncIterable.mjs.map
@@ -1,7 +0,0 @@
1
- declare class IterableWritableStream<T> extends WritableStream<T> {
2
- #private;
3
- constructor();
4
- [Symbol.asyncIterator](): AsyncIterator<T>;
5
- }
6
-
7
- export { IterableWritableStream };
@@ -1,7 +0,0 @@
1
- declare class IterableWritableStream<T> extends WritableStream<T> {
2
- #private;
3
- constructor();
4
- [Symbol.asyncIterator](): AsyncIterator<T>;
5
- }
6
-
7
- export { IterableWritableStream };