pnpm 10.7.1 → 10.8.1

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 (114) hide show
  1. package/dist/node_modules/.modules.yaml +16 -12
  2. package/dist/node_modules/.pnpm/lock.yaml +39 -9
  3. package/dist/node_modules/.pnpm-workspace-state.json +1 -1
  4. package/dist/node_modules/abbrev/lib/index.js +4 -1
  5. package/dist/node_modules/abbrev/package.json +3 -3
  6. package/dist/node_modules/fdir/LICENSE +7 -0
  7. package/dist/node_modules/fdir/dist/api/async.js +19 -0
  8. package/dist/node_modules/fdir/dist/api/counter.js +27 -0
  9. package/dist/node_modules/fdir/dist/api/functions/get-array.js +13 -0
  10. package/dist/node_modules/fdir/dist/api/functions/group-files.js +11 -0
  11. package/dist/node_modules/fdir/dist/api/functions/invoke-callback.js +57 -0
  12. package/dist/node_modules/fdir/dist/api/functions/is-recursive-symlink.js +35 -0
  13. package/dist/node_modules/fdir/dist/api/functions/join-path.js +36 -0
  14. package/dist/node_modules/fdir/dist/api/functions/push-directory.js +37 -0
  15. package/dist/node_modules/fdir/dist/api/functions/push-file.js +33 -0
  16. package/dist/node_modules/fdir/dist/api/functions/resolve-symlink.js +67 -0
  17. package/dist/node_modules/fdir/dist/api/functions/walk-directory.js +40 -0
  18. package/dist/node_modules/fdir/dist/api/queue.js +23 -0
  19. package/dist/node_modules/fdir/dist/api/sync.js +9 -0
  20. package/dist/node_modules/fdir/dist/api/walker.js +124 -0
  21. package/dist/node_modules/fdir/dist/builder/api-builder.js +23 -0
  22. package/dist/node_modules/fdir/dist/builder/index.js +136 -0
  23. package/dist/node_modules/fdir/dist/index.js +20 -0
  24. package/dist/node_modules/fdir/dist/optimizer.js +54 -0
  25. package/dist/node_modules/fdir/dist/types.js +2 -0
  26. package/dist/node_modules/fdir/dist/utils.js +32 -0
  27. package/dist/node_modules/fdir/package.json +88 -0
  28. package/dist/node_modules/node-gyp/.release-please-manifest.json +1 -1
  29. package/dist/node_modules/node-gyp/gyp/.release-please-manifest.json +1 -1
  30. package/dist/node_modules/node-gyp/gyp/gyp_main.py +1 -1
  31. package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSProject.py +1 -1
  32. package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings_test.py +2 -2
  33. package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSToolFile.py +1 -1
  34. package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSUserFile.py +1 -2
  35. package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSUtil.py +0 -1
  36. package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSVersion.py +1 -1
  37. package/dist/node_modules/node-gyp/gyp/pylib/gyp/__init__.py +14 -15
  38. package/dist/node_modules/node-gyp/gyp/pylib/gyp/common.py +3 -5
  39. package/dist/node_modules/node-gyp/gyp/pylib/gyp/common_test.py +13 -11
  40. package/dist/node_modules/node-gyp/gyp/pylib/gyp/easy_xml.py +3 -3
  41. package/dist/node_modules/node-gyp/gyp/pylib/gyp/easy_xml_test.py +2 -2
  42. package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/analyzer.py +4 -3
  43. package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/android.py +20 -21
  44. package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/cmake.py +1 -0
  45. package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/compile_commands_json.py +3 -2
  46. package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/dump_dependency_json.py +2 -1
  47. package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/eclipse.py +4 -3
  48. package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/gypd.py +1 -1
  49. package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/gypsh.py +0 -1
  50. package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py +22 -22
  51. package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs.py +84 -89
  52. package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs_test.py +2 -2
  53. package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja.py +10 -12
  54. package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja_test.py +2 -2
  55. package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode.py +6 -6
  56. package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode_test.py +3 -2
  57. package/dist/node_modules/node-gyp/gyp/pylib/gyp/input.py +23 -24
  58. package/dist/node_modules/node-gyp/gyp/pylib/gyp/input_test.py +2 -1
  59. package/dist/node_modules/node-gyp/gyp/pylib/gyp/mac_tool.py +4 -8
  60. package/dist/node_modules/node-gyp/gyp/pylib/gyp/msvs_emulation.py +3 -3
  61. package/dist/node_modules/node-gyp/gyp/pylib/gyp/win_tool.py +1 -1
  62. package/dist/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py +5 -7
  63. package/dist/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation_test.py +2 -1
  64. package/dist/node_modules/node-gyp/gyp/pylib/gyp/xcode_ninja.py +2 -1
  65. package/dist/node_modules/node-gyp/gyp/pylib/gyp/xcodeproj_file.py +13 -15
  66. package/dist/node_modules/node-gyp/gyp/pyproject.toml +2 -6
  67. package/dist/node_modules/node-gyp/lib/build.js +7 -4
  68. package/dist/node_modules/node-gyp/lib/clean.js +1 -1
  69. package/dist/node_modules/node-gyp/lib/install.js +1 -1
  70. package/dist/node_modules/node-gyp/lib/remove.js +1 -1
  71. package/dist/node_modules/node-gyp/package.json +2 -2
  72. package/dist/node_modules/node-gyp/src/win_delay_load_hook.cc +1 -1
  73. package/dist/node_modules/picomatch/LICENSE +21 -0
  74. package/dist/node_modules/picomatch/index.js +17 -0
  75. package/dist/node_modules/picomatch/lib/constants.js +179 -0
  76. package/dist/node_modules/picomatch/lib/parse.js +1085 -0
  77. package/dist/node_modules/picomatch/lib/picomatch.js +341 -0
  78. package/dist/node_modules/picomatch/lib/scan.js +391 -0
  79. package/dist/node_modules/picomatch/lib/utils.js +72 -0
  80. package/dist/node_modules/picomatch/package.json +83 -0
  81. package/dist/node_modules/picomatch/posix.js +3 -0
  82. package/dist/node_modules/tar/node_modules/yallist/package.json +68 -0
  83. package/dist/node_modules/tinyglobby/LICENSE +21 -0
  84. package/dist/node_modules/tinyglobby/dist/index.d.mts +26 -0
  85. package/dist/node_modules/tinyglobby/dist/index.js +333 -0
  86. package/dist/node_modules/tinyglobby/dist/index.mjs +294 -0
  87. package/dist/node_modules/tinyglobby/package.json +65 -0
  88. package/dist/node_modules/yallist/package.json +12 -51
  89. package/dist/pnpm.cjs +74739 -74575
  90. package/dist/reflink.darwin-x64-3G3H6IW4.node +0 -0
  91. package/dist/{reflink.win32-arm64-msvc-M6OJ2KCS.node → reflink.win32-arm64-msvc-Q6BARPPB.node} +0 -0
  92. package/dist/{reflink.win32-x64-msvc-DJL7XIIH.node → reflink.win32-x64-msvc-J2TZHRQI.node} +0 -0
  93. package/dist/worker.js +19 -7
  94. package/package.json +2 -2
  95. package/dist/node_modules/minipass-flush/node_modules/yallist/package.json +0 -29
  96. package/dist/node_modules/minipass-pipeline/node_modules/yallist/LICENSE +0 -15
  97. package/dist/node_modules/minipass-pipeline/node_modules/yallist/iterator.js +0 -8
  98. package/dist/node_modules/minipass-pipeline/node_modules/yallist/package.json +0 -29
  99. package/dist/node_modules/minipass-pipeline/node_modules/yallist/yallist.js +0 -426
  100. package/dist/node_modules/minipass-sized/node_modules/yallist/LICENSE +0 -15
  101. package/dist/node_modules/minipass-sized/node_modules/yallist/iterator.js +0 -8
  102. package/dist/node_modules/minipass-sized/node_modules/yallist/package.json +0 -29
  103. package/dist/node_modules/minipass-sized/node_modules/yallist/yallist.js +0 -426
  104. /package/dist/node_modules/{yallist → tar/node_modules/yallist}/dist/commonjs/index.d.ts.map +0 -0
  105. /package/dist/node_modules/{yallist → tar/node_modules/yallist}/dist/commonjs/index.js +0 -0
  106. /package/dist/node_modules/{yallist → tar/node_modules/yallist}/dist/commonjs/index.js.map +0 -0
  107. /package/dist/node_modules/{yallist → tar/node_modules/yallist}/dist/commonjs/package.json +0 -0
  108. /package/dist/node_modules/{yallist → tar/node_modules/yallist}/dist/esm/index.d.ts.map +0 -0
  109. /package/dist/node_modules/{yallist → tar/node_modules/yallist}/dist/esm/index.js +0 -0
  110. /package/dist/node_modules/{yallist → tar/node_modules/yallist}/dist/esm/index.js.map +0 -0
  111. /package/dist/node_modules/{yallist → tar/node_modules/yallist}/dist/esm/package.json +0 -0
  112. /package/dist/node_modules/{minipass-flush/node_modules/yallist → yallist}/LICENSE +0 -0
  113. /package/dist/node_modules/{minipass-flush/node_modules/yallist → yallist}/iterator.js +0 -0
  114. /package/dist/node_modules/{minipass-flush/node_modules/yallist → yallist}/yallist.js +0 -0
@@ -11,14 +11,14 @@ hoistedLocations:
11
11
  - node_modules/@npmcli/fs
12
12
  '@pkgjs/parseargs@0.11.0':
13
13
  - node_modules/@pkgjs/parseargs
14
- abbrev@3.0.0:
14
+ abbrev@3.0.1:
15
15
  - node_modules/abbrev
16
16
  agent-base@7.1.3:
17
17
  - node_modules/agent-base
18
18
  ansi-regex@5.0.1:
19
- - node_modules/string-width-cjs/node_modules/ansi-regex
20
- - node_modules/wrap-ansi-cjs/node_modules/ansi-regex
21
19
  - node_modules/strip-ansi-cjs/node_modules/ansi-regex
20
+ - node_modules/wrap-ansi-cjs/node_modules/ansi-regex
21
+ - node_modules/string-width-cjs/node_modules/ansi-regex
22
22
  ansi-regex@6.1.0:
23
23
  - node_modules/ansi-regex
24
24
  ansi-styles@4.3.0:
@@ -44,8 +44,8 @@ hoistedLocations:
44
44
  eastasianwidth@0.2.0:
45
45
  - node_modules/eastasianwidth
46
46
  emoji-regex@8.0.0:
47
- - node_modules/string-width-cjs/node_modules/emoji-regex
48
47
  - node_modules/wrap-ansi-cjs/node_modules/emoji-regex
48
+ - node_modules/string-width-cjs/node_modules/emoji-regex
49
49
  emoji-regex@9.2.2:
50
50
  - node_modules/emoji-regex
51
51
  encoding@0.1.13:
@@ -56,6 +56,8 @@ hoistedLocations:
56
56
  - node_modules/err-code
57
57
  exponential-backoff@3.1.2:
58
58
  - node_modules/exponential-backoff
59
+ fdir@6.4.3(picomatch@4.0.2):
60
+ - node_modules/fdir
59
61
  foreground-child@3.3.1:
60
62
  - node_modules/foreground-child
61
63
  fs-minipass@3.0.3:
@@ -103,8 +105,8 @@ hoistedLocations:
103
105
  minipass-sized@1.0.3:
104
106
  - node_modules/minipass-sized
105
107
  minipass@3.3.6:
106
- - node_modules/minipass-pipeline/node_modules/minipass
107
108
  - node_modules/minipass-flush/node_modules/minipass
109
+ - node_modules/minipass-pipeline/node_modules/minipass
108
110
  - node_modules/minipass-sized/node_modules/minipass
109
111
  minipass@7.1.2:
110
112
  - node_modules/minipass
@@ -116,7 +118,7 @@ hoistedLocations:
116
118
  - node_modules/ms
117
119
  negotiator@1.0.0:
118
120
  - node_modules/negotiator
119
- node-gyp@11.1.0:
121
+ node-gyp@11.2.0:
120
122
  - node_modules/node-gyp
121
123
  nopt@8.1.0:
122
124
  - node_modules/nopt
@@ -128,6 +130,8 @@ hoistedLocations:
128
130
  - node_modules/path-key
129
131
  path-scurry@1.11.1:
130
132
  - node_modules/path-scurry
133
+ picomatch@4.0.2:
134
+ - node_modules/picomatch
131
135
  proc-log@5.0.0:
132
136
  - node_modules/proc-log
133
137
  promise-retry@2.0.1:
@@ -160,13 +164,15 @@ hoistedLocations:
160
164
  string-width@5.1.2:
161
165
  - node_modules/string-width
162
166
  strip-ansi@6.0.1:
163
- - node_modules/string-width-cjs/node_modules/strip-ansi
164
167
  - node_modules/wrap-ansi-cjs/node_modules/strip-ansi
168
+ - node_modules/string-width-cjs/node_modules/strip-ansi
165
169
  - node_modules/strip-ansi-cjs
166
170
  strip-ansi@7.1.0:
167
171
  - node_modules/strip-ansi
168
172
  tar@7.4.3:
169
173
  - node_modules/tar
174
+ tinyglobby@0.2.12:
175
+ - node_modules/tinyglobby
170
176
  unique-filename@4.0.0:
171
177
  - node_modules/unique-filename
172
178
  unique-slug@5.0.0:
@@ -182,11 +188,9 @@ hoistedLocations:
182
188
  wrap-ansi@8.1.0:
183
189
  - node_modules/wrap-ansi
184
190
  yallist@4.0.0:
185
- - node_modules/minipass-pipeline/node_modules/yallist
186
- - node_modules/minipass-flush/node_modules/yallist
187
- - node_modules/minipass-sized/node_modules/yallist
188
- yallist@5.0.0:
189
191
  - node_modules/yallist
192
+ yallist@5.0.0:
193
+ - node_modules/tar/node_modules/yallist
190
194
  included:
191
195
  dependencies: true
192
196
  devDependencies: true
@@ -196,7 +200,7 @@ layoutVersion: 5
196
200
  nodeLinker: hoisted
197
201
  packageManager: pnpm@10.6.5
198
202
  pendingBuilds: []
199
- prunedAt: Tue, 01 Apr 2025 12:11:46 GMT
203
+ prunedAt: Mon, 14 Apr 2025 11:13:19 GMT
200
204
  publicHoistPattern: []
201
205
  registries:
202
206
  default: https://registry.npmjs.org/
@@ -43,7 +43,7 @@ importers:
43
43
  optionalDependencies:
44
44
  node-gyp:
45
45
  specifier: ^11.1.0
46
- version: 11.1.0
46
+ version: 11.2.0
47
47
 
48
48
  packages:
49
49
 
@@ -67,8 +67,8 @@ packages:
67
67
  resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==}
68
68
  engines: {node: '>=14'}
69
69
 
70
- abbrev@3.0.0:
71
- resolution: {integrity: sha512-+/kfrslGQ7TNV2ecmQwMJj/B65g5KVq1/L3SGVZ3tCYGqlzFuFCGBZJtMP99wH3NpEUyAjn0zPdPUg0D+DwrOA==}
70
+ abbrev@3.0.1:
71
+ resolution: {integrity: sha512-AO2ac6pjRB3SJmGJo+v5/aK6Omggp6fsLrs6wN9bd35ulu4cCwaAU9+7ZhXjeqHVkaHThLuzH0nZr0YpCDhygg==}
72
72
  engines: {node: ^18.17.0 || >=20.5.0}
73
73
 
74
74
  agent-base@7.1.3:
@@ -147,6 +147,14 @@ packages:
147
147
  exponential-backoff@3.1.2:
148
148
  resolution: {integrity: sha512-8QxYTVXUkuy7fIIoitQkPwGonB8F3Zj8eEO8Sqg9Zv/bkI7RJAzowee4gr81Hak/dUTpA2Z7VfQgoijjPNlUZA==}
149
149
 
150
+ fdir@6.4.3:
151
+ resolution: {integrity: sha512-PMXmW2y1hDDfTSRc9gaXIuCCRpuoz3Kaz8cUelp3smouvfT632ozg2vrT6lJsHKKOF59YLbOGfAWGUcKEfRMQw==}
152
+ peerDependencies:
153
+ picomatch: ^3 || ^4
154
+ peerDependenciesMeta:
155
+ picomatch:
156
+ optional: true
157
+
150
158
  foreground-child@3.3.1:
151
159
  resolution: {integrity: sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==}
152
160
  engines: {node: '>=14'}
@@ -257,8 +265,8 @@ packages:
257
265
  resolution: {integrity: sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg==}
258
266
  engines: {node: '>= 0.6'}
259
267
 
260
- node-gyp@11.1.0:
261
- resolution: {integrity: sha512-/+7TuHKnBpnMvUQnsYEb0JOozDZqarQbfNuSGLXIjhStMT0fbw7IdSqWgopOP5xhRZE+lsbIvAHcekddruPZgQ==}
268
+ node-gyp@11.2.0:
269
+ resolution: {integrity: sha512-T0S1zqskVUSxcsSTkAsLc7xCycrRYmtDHadDinzocrThjyQCn5kMlEBSj6H4qDbgsIOSLmmlRIeb0lZXj+UArA==}
262
270
  engines: {node: ^18.17.0 || >=20.5.0}
263
271
  hasBin: true
264
272
 
@@ -282,6 +290,10 @@ packages:
282
290
  resolution: {integrity: sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==}
283
291
  engines: {node: '>=16 || 14 >=14.18'}
284
292
 
293
+ picomatch@4.0.2:
294
+ resolution: {integrity: sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==}
295
+ engines: {node: '>=12'}
296
+
285
297
  proc-log@5.0.0:
286
298
  resolution: {integrity: sha512-Azwzvl90HaF0aCz1JrDdXQykFakSSNPaPoiZ9fm5qJIMHioDZEi7OAdRwSm6rSoPtY3Qutnm3L7ogmg3dc+wbQ==}
287
299
  engines: {node: ^18.17.0 || >=20.5.0}
@@ -353,6 +365,10 @@ packages:
353
365
  resolution: {integrity: sha512-5S7Va8hKfV7W5U6g3aYxXmlPoZVAwUMy9AOKyF2fVuZa2UD3qZjg578OrLRt8PcNN1PleVaL/5/yYATNL0ICUw==}
354
366
  engines: {node: '>=18'}
355
367
 
368
+ tinyglobby@0.2.12:
369
+ resolution: {integrity: sha512-qkf4trmKSIiMTs/E63cxH+ojC2unam7rJ0WrauAzpT3ECNTxGRMlaXxVbfxMUC/w0LaYk6jQ4y/nGR9uBO3tww==}
370
+ engines: {node: '>=12.0.0'}
371
+
356
372
  unique-filename@4.0.0:
357
373
  resolution: {integrity: sha512-XSnEewXmQ+veP7xX2dS5Q4yZAvO40cBN2MWkJ7D/6sW4Dg6wYBNwM1Vrnz1FhH5AdeLIlUXRI9e28z1YZi71NQ==}
358
374
  engines: {node: ^18.17.0 || >=20.5.0}
@@ -425,7 +441,7 @@ snapshots:
425
441
  '@pkgjs/parseargs@0.11.0':
426
442
  optional: true
427
443
 
428
- abbrev@3.0.0:
444
+ abbrev@3.0.1:
429
445
  optional: true
430
446
 
431
447
  agent-base@7.1.3:
@@ -515,6 +531,11 @@ snapshots:
515
531
  exponential-backoff@3.1.2:
516
532
  optional: true
517
533
 
534
+ fdir@6.4.3(picomatch@4.0.2):
535
+ optionalDependencies:
536
+ picomatch: 4.0.2
537
+ optional: true
538
+
518
539
  foreground-child@3.3.1:
519
540
  dependencies:
520
541
  cross-spawn: 7.0.6
@@ -667,17 +688,17 @@ snapshots:
667
688
  negotiator@1.0.0:
668
689
  optional: true
669
690
 
670
- node-gyp@11.1.0:
691
+ node-gyp@11.2.0:
671
692
  dependencies:
672
693
  env-paths: 2.2.1
673
694
  exponential-backoff: 3.1.2
674
- glob: 10.4.5
675
695
  graceful-fs: 4.2.11
676
696
  make-fetch-happen: 14.0.3
677
697
  nopt: 8.1.0
678
698
  proc-log: 5.0.0
679
699
  semver: 7.7.1
680
700
  tar: 7.4.3
701
+ tinyglobby: 0.2.12
681
702
  which: 5.0.0
682
703
  transitivePeerDependencies:
683
704
  - supports-color
@@ -685,7 +706,7 @@ snapshots:
685
706
 
686
707
  nopt@8.1.0:
687
708
  dependencies:
688
- abbrev: 3.0.0
709
+ abbrev: 3.0.1
689
710
  optional: true
690
711
 
691
712
  p-map@7.0.3:
@@ -703,6 +724,9 @@ snapshots:
703
724
  minipass: 7.1.2
704
725
  optional: true
705
726
 
727
+ picomatch@4.0.2:
728
+ optional: true
729
+
706
730
  proc-log@5.0.0:
707
731
  optional: true
708
732
 
@@ -792,6 +816,12 @@ snapshots:
792
816
  yallist: 5.0.0
793
817
  optional: true
794
818
 
819
+ tinyglobby@0.2.12:
820
+ dependencies:
821
+ fdir: 6.4.3(picomatch@4.0.2)
822
+ picomatch: 4.0.2
823
+ optional: true
824
+
795
825
  unique-filename@4.0.0:
796
826
  dependencies:
797
827
  unique-slug: 5.0.0
@@ -1,5 +1,5 @@
1
1
  {
2
- "lastValidatedTimestamp": 1743509506100,
2
+ "lastValidatedTimestamp": 1744629199685,
3
3
  "projects": {},
4
4
  "pnpmfileExists": false,
5
5
  "settings": {
@@ -1,7 +1,10 @@
1
1
  module.exports = abbrev
2
2
 
3
3
  function abbrev (...args) {
4
- let list = args.length === 1 || Array.isArray(args[0]) ? args[0] : args
4
+ let list = args
5
+ if (args.length === 1 && (Array.isArray(args[0]) || typeof args[0] === 'string')) {
6
+ list = [].concat(args[0])
7
+ }
5
8
 
6
9
  for (let i = 0, l = list.length; i < l; i++) {
7
10
  list[i] = typeof list[i] === 'string' ? list[i] : String(list[i])
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "abbrev",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "Like ruby's abbrev module, but in js",
5
5
  "author": "GitHub Inc.",
6
6
  "main": "lib/index.js",
@@ -21,7 +21,7 @@
21
21
  "license": "ISC",
22
22
  "devDependencies": {
23
23
  "@npmcli/eslint-config": "^5.0.0",
24
- "@npmcli/template-oss": "4.23.3",
24
+ "@npmcli/template-oss": "4.24.3",
25
25
  "tap": "^16.3.0"
26
26
  },
27
27
  "tap": {
@@ -39,7 +39,7 @@
39
39
  },
40
40
  "templateOSS": {
41
41
  "//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
42
- "version": "4.23.3",
42
+ "version": "4.24.3",
43
43
  "publish": true
44
44
  }
45
45
  }
@@ -0,0 +1,7 @@
1
+ Copyright 2023 Abdullah Atta
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
+
5
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
+
7
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.callback = exports.promise = void 0;
4
+ const walker_1 = require("./walker");
5
+ function promise(root, options) {
6
+ return new Promise((resolve, reject) => {
7
+ callback(root, options, (err, output) => {
8
+ if (err)
9
+ return reject(err);
10
+ resolve(output);
11
+ });
12
+ });
13
+ }
14
+ exports.promise = promise;
15
+ function callback(root, options, callback) {
16
+ let walker = new walker_1.Walker(root, options, callback);
17
+ walker.start();
18
+ }
19
+ exports.callback = callback;
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Counter = void 0;
4
+ class Counter {
5
+ _files = 0;
6
+ _directories = 0;
7
+ set files(num) {
8
+ this._files = num;
9
+ }
10
+ get files() {
11
+ return this._files;
12
+ }
13
+ set directories(num) {
14
+ this._directories = num;
15
+ }
16
+ get directories() {
17
+ return this._directories;
18
+ }
19
+ /**
20
+ * @deprecated use `directories` instead
21
+ */
22
+ /* c8 ignore next 3 */
23
+ get dirs() {
24
+ return this._directories;
25
+ }
26
+ }
27
+ exports.Counter = Counter;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.build = void 0;
4
+ const getArray = (paths) => {
5
+ return paths;
6
+ };
7
+ const getArrayGroup = () => {
8
+ return [""].slice(0, 0);
9
+ };
10
+ function build(options) {
11
+ return options.group ? getArrayGroup : getArray;
12
+ }
13
+ exports.build = build;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.build = void 0;
4
+ const groupFiles = (groups, directory, files) => {
5
+ groups.push({ directory, files, dir: directory });
6
+ };
7
+ const empty = () => { };
8
+ function build(options) {
9
+ return options.group ? groupFiles : empty;
10
+ }
11
+ exports.build = build;
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.build = void 0;
4
+ const onlyCountsSync = (state) => {
5
+ return state.counts;
6
+ };
7
+ const groupsSync = (state) => {
8
+ return state.groups;
9
+ };
10
+ const defaultSync = (state) => {
11
+ return state.paths;
12
+ };
13
+ const limitFilesSync = (state) => {
14
+ return state.paths.slice(0, state.options.maxFiles);
15
+ };
16
+ const onlyCountsAsync = (state, error, callback) => {
17
+ report(error, callback, state.counts, state.options.suppressErrors);
18
+ return null;
19
+ };
20
+ const defaultAsync = (state, error, callback) => {
21
+ report(error, callback, state.paths, state.options.suppressErrors);
22
+ return null;
23
+ };
24
+ const limitFilesAsync = (state, error, callback) => {
25
+ report(error, callback, state.paths.slice(0, state.options.maxFiles), state.options.suppressErrors);
26
+ return null;
27
+ };
28
+ const groupsAsync = (state, error, callback) => {
29
+ report(error, callback, state.groups, state.options.suppressErrors);
30
+ return null;
31
+ };
32
+ function report(error, callback, output, suppressErrors) {
33
+ if (error && !suppressErrors)
34
+ callback(error, output);
35
+ else
36
+ callback(null, output);
37
+ }
38
+ function build(options, isSynchronous) {
39
+ const { onlyCounts, group, maxFiles } = options;
40
+ if (onlyCounts)
41
+ return isSynchronous
42
+ ? onlyCountsSync
43
+ : onlyCountsAsync;
44
+ else if (group)
45
+ return isSynchronous
46
+ ? groupsSync
47
+ : groupsAsync;
48
+ else if (maxFiles)
49
+ return isSynchronous
50
+ ? limitFilesSync
51
+ : limitFilesAsync;
52
+ else
53
+ return isSynchronous
54
+ ? defaultSync
55
+ : defaultAsync;
56
+ }
57
+ exports.build = build;
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isRecursive = exports.isRecursiveAsync = void 0;
4
+ const path_1 = require("path");
5
+ const fs_1 = require("fs");
6
+ const isRecursiveAsync = (state, path, resolved, callback) => {
7
+ if (state.options.useRealPaths)
8
+ return callback(state.visited.has(resolved + state.options.pathSeparator));
9
+ let parent = (0, path_1.dirname)(path);
10
+ if (parent + state.options.pathSeparator === state.root || parent === path)
11
+ return callback(false);
12
+ if (state.symlinks.get(parent) === resolved)
13
+ return callback(true);
14
+ (0, fs_1.readlink)(parent, (error, resolvedParent) => {
15
+ if (error)
16
+ return (0, exports.isRecursiveAsync)(state, parent, resolved, callback);
17
+ callback(resolvedParent === resolved);
18
+ });
19
+ };
20
+ exports.isRecursiveAsync = isRecursiveAsync;
21
+ function isRecursive(state, path, resolved) {
22
+ if (state.options.useRealPaths)
23
+ return state.visited.has(resolved + state.options.pathSeparator);
24
+ let parent = (0, path_1.dirname)(path);
25
+ if (parent + state.options.pathSeparator === state.root || parent === path)
26
+ return false;
27
+ try {
28
+ const resolvedParent = state.symlinks.get(parent) || (0, fs_1.readlinkSync)(parent);
29
+ return resolvedParent === resolved;
30
+ }
31
+ catch (e) {
32
+ return isRecursive(state, parent, resolved);
33
+ }
34
+ }
35
+ exports.isRecursive = isRecursive;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.build = exports.joinDirectoryPath = exports.joinPathWithBasePath = void 0;
4
+ const path_1 = require("path");
5
+ const utils_1 = require("../../utils");
6
+ function joinPathWithBasePath(filename, directoryPath) {
7
+ return directoryPath + filename;
8
+ }
9
+ exports.joinPathWithBasePath = joinPathWithBasePath;
10
+ function joinPathWithRelativePath(root, options) {
11
+ return function (filename, directoryPath) {
12
+ const sameRoot = directoryPath.startsWith(root);
13
+ if (sameRoot)
14
+ return directoryPath.replace(root, "") + filename;
15
+ else
16
+ return ((0, utils_1.convertSlashes)((0, path_1.relative)(root, directoryPath), options.pathSeparator) +
17
+ options.pathSeparator +
18
+ filename);
19
+ };
20
+ }
21
+ function joinPath(filename) {
22
+ return filename;
23
+ }
24
+ function joinDirectoryPath(filename, directoryPath, separator) {
25
+ return directoryPath + filename + separator;
26
+ }
27
+ exports.joinDirectoryPath = joinDirectoryPath;
28
+ function build(root, options) {
29
+ const { relativePaths, includeBasePath } = options;
30
+ return relativePaths && root
31
+ ? joinPathWithRelativePath(root, options)
32
+ : includeBasePath
33
+ ? joinPathWithBasePath
34
+ : joinPath;
35
+ }
36
+ exports.build = build;
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.build = void 0;
4
+ function pushDirectoryWithRelativePath(root) {
5
+ return function (directoryPath, paths) {
6
+ paths.push(directoryPath.substring(root.length) || ".");
7
+ };
8
+ }
9
+ function pushDirectoryFilterWithRelativePath(root) {
10
+ return function (directoryPath, paths, filters) {
11
+ const relativePath = directoryPath.substring(root.length) || ".";
12
+ if (filters.every((filter) => filter(relativePath, true))) {
13
+ paths.push(relativePath);
14
+ }
15
+ };
16
+ }
17
+ const pushDirectory = (directoryPath, paths) => {
18
+ paths.push(directoryPath || ".");
19
+ };
20
+ const pushDirectoryFilter = (directoryPath, paths, filters) => {
21
+ const path = directoryPath || ".";
22
+ if (filters.every((filter) => filter(path, true))) {
23
+ paths.push(path);
24
+ }
25
+ };
26
+ const empty = () => { };
27
+ function build(root, options) {
28
+ const { includeDirs, filters, relativePaths } = options;
29
+ if (!includeDirs)
30
+ return empty;
31
+ if (relativePaths)
32
+ return filters && filters.length
33
+ ? pushDirectoryFilterWithRelativePath(root)
34
+ : pushDirectoryWithRelativePath(root);
35
+ return filters && filters.length ? pushDirectoryFilter : pushDirectory;
36
+ }
37
+ exports.build = build;
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.build = void 0;
4
+ const pushFileFilterAndCount = (filename, _paths, counts, filters) => {
5
+ if (filters.every((filter) => filter(filename, false)))
6
+ counts.files++;
7
+ };
8
+ const pushFileFilter = (filename, paths, _counts, filters) => {
9
+ if (filters.every((filter) => filter(filename, false)))
10
+ paths.push(filename);
11
+ };
12
+ const pushFileCount = (_filename, _paths, counts, _filters) => {
13
+ counts.files++;
14
+ };
15
+ const pushFile = (filename, paths) => {
16
+ paths.push(filename);
17
+ };
18
+ const empty = () => { };
19
+ function build(options) {
20
+ const { excludeFiles, filters, onlyCounts } = options;
21
+ if (excludeFiles)
22
+ return empty;
23
+ if (filters && filters.length) {
24
+ return onlyCounts ? pushFileFilterAndCount : pushFileFilter;
25
+ }
26
+ else if (onlyCounts) {
27
+ return pushFileCount;
28
+ }
29
+ else {
30
+ return pushFile;
31
+ }
32
+ }
33
+ exports.build = build;
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.build = void 0;
7
+ const fs_1 = __importDefault(require("fs"));
8
+ const path_1 = require("path");
9
+ const resolveSymlinksAsync = function (path, state, callback) {
10
+ const { queue, options: { suppressErrors }, } = state;
11
+ queue.enqueue();
12
+ fs_1.default.realpath(path, (error, resolvedPath) => {
13
+ if (error)
14
+ return queue.dequeue(suppressErrors ? null : error, state);
15
+ fs_1.default.stat(resolvedPath, (error, stat) => {
16
+ if (error)
17
+ return queue.dequeue(suppressErrors ? null : error, state);
18
+ if (stat.isDirectory() && isRecursive(path, resolvedPath, state))
19
+ return queue.dequeue(null, state);
20
+ callback(stat, resolvedPath);
21
+ queue.dequeue(null, state);
22
+ });
23
+ });
24
+ };
25
+ const resolveSymlinks = function (path, state, callback) {
26
+ const { queue, options: { suppressErrors }, } = state;
27
+ queue.enqueue();
28
+ try {
29
+ const resolvedPath = fs_1.default.realpathSync(path);
30
+ const stat = fs_1.default.statSync(resolvedPath);
31
+ if (stat.isDirectory() && isRecursive(path, resolvedPath, state))
32
+ return;
33
+ callback(stat, resolvedPath);
34
+ }
35
+ catch (e) {
36
+ if (!suppressErrors)
37
+ throw e;
38
+ }
39
+ };
40
+ function build(options, isSynchronous) {
41
+ if (!options.resolveSymlinks || options.excludeSymlinks)
42
+ return null;
43
+ return isSynchronous ? resolveSymlinks : resolveSymlinksAsync;
44
+ }
45
+ exports.build = build;
46
+ function isRecursive(path, resolved, state) {
47
+ if (state.options.useRealPaths)
48
+ return isRecursiveUsingRealPaths(resolved, state);
49
+ let parent = (0, path_1.dirname)(path);
50
+ let depth = 1;
51
+ while (parent !== state.root && depth < 2) {
52
+ const resolvedPath = state.symlinks.get(parent);
53
+ const isSameRoot = !!resolvedPath &&
54
+ (resolvedPath === resolved ||
55
+ resolvedPath.startsWith(resolved) ||
56
+ resolved.startsWith(resolvedPath));
57
+ if (isSameRoot)
58
+ depth++;
59
+ else
60
+ parent = (0, path_1.dirname)(parent);
61
+ }
62
+ state.symlinks.set(path, resolved);
63
+ return depth > 1;
64
+ }
65
+ function isRecursiveUsingRealPaths(resolved, state) {
66
+ return state.visited.includes(resolved + state.options.pathSeparator);
67
+ }
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.build = void 0;
7
+ const fs_1 = __importDefault(require("fs"));
8
+ const readdirOpts = { withFileTypes: true };
9
+ const walkAsync = (state, crawlPath, directoryPath, currentDepth, callback) => {
10
+ if (currentDepth < 0)
11
+ return state.queue.dequeue(null, state);
12
+ state.visited.push(crawlPath);
13
+ state.counts.directories++;
14
+ state.queue.enqueue();
15
+ // Perf: Node >= 10 introduced withFileTypes that helps us
16
+ // skip an extra fs.stat call.
17
+ fs_1.default.readdir(crawlPath || ".", readdirOpts, (error, entries = []) => {
18
+ callback(entries, directoryPath, currentDepth);
19
+ state.queue.dequeue(state.options.suppressErrors ? null : error, state);
20
+ });
21
+ };
22
+ const walkSync = (state, crawlPath, directoryPath, currentDepth, callback) => {
23
+ if (currentDepth < 0)
24
+ return;
25
+ state.visited.push(crawlPath);
26
+ state.counts.directories++;
27
+ let entries = [];
28
+ try {
29
+ entries = fs_1.default.readdirSync(crawlPath || ".", readdirOpts);
30
+ }
31
+ catch (e) {
32
+ if (!state.options.suppressErrors)
33
+ throw e;
34
+ }
35
+ callback(entries, directoryPath, currentDepth);
36
+ };
37
+ function build(isSynchronous) {
38
+ return isSynchronous ? walkSync : walkAsync;
39
+ }
40
+ exports.build = build;