@esportsplus/typescript 0.8.1 → 0.8.4

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 (35) hide show
  1. package/bin/tsc +9 -0
  2. package/bin/tsc-alias +3 -0
  3. package/node_modules/.package-lock.json +53 -18
  4. package/node_modules/fast-glob/README.md +1 -1
  5. package/node_modules/fast-glob/out/providers/filters/entry.d.ts +2 -1
  6. package/node_modules/fast-glob/out/providers/filters/entry.js +35 -13
  7. package/node_modules/fast-glob/out/utils/pattern.d.ts +2 -0
  8. package/node_modules/fast-glob/out/utils/pattern.js +19 -1
  9. package/node_modules/fast-glob/package.json +4 -4
  10. package/node_modules/fastq/.github/workflows/ci.yml +2 -2
  11. package/node_modules/fastq/README.md +6 -0
  12. package/node_modules/fastq/SECURITY.md +15 -0
  13. package/node_modules/fastq/index.d.ts +19 -0
  14. package/node_modules/fastq/package.json +2 -2
  15. package/node_modules/fastq/queue.js +12 -12
  16. package/node_modules/fastq/test/promise.js +43 -0
  17. package/node_modules/fastq/test/test.js +11 -0
  18. package/node_modules/ignore/index.js +17 -7
  19. package/node_modules/ignore/legacy.js +27 -13
  20. package/node_modules/ignore/package.json +4 -3
  21. package/node_modules/micromatch/README.md +106 -99
  22. package/node_modules/micromatch/index.js +9 -2
  23. package/node_modules/micromatch/package.json +24 -6
  24. package/node_modules/reusify/.github/dependabot.yml +7 -0
  25. package/node_modules/reusify/.github/workflows/ci.yml +96 -0
  26. package/node_modules/reusify/LICENSE +1 -1
  27. package/node_modules/reusify/README.md +1 -7
  28. package/node_modules/reusify/SECURITY.md +15 -0
  29. package/node_modules/reusify/eslint.config.js +14 -0
  30. package/node_modules/reusify/package.json +16 -11
  31. package/node_modules/reusify/reusify.d.ts +14 -0
  32. package/node_modules/reusify/tsconfig.json +11 -0
  33. package/package.json +5 -3
  34. package/node_modules/reusify/.coveralls.yml +0 -1
  35. package/node_modules/reusify/.travis.yml +0 -28
package/bin/tsc ADDED
@@ -0,0 +1,9 @@
1
+ #!/usr/bin/env node
2
+
3
+ const { spawn } = require('child_process');
4
+ const path = require('path');
5
+
6
+ const tscPath = path.join(__dirname, '../node_modules/.bin/tsc');
7
+ const args = process.argv.slice(2);
8
+
9
+ spawn(tscPath, args, { stdio: 'inherit' });
package/bin/tsc-alias ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+
3
+ require('tsc-alias/node_modules/.bin/tsc-alias');
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esportsplus/typescript",
3
- "version": "0.8.1",
3
+ "version": "0.8.4",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
@@ -8,6 +8,7 @@
8
8
  "version": "2.1.5",
9
9
  "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz",
10
10
  "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==",
11
+ "license": "MIT",
11
12
  "dependencies": {
12
13
  "@nodelib/fs.stat": "2.0.5",
13
14
  "run-parallel": "^1.1.9"
@@ -20,6 +21,7 @@
20
21
  "version": "2.0.5",
21
22
  "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz",
22
23
  "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==",
24
+ "license": "MIT",
23
25
  "engines": {
24
26
  "node": ">= 8"
25
27
  }
@@ -28,6 +30,7 @@
28
30
  "version": "1.2.8",
29
31
  "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz",
30
32
  "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==",
33
+ "license": "MIT",
31
34
  "dependencies": {
32
35
  "@nodelib/fs.scandir": "2.1.5",
33
36
  "fastq": "^1.6.0"
@@ -40,6 +43,7 @@
40
43
  "version": "3.1.3",
41
44
  "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz",
42
45
  "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==",
46
+ "license": "ISC",
43
47
  "dependencies": {
44
48
  "normalize-path": "^3.0.0",
45
49
  "picomatch": "^2.0.4"
@@ -52,6 +56,7 @@
52
56
  "version": "2.1.0",
53
57
  "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz",
54
58
  "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==",
59
+ "license": "MIT",
55
60
  "engines": {
56
61
  "node": ">=8"
57
62
  }
@@ -60,6 +65,7 @@
60
65
  "version": "2.3.0",
61
66
  "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz",
62
67
  "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==",
68
+ "license": "MIT",
63
69
  "engines": {
64
70
  "node": ">=8"
65
71
  },
@@ -71,6 +77,7 @@
71
77
  "version": "3.0.3",
72
78
  "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz",
73
79
  "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==",
80
+ "license": "MIT",
74
81
  "dependencies": {
75
82
  "fill-range": "^7.1.1"
76
83
  },
@@ -82,6 +89,7 @@
82
89
  "version": "3.6.0",
83
90
  "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz",
84
91
  "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==",
92
+ "license": "MIT",
85
93
  "dependencies": {
86
94
  "anymatch": "~3.1.2",
87
95
  "braces": "~3.0.2",
@@ -105,6 +113,7 @@
105
113
  "version": "9.5.0",
106
114
  "resolved": "https://registry.npmjs.org/commander/-/commander-9.5.0.tgz",
107
115
  "integrity": "sha512-KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ==",
116
+ "license": "MIT",
108
117
  "engines": {
109
118
  "node": "^12.20.0 || >=14"
110
119
  }
@@ -113,6 +122,7 @@
113
122
  "version": "3.0.1",
114
123
  "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz",
115
124
  "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==",
125
+ "license": "MIT",
116
126
  "dependencies": {
117
127
  "path-type": "^4.0.0"
118
128
  },
@@ -121,24 +131,26 @@
121
131
  }
122
132
  },
123
133
  "node_modules/fast-glob": {
124
- "version": "3.3.2",
125
- "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz",
126
- "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==",
134
+ "version": "3.3.3",
135
+ "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz",
136
+ "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==",
137
+ "license": "MIT",
127
138
  "dependencies": {
128
139
  "@nodelib/fs.stat": "^2.0.2",
129
140
  "@nodelib/fs.walk": "^1.2.3",
130
141
  "glob-parent": "^5.1.2",
131
142
  "merge2": "^1.3.0",
132
- "micromatch": "^4.0.4"
143
+ "micromatch": "^4.0.8"
133
144
  },
134
145
  "engines": {
135
146
  "node": ">=8.6.0"
136
147
  }
137
148
  },
138
149
  "node_modules/fastq": {
139
- "version": "1.17.1",
140
- "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz",
141
- "integrity": "sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==",
150
+ "version": "1.19.1",
151
+ "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.19.1.tgz",
152
+ "integrity": "sha512-GwLTyxkCXjXbxqIhTsMI2Nui8huMPtnxg7krajPJAjnEG/iiOS7i+zCtWGZR9G0NBKbXKh6X9m9UIsYX/N6vvQ==",
153
+ "license": "ISC",
142
154
  "dependencies": {
143
155
  "reusify": "^1.0.4"
144
156
  }
@@ -147,6 +159,7 @@
147
159
  "version": "7.1.1",
148
160
  "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz",
149
161
  "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==",
162
+ "license": "MIT",
150
163
  "dependencies": {
151
164
  "to-regex-range": "^5.0.1"
152
165
  },
@@ -170,6 +183,7 @@
170
183
  "version": "5.1.2",
171
184
  "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",
172
185
  "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",
186
+ "license": "ISC",
173
187
  "dependencies": {
174
188
  "is-glob": "^4.0.1"
175
189
  },
@@ -181,6 +195,7 @@
181
195
  "version": "11.1.0",
182
196
  "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz",
183
197
  "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==",
198
+ "license": "MIT",
184
199
  "dependencies": {
185
200
  "array-union": "^2.1.0",
186
201
  "dir-glob": "^3.0.1",
@@ -197,9 +212,10 @@
197
212
  }
198
213
  },
199
214
  "node_modules/ignore": {
200
- "version": "5.3.1",
201
- "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.1.tgz",
202
- "integrity": "sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw==",
215
+ "version": "5.3.2",
216
+ "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz",
217
+ "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==",
218
+ "license": "MIT",
203
219
  "engines": {
204
220
  "node": ">= 4"
205
221
  }
@@ -208,6 +224,7 @@
208
224
  "version": "2.1.0",
209
225
  "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz",
210
226
  "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==",
227
+ "license": "MIT",
211
228
  "dependencies": {
212
229
  "binary-extensions": "^2.0.0"
213
230
  },
@@ -219,6 +236,7 @@
219
236
  "version": "2.1.1",
220
237
  "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
221
238
  "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==",
239
+ "license": "MIT",
222
240
  "engines": {
223
241
  "node": ">=0.10.0"
224
242
  }
@@ -227,6 +245,7 @@
227
245
  "version": "4.0.3",
228
246
  "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",
229
247
  "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",
248
+ "license": "MIT",
230
249
  "dependencies": {
231
250
  "is-extglob": "^2.1.1"
232
251
  },
@@ -238,6 +257,7 @@
238
257
  "version": "7.0.0",
239
258
  "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",
240
259
  "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",
260
+ "license": "MIT",
241
261
  "engines": {
242
262
  "node": ">=0.12.0"
243
263
  }
@@ -246,14 +266,16 @@
246
266
  "version": "1.4.1",
247
267
  "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz",
248
268
  "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==",
269
+ "license": "MIT",
249
270
  "engines": {
250
271
  "node": ">= 8"
251
272
  }
252
273
  },
253
274
  "node_modules/micromatch": {
254
- "version": "4.0.7",
255
- "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.7.tgz",
256
- "integrity": "sha512-LPP/3KorzCwBxfeUuZmaR6bG2kdeHSbe0P2tY3FLRU4vYrjYz5hI4QZwV0njUx3jeuKe67YukQ1LSPZBKDqO/Q==",
275
+ "version": "4.0.8",
276
+ "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz",
277
+ "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==",
278
+ "license": "MIT",
257
279
  "dependencies": {
258
280
  "braces": "^3.0.3",
259
281
  "picomatch": "^2.3.1"
@@ -266,6 +288,7 @@
266
288
  "version": "2.1.13",
267
289
  "resolved": "https://registry.npmjs.org/mylas/-/mylas-2.1.13.tgz",
268
290
  "integrity": "sha512-+MrqnJRtxdF+xngFfUUkIMQrUUL0KsxbADUkn23Z/4ibGg192Q+z+CQyiYwvWTsYjJygmMR8+w3ZDa98Zh6ESg==",
291
+ "license": "MIT",
269
292
  "engines": {
270
293
  "node": ">=12.0.0"
271
294
  },
@@ -278,6 +301,7 @@
278
301
  "version": "3.0.0",
279
302
  "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz",
280
303
  "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==",
304
+ "license": "MIT",
281
305
  "engines": {
282
306
  "node": ">=0.10.0"
283
307
  }
@@ -286,6 +310,7 @@
286
310
  "version": "4.0.0",
287
311
  "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz",
288
312
  "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==",
313
+ "license": "MIT",
289
314
  "engines": {
290
315
  "node": ">=8"
291
316
  }
@@ -294,6 +319,7 @@
294
319
  "version": "2.3.1",
295
320
  "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz",
296
321
  "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==",
322
+ "license": "MIT",
297
323
  "engines": {
298
324
  "node": ">=8.6"
299
325
  },
@@ -305,6 +331,7 @@
305
331
  "version": "1.6.1",
306
332
  "resolved": "https://registry.npmjs.org/plimit-lit/-/plimit-lit-1.6.1.tgz",
307
333
  "integrity": "sha512-B7+VDyb8Tl6oMJT9oSO2CW8XC/T4UcJGrwOVoNGwOQsQYhlpfajmrMj5xeejqaASq3V/EqThyOeATEOMuSEXiA==",
334
+ "license": "MIT",
308
335
  "dependencies": {
309
336
  "queue-lit": "^1.5.1"
310
337
  },
@@ -316,6 +343,7 @@
316
343
  "version": "1.5.2",
317
344
  "resolved": "https://registry.npmjs.org/queue-lit/-/queue-lit-1.5.2.tgz",
318
345
  "integrity": "sha512-tLc36IOPeMAubu8BkW8YDBV+WyIgKlYU7zUNs0J5Vk9skSZ4JfGlPOqplP0aHdfv7HL0B2Pg6nwiq60Qc6M2Hw==",
346
+ "license": "MIT",
319
347
  "engines": {
320
348
  "node": ">=12"
321
349
  }
@@ -337,12 +365,14 @@
337
365
  "type": "consulting",
338
366
  "url": "https://feross.org/support"
339
367
  }
340
- ]
368
+ ],
369
+ "license": "MIT"
341
370
  },
342
371
  "node_modules/readdirp": {
343
372
  "version": "3.6.0",
344
373
  "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz",
345
374
  "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==",
375
+ "license": "MIT",
346
376
  "dependencies": {
347
377
  "picomatch": "^2.2.1"
348
378
  },
@@ -354,14 +384,16 @@
354
384
  "version": "1.0.0",
355
385
  "resolved": "https://registry.npmjs.org/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz",
356
386
  "integrity": "sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==",
387
+ "license": "MIT",
357
388
  "funding": {
358
389
  "url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1"
359
390
  }
360
391
  },
361
392
  "node_modules/reusify": {
362
- "version": "1.0.4",
363
- "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz",
364
- "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==",
393
+ "version": "1.1.0",
394
+ "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz",
395
+ "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==",
396
+ "license": "MIT",
365
397
  "engines": {
366
398
  "iojs": ">=1.0.0",
367
399
  "node": ">=0.10.0"
@@ -385,6 +417,7 @@
385
417
  "url": "https://feross.org/support"
386
418
  }
387
419
  ],
420
+ "license": "MIT",
388
421
  "dependencies": {
389
422
  "queue-microtask": "^1.2.2"
390
423
  }
@@ -393,6 +426,7 @@
393
426
  "version": "3.0.0",
394
427
  "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz",
395
428
  "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==",
429
+ "license": "MIT",
396
430
  "engines": {
397
431
  "node": ">=8"
398
432
  }
@@ -401,6 +435,7 @@
401
435
  "version": "5.0.1",
402
436
  "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",
403
437
  "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",
438
+ "license": "MIT",
404
439
  "dependencies": {
405
440
  "is-number": "^7.0.0"
406
441
  },
@@ -394,7 +394,7 @@ Indicates whether to traverse descendants of symbolic link directories when expa
394
394
  * Type: `FileSystemAdapter`
395
395
  * Default: `fs.*`
396
396
 
397
- Custom implementation of methods for working with the file system.
397
+ Custom implementation of methods for working with the file system. Supports objects with enumerable properties only.
398
398
 
399
399
  ```ts
400
400
  export interface FileSystemAdapter {
@@ -11,6 +11,7 @@ export default class EntryFilter {
11
11
  private _createIndexRecord;
12
12
  private _onlyFileFilter;
13
13
  private _onlyDirectoryFilter;
14
- private _isSkippedByAbsoluteNegativePatterns;
14
+ private _isMatchToPatternsSet;
15
+ private _isMatchToAbsoluteNegative;
15
16
  private _isMatchToPatterns;
16
17
  }
@@ -8,11 +8,19 @@ class EntryFilter {
8
8
  this.index = new Map();
9
9
  }
10
10
  getFilter(positive, negative) {
11
- const positiveRe = utils.pattern.convertPatternsToRe(positive, this._micromatchOptions);
12
- const negativeRe = utils.pattern.convertPatternsToRe(negative, Object.assign(Object.assign({}, this._micromatchOptions), { dot: true }));
13
- return (entry) => this._filter(entry, positiveRe, negativeRe);
11
+ const [absoluteNegative, relativeNegative] = utils.pattern.partitionAbsoluteAndRelative(negative);
12
+ const patterns = {
13
+ positive: {
14
+ all: utils.pattern.convertPatternsToRe(positive, this._micromatchOptions)
15
+ },
16
+ negative: {
17
+ absolute: utils.pattern.convertPatternsToRe(absoluteNegative, Object.assign(Object.assign({}, this._micromatchOptions), { dot: true })),
18
+ relative: utils.pattern.convertPatternsToRe(relativeNegative, Object.assign(Object.assign({}, this._micromatchOptions), { dot: true }))
19
+ }
20
+ };
21
+ return (entry) => this._filter(entry, patterns);
14
22
  }
15
- _filter(entry, positiveRe, negativeRe) {
23
+ _filter(entry, patterns) {
16
24
  const filepath = utils.path.removeLeadingDotSegment(entry.path);
17
25
  if (this._settings.unique && this._isDuplicateEntry(filepath)) {
18
26
  return false;
@@ -20,11 +28,7 @@ class EntryFilter {
20
28
  if (this._onlyFileFilter(entry) || this._onlyDirectoryFilter(entry)) {
21
29
  return false;
22
30
  }
23
- if (this._isSkippedByAbsoluteNegativePatterns(filepath, negativeRe)) {
24
- return false;
25
- }
26
- const isDirectory = entry.dirent.isDirectory();
27
- const isMatched = this._isMatchToPatterns(filepath, positiveRe, isDirectory) && !this._isMatchToPatterns(filepath, negativeRe, isDirectory);
31
+ const isMatched = this._isMatchToPatternsSet(filepath, patterns, entry.dirent.isDirectory());
28
32
  if (this._settings.unique && isMatched) {
29
33
  this._createIndexRecord(filepath);
30
34
  }
@@ -42,14 +46,32 @@ class EntryFilter {
42
46
  _onlyDirectoryFilter(entry) {
43
47
  return this._settings.onlyDirectories && !entry.dirent.isDirectory();
44
48
  }
45
- _isSkippedByAbsoluteNegativePatterns(entryPath, patternsRe) {
46
- if (!this._settings.absolute) {
49
+ _isMatchToPatternsSet(filepath, patterns, isDirectory) {
50
+ const isMatched = this._isMatchToPatterns(filepath, patterns.positive.all, isDirectory);
51
+ if (!isMatched) {
52
+ return false;
53
+ }
54
+ const isMatchedByRelativeNegative = this._isMatchToPatterns(filepath, patterns.negative.relative, isDirectory);
55
+ if (isMatchedByRelativeNegative) {
56
+ return false;
57
+ }
58
+ const isMatchedByAbsoluteNegative = this._isMatchToAbsoluteNegative(filepath, patterns.negative.absolute, isDirectory);
59
+ if (isMatchedByAbsoluteNegative) {
47
60
  return false;
48
61
  }
49
- const fullpath = utils.path.makeAbsolute(this._settings.cwd, entryPath);
50
- return utils.pattern.matchAny(fullpath, patternsRe);
62
+ return true;
63
+ }
64
+ _isMatchToAbsoluteNegative(filepath, patternsRe, isDirectory) {
65
+ if (patternsRe.length === 0) {
66
+ return false;
67
+ }
68
+ const fullpath = utils.path.makeAbsolute(this._settings.cwd, filepath);
69
+ return this._isMatchToPatterns(fullpath, patternsRe, isDirectory);
51
70
  }
52
71
  _isMatchToPatterns(filepath, patternsRe, isDirectory) {
72
+ if (patternsRe.length === 0) {
73
+ return false;
74
+ }
53
75
  // Trying to match files and directories by patterns.
54
76
  const isMatched = utils.pattern.matchAny(filepath, patternsRe);
55
77
  // A pattern with a trailling slash can be used for directory matching.
@@ -44,4 +44,6 @@ export declare function matchAny(entry: string, patternsRe: PatternRe[]): boolea
44
44
  * Because of this, we cannot use the standard `path.normalize` method, because on Windows platform it will use of backslashes.
45
45
  */
46
46
  export declare function removeDuplicateSlashes(pattern: string): string;
47
+ export declare function partitionAbsoluteAndRelative(patterns: Pattern[]): Pattern[][];
48
+ export declare function isAbsolute(pattern: string): boolean;
47
49
  export {};
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.removeDuplicateSlashes = exports.matchAny = exports.convertPatternsToRe = exports.makeRe = exports.getPatternParts = exports.expandBraceExpansion = exports.expandPatternsWithBraceExpansion = exports.isAffectDepthOfReadingPattern = exports.endsWithSlashGlobStar = exports.hasGlobStar = exports.getBaseDirectory = exports.isPatternRelatedToParentDirectory = exports.getPatternsOutsideCurrentDirectory = exports.getPatternsInsideCurrentDirectory = exports.getPositivePatterns = exports.getNegativePatterns = exports.isPositivePattern = exports.isNegativePattern = exports.convertToNegativePattern = exports.convertToPositivePattern = exports.isDynamicPattern = exports.isStaticPattern = void 0;
3
+ exports.isAbsolute = exports.partitionAbsoluteAndRelative = exports.removeDuplicateSlashes = exports.matchAny = exports.convertPatternsToRe = exports.makeRe = exports.getPatternParts = exports.expandBraceExpansion = exports.expandPatternsWithBraceExpansion = exports.isAffectDepthOfReadingPattern = exports.endsWithSlashGlobStar = exports.hasGlobStar = exports.getBaseDirectory = exports.isPatternRelatedToParentDirectory = exports.getPatternsOutsideCurrentDirectory = exports.getPatternsInsideCurrentDirectory = exports.getPositivePatterns = exports.getNegativePatterns = exports.isPositivePattern = exports.isNegativePattern = exports.convertToNegativePattern = exports.convertToPositivePattern = exports.isDynamicPattern = exports.isStaticPattern = void 0;
4
4
  const path = require("path");
5
5
  const globParent = require("glob-parent");
6
6
  const micromatch = require("micromatch");
@@ -186,3 +186,21 @@ function removeDuplicateSlashes(pattern) {
186
186
  return pattern.replace(DOUBLE_SLASH_RE, '/');
187
187
  }
188
188
  exports.removeDuplicateSlashes = removeDuplicateSlashes;
189
+ function partitionAbsoluteAndRelative(patterns) {
190
+ const absolute = [];
191
+ const relative = [];
192
+ for (const pattern of patterns) {
193
+ if (isAbsolute(pattern)) {
194
+ absolute.push(pattern);
195
+ }
196
+ else {
197
+ relative.push(pattern);
198
+ }
199
+ }
200
+ return [absolute, relative];
201
+ }
202
+ exports.partitionAbsoluteAndRelative = partitionAbsoluteAndRelative;
203
+ function isAbsolute(pattern) {
204
+ return path.isAbsolute(pattern);
205
+ }
206
+ exports.isAbsolute = isAbsolute;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fast-glob",
3
- "version": "3.3.2",
3
+ "version": "3.3.3",
4
4
  "description": "It's a very fast and efficient glob library for Node.js",
5
5
  "license": "MIT",
6
6
  "repository": "mrmlnc/fast-glob",
@@ -39,7 +39,7 @@
39
39
  "eslint-config-mrmlnc": "^1.1.0",
40
40
  "execa": "^7.1.1",
41
41
  "fast-glob": "^3.0.4",
42
- "fdir": "^6.0.1",
42
+ "fdir": "6.0.1",
43
43
  "glob": "^10.0.0",
44
44
  "hereby": "^1.8.1",
45
45
  "mocha": "^6.2.1",
@@ -53,7 +53,7 @@
53
53
  "@nodelib/fs.walk": "^1.2.3",
54
54
  "glob-parent": "^5.1.2",
55
55
  "merge2": "^1.3.0",
56
- "micromatch": "^4.0.4"
56
+ "micromatch": "^4.0.8"
57
57
  },
58
58
  "scripts": {
59
59
  "clean": "rimraf out",
@@ -65,7 +65,7 @@
65
65
  "test:e2e:async": "mocha \"out/**/*.e2e.js\" -s 0 --grep \"\\(async\\)\"",
66
66
  "test:e2e:stream": "mocha \"out/**/*.e2e.js\" -s 0 --grep \"\\(stream\\)\"",
67
67
  "build": "npm run clean && npm run compile && npm run lint && npm test",
68
- "watch": "npm run clean && npm run compile -- --sourceMap --watch",
68
+ "watch": "npm run clean && npm run compile -- -- --sourceMap --watch",
69
69
  "bench:async": "npm run bench:product:async && npm run bench:regression:async",
70
70
  "bench:stream": "npm run bench:product:stream && npm run bench:regression:stream",
71
71
  "bench:sync": "npm run bench:product:sync && npm run bench:regression:sync",
@@ -8,7 +8,7 @@ jobs:
8
8
 
9
9
  strategy:
10
10
  matrix:
11
- node-version: ['0.10', '0.12', 4.x, 6.x, 8.x]
11
+ node-version: ['0.10', '0.12', 4.x, 6.x, 8.x, 10.x, 12.x, 13.x, 14.x, 15.x, 16.x]
12
12
 
13
13
  steps:
14
14
  - uses: actions/checkout@v3
@@ -33,7 +33,7 @@ jobs:
33
33
 
34
34
  strategy:
35
35
  matrix:
36
- node-version: [10.x, 12.x, 13.x, 14.x, 15.x, 16.x, 18.x, 20.x]
36
+ node-version: [18.x, 20.x, 22.x]
37
37
 
38
38
  steps:
39
39
  - uses: actions/checkout@v3
@@ -233,6 +233,12 @@ each time a task is completed, `err` will be not null if the task has thrown an
233
233
  Property that returns the number of concurrent tasks that could be executed in
234
234
  parallel. It can be altered at runtime.
235
235
 
236
+ -------------------------------------------------------
237
+ <a name="paused"></a>
238
+ ### queue.paused
239
+
240
+ Property (Read-Only) that returns `true` when the queue is in a paused state.
241
+
236
242
  -------------------------------------------------------
237
243
  <a name="drain"></a>
238
244
  ### queue.drain
@@ -0,0 +1,15 @@
1
+ # Security Policy
2
+
3
+ ## Supported Versions
4
+
5
+ Use this section to tell people about which versions of your project are
6
+ currently being supported with security updates.
7
+
8
+ | Version | Supported |
9
+ | ------- | ------------------ |
10
+ | 1.x | :white_check_mark: |
11
+ | < 1.0 | :x: |
12
+
13
+ ## Reporting a Vulnerability
14
+
15
+ Please report all vulnerabilities at [https://github.com/mcollina/fastq/security](https://github.com/mcollina/fastq/security).
@@ -8,26 +8,45 @@ declare namespace fastq {
8
8
  type errorHandler<T = any> = (err: Error, task: T) => void
9
9
 
10
10
  interface queue<T = any, R = any> {
11
+ /** Add a task at the end of the queue. `done(err, result)` will be called when the task was processed. */
11
12
  push(task: T, done?: done<R>): void
13
+ /** Add a task at the beginning of the queue. `done(err, result)` will be called when the task was processed. */
12
14
  unshift(task: T, done?: done<R>): void
15
+ /** Pause the processing of tasks. Currently worked tasks are not stopped. */
13
16
  pause(): any
17
+ /** Resume the processing of tasks. */
14
18
  resume(): any
15
19
  running(): number
20
+ /** Returns `false` if there are tasks being processed or waiting to be processed. `true` otherwise. */
16
21
  idle(): boolean
22
+ /** Returns the number of tasks waiting to be processed (in the queue). */
17
23
  length(): number
24
+ /** Returns all the tasks be processed (in the queue). Returns empty array when there are no tasks */
18
25
  getQueue(): T[]
26
+ /** Removes all tasks waiting to be processed, and reset `drain` to an empty function. */
19
27
  kill(): any
28
+ /** Same than `kill` but the `drain` function will be called before reset to empty. */
20
29
  killAndDrain(): any
30
+ /** Set a global error handler. `handler(err, task)` will be called each time a task is completed, `err` will be not null if the task has thrown an error. */
21
31
  error(handler: errorHandler<T>): void
32
+ /** Property that returns the number of concurrent tasks that could be executed in parallel. It can be altered at runtime. */
22
33
  concurrency: number
34
+ /** Property (Read-Only) that returns `true` when the queue is in a paused state. */
35
+ readonly paused: boolean
36
+ /** Function that will be called when the last item from the queue has been processed by a worker. It can be altered at runtime. */
23
37
  drain(): any
38
+ /** Function that will be called when the last item from the queue has been assigned to a worker. It can be altered at runtime. */
24
39
  empty: () => void
40
+ /** Function that will be called when the queue hits the concurrency limit. It can be altered at runtime. */
25
41
  saturated: () => void
26
42
  }
27
43
 
28
44
  interface queueAsPromised<T = any, R = any> extends queue<T, R> {
45
+ /** Add a task at the end of the queue. The returned `Promise` will be fulfilled (rejected) when the task is completed successfully (unsuccessfully). */
29
46
  push(task: T): Promise<R>
47
+ /** Add a task at the beginning of the queue. The returned `Promise` will be fulfilled (rejected) when the task is completed successfully (unsuccessfully). */
30
48
  unshift(task: T): Promise<R>
49
+ /** Wait for the queue to be drained. The returned `Promise` will be resolved when all tasks in the queue have been processed by a worker. */
31
50
  drained(): Promise<void>
32
51
  }
33
52
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fastq",
3
- "version": "1.17.1",
3
+ "version": "1.19.1",
4
4
  "description": "Fast, in memory work queue",
5
5
  "main": "queue.js",
6
6
  "scripts": {
@@ -35,7 +35,7 @@
35
35
  "devDependencies": {
36
36
  "async": "^3.1.0",
37
37
  "neo-async": "^2.6.1",
38
- "nyc": "^15.0.0",
38
+ "nyc": "^17.0.0",
39
39
  "pre-commit": "^1.2.2",
40
40
  "snazzy": "^9.0.0",
41
41
  "standard": "^16.0.0",
@@ -288,19 +288,19 @@ function queueAsPromised (context, worker, _concurrency) {
288
288
  }
289
289
 
290
290
  function drained () {
291
- if (queue.idle()) {
292
- return new Promise(function (resolve) {
293
- resolve()
294
- })
295
- }
296
-
297
- var previousDrain = queue.drain
298
-
299
291
  var p = new Promise(function (resolve) {
300
- queue.drain = function () {
301
- previousDrain()
302
- resolve()
303
- }
292
+ process.nextTick(function () {
293
+ if (queue.idle()) {
294
+ resolve()
295
+ } else {
296
+ var previousDrain = queue.drain
297
+ queue.drain = function () {
298
+ if (typeof previousDrain === 'function') previousDrain()
299
+ resolve()
300
+ queue.drain = previousDrain
301
+ }
302
+ }
303
+ })
304
304
  })
305
305
 
306
306
  return p