@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.
Files changed (150) hide show
  1. package/dist/cjs/helpers/distribute.js +37 -0
  2. package/dist/cjs/helpers/index.js +17 -0
  3. package/dist/cjs/helpers/interleave.js +22 -0
  4. package/dist/cjs/helpers/iteratorToIterable.js +18 -0
  5. package/dist/cjs/helpers/toArray.js +21 -0
  6. package/dist/cjs/helpers/toAsyncIterable.js +19 -0
  7. package/dist/cjs/helpers/util.js +15 -0
  8. package/dist/cjs/index.js +60 -0
  9. package/dist/cjs/internalTypes.js +3 -0
  10. package/dist/cjs/operators/{append.cjs → append.js} +8 -10
  11. package/dist/cjs/operators/await.js +13 -0
  12. package/dist/cjs/operators/{combine.cjs → combine.js} +5 -4
  13. package/dist/cjs/operators/{concatMap.cjs → concatMap.js} +8 -16
  14. package/dist/cjs/operators/{filter.cjs → filter.js} +8 -10
  15. package/dist/cjs/operators/{first.cjs → first.js} +8 -10
  16. package/dist/cjs/operators/{flatten.cjs → flatten.js} +8 -16
  17. package/dist/cjs/operators/index.js +60 -0
  18. package/dist/cjs/operators/joinStrings.js +28 -0
  19. package/dist/cjs/operators/{last.cjs → last.js} +8 -10
  20. package/dist/cjs/operators/{map.cjs → map.js} +8 -16
  21. package/dist/cjs/operators/{reduce.cjs → reduce.js} +9 -20
  22. package/dist/cjs/operators/{skip.cjs → skip.js} +8 -16
  23. package/dist/cjs/operators/{take.cjs → take.js} +8 -16
  24. package/dist/cjs/operators/{tap.cjs → tap.js} +8 -16
  25. package/dist/cjs/operators/types.js +3 -0
  26. package/dist/cjs/operators/{unique.cjs → unique.js} +8 -16
  27. package/dist/cjs/pipe.js +15 -0
  28. package/dist/cjs/reduce.js +27 -0
  29. package/dist/cjs/sync/index.js +26 -0
  30. package/dist/{cjs/operators/helpers/distribute.d.ts → esm/helpers/distribute.d.mts} +1 -1
  31. package/dist/esm/helpers/distribute.mjs +33 -0
  32. package/dist/esm/helpers/index.d.mts +7 -0
  33. package/dist/esm/helpers/index.mjs +7 -0
  34. package/dist/{cjs/operators/helpers/interleave.d.ts → esm/helpers/interleave.d.mts} +1 -1
  35. package/dist/esm/helpers/interleave.mjs +18 -0
  36. package/dist/{cjs/operators/helpers/iteratorToIterable.d.ts → esm/helpers/iteratorToIterable.d.mts} +1 -1
  37. package/dist/esm/helpers/iteratorToIterable.mjs +13 -0
  38. package/dist/{cjs/operators/helpers/toArray.d.ts → esm/helpers/toArray.d.mts} +1 -1
  39. package/dist/esm/helpers/toArray.mjs +15 -0
  40. package/dist/{cjs/sync/helpers/toAsyncIterable.d.ts → esm/helpers/toAsyncIterable.d.mts} +2 -2
  41. package/dist/esm/helpers/toAsyncIterable.mjs +15 -0
  42. package/dist/{cjs/operators/helpers/util.d.ts → esm/helpers/util.d.mts} +2 -2
  43. package/dist/esm/helpers/util.mjs +10 -0
  44. package/dist/esm/index.d.mts +9 -0
  45. package/dist/esm/index.mjs +11 -0
  46. package/dist/{cjs/operators/internalTypes.d.ts → esm/internalTypes.d.mts} +1 -1
  47. package/dist/esm/internalTypes.mjs +2 -0
  48. package/dist/{cjs/sync/operators/append.d.ts → esm/operators/append.d.mts} +2 -2
  49. package/dist/esm/operators/append.mjs +36 -0
  50. package/dist/{cjs/operators/operators/await.d.ts → esm/operators/await.d.mts} +1 -1
  51. package/dist/{cjs/operators/await.cjs → esm/operators/await.mjs} +2 -5
  52. package/dist/{cjs/operators/operators/combine.d.ts → esm/operators/combine.d.mts} +3 -3
  53. package/dist/esm/operators/combine.mjs +19 -0
  54. package/dist/{cjs/operators/operators/concatMap.d.ts → esm/operators/concatMap.d.mts} +1 -1
  55. package/dist/esm/operators/concatMap.mjs +19 -0
  56. package/dist/{cjs/operators/operators/filter.d.ts → esm/operators/filter.d.mts} +2 -2
  57. package/dist/esm/operators/filter.mjs +30 -0
  58. package/dist/{cjs/operators/operators/first.d.ts → esm/operators/first.d.mts} +2 -2
  59. package/dist/esm/operators/first.mjs +34 -0
  60. package/dist/{cjs/operators/operators/flatten.d.ts → esm/operators/flatten.d.mts} +1 -1
  61. package/dist/esm/operators/flatten.mjs +19 -0
  62. package/dist/esm/operators/index.d.mts +17 -0
  63. package/dist/esm/operators/index.mjs +16 -0
  64. package/dist/{cjs/operators/operators/joinStrings.d.ts → esm/operators/joinStrings.d.mts} +1 -1
  65. package/dist/esm/operators/joinStrings.mjs +22 -0
  66. package/dist/{cjs/operators/operators/last.d.ts → esm/operators/last.d.mts} +2 -2
  67. package/dist/esm/operators/last.mjs +39 -0
  68. package/dist/{cjs/operators/operators/map.d.ts → esm/operators/map.d.mts} +1 -1
  69. package/dist/esm/operators/map.mjs +19 -0
  70. package/dist/{cjs/operators/operators/reduce.d.ts → esm/operators/reduce.d.mts} +1 -1
  71. package/dist/esm/operators/reduce.mjs +49 -0
  72. package/dist/{cjs/operators/operators/skip.d.ts → esm/operators/skip.d.mts} +1 -1
  73. package/dist/esm/operators/skip.mjs +27 -0
  74. package/dist/{operators/take.d.ts → esm/operators/take.d.mts} +1 -1
  75. package/dist/esm/operators/take.mjs +31 -0
  76. package/dist/{cjs/sync/operators/tap.d.ts → esm/operators/tap.d.mts} +1 -1
  77. package/dist/esm/operators/tap.mjs +36 -0
  78. package/dist/{cjs/operators/operators/types.d.ts → esm/operators/types.d.mts} +1 -1
  79. package/dist/esm/operators/types.mjs +2 -0
  80. package/dist/{operators/unique.d.ts → esm/operators/unique.d.mts} +1 -1
  81. package/dist/esm/operators/unique.mjs +53 -0
  82. package/dist/{cjs/operators/pipe.d.ts → esm/pipe.d.mts} +2 -2
  83. package/dist/esm/pipe.mjs +10 -0
  84. package/dist/{cjs/sync/reduce.d.ts → esm/reduce.d.mts} +2 -2
  85. package/dist/esm/reduce.mjs +21 -0
  86. package/dist/{cjs/operators/sync/index.d.ts → esm/sync/index.d.mts} +6 -6
  87. package/dist/{cjs/sync/sync/index.d.ts → esm/sync/index.mjs} +5 -6
  88. package/package.json +41 -57
  89. package/dist/cjs/index.cjs +0 -644
  90. package/dist/cjs/operators/helpers/index.d.ts +0 -7
  91. package/dist/cjs/operators/helpers/toAsyncIterable.d.ts +0 -11
  92. package/dist/cjs/operators/index.cjs +0 -508
  93. package/dist/cjs/operators/joinStrings.cjs +0 -49
  94. package/dist/cjs/operators/operators/append.d.ts +0 -15
  95. package/dist/cjs/operators/operators/index.d.ts +0 -17
  96. package/dist/cjs/operators/operators/take.d.ts +0 -8
  97. package/dist/cjs/operators/operators/tap.d.ts +0 -19
  98. package/dist/cjs/operators/operators/unique.d.ts +0 -4
  99. package/dist/cjs/operators/types.cjs +0 -2
  100. package/dist/cjs/sync/helpers/distribute.d.ts +0 -13
  101. package/dist/cjs/sync/helpers/index.d.ts +0 -7
  102. package/dist/cjs/sync/helpers/interleave.d.ts +0 -2
  103. package/dist/cjs/sync/helpers/iteratorToIterable.d.ts +0 -3
  104. package/dist/cjs/sync/helpers/toArray.d.ts +0 -6
  105. package/dist/cjs/sync/helpers/util.d.ts +0 -4
  106. package/dist/cjs/sync/index.cjs +0 -245
  107. package/dist/cjs/sync/internalTypes.d.ts +0 -17
  108. package/dist/cjs/sync/operators/await.d.ts +0 -2
  109. package/dist/cjs/sync/operators/combine.d.ts +0 -23
  110. package/dist/cjs/sync/operators/concatMap.d.ts +0 -4
  111. package/dist/cjs/sync/operators/filter.d.ts +0 -10
  112. package/dist/cjs/sync/operators/first.d.ts +0 -10
  113. package/dist/cjs/sync/operators/flatten.d.ts +0 -4
  114. package/dist/cjs/sync/operators/index.d.ts +0 -17
  115. package/dist/cjs/sync/operators/joinStrings.d.ts +0 -4
  116. package/dist/cjs/sync/operators/last.d.ts +0 -10
  117. package/dist/cjs/sync/operators/map.d.ts +0 -4
  118. package/dist/cjs/sync/operators/reduce.d.ts +0 -7
  119. package/dist/cjs/sync/operators/skip.d.ts +0 -4
  120. package/dist/cjs/sync/operators/take.d.ts +0 -8
  121. package/dist/cjs/sync/operators/types.d.ts +0 -4
  122. package/dist/cjs/sync/operators/unique.d.ts +0 -4
  123. package/dist/cjs/sync/pipe.d.ts +0 -20
  124. package/dist/helpers/distribute.d.ts +0 -13
  125. package/dist/helpers/index.d.ts +0 -7
  126. package/dist/helpers/interleave.d.ts +0 -2
  127. package/dist/helpers/iteratorToIterable.d.ts +0 -3
  128. package/dist/helpers/toArray.d.ts +0 -6
  129. package/dist/helpers/toAsyncIterable.d.ts +0 -11
  130. package/dist/helpers/util.d.ts +0 -4
  131. package/dist/index.d.ts +0 -9
  132. package/dist/internalTypes.d.ts +0 -17
  133. package/dist/operators/append.d.ts +0 -15
  134. package/dist/operators/await.d.ts +0 -2
  135. package/dist/operators/combine.d.ts +0 -23
  136. package/dist/operators/concatMap.d.ts +0 -4
  137. package/dist/operators/filter.d.ts +0 -10
  138. package/dist/operators/first.d.ts +0 -10
  139. package/dist/operators/flatten.d.ts +0 -4
  140. package/dist/operators/index.d.ts +0 -17
  141. package/dist/operators/joinStrings.d.ts +0 -4
  142. package/dist/operators/last.d.ts +0 -10
  143. package/dist/operators/map.d.ts +0 -4
  144. package/dist/operators/reduce.d.ts +0 -7
  145. package/dist/operators/skip.d.ts +0 -4
  146. package/dist/operators/tap.d.ts +0 -19
  147. package/dist/operators/types.d.ts +0 -4
  148. package/dist/pipe.d.ts +0 -20
  149. package/dist/reduce.d.ts +0 -16
  150. 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.26.3",
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": "module",
20
- "main": "dist/cjs/index.cjs",
21
- "module": "dist/esm/index.js",
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.js",
28
- "require": "./dist/cjs/index.cjs"
27
+ "import": "./dist/esm/index.mjs",
28
+ "require": "./dist/cjs/index.js"
29
29
  },
30
30
  "./index": {
31
- "import": "./dist/esm/index.js",
32
- "require": "./dist/cjs/index.cjs"
31
+ "import": "./dist/esm/index.mjs",
32
+ "require": "./dist/cjs/index.js"
33
33
  },
34
34
  "./index.js": {
35
- "import": "./dist/esm/index.js",
36
- "require": "./dist/cjs/index.cjs"
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.js",
44
- "require": "./dist/cjs/operators/index.cjs"
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.js",
48
- "require": "./dist/cjs/operators/index.cjs"
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.js",
56
- "require": "./dist/cjs/sync/index.cjs"
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.js",
60
- "require": "./dist/cjs/sync/index.cjs"
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.js",
64
- "require": "./dist/cjs/sync/index.cjs"
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.d.ts": [
75
- "dist/index.d.ts"
62
+ "index.js": [
63
+ "dist/cjs/index.d.ts"
76
64
  ],
77
- "dist/index.d.ts": [
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:types && pnpm build:esm && pnpm build:cjs",
114
- "build:cjs": "rollup -c rollup.config.mjs",
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
- "@rollup/plugin-commonjs": "^24.0.1",
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": "b8c6e0a31c58ad61b4814f92dccfe3df4999ff81"
133
+ "gitHead": "b0e31c7ba91ba467d5fd9c66f238bb5d899f4833"
150
134
  }