iter-fest 0.1.1-main.0a3d131 → 0.1.1-main.149c8ad
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +175 -33
- package/dist/chunk-2DE3J4J7.mjs +35 -0
- package/dist/chunk-2DE3J4J7.mjs.map +1 -0
- package/dist/chunk-3S6LCGE6.mjs +10 -0
- package/dist/chunk-3S6LCGE6.mjs.map +1 -0
- package/dist/chunk-ANRVAYLW.mjs +35 -0
- package/dist/chunk-ANRVAYLW.mjs.map +1 -0
- package/dist/chunk-BWMXKULC.mjs +46 -0
- package/dist/chunk-BWMXKULC.mjs.map +1 -0
- package/dist/chunk-EIIP7YWB.mjs +27 -0
- package/dist/chunk-EIIP7YWB.mjs.map +1 -0
- package/dist/chunk-EUVK4YM7.mjs +25 -0
- package/dist/chunk-EUVK4YM7.mjs.map +1 -0
- package/dist/chunk-FBST4AUL.mjs +10 -0
- package/dist/chunk-FBST4AUL.mjs.map +1 -0
- package/dist/chunk-FMIHIL6A.mjs +10 -0
- package/dist/chunk-FMIHIL6A.mjs.map +1 -0
- package/dist/chunk-KYMTQJIJ.mjs +10 -0
- package/dist/chunk-KYMTQJIJ.mjs.map +1 -0
- package/dist/chunk-LIMQXDFK.mjs +10 -0
- package/dist/chunk-LIMQXDFK.mjs.map +1 -0
- package/dist/chunk-OWUGLCQB.mjs +10 -0
- package/dist/chunk-OWUGLCQB.mjs.map +1 -0
- package/dist/chunk-P4OSZLEH.mjs +15 -0
- package/dist/chunk-P4OSZLEH.mjs.map +1 -0
- package/dist/chunk-QX6EMOSQ.mjs +10 -0
- package/dist/chunk-QX6EMOSQ.mjs.map +1 -0
- package/dist/chunk-R6SXIXMH.mjs +10 -0
- package/dist/chunk-R6SXIXMH.mjs.map +1 -0
- package/dist/chunk-TDHR35S7.mjs +10 -0
- package/dist/chunk-TDHR35S7.mjs.map +1 -0
- package/dist/chunk-VCKLUCOT.mjs +10 -0
- package/dist/chunk-VCKLUCOT.mjs.map +1 -0
- package/dist/chunk-XQDGXAAF.mjs +10 -0
- package/dist/chunk-XQDGXAAF.mjs.map +1 -0
- package/dist/chunk-YJSIVBF7.mjs +22 -0
- package/dist/chunk-YJSIVBF7.mjs.map +1 -0
- package/dist/chunk-YLERARWI.mjs +10 -0
- package/dist/chunk-YLERARWI.mjs.map +1 -0
- package/dist/iter-fest.asyncGeneratorWithLastValue.d.mts +6 -0
- package/dist/iter-fest.asyncGeneratorWithLastValue.d.ts +6 -0
- package/dist/iter-fest.asyncGeneratorWithLastValue.js +59 -0
- package/dist/iter-fest.asyncGeneratorWithLastValue.js.map +1 -0
- package/dist/iter-fest.asyncGeneratorWithLastValue.mjs +7 -0
- package/dist/iter-fest.asyncIteratorToAsyncIterable.d.mts +3 -0
- package/dist/iter-fest.asyncIteratorToAsyncIterable.d.ts +3 -0
- package/dist/{iter-fest.iterableForEach.js → iter-fest.asyncIteratorToAsyncIterable.js} +15 -16
- package/dist/iter-fest.asyncIteratorToAsyncIterable.js.map +1 -0
- package/dist/iter-fest.asyncIteratorToAsyncIterable.mjs +7 -0
- package/dist/iter-fest.d.mts +19 -9
- package/dist/iter-fest.d.ts +19 -9
- package/dist/iter-fest.generatorWithLastValue.d.mts +6 -0
- package/dist/iter-fest.generatorWithLastValue.d.ts +6 -0
- package/dist/iter-fest.generatorWithLastValue.js +59 -0
- package/dist/iter-fest.generatorWithLastValue.js.map +1 -0
- package/dist/iter-fest.generatorWithLastValue.mjs +7 -0
- package/dist/iter-fest.iterableWritableStream.d.mts +7 -0
- package/dist/iter-fest.iterableWritableStream.d.ts +7 -0
- package/dist/{iter-fest.pushAsyncIterableIterator.js → iter-fest.iterableWritableStream.js} +39 -30
- package/dist/iter-fest.iterableWritableStream.js.map +1 -0
- package/dist/iter-fest.iterableWritableStream.mjs +7 -0
- package/dist/iter-fest.iteratorDrop.d.mts +12 -0
- package/dist/iter-fest.iteratorDrop.d.ts +12 -0
- package/dist/iter-fest.iteratorDrop.js +44 -0
- package/dist/iter-fest.iteratorDrop.js.map +1 -0
- package/dist/iter-fest.iteratorDrop.mjs +7 -0
- package/dist/iter-fest.iteratorEvery.d.mts +25 -0
- package/dist/iter-fest.iteratorEvery.d.ts +25 -0
- package/dist/iter-fest.iteratorEvery.js +44 -0
- package/dist/iter-fest.iteratorEvery.js.map +1 -0
- package/dist/iter-fest.iteratorEvery.mjs +7 -0
- package/dist/iter-fest.iteratorFilter.d.mts +18 -0
- package/dist/iter-fest.iteratorFilter.d.ts +18 -0
- package/dist/iter-fest.iteratorFilter.js +44 -0
- package/dist/iter-fest.iteratorFilter.js.map +1 -0
- package/dist/iter-fest.iteratorFilter.mjs +7 -0
- package/dist/iter-fest.iteratorFind.d.mts +14 -0
- package/dist/iter-fest.iteratorFind.d.ts +14 -0
- package/dist/iter-fest.iteratorFind.js +44 -0
- package/dist/iter-fest.iteratorFind.js.map +1 -0
- package/dist/iter-fest.iteratorFind.mjs +7 -0
- package/dist/iter-fest.iteratorFlatMap.d.mts +12 -0
- package/dist/iter-fest.iteratorFlatMap.d.ts +12 -0
- package/dist/iter-fest.iteratorFlatMap.js +44 -0
- package/dist/iter-fest.iteratorFlatMap.js.map +1 -0
- package/dist/iter-fest.iteratorFlatMap.mjs +7 -0
- package/dist/iter-fest.iteratorForEach.d.mts +10 -0
- package/dist/iter-fest.iteratorForEach.d.ts +10 -0
- package/dist/iter-fest.iteratorForEach.js +44 -0
- package/dist/iter-fest.iteratorForEach.js.map +1 -0
- package/dist/iter-fest.iteratorForEach.mjs +7 -0
- package/dist/iter-fest.iteratorForEach.mjs.map +1 -0
- package/dist/iter-fest.iteratorFrom.d.mts +12 -0
- package/dist/iter-fest.iteratorFrom.d.ts +12 -0
- package/dist/iter-fest.iteratorFrom.js +44 -0
- package/dist/iter-fest.iteratorFrom.js.map +1 -0
- package/dist/iter-fest.iteratorFrom.mjs +7 -0
- package/dist/iter-fest.iteratorFrom.mjs.map +1 -0
- package/dist/iter-fest.iteratorMap.d.mts +10 -0
- package/dist/iter-fest.iteratorMap.d.ts +10 -0
- package/dist/iter-fest.iteratorMap.js +44 -0
- package/dist/iter-fest.iteratorMap.js.map +1 -0
- package/dist/iter-fest.iteratorMap.mjs +7 -0
- package/dist/iter-fest.iteratorMap.mjs.map +1 -0
- package/dist/{iter-fest.iterableReduce.d.mts → iter-fest.iteratorReduce.d.mts} +13 -9
- package/dist/{iter-fest.iterableReduce.d.ts → iter-fest.iteratorReduce.d.ts} +13 -9
- package/dist/iter-fest.iteratorReduce.js +44 -0
- package/dist/iter-fest.iteratorReduce.js.map +1 -0
- package/dist/iter-fest.iteratorReduce.mjs +7 -0
- package/dist/iter-fest.iteratorReduce.mjs.map +1 -0
- package/dist/iter-fest.iteratorSome.d.mts +10 -0
- package/dist/iter-fest.iteratorSome.d.ts +10 -0
- package/dist/iter-fest.iteratorSome.js +44 -0
- package/dist/iter-fest.iteratorSome.js.map +1 -0
- package/dist/iter-fest.iteratorSome.mjs +7 -0
- package/dist/iter-fest.iteratorSome.mjs.map +1 -0
- package/dist/iter-fest.iteratorTake.d.mts +12 -0
- package/dist/iter-fest.iteratorTake.d.ts +12 -0
- package/dist/iter-fest.iteratorTake.js +44 -0
- package/dist/iter-fest.iteratorTake.js.map +1 -0
- package/dist/iter-fest.iteratorTake.mjs +7 -0
- package/dist/iter-fest.iteratorTake.mjs.map +1 -0
- package/dist/iter-fest.iteratorToArray.d.mts +13 -0
- package/dist/iter-fest.iteratorToArray.d.ts +13 -0
- package/dist/iter-fest.iteratorToArray.js +44 -0
- package/dist/iter-fest.iteratorToArray.js.map +1 -0
- package/dist/iter-fest.iteratorToArray.mjs +7 -0
- package/dist/iter-fest.iteratorToArray.mjs.map +1 -0
- package/dist/iter-fest.js +273 -186
- package/dist/iter-fest.js.map +1 -1
- package/dist/iter-fest.mjs +80 -41
- package/dist/{iter-fest.observableValues.d.mts → iter-fest.observableSubscribeAsReadable.d.mts} +2 -2
- package/dist/{iter-fest.observableValues.d.ts → iter-fest.observableSubscribeAsReadable.d.ts} +2 -2
- package/dist/{iter-fest.iterableFind.js → iter-fest.observableSubscribeAsReadable.js} +26 -18
- package/dist/iter-fest.observableSubscribeAsReadable.js.map +1 -0
- package/dist/iter-fest.observableSubscribeAsReadable.mjs +7 -0
- package/dist/iter-fest.observableSubscribeAsReadable.mjs.map +1 -0
- package/dist/iter-fest.readableStreamFrom.d.mts +3 -0
- package/dist/iter-fest.readableStreamFrom.d.ts +3 -0
- package/dist/{iter-fest.iterableFilter.js → iter-fest.readableStreamFrom.js} +21 -17
- package/dist/iter-fest.readableStreamFrom.js.map +1 -0
- package/dist/iter-fest.readableStreamFrom.mjs +7 -0
- package/dist/iter-fest.readableStreamFrom.mjs.map +1 -0
- package/dist/iter-fest.readerValues.d.mts +3 -0
- package/dist/iter-fest.readerValues.d.ts +3 -0
- package/dist/{iter-fest.iterableSome.js → iter-fest.readerValues.js} +24 -18
- package/dist/iter-fest.readerValues.js.map +1 -0
- package/dist/iter-fest.readerValues.mjs +7 -0
- package/dist/iter-fest.readerValues.mjs.map +1 -0
- package/package.json +182 -82
- package/dist/chunk-4LRYDU2Y.mjs +0 -62
- package/dist/chunk-4LRYDU2Y.mjs.map +0 -1
- package/dist/chunk-5CRMPYKD.mjs +0 -19
- package/dist/chunk-5CRMPYKD.mjs.map +0 -1
- package/dist/chunk-6C3P4TNK.mjs +0 -19
- package/dist/chunk-6C3P4TNK.mjs.map +0 -1
- package/dist/chunk-EZC33HE6.mjs +0 -15
- package/dist/chunk-EZC33HE6.mjs.map +0 -1
- package/dist/chunk-JU353VSE.mjs +0 -16
- package/dist/chunk-JU353VSE.mjs.map +0 -1
- package/dist/chunk-K5XV4W7G.mjs +0 -35
- package/dist/chunk-K5XV4W7G.mjs.map +0 -1
- package/dist/chunk-MNLOWKTC.mjs +0 -19
- package/dist/chunk-MNLOWKTC.mjs.map +0 -1
- package/dist/chunk-U6G4RNZ2.mjs +0 -10
- package/dist/chunk-U6G4RNZ2.mjs.map +0 -1
- package/dist/chunk-XW34KZRY.mjs +0 -17
- package/dist/chunk-XW34KZRY.mjs.map +0 -1
- package/dist/chunk-ZUBHGSCW.mjs +0 -18
- package/dist/chunk-ZUBHGSCW.mjs.map +0 -1
- package/dist/iter-fest.iterableEvery.d.mts +0 -24
- package/dist/iter-fest.iterableEvery.d.ts +0 -24
- package/dist/iter-fest.iterableEvery.js +0 -43
- package/dist/iter-fest.iterableEvery.js.map +0 -1
- package/dist/iter-fest.iterableEvery.mjs +0 -7
- package/dist/iter-fest.iterableFilter.d.mts +0 -16
- package/dist/iter-fest.iterableFilter.d.ts +0 -16
- package/dist/iter-fest.iterableFilter.js.map +0 -1
- package/dist/iter-fest.iterableFilter.mjs +0 -7
- package/dist/iter-fest.iterableFind.d.mts +0 -15
- package/dist/iter-fest.iterableFind.d.ts +0 -15
- package/dist/iter-fest.iterableFind.js.map +0 -1
- package/dist/iter-fest.iterableFind.mjs +0 -7
- package/dist/iter-fest.iterableForEach.d.mts +0 -10
- package/dist/iter-fest.iterableForEach.d.ts +0 -10
- package/dist/iter-fest.iterableForEach.js.map +0 -1
- package/dist/iter-fest.iterableForEach.mjs +0 -7
- package/dist/iter-fest.iterableMap.d.mts +0 -8
- package/dist/iter-fest.iterableMap.d.ts +0 -8
- package/dist/iter-fest.iterableMap.js +0 -39
- package/dist/iter-fest.iterableMap.js.map +0 -1
- package/dist/iter-fest.iterableMap.mjs +0 -7
- package/dist/iter-fest.iterableReduce.js +0 -41
- package/dist/iter-fest.iterableReduce.js.map +0 -1
- package/dist/iter-fest.iterableReduce.mjs +0 -7
- package/dist/iter-fest.iterableSome.d.mts +0 -12
- package/dist/iter-fest.iterableSome.d.ts +0 -12
- package/dist/iter-fest.iterableSome.js.map +0 -1
- package/dist/iter-fest.iterableSome.mjs +0 -7
- package/dist/iter-fest.observableValues.js +0 -100
- package/dist/iter-fest.observableValues.js.map +0 -1
- package/dist/iter-fest.observableValues.mjs +0 -8
- package/dist/iter-fest.pushAsyncIterableIterator.d.mts +0 -9
- package/dist/iter-fest.pushAsyncIterableIterator.d.ts +0 -9
- package/dist/iter-fest.pushAsyncIterableIterator.js.map +0 -1
- package/dist/iter-fest.pushAsyncIterableIterator.mjs +0 -8
- /package/dist/{iter-fest.iterableEvery.mjs.map → iter-fest.asyncGeneratorWithLastValue.mjs.map} +0 -0
- /package/dist/{iter-fest.iterableFilter.mjs.map → iter-fest.asyncIteratorToAsyncIterable.mjs.map} +0 -0
- /package/dist/{iter-fest.iterableFind.mjs.map → iter-fest.generatorWithLastValue.mjs.map} +0 -0
- /package/dist/{iter-fest.iterableForEach.mjs.map → iter-fest.iterableWritableStream.mjs.map} +0 -0
- /package/dist/{iter-fest.iterableMap.mjs.map → iter-fest.iteratorDrop.mjs.map} +0 -0
- /package/dist/{iter-fest.iterableReduce.mjs.map → iter-fest.iteratorEvery.mjs.map} +0 -0
- /package/dist/{iter-fest.iterableSome.mjs.map → iter-fest.iteratorFilter.mjs.map} +0 -0
- /package/dist/{iter-fest.observableValues.mjs.map → iter-fest.iteratorFind.mjs.map} +0 -0
- /package/dist/{iter-fest.pushAsyncIterableIterator.mjs.map → iter-fest.iteratorFlatMap.mjs.map} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/package.json
CHANGED
|
@@ -1,69 +1,69 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "iter-fest",
|
|
3
|
-
"version": "0.1.1-main.
|
|
3
|
+
"version": "0.1.1-main.149c8ad",
|
|
4
4
|
"description": "A collection of utilities for iterations.",
|
|
5
5
|
"files": [
|
|
6
6
|
"./dist/"
|
|
7
7
|
],
|
|
8
8
|
"exports": {
|
|
9
|
-
"./
|
|
9
|
+
"./asyncGeneratorWithLastValue": {
|
|
10
10
|
"import": {
|
|
11
|
-
"types": "./dist/iter-fest.
|
|
12
|
-
"default": "./dist/iter-fest.
|
|
11
|
+
"types": "./dist/iter-fest.asyncGeneratorWithLastValue.d.mts",
|
|
12
|
+
"default": "./dist/iter-fest.asyncGeneratorWithLastValue.mjs"
|
|
13
13
|
},
|
|
14
14
|
"require": {
|
|
15
|
-
"types": "./dist/iter-fest.
|
|
16
|
-
"default": "./dist/iter-fest.
|
|
15
|
+
"types": "./dist/iter-fest.asyncGeneratorWithLastValue.d.ts",
|
|
16
|
+
"default": "./dist/iter-fest.asyncGeneratorWithLastValue.js"
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
|
-
"./
|
|
19
|
+
"./asyncIteratorToAsyncIterable": {
|
|
20
20
|
"import": {
|
|
21
|
-
"types": "./dist/iter-fest.
|
|
22
|
-
"default": "./dist/iter-fest.
|
|
21
|
+
"types": "./dist/iter-fest.asyncIteratorToAsyncIterable.d.mts",
|
|
22
|
+
"default": "./dist/iter-fest.asyncIteratorToAsyncIterable.mjs"
|
|
23
23
|
},
|
|
24
24
|
"require": {
|
|
25
|
-
"types": "./dist/iter-fest.
|
|
26
|
-
"default": "./dist/iter-fest.
|
|
25
|
+
"types": "./dist/iter-fest.asyncIteratorToAsyncIterable.d.ts",
|
|
26
|
+
"default": "./dist/iter-fest.asyncIteratorToAsyncIterable.js"
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
|
-
"./
|
|
29
|
+
"./generatorWithLastValue": {
|
|
30
30
|
"import": {
|
|
31
|
-
"types": "./dist/iter-fest.
|
|
32
|
-
"default": "./dist/iter-fest.
|
|
31
|
+
"types": "./dist/iter-fest.generatorWithLastValue.d.mts",
|
|
32
|
+
"default": "./dist/iter-fest.generatorWithLastValue.mjs"
|
|
33
33
|
},
|
|
34
34
|
"require": {
|
|
35
|
-
"types": "./dist/iter-fest.
|
|
36
|
-
"default": "./dist/iter-fest.
|
|
35
|
+
"types": "./dist/iter-fest.generatorWithLastValue.d.ts",
|
|
36
|
+
"default": "./dist/iter-fest.generatorWithLastValue.js"
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
|
-
"./
|
|
39
|
+
"./iterableAt": {
|
|
40
40
|
"import": {
|
|
41
|
-
"types": "./dist/iter-fest.
|
|
42
|
-
"default": "./dist/iter-fest.
|
|
41
|
+
"types": "./dist/iter-fest.iterableAt.d.mts",
|
|
42
|
+
"default": "./dist/iter-fest.iterableAt.mjs"
|
|
43
43
|
},
|
|
44
44
|
"require": {
|
|
45
|
-
"types": "./dist/iter-fest.
|
|
46
|
-
"default": "./dist/iter-fest.
|
|
45
|
+
"types": "./dist/iter-fest.iterableAt.d.ts",
|
|
46
|
+
"default": "./dist/iter-fest.iterableAt.js"
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
|
-
"./
|
|
49
|
+
"./iterableConcat": {
|
|
50
50
|
"import": {
|
|
51
|
-
"types": "./dist/iter-fest.
|
|
52
|
-
"default": "./dist/iter-fest.
|
|
51
|
+
"types": "./dist/iter-fest.iterableConcat.d.mts",
|
|
52
|
+
"default": "./dist/iter-fest.iterableConcat.mjs"
|
|
53
53
|
},
|
|
54
54
|
"require": {
|
|
55
|
-
"types": "./dist/iter-fest.
|
|
56
|
-
"default": "./dist/iter-fest.
|
|
55
|
+
"types": "./dist/iter-fest.iterableConcat.d.ts",
|
|
56
|
+
"default": "./dist/iter-fest.iterableConcat.js"
|
|
57
57
|
}
|
|
58
58
|
},
|
|
59
|
-
"./
|
|
59
|
+
"./iterableEntries": {
|
|
60
60
|
"import": {
|
|
61
|
-
"types": "./dist/iter-fest.
|
|
62
|
-
"default": "./dist/iter-fest.
|
|
61
|
+
"types": "./dist/iter-fest.iterableEntries.d.mts",
|
|
62
|
+
"default": "./dist/iter-fest.iterableEntries.mjs"
|
|
63
63
|
},
|
|
64
64
|
"require": {
|
|
65
|
-
"types": "./dist/iter-fest.
|
|
66
|
-
"default": "./dist/iter-fest.
|
|
65
|
+
"types": "./dist/iter-fest.iterableEntries.d.ts",
|
|
66
|
+
"default": "./dist/iter-fest.iterableEntries.js"
|
|
67
67
|
}
|
|
68
68
|
},
|
|
69
69
|
"./iterableFindIndex": {
|
|
@@ -96,16 +96,6 @@
|
|
|
96
96
|
"default": "./dist/iter-fest.iterableFindLastIndex.js"
|
|
97
97
|
}
|
|
98
98
|
},
|
|
99
|
-
"./iterableForEach": {
|
|
100
|
-
"import": {
|
|
101
|
-
"types": "./dist/iter-fest.iterableForEach.d.mts",
|
|
102
|
-
"default": "./dist/iter-fest.iterableForEach.mjs"
|
|
103
|
-
},
|
|
104
|
-
"require": {
|
|
105
|
-
"types": "./dist/iter-fest.iterableForEach.d.ts",
|
|
106
|
-
"default": "./dist/iter-fest.iterableForEach.js"
|
|
107
|
-
}
|
|
108
|
-
},
|
|
109
99
|
"./iterableIncludes": {
|
|
110
100
|
"import": {
|
|
111
101
|
"types": "./dist/iter-fest.iterableIncludes.d.mts",
|
|
@@ -146,26 +136,6 @@
|
|
|
146
136
|
"default": "./dist/iter-fest.iterableJoin.js"
|
|
147
137
|
}
|
|
148
138
|
},
|
|
149
|
-
"./iterableMap": {
|
|
150
|
-
"import": {
|
|
151
|
-
"types": "./dist/iter-fest.iterableMap.d.mts",
|
|
152
|
-
"default": "./dist/iter-fest.iterableMap.mjs"
|
|
153
|
-
},
|
|
154
|
-
"require": {
|
|
155
|
-
"types": "./dist/iter-fest.iterableMap.d.ts",
|
|
156
|
-
"default": "./dist/iter-fest.iterableMap.js"
|
|
157
|
-
}
|
|
158
|
-
},
|
|
159
|
-
"./iterableReduce": {
|
|
160
|
-
"import": {
|
|
161
|
-
"types": "./dist/iter-fest.iterableReduce.d.mts",
|
|
162
|
-
"default": "./dist/iter-fest.iterableReduce.mjs"
|
|
163
|
-
},
|
|
164
|
-
"require": {
|
|
165
|
-
"types": "./dist/iter-fest.iterableReduce.d.ts",
|
|
166
|
-
"default": "./dist/iter-fest.iterableReduce.js"
|
|
167
|
-
}
|
|
168
|
-
},
|
|
169
139
|
"./iterableSlice": {
|
|
170
140
|
"import": {
|
|
171
141
|
"types": "./dist/iter-fest.iterableSlice.d.mts",
|
|
@@ -176,16 +146,6 @@
|
|
|
176
146
|
"default": "./dist/iter-fest.iterableSlice.js"
|
|
177
147
|
}
|
|
178
148
|
},
|
|
179
|
-
"./iterableSome": {
|
|
180
|
-
"import": {
|
|
181
|
-
"types": "./dist/iter-fest.iterableSome.d.mts",
|
|
182
|
-
"default": "./dist/iter-fest.iterableSome.mjs"
|
|
183
|
-
},
|
|
184
|
-
"require": {
|
|
185
|
-
"types": "./dist/iter-fest.iterableSome.d.ts",
|
|
186
|
-
"default": "./dist/iter-fest.iterableSome.js"
|
|
187
|
-
}
|
|
188
|
-
},
|
|
189
149
|
"./iterableToSpliced": {
|
|
190
150
|
"import": {
|
|
191
151
|
"types": "./dist/iter-fest.iterableToSpliced.d.mts",
|
|
@@ -206,6 +166,136 @@
|
|
|
206
166
|
"default": "./dist/iter-fest.iterableToString.js"
|
|
207
167
|
}
|
|
208
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": {
|
|
210
|
+
"import": {
|
|
211
|
+
"types": "./dist/iter-fest.iteratorFind.d.mts",
|
|
212
|
+
"default": "./dist/iter-fest.iteratorFind.mjs"
|
|
213
|
+
},
|
|
214
|
+
"require": {
|
|
215
|
+
"types": "./dist/iter-fest.iteratorFind.d.ts",
|
|
216
|
+
"default": "./dist/iter-fest.iteratorFind.js"
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
"./iteratorFlatMap": {
|
|
220
|
+
"import": {
|
|
221
|
+
"types": "./dist/iter-fest.iteratorFlatMap.d.mts",
|
|
222
|
+
"default": "./dist/iter-fest.iteratorFlatMap.mjs"
|
|
223
|
+
},
|
|
224
|
+
"require": {
|
|
225
|
+
"types": "./dist/iter-fest.iteratorFlatMap.d.ts",
|
|
226
|
+
"default": "./dist/iter-fest.iteratorFlatMap.js"
|
|
227
|
+
}
|
|
228
|
+
},
|
|
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": {
|
|
260
|
+
"import": {
|
|
261
|
+
"types": "./dist/iter-fest.iteratorReduce.d.mts",
|
|
262
|
+
"default": "./dist/iter-fest.iteratorReduce.mjs"
|
|
263
|
+
},
|
|
264
|
+
"require": {
|
|
265
|
+
"types": "./dist/iter-fest.iteratorReduce.d.ts",
|
|
266
|
+
"default": "./dist/iter-fest.iteratorReduce.js"
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
"./iteratorSome": {
|
|
270
|
+
"import": {
|
|
271
|
+
"types": "./dist/iter-fest.iteratorSome.d.mts",
|
|
272
|
+
"default": "./dist/iter-fest.iteratorSome.mjs"
|
|
273
|
+
},
|
|
274
|
+
"require": {
|
|
275
|
+
"types": "./dist/iter-fest.iteratorSome.d.ts",
|
|
276
|
+
"default": "./dist/iter-fest.iteratorSome.js"
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
"./iteratorTake": {
|
|
280
|
+
"import": {
|
|
281
|
+
"types": "./dist/iter-fest.iteratorTake.d.mts",
|
|
282
|
+
"default": "./dist/iter-fest.iteratorTake.mjs"
|
|
283
|
+
},
|
|
284
|
+
"require": {
|
|
285
|
+
"types": "./dist/iter-fest.iteratorTake.d.ts",
|
|
286
|
+
"default": "./dist/iter-fest.iteratorTake.js"
|
|
287
|
+
}
|
|
288
|
+
},
|
|
289
|
+
"./iteratorToArray": {
|
|
290
|
+
"import": {
|
|
291
|
+
"types": "./dist/iter-fest.iteratorToArray.d.mts",
|
|
292
|
+
"default": "./dist/iter-fest.iteratorToArray.mjs"
|
|
293
|
+
},
|
|
294
|
+
"require": {
|
|
295
|
+
"types": "./dist/iter-fest.iteratorToArray.d.ts",
|
|
296
|
+
"default": "./dist/iter-fest.iteratorToArray.js"
|
|
297
|
+
}
|
|
298
|
+
},
|
|
209
299
|
"./iteratorToIterable": {
|
|
210
300
|
"import": {
|
|
211
301
|
"types": "./dist/iter-fest.iteratorToIterable.d.mts",
|
|
@@ -236,24 +326,34 @@
|
|
|
236
326
|
"default": "./dist/iter-fest.observableFromAsync.js"
|
|
237
327
|
}
|
|
238
328
|
},
|
|
239
|
-
"./
|
|
329
|
+
"./observableSubscribeAsReadable": {
|
|
330
|
+
"import": {
|
|
331
|
+
"types": "./dist/iter-fest.observableSubscribeAsReadable.d.mts",
|
|
332
|
+
"default": "./dist/iter-fest.observableSubscribeAsReadable.mjs"
|
|
333
|
+
},
|
|
334
|
+
"require": {
|
|
335
|
+
"types": "./dist/iter-fest.observableSubscribeAsReadable.d.ts",
|
|
336
|
+
"default": "./dist/iter-fest.observableSubscribeAsReadable.js"
|
|
337
|
+
}
|
|
338
|
+
},
|
|
339
|
+
"./readableStreamFrom": {
|
|
240
340
|
"import": {
|
|
241
|
-
"types": "./dist/iter-fest.
|
|
242
|
-
"default": "./dist/iter-fest.
|
|
341
|
+
"types": "./dist/iter-fest.readableStreamFrom.d.mts",
|
|
342
|
+
"default": "./dist/iter-fest.readableStreamFrom.mjs"
|
|
243
343
|
},
|
|
244
344
|
"require": {
|
|
245
|
-
"types": "./dist/iter-fest.
|
|
246
|
-
"default": "./dist/iter-fest.
|
|
345
|
+
"types": "./dist/iter-fest.readableStreamFrom.d.ts",
|
|
346
|
+
"default": "./dist/iter-fest.readableStreamFrom.js"
|
|
247
347
|
}
|
|
248
348
|
},
|
|
249
|
-
"./
|
|
349
|
+
"./readerValues": {
|
|
250
350
|
"import": {
|
|
251
|
-
"types": "./dist/iter-fest.
|
|
252
|
-
"default": "./dist/iter-fest.
|
|
351
|
+
"types": "./dist/iter-fest.readerValues.d.mts",
|
|
352
|
+
"default": "./dist/iter-fest.readerValues.mjs"
|
|
253
353
|
},
|
|
254
354
|
"require": {
|
|
255
|
-
"types": "./dist/iter-fest.
|
|
256
|
-
"default": "./dist/iter-fest.
|
|
355
|
+
"types": "./dist/iter-fest.readerValues.d.ts",
|
|
356
|
+
"default": "./dist/iter-fest.readerValues.js"
|
|
257
357
|
}
|
|
258
358
|
},
|
|
259
359
|
"./symbolObservable": {
|
|
@@ -328,6 +428,6 @@
|
|
|
328
428
|
"typescript": "^5.4.5"
|
|
329
429
|
},
|
|
330
430
|
"dependencies": {
|
|
331
|
-
"iter-fest": "^0.1.1-main.
|
|
431
|
+
"iter-fest": "^0.1.1-main.149c8ad"
|
|
332
432
|
}
|
|
333
433
|
}
|
package/dist/chunk-4LRYDU2Y.mjs
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
withResolvers
|
|
3
|
-
} from "./chunk-U6G4RNZ2.mjs";
|
|
4
|
-
|
|
5
|
-
// src/observableValues.ts
|
|
6
|
-
var COMPLETE = Symbol("complete");
|
|
7
|
-
var NEXT = Symbol("next");
|
|
8
|
-
var THROW = Symbol("throw");
|
|
9
|
-
function observableValues(observable) {
|
|
10
|
-
const queue = [];
|
|
11
|
-
let deferred = withResolvers();
|
|
12
|
-
const push = (entry) => {
|
|
13
|
-
queue.push(entry);
|
|
14
|
-
deferred.resolve(entry);
|
|
15
|
-
deferred = withResolvers();
|
|
16
|
-
};
|
|
17
|
-
const subscription = observable.subscribe({
|
|
18
|
-
complete() {
|
|
19
|
-
push([COMPLETE]);
|
|
20
|
-
},
|
|
21
|
-
error(err) {
|
|
22
|
-
push([THROW, err]);
|
|
23
|
-
},
|
|
24
|
-
next(value) {
|
|
25
|
-
push([NEXT, value]);
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
const asyncIterableIterator = {
|
|
29
|
-
[Symbol.asyncIterator]() {
|
|
30
|
-
return this;
|
|
31
|
-
},
|
|
32
|
-
async next() {
|
|
33
|
-
let entry = queue.shift();
|
|
34
|
-
if (!entry) {
|
|
35
|
-
entry = await deferred.promise;
|
|
36
|
-
queue.shift();
|
|
37
|
-
}
|
|
38
|
-
switch (entry[0]) {
|
|
39
|
-
case COMPLETE:
|
|
40
|
-
return { done: true, value: void 0 };
|
|
41
|
-
case THROW:
|
|
42
|
-
throw entry[1];
|
|
43
|
-
case NEXT:
|
|
44
|
-
return { done: false, value: entry[1] };
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
async return() {
|
|
48
|
-
subscription.unsubscribe();
|
|
49
|
-
return { done: true, value: void 0 };
|
|
50
|
-
},
|
|
51
|
-
async throw() {
|
|
52
|
-
subscription.unsubscribe();
|
|
53
|
-
return { done: true, value: void 0 };
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
return asyncIterableIterator;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export {
|
|
60
|
-
observableValues
|
|
61
|
-
};
|
|
62
|
-
//# sourceMappingURL=chunk-4LRYDU2Y.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/observableValues.ts"],"sourcesContent":["import withResolvers from './private/withResolvers';\n\nimport { Observable } from './Observable';\n\nconst COMPLETE = Symbol('complete');\nconst NEXT = Symbol('next');\nconst THROW = Symbol('throw');\n\ntype Entry<T> = [typeof COMPLETE] | [typeof NEXT, T] | [typeof THROW, unknown];\n\nexport function observableValues<T>(observable: Observable<T>): AsyncIterableIterator<T> {\n const queue: Entry<T>[] = [];\n let deferred = withResolvers<Entry<T>>();\n\n const push = (entry: Entry<T>) => {\n queue.push(entry);\n deferred.resolve(entry);\n deferred = withResolvers();\n };\n\n const subscription = observable.subscribe({\n complete() {\n push([COMPLETE]);\n },\n error(err: unknown) {\n push([THROW, err]);\n },\n next(value: T) {\n push([NEXT, value]);\n }\n });\n\n const asyncIterableIterator: AsyncIterableIterator<T> = {\n [Symbol.asyncIterator]() {\n return this;\n },\n async next(): Promise<IteratorResult<T>> {\n let entry = queue.shift();\n\n if (!entry) {\n entry = await deferred.promise;\n queue.shift();\n }\n\n switch (entry[0]) {\n case COMPLETE:\n return { done: true, value: undefined };\n\n case THROW:\n throw entry[1];\n\n case NEXT:\n return { done: false, value: entry[1] };\n }\n },\n async return() {\n subscription.unsubscribe();\n\n return { done: true, value: undefined };\n },\n async throw() {\n subscription.unsubscribe();\n\n return { done: true, value: undefined };\n }\n };\n\n return asyncIterableIterator;\n}\n"],"mappings":";;;;;AAIA,IAAM,WAAW,OAAO,UAAU;AAClC,IAAM,OAAO,OAAO,MAAM;AAC1B,IAAM,QAAQ,OAAO,OAAO;AAIrB,SAAS,iBAAoB,YAAqD;AACvF,QAAM,QAAoB,CAAC;AAC3B,MAAI,WAAW,cAAwB;AAEvC,QAAM,OAAO,CAAC,UAAoB;AAChC,UAAM,KAAK,KAAK;AAChB,aAAS,QAAQ,KAAK;AACtB,eAAW,cAAc;AAAA,EAC3B;AAEA,QAAM,eAAe,WAAW,UAAU;AAAA,IACxC,WAAW;AACT,WAAK,CAAC,QAAQ,CAAC;AAAA,IACjB;AAAA,IACA,MAAM,KAAc;AAClB,WAAK,CAAC,OAAO,GAAG,CAAC;AAAA,IACnB;AAAA,IACA,KAAK,OAAU;AACb,WAAK,CAAC,MAAM,KAAK,CAAC;AAAA,IACpB;AAAA,EACF,CAAC;AAED,QAAM,wBAAkD;AAAA,IACtD,CAAC,OAAO,aAAa,IAAI;AACvB,aAAO;AAAA,IACT;AAAA,IACA,MAAM,OAAmC;AACvC,UAAI,QAAQ,MAAM,MAAM;AAExB,UAAI,CAAC,OAAO;AACV,gBAAQ,MAAM,SAAS;AACvB,cAAM,MAAM;AAAA,MACd;AAEA,cAAQ,MAAM,CAAC,GAAG;AAAA,QAChB,KAAK;AACH,iBAAO,EAAE,MAAM,MAAM,OAAO,OAAU;AAAA,QAExC,KAAK;AACH,gBAAM,MAAM,CAAC;AAAA,QAEf,KAAK;AACH,iBAAO,EAAE,MAAM,OAAO,OAAO,MAAM,CAAC,EAAE;AAAA,MAC1C;AAAA,IACF;AAAA,IACA,MAAM,SAAS;AACb,mBAAa,YAAY;AAEzB,aAAO,EAAE,MAAM,MAAM,OAAO,OAAU;AAAA,IACxC;AAAA,IACA,MAAM,QAAQ;AACZ,mBAAa,YAAY;AAEzB,aAAO,EAAE,MAAM,MAAM,OAAO,OAAU;AAAA,IACxC;AAAA,EACF;AAEA,SAAO;AACT;","names":[]}
|
package/dist/chunk-5CRMPYKD.mjs
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
// src/iterableEvery.ts
|
|
2
|
-
function iterableEvery(iterable, predicate, thisArg = void 0) {
|
|
3
|
-
let index = 0;
|
|
4
|
-
if (typeof predicate !== "function") {
|
|
5
|
-
throw new TypeError(`${predicate} is not a function`);
|
|
6
|
-
}
|
|
7
|
-
const boundPredicate = predicate.bind(thisArg);
|
|
8
|
-
for (const value of iterable) {
|
|
9
|
-
if (!boundPredicate(value, index++, iterable)) {
|
|
10
|
-
return false;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
return true;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export {
|
|
17
|
-
iterableEvery
|
|
18
|
-
};
|
|
19
|
-
//# sourceMappingURL=chunk-5CRMPYKD.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/iterableEvery.ts"],"sourcesContent":["/**\n * Determines whether all the members of an iterable 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 iterable until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the iterable.\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 */\nexport function iterableEvery<T, S extends T>(\n iterable: Iterable<T>,\n predicate: (value: T, index: number, iterable: Iterable<T>) => value is S,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n thisArg?: any\n): iterable is S[];\n\n/**\n * Determines whether all the members of an iterable 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 iterable until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the iterable.\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 */\nexport function iterableEvery<T>(\n iterable: Iterable<T>,\n predicate: (value: T, index: number, iterable: Iterable<T>) => unknown,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n thisArg?: any\n): boolean;\n\nexport function iterableEvery<T>(\n iterable: Iterable<T>,\n predicate: (value: T, index: number, iterable: Iterable<T>) => unknown,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n thisArg: any = undefined\n): boolean {\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 iterable) {\n if (!boundPredicate(value, index++, iterable)) {\n return false;\n }\n }\n\n return true;\n}\n"],"mappings":";AAkCO,SAAS,cACd,UACA,WAEA,UAAe,QACN;AACT,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,UAAU;AAC5B,QAAI,CAAC,eAAe,OAAO,SAAS,QAAQ,GAAG;AAC7C,aAAO;AAAA,IACT;AAAA,EACF;AAEA,SAAO;AACT;","names":[]}
|
package/dist/chunk-6C3P4TNK.mjs
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
// src/iterableSome.ts
|
|
2
|
-
function iterableSome(iterable, predicate, thisArg = void 0) {
|
|
3
|
-
let index = 0;
|
|
4
|
-
if (typeof predicate !== "function") {
|
|
5
|
-
throw new TypeError(`${predicate} is not a function`);
|
|
6
|
-
}
|
|
7
|
-
const boundPredicate = predicate.bind(thisArg);
|
|
8
|
-
for (const value of iterable) {
|
|
9
|
-
if (boundPredicate(value, index++, iterable)) {
|
|
10
|
-
return true;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
return false;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export {
|
|
17
|
-
iterableSome
|
|
18
|
-
};
|
|
19
|
-
//# sourceMappingURL=chunk-6C3P4TNK.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/iterableSome.ts"],"sourcesContent":["/**\n * Determines whether the specified callback function returns true for any element of an iterable.\n *\n * @param predicate\n * 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 * @param thisArg\n * An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.\n */\nexport function iterableSome<T>(\n iterable: Iterable<T>,\n predicate: (value: T, index: number, iterable: Iterable<T>) => unknown,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n thisArg: any = undefined\n): boolean {\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 iterable) {\n if (boundPredicate(value, index++, iterable)) {\n return true;\n }\n }\n\n return false;\n}\n"],"mappings":";AASO,SAAS,aACd,UACA,WAEA,UAAe,QACN;AACT,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,UAAU;AAC5B,QAAI,eAAe,OAAO,SAAS,QAAQ,GAAG;AAC5C,aAAO;AAAA,IACT;AAAA,EACF;AAEA,SAAO;AACT;","names":[]}
|
package/dist/chunk-EZC33HE6.mjs
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
// src/iterableMap.ts
|
|
2
|
-
function* iterableMap(iterable, callbackfn, thisArg) {
|
|
3
|
-
let index = 0;
|
|
4
|
-
if (typeof callbackfn !== "function") {
|
|
5
|
-
throw new TypeError(`${callbackfn} is not a function`);
|
|
6
|
-
}
|
|
7
|
-
for (const value of iterable) {
|
|
8
|
-
yield callbackfn.call(thisArg, value, index++, iterable);
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export {
|
|
13
|
-
iterableMap
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=chunk-EZC33HE6.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/iterableMap.ts"],"sourcesContent":["/**\n * Calls a defined callback function on each element of an array, and returns an array that contains the results.\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 * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.\n */\nexport function* iterableMap<T, U>(\n iterable: Iterable<T>,\n callbackfn: (value: T, index: number, array: Iterable<T>) => U,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n thisArg?: any\n): IterableIterator<U> {\n let index = 0;\n\n if (typeof callbackfn !== 'function') {\n throw new TypeError(`${callbackfn} is not a function`);\n }\n\n for (const value of iterable) {\n yield callbackfn.call(thisArg, value, index++, iterable);\n }\n}\n"],"mappings":";AAKO,UAAU,YACf,UACA,YAEA,SACqB;AACrB,MAAI,QAAQ;AAEZ,MAAI,OAAO,eAAe,YAAY;AACpC,UAAM,IAAI,UAAU,GAAG,UAAU,oBAAoB;AAAA,EACvD;AAEA,aAAW,SAAS,UAAU;AAC5B,UAAM,WAAW,KAAK,SAAS,OAAO,SAAS,QAAQ;AAAA,EACzD;AACF;","names":[]}
|
package/dist/chunk-JU353VSE.mjs
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
// src/iterableForEach.ts
|
|
2
|
-
function iterableForEach(iterable, callbackfn, thisArg) {
|
|
3
|
-
let index = 0;
|
|
4
|
-
if (typeof callbackfn !== "function") {
|
|
5
|
-
throw new TypeError(`${callbackfn} is not a function`);
|
|
6
|
-
}
|
|
7
|
-
const boundCallbackfn = callbackfn.bind(thisArg);
|
|
8
|
-
for (const value of iterable) {
|
|
9
|
-
boundCallbackfn(value, index++, iterable);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export {
|
|
14
|
-
iterableForEach
|
|
15
|
-
};
|
|
16
|
-
//# sourceMappingURL=chunk-JU353VSE.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/iterableForEach.ts"],"sourcesContent":["/**\n * Performs the specified action for each element in an iterable.\n *\n * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the iterable.\n *\n * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.\n */\nexport function iterableForEach<T>(\n iterable: Iterable<T>,\n callbackfn: (value: T, index: number, iterable: Iterable<T>) => void,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n thisArg?: any\n): void {\n let index = 0;\n\n if (typeof callbackfn !== 'function') {\n throw new TypeError(`${callbackfn} is not a function`);\n }\n\n const boundCallbackfn = callbackfn.bind(thisArg);\n\n for (const value of iterable) {\n boundCallbackfn(value, index++, iterable);\n }\n}\n"],"mappings":";AAOO,SAAS,gBACd,UACA,YAEA,SACM;AACN,MAAI,QAAQ;AAEZ,MAAI,OAAO,eAAe,YAAY;AACpC,UAAM,IAAI,UAAU,GAAG,UAAU,oBAAoB;AAAA,EACvD;AAEA,QAAM,kBAAkB,WAAW,KAAK,OAAO;AAE/C,aAAW,SAAS,UAAU;AAC5B,oBAAgB,OAAO,SAAS,QAAQ;AAAA,EAC1C;AACF;","names":[]}
|
package/dist/chunk-K5XV4W7G.mjs
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
withResolvers
|
|
3
|
-
} from "./chunk-U6G4RNZ2.mjs";
|
|
4
|
-
|
|
5
|
-
// src/PushAsyncIterableIterator.ts
|
|
6
|
-
var CLOSE = Symbol("close");
|
|
7
|
-
var PushAsyncIterableIterator = class {
|
|
8
|
-
#closed = false;
|
|
9
|
-
#pushResolvers = withResolvers();
|
|
10
|
-
[Symbol.asyncIterator]() {
|
|
11
|
-
return this;
|
|
12
|
-
}
|
|
13
|
-
close() {
|
|
14
|
-
this.#closed = true;
|
|
15
|
-
this.#pushResolvers.resolve(CLOSE);
|
|
16
|
-
}
|
|
17
|
-
async next() {
|
|
18
|
-
const value = await this.#pushResolvers.promise;
|
|
19
|
-
if (value === CLOSE) {
|
|
20
|
-
return { done: true, value: void 0 };
|
|
21
|
-
}
|
|
22
|
-
return { done: false, value };
|
|
23
|
-
}
|
|
24
|
-
push(value) {
|
|
25
|
-
if (!this.#closed) {
|
|
26
|
-
this.#pushResolvers.resolve(value);
|
|
27
|
-
this.#pushResolvers = withResolvers();
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
export {
|
|
33
|
-
PushAsyncIterableIterator
|
|
34
|
-
};
|
|
35
|
-
//# sourceMappingURL=chunk-K5XV4W7G.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/PushAsyncIterableIterator.ts"],"sourcesContent":["import withResolvers from './private/withResolvers';\n\nconst CLOSE = Symbol('close');\n\nexport class PushAsyncIterableIterator<T> implements AsyncIterableIterator<T> {\n #closed: boolean = false;\n #pushResolvers: PromiseWithResolvers<T | typeof CLOSE> = withResolvers();\n\n [Symbol.asyncIterator]() {\n return this;\n }\n\n close() {\n this.#closed = true;\n this.#pushResolvers.resolve(CLOSE);\n }\n\n async next(): Promise<IteratorResult<T>> {\n const value = await this.#pushResolvers.promise;\n\n if (value === CLOSE) {\n return { done: true, value: undefined };\n }\n\n return { done: false, value };\n }\n\n push(value: T) {\n if (!this.#closed) {\n this.#pushResolvers.resolve(value);\n this.#pushResolvers = withResolvers();\n }\n }\n}\n"],"mappings":";;;;;AAEA,IAAM,QAAQ,OAAO,OAAO;AAErB,IAAM,4BAAN,MAAuE;AAAA,EAC5E,UAAmB;AAAA,EACnB,iBAAyD,cAAc;AAAA,EAEvE,CAAC,OAAO,aAAa,IAAI;AACvB,WAAO;AAAA,EACT;AAAA,EAEA,QAAQ;AACN,SAAK,UAAU;AACf,SAAK,eAAe,QAAQ,KAAK;AAAA,EACnC;AAAA,EAEA,MAAM,OAAmC;AACvC,UAAM,QAAQ,MAAM,KAAK,eAAe;AAExC,QAAI,UAAU,OAAO;AACnB,aAAO,EAAE,MAAM,MAAM,OAAO,OAAU;AAAA,IACxC;AAEA,WAAO,EAAE,MAAM,OAAO,MAAM;AAAA,EAC9B;AAAA,EAEA,KAAK,OAAU;AACb,QAAI,CAAC,KAAK,SAAS;AACjB,WAAK,eAAe,QAAQ,KAAK;AACjC,WAAK,iBAAiB,cAAc;AAAA,IACtC;AAAA,EACF;AACF;","names":[]}
|
package/dist/chunk-MNLOWKTC.mjs
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
// src/iterableFind.ts
|
|
2
|
-
function iterableFind(iterable, predicate, thisArg) {
|
|
3
|
-
let index = 0;
|
|
4
|
-
if (typeof predicate !== "function") {
|
|
5
|
-
throw new TypeError(`${predicate} is not a function`);
|
|
6
|
-
}
|
|
7
|
-
const boundPredicate = predicate.bind(thisArg);
|
|
8
|
-
for (const value of iterable) {
|
|
9
|
-
if (boundPredicate(value, index++, iterable)) {
|
|
10
|
-
return value;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
return void 0;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export {
|
|
17
|
-
iterableFind
|
|
18
|
-
};
|
|
19
|
-
//# sourceMappingURL=chunk-MNLOWKTC.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/iterableFind.ts"],"sourcesContent":["/**\n * Returns the value of the first element in the iterable where predicate is true, and undefined\n * otherwise.\n *\n * @param predicate find calls predicate once for each element of the iterable, 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 * @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 iterableFind<T, S extends T>(\n iterable: Iterable<T>,\n predicate: (value: T, index: number, obj: Iterable<T>) => value is S,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n thisArg?: any\n): S | undefined;\n\nexport function iterableFind<T>(\n iterable: Iterable<T>,\n predicate: (value: T, index: number, obj: Iterable<T>) => unknown,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n thisArg?: any\n): T | undefined;\n\nexport function iterableFind<T, S extends T>(\n iterable: Iterable<T>,\n predicate: (value: T, index: number, obj: Iterable<T>) => unknown,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n thisArg?: any\n): S | undefined {\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 iterable) {\n if (boundPredicate(value, index++, iterable)) {\n return value as S;\n }\n }\n\n return undefined;\n}\n"],"mappings":";AAyBO,SAAS,aACd,UACA,WAEA,SACe;AACf,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,UAAU;AAC5B,QAAI,eAAe,OAAO,SAAS,QAAQ,GAAG;AAC5C,aAAO;AAAA,IACT;AAAA,EACF;AAEA,SAAO;AACT;","names":[]}
|
package/dist/chunk-U6G4RNZ2.mjs
DELETED
|
@@ -1,10 +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
|
-
export {
|
|
8
|
-
withResolvers
|
|
9
|
-
};
|
|
10
|
-
//# sourceMappingURL=chunk-U6G4RNZ2.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/private/withResolvers.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"],"mappings":";AACA,OAAO,gCAAgC;AAExB,SAAR,gBAA6D;AAClE,SAAO,2BAA2B;AACpC;","names":[]}
|
package/dist/chunk-XW34KZRY.mjs
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
// src/iterableReduce.ts
|
|
2
|
-
function iterableReduce(iterable, callbackfn, initialValue) {
|
|
3
|
-
let index = 0;
|
|
4
|
-
let previousValue = initialValue;
|
|
5
|
-
if (typeof callbackfn !== "function") {
|
|
6
|
-
throw new TypeError(`${callbackfn} is not a function`);
|
|
7
|
-
}
|
|
8
|
-
for (const currentValue of iterable) {
|
|
9
|
-
previousValue = callbackfn(previousValue, currentValue, index++, iterable);
|
|
10
|
-
}
|
|
11
|
-
return previousValue;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export {
|
|
15
|
-
iterableReduce
|
|
16
|
-
};
|
|
17
|
-
//# sourceMappingURL=chunk-XW34KZRY.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/iterableReduce.ts"],"sourcesContent":["/**\n * Calls the specified callback function for all the elements in an iterable. 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 iterable.\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 iterable value.\n */\nexport function iterableReduce<T>(\n iterable: Iterable<T>,\n callbackfn: (previousValue: T, currentValue: T, currentIndex: number, iterable: Iterable<T>) => T\n): T;\n\nexport function iterableReduce<T>(\n iterable: Iterable<T>,\n callbackfn: (previousValue: T, currentValue: T, currentIndex: number, iterable: Iterable<T>) => T,\n initialValue: T\n): T;\n\n/**\n * Calls the specified callback function for all the elements in an iterable. 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 iterable.\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\nexport function iterableReduce<T, U>(\n iterable: Iterable<T>,\n callbackfn: (previousValue: U, currentValue: T, currentIndex: number, iterable: Iterable<T>) => U,\n initialValue: U\n): U;\n\nexport function iterableReduce<T, U = undefined>(\n iterable: Iterable<T>,\n callbackfn: (previousValue: U | undefined, currentValue: T, currentIndex: number, iterable: Iterable<T>) => U,\n initialValue?: U\n): U | undefined {\n let index = 0;\n let previousValue: U | undefined = initialValue;\n\n if (typeof callbackfn !== 'function') {\n throw new TypeError(`${callbackfn} is not a function`);\n }\n\n for (const currentValue of iterable) {\n previousValue = callbackfn(previousValue, currentValue, index++, iterable);\n }\n\n return previousValue;\n}\n"],"mappings":";AAgCO,SAAS,eACd,UACA,YACA,cACe;AACf,MAAI,QAAQ;AACZ,MAAI,gBAA+B;AAEnC,MAAI,OAAO,eAAe,YAAY;AACpC,UAAM,IAAI,UAAU,GAAG,UAAU,oBAAoB;AAAA,EACvD;AAEA,aAAW,gBAAgB,UAAU;AACnC,oBAAgB,WAAW,eAAe,cAAc,SAAS,QAAQ;AAAA,EAC3E;AAEA,SAAO;AACT;","names":[]}
|