@cspell/cspell-pipe 6.26.3 → 6.27.0
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/dist/cjs/helpers/distribute.js +37 -0
- package/dist/cjs/helpers/index.js +17 -0
- package/dist/cjs/helpers/interleave.js +22 -0
- package/dist/cjs/helpers/iteratorToIterable.js +18 -0
- package/dist/cjs/helpers/toArray.js +21 -0
- package/dist/cjs/helpers/toAsyncIterable.js +19 -0
- package/dist/cjs/helpers/util.js +15 -0
- package/dist/cjs/index.js +60 -0
- package/dist/cjs/internalTypes.js +3 -0
- package/dist/cjs/operators/{append.cjs → append.js} +8 -10
- package/dist/cjs/operators/await.js +13 -0
- package/dist/cjs/operators/{combine.cjs → combine.js} +5 -4
- package/dist/cjs/operators/{concatMap.cjs → concatMap.js} +8 -16
- package/dist/cjs/operators/{filter.cjs → filter.js} +8 -10
- package/dist/cjs/operators/{first.cjs → first.js} +8 -10
- package/dist/cjs/operators/{flatten.cjs → flatten.js} +8 -16
- package/dist/cjs/operators/index.js +60 -0
- package/dist/cjs/operators/joinStrings.js +28 -0
- package/dist/cjs/operators/{last.cjs → last.js} +8 -10
- package/dist/cjs/operators/{map.cjs → map.js} +8 -16
- package/dist/cjs/operators/{reduce.cjs → reduce.js} +9 -20
- package/dist/cjs/operators/{skip.cjs → skip.js} +8 -16
- package/dist/cjs/operators/{take.cjs → take.js} +8 -16
- package/dist/cjs/operators/{tap.cjs → tap.js} +8 -16
- package/dist/cjs/operators/types.js +3 -0
- package/dist/cjs/operators/{unique.cjs → unique.js} +8 -16
- package/dist/cjs/pipe.js +15 -0
- package/dist/cjs/reduce.js +27 -0
- package/dist/cjs/sync/index.js +26 -0
- package/dist/{cjs/operators/helpers/distribute.d.ts → esm/helpers/distribute.d.mts} +1 -1
- package/dist/esm/helpers/distribute.mjs +33 -0
- package/dist/esm/helpers/index.d.mts +7 -0
- package/dist/esm/helpers/index.mjs +7 -0
- package/dist/{cjs/operators/helpers/interleave.d.ts → esm/helpers/interleave.d.mts} +1 -1
- package/dist/esm/helpers/interleave.mjs +18 -0
- package/dist/{cjs/operators/helpers/iteratorToIterable.d.ts → esm/helpers/iteratorToIterable.d.mts} +1 -1
- package/dist/esm/helpers/iteratorToIterable.mjs +13 -0
- package/dist/{cjs/operators/helpers/toArray.d.ts → esm/helpers/toArray.d.mts} +1 -1
- package/dist/esm/helpers/toArray.mjs +15 -0
- package/dist/{cjs/sync/helpers/toAsyncIterable.d.ts → esm/helpers/toAsyncIterable.d.mts} +2 -2
- package/dist/esm/helpers/toAsyncIterable.mjs +15 -0
- package/dist/{cjs/operators/helpers/util.d.ts → esm/helpers/util.d.mts} +2 -2
- package/dist/esm/helpers/util.mjs +10 -0
- package/dist/esm/index.d.mts +9 -0
- package/dist/esm/index.mjs +11 -0
- package/dist/{cjs/operators/internalTypes.d.ts → esm/internalTypes.d.mts} +1 -1
- package/dist/esm/internalTypes.mjs +2 -0
- package/dist/{cjs/sync/operators/append.d.ts → esm/operators/append.d.mts} +2 -2
- package/dist/esm/operators/append.mjs +36 -0
- package/dist/{cjs/operators/operators/await.d.ts → esm/operators/await.d.mts} +1 -1
- package/dist/{cjs/operators/await.cjs → esm/operators/await.mjs} +2 -5
- package/dist/{cjs/operators/operators/combine.d.ts → esm/operators/combine.d.mts} +3 -3
- package/dist/esm/operators/combine.mjs +19 -0
- package/dist/{cjs/operators/operators/concatMap.d.ts → esm/operators/concatMap.d.mts} +1 -1
- package/dist/esm/operators/concatMap.mjs +19 -0
- package/dist/{cjs/operators/operators/filter.d.ts → esm/operators/filter.d.mts} +2 -2
- package/dist/esm/operators/filter.mjs +30 -0
- package/dist/{cjs/operators/operators/first.d.ts → esm/operators/first.d.mts} +2 -2
- package/dist/esm/operators/first.mjs +34 -0
- package/dist/{cjs/operators/operators/flatten.d.ts → esm/operators/flatten.d.mts} +1 -1
- package/dist/esm/operators/flatten.mjs +19 -0
- package/dist/esm/operators/index.d.mts +17 -0
- package/dist/esm/operators/index.mjs +16 -0
- package/dist/{cjs/operators/operators/joinStrings.d.ts → esm/operators/joinStrings.d.mts} +1 -1
- package/dist/esm/operators/joinStrings.mjs +22 -0
- package/dist/{cjs/operators/operators/last.d.ts → esm/operators/last.d.mts} +2 -2
- package/dist/esm/operators/last.mjs +39 -0
- package/dist/{cjs/operators/operators/map.d.ts → esm/operators/map.d.mts} +1 -1
- package/dist/esm/operators/map.mjs +19 -0
- package/dist/{cjs/operators/operators/reduce.d.ts → esm/operators/reduce.d.mts} +1 -1
- package/dist/esm/operators/reduce.mjs +49 -0
- package/dist/{cjs/operators/operators/skip.d.ts → esm/operators/skip.d.mts} +1 -1
- package/dist/esm/operators/skip.mjs +27 -0
- package/dist/{operators/take.d.ts → esm/operators/take.d.mts} +1 -1
- package/dist/esm/operators/take.mjs +31 -0
- package/dist/{cjs/sync/operators/tap.d.ts → esm/operators/tap.d.mts} +1 -1
- package/dist/esm/operators/tap.mjs +36 -0
- package/dist/{cjs/operators/operators/types.d.ts → esm/operators/types.d.mts} +1 -1
- package/dist/esm/operators/types.mjs +2 -0
- package/dist/{operators/unique.d.ts → esm/operators/unique.d.mts} +1 -1
- package/dist/esm/operators/unique.mjs +53 -0
- package/dist/{cjs/operators/pipe.d.ts → esm/pipe.d.mts} +2 -2
- package/dist/esm/pipe.mjs +10 -0
- package/dist/{cjs/sync/reduce.d.ts → esm/reduce.d.mts} +2 -2
- package/dist/esm/reduce.mjs +21 -0
- package/dist/{cjs/operators/sync/index.d.ts → esm/sync/index.d.mts} +6 -6
- package/dist/{cjs/sync/sync/index.d.ts → esm/sync/index.mjs} +5 -6
- package/package.json +41 -57
- package/dist/cjs/index.cjs +0 -644
- package/dist/cjs/operators/helpers/index.d.ts +0 -7
- package/dist/cjs/operators/helpers/toAsyncIterable.d.ts +0 -11
- package/dist/cjs/operators/index.cjs +0 -508
- package/dist/cjs/operators/joinStrings.cjs +0 -49
- package/dist/cjs/operators/operators/append.d.ts +0 -15
- package/dist/cjs/operators/operators/index.d.ts +0 -17
- package/dist/cjs/operators/operators/take.d.ts +0 -8
- package/dist/cjs/operators/operators/tap.d.ts +0 -19
- package/dist/cjs/operators/operators/unique.d.ts +0 -4
- package/dist/cjs/operators/types.cjs +0 -2
- package/dist/cjs/sync/helpers/distribute.d.ts +0 -13
- package/dist/cjs/sync/helpers/index.d.ts +0 -7
- package/dist/cjs/sync/helpers/interleave.d.ts +0 -2
- package/dist/cjs/sync/helpers/iteratorToIterable.d.ts +0 -3
- package/dist/cjs/sync/helpers/toArray.d.ts +0 -6
- package/dist/cjs/sync/helpers/util.d.ts +0 -4
- package/dist/cjs/sync/index.cjs +0 -245
- package/dist/cjs/sync/internalTypes.d.ts +0 -17
- package/dist/cjs/sync/operators/await.d.ts +0 -2
- package/dist/cjs/sync/operators/combine.d.ts +0 -23
- package/dist/cjs/sync/operators/concatMap.d.ts +0 -4
- package/dist/cjs/sync/operators/filter.d.ts +0 -10
- package/dist/cjs/sync/operators/first.d.ts +0 -10
- package/dist/cjs/sync/operators/flatten.d.ts +0 -4
- package/dist/cjs/sync/operators/index.d.ts +0 -17
- package/dist/cjs/sync/operators/joinStrings.d.ts +0 -4
- package/dist/cjs/sync/operators/last.d.ts +0 -10
- package/dist/cjs/sync/operators/map.d.ts +0 -4
- package/dist/cjs/sync/operators/reduce.d.ts +0 -7
- package/dist/cjs/sync/operators/skip.d.ts +0 -4
- package/dist/cjs/sync/operators/take.d.ts +0 -8
- package/dist/cjs/sync/operators/types.d.ts +0 -4
- package/dist/cjs/sync/operators/unique.d.ts +0 -4
- package/dist/cjs/sync/pipe.d.ts +0 -20
- package/dist/helpers/distribute.d.ts +0 -13
- package/dist/helpers/index.d.ts +0 -7
- package/dist/helpers/interleave.d.ts +0 -2
- package/dist/helpers/iteratorToIterable.d.ts +0 -3
- package/dist/helpers/toArray.d.ts +0 -6
- package/dist/helpers/toAsyncIterable.d.ts +0 -11
- package/dist/helpers/util.d.ts +0 -4
- package/dist/index.d.ts +0 -9
- package/dist/internalTypes.d.ts +0 -17
- package/dist/operators/append.d.ts +0 -15
- package/dist/operators/await.d.ts +0 -2
- package/dist/operators/combine.d.ts +0 -23
- package/dist/operators/concatMap.d.ts +0 -4
- package/dist/operators/filter.d.ts +0 -10
- package/dist/operators/first.d.ts +0 -10
- package/dist/operators/flatten.d.ts +0 -4
- package/dist/operators/index.d.ts +0 -17
- package/dist/operators/joinStrings.d.ts +0 -4
- package/dist/operators/last.d.ts +0 -10
- package/dist/operators/map.d.ts +0 -4
- package/dist/operators/reduce.d.ts +0 -7
- package/dist/operators/skip.d.ts +0 -4
- package/dist/operators/tap.d.ts +0 -19
- package/dist/operators/types.d.ts +0 -4
- package/dist/pipe.d.ts +0 -20
- package/dist/reduce.d.ts +0 -16
- package/dist/sync/index.d.ts +0 -6
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "6.
|
|
6
|
+
"version": "6.27.0",
|
|
7
7
|
"description": "Library to make working with Iterators/AsyncIterators easier.",
|
|
8
8
|
"keywords": [
|
|
9
9
|
"cspell",
|
|
@@ -16,88 +16,79 @@
|
|
|
16
16
|
"author": "Jason Dent <jason@streetsidesoftware.nl>",
|
|
17
17
|
"homepage": "https://github.com/streetsidesoftware/cspell/tree/main/packages/cspell-pipe#readme",
|
|
18
18
|
"license": "MIT",
|
|
19
|
-
"type": "
|
|
20
|
-
"main": "dist/cjs/index.
|
|
21
|
-
"module": "dist/esm/index.
|
|
19
|
+
"type": "commonjs",
|
|
20
|
+
"main": "dist/cjs/index.js",
|
|
21
|
+
"module": "dist/esm/index.mjs",
|
|
22
22
|
"directories": {
|
|
23
23
|
"dist": "dist"
|
|
24
24
|
},
|
|
25
25
|
"exports": {
|
|
26
26
|
".": {
|
|
27
|
-
"import": "./dist/esm/index.
|
|
28
|
-
"require": "./dist/cjs/index.
|
|
27
|
+
"import": "./dist/esm/index.mjs",
|
|
28
|
+
"require": "./dist/cjs/index.js"
|
|
29
29
|
},
|
|
30
30
|
"./index": {
|
|
31
|
-
"import": "./dist/esm/index.
|
|
32
|
-
"require": "./dist/cjs/index.
|
|
31
|
+
"import": "./dist/esm/index.mjs",
|
|
32
|
+
"require": "./dist/cjs/index.js"
|
|
33
33
|
},
|
|
34
34
|
"./index.js": {
|
|
35
|
-
"import": "./dist/esm/index.
|
|
36
|
-
"require": "./dist/cjs/index.
|
|
37
|
-
},
|
|
38
|
-
"./index.d.ts": {
|
|
39
|
-
"import": "./dist/esm/index.d.ts",
|
|
40
|
-
"require": "./dist/cjs/index.d.ts"
|
|
35
|
+
"import": "./dist/esm/index.mjs",
|
|
36
|
+
"require": "./dist/cjs/index.js"
|
|
41
37
|
},
|
|
42
38
|
"./operators": {
|
|
43
|
-
"import": "./dist/esm/operators/index.
|
|
44
|
-
"require": "./dist/cjs/operators/index.
|
|
39
|
+
"import": "./dist/esm/operators/index.mjs",
|
|
40
|
+
"require": "./dist/cjs/operators/index.js"
|
|
45
41
|
},
|
|
46
42
|
"./operators/index.js": {
|
|
47
|
-
"import": "./dist/esm/operators/index.
|
|
48
|
-
"require": "./dist/cjs/operators/index.
|
|
49
|
-
},
|
|
50
|
-
"./operators/index.d.ts": {
|
|
51
|
-
"import": "./dist/esm/operators/index.d.ts",
|
|
52
|
-
"require": "./dist/cjs/operators/index.d.ts"
|
|
43
|
+
"import": "./dist/esm/operators/index.mjs",
|
|
44
|
+
"require": "./dist/cjs/operators/index.js"
|
|
53
45
|
},
|
|
54
46
|
"./sync": {
|
|
55
|
-
"import": "./dist/esm/sync/index.
|
|
56
|
-
"require": "./dist/cjs/sync/index.
|
|
47
|
+
"import": "./dist/esm/sync/index.mjs",
|
|
48
|
+
"require": "./dist/cjs/sync/index.js"
|
|
57
49
|
},
|
|
58
50
|
"./sync/index": {
|
|
59
|
-
"import": "./dist/esm/sync/index.
|
|
60
|
-
"require": "./dist/cjs/sync/index.
|
|
51
|
+
"import": "./dist/esm/sync/index.mjs",
|
|
52
|
+
"require": "./dist/cjs/sync/index.js"
|
|
61
53
|
},
|
|
62
54
|
"./sync/index.js": {
|
|
63
|
-
"import": "./dist/esm/sync/index.
|
|
64
|
-
"require": "./dist/cjs/sync/index.
|
|
65
|
-
},
|
|
66
|
-
"./sync/index.d.ts": {
|
|
67
|
-
"import": "./dist/esm/sync/index.d.ts",
|
|
68
|
-
"require": "./dist/cjs/sync/index.d.ts"
|
|
55
|
+
"import": "./dist/esm/sync/index.mjs",
|
|
56
|
+
"require": "./dist/cjs/sync/index.js"
|
|
69
57
|
}
|
|
70
58
|
},
|
|
71
|
-
"types": "dist/index.d.ts",
|
|
59
|
+
"types": "dist/cjs/index.d.ts",
|
|
72
60
|
"typesVersions": {
|
|
73
61
|
"*": {
|
|
74
|
-
"index.
|
|
75
|
-
"dist/index.d.ts"
|
|
62
|
+
"index.js": [
|
|
63
|
+
"dist/cjs/index.d.ts"
|
|
76
64
|
],
|
|
77
|
-
"
|
|
78
|
-
"dist/index.d.ts"
|
|
65
|
+
"index.d.ts": [
|
|
66
|
+
"dist/cjs/index.d.ts"
|
|
79
67
|
],
|
|
80
68
|
"operators": [
|
|
81
|
-
"dist/operators/index.d.ts"
|
|
69
|
+
"dist/cjs/operators/index.d.ts"
|
|
82
70
|
],
|
|
83
71
|
"operators/*.js": [
|
|
84
|
-
"dist/operators/*.d.ts"
|
|
72
|
+
"dist/cjs/operators/*.d.ts"
|
|
85
73
|
],
|
|
86
74
|
"operators/index.d.ts": [
|
|
87
|
-
"dist/operators/index.d.ts"
|
|
75
|
+
"dist/cjs/operators/index.d.ts"
|
|
88
76
|
],
|
|
89
77
|
"sync": [
|
|
90
|
-
"dist/sync/index.d.ts"
|
|
78
|
+
"dist/cjs/sync/index.d.ts"
|
|
79
|
+
],
|
|
80
|
+
"sync/index.js": [
|
|
81
|
+
"dist/cjs/sync/index.d.ts"
|
|
91
82
|
],
|
|
92
83
|
"sync/index.d.ts": [
|
|
93
|
-
"dist/sync/index.d.ts"
|
|
84
|
+
"dist/cjs/sync/index.d.ts"
|
|
94
85
|
],
|
|
95
86
|
"dist/cjs/index.d.ts": [
|
|
96
|
-
"dist/index.d.ts"
|
|
87
|
+
"dist/cjs/index.d.ts"
|
|
97
88
|
],
|
|
98
89
|
"*": [
|
|
99
|
-
"dist/*.d.ts",
|
|
100
|
-
"dist/*/index.d.ts"
|
|
90
|
+
"dist/cjs/*.d.ts",
|
|
91
|
+
"dist/cjs/*/index.d.ts"
|
|
101
92
|
]
|
|
102
93
|
}
|
|
103
94
|
},
|
|
@@ -110,10 +101,9 @@
|
|
|
110
101
|
"!**/*.map"
|
|
111
102
|
],
|
|
112
103
|
"scripts": {
|
|
113
|
-
"build": "pnpm build:
|
|
114
|
-
"build:cjs": "
|
|
115
|
-
"build:esm": "tsc -p tsconfig.esm.json",
|
|
116
|
-
"build:types": "tsc --emitDeclarationOnly --declaration --declarationDir dist",
|
|
104
|
+
"build": "pnpm build:esm && pnpm build:cjs",
|
|
105
|
+
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
106
|
+
"build:esm": "tsc -p tsconfig.esm.json && ts2mjs dist/esm",
|
|
117
107
|
"build-dev": "tsc -p tsconfig.dev.json",
|
|
118
108
|
"watch": "tsc -p . -w",
|
|
119
109
|
"clean": "shx rm -rf dist coverage .tsbuildinfo",
|
|
@@ -135,16 +125,10 @@
|
|
|
135
125
|
"node": ">=14"
|
|
136
126
|
},
|
|
137
127
|
"devDependencies": {
|
|
138
|
-
"@
|
|
139
|
-
"@rollup/plugin-json": "^6.0.0",
|
|
140
|
-
"@rollup/plugin-node-resolve": "^15.0.1",
|
|
141
|
-
"@rollup/plugin-typescript": "^11.0.0",
|
|
142
|
-
"@types/node": "^18.13.0",
|
|
128
|
+
"@types/node": "^18.14.1",
|
|
143
129
|
"globby": "^13.1.3",
|
|
144
130
|
"jest": "^29.4.3",
|
|
145
|
-
"rollup": "^3.15.0",
|
|
146
|
-
"tslib": "^2.5.0",
|
|
147
131
|
"vitest": "^0.28.5"
|
|
148
132
|
},
|
|
149
|
-
"gitHead": "
|
|
133
|
+
"gitHead": "b0e31c7ba91ba467d5fd9c66f238bb5d899f4833"
|
|
150
134
|
}
|