pnpm 8.6.2 → 8.6.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 (418) hide show
  1. package/dist/node_modules/.modules.yaml +81 -24
  2. package/dist/node_modules/.pnpm/lock.yaml +235 -91
  3. package/dist/node_modules/@isaacs/cliui/LICENSE.txt +14 -0
  4. package/dist/node_modules/@isaacs/cliui/build/index.cjs +317 -0
  5. package/dist/node_modules/@isaacs/cliui/build/index.d.cts +43 -0
  6. package/dist/node_modules/@isaacs/cliui/build/lib/index.js +302 -0
  7. package/dist/node_modules/@isaacs/cliui/index.mjs +14 -0
  8. package/dist/node_modules/@isaacs/cliui/node_modules/string-width/index.js +54 -0
  9. package/dist/node_modules/@isaacs/cliui/node_modules/string-width/license +9 -0
  10. package/dist/node_modules/@isaacs/cliui/node_modules/string-width/package.json +59 -0
  11. package/dist/node_modules/@isaacs/cliui/package.json +86 -0
  12. package/dist/node_modules/@npmcli/fs/lib/cp/index.js +1 -1
  13. package/dist/node_modules/@npmcli/fs/lib/cp/polyfill.js +2 -2
  14. package/dist/node_modules/@npmcli/fs/lib/index.js +11 -10
  15. package/dist/node_modules/@npmcli/fs/lib/move-file.js +78 -0
  16. package/dist/node_modules/@npmcli/fs/lib/readdir-scoped.js +20 -0
  17. package/dist/node_modules/@npmcli/fs/lib/with-temp-dir.js +4 -6
  18. package/dist/node_modules/@npmcli/fs/package.json +11 -9
  19. package/dist/node_modules/@pkgjs/parseargs/LICENSE +201 -0
  20. package/dist/node_modules/@pkgjs/parseargs/index.js +396 -0
  21. package/dist/node_modules/@pkgjs/parseargs/internal/errors.js +47 -0
  22. package/dist/node_modules/@pkgjs/parseargs/internal/primordials.js +393 -0
  23. package/dist/node_modules/@pkgjs/parseargs/internal/util.js +14 -0
  24. package/dist/node_modules/@pkgjs/parseargs/internal/validators.js +89 -0
  25. package/dist/node_modules/@pkgjs/parseargs/package.json +36 -0
  26. package/dist/node_modules/@pkgjs/parseargs/utils.js +198 -0
  27. package/dist/node_modules/ansi-regex/index.js +3 -5
  28. package/dist/node_modules/ansi-regex/license +1 -1
  29. package/dist/node_modules/ansi-regex/package.json +9 -6
  30. package/dist/node_modules/ansi-styles/index.js +223 -0
  31. package/dist/node_modules/ansi-styles/license +9 -0
  32. package/dist/node_modules/ansi-styles/package.json +54 -0
  33. package/dist/node_modules/cacache/lib/content/read.js +1 -76
  34. package/dist/node_modules/cacache/lib/content/rm.js +2 -4
  35. package/dist/node_modules/cacache/lib/content/write.js +40 -24
  36. package/dist/node_modules/cacache/lib/entry-index.js +25 -99
  37. package/dist/node_modules/cacache/lib/get.js +1 -56
  38. package/dist/node_modules/cacache/lib/index.js +0 -3
  39. package/dist/node_modules/cacache/lib/rm.js +5 -5
  40. package/dist/node_modules/cacache/lib/util/glob.js +7 -0
  41. package/dist/node_modules/cacache/lib/util/tmp.js +3 -10
  42. package/dist/node_modules/cacache/lib/verify.js +28 -28
  43. package/dist/node_modules/cacache/node_modules/glob/LICENSE +1 -1
  44. package/dist/node_modules/cacache/node_modules/glob/dist/cjs/package.json +4 -0
  45. package/dist/node_modules/cacache/node_modules/glob/dist/cjs/src/bin.d.ts.map +1 -0
  46. package/dist/node_modules/cacache/node_modules/glob/dist/cjs/src/bin.js +270 -0
  47. package/dist/node_modules/cacache/node_modules/glob/dist/cjs/src/bin.js.map +1 -0
  48. package/dist/node_modules/cacache/node_modules/glob/dist/cjs/src/glob.d.ts.map +1 -0
  49. package/dist/node_modules/cacache/node_modules/glob/dist/cjs/src/glob.js +234 -0
  50. package/dist/node_modules/cacache/node_modules/glob/dist/cjs/src/glob.js.map +1 -0
  51. package/dist/node_modules/cacache/node_modules/glob/dist/cjs/src/has-magic.d.ts.map +1 -0
  52. package/dist/node_modules/cacache/node_modules/glob/dist/cjs/src/has-magic.js +27 -0
  53. package/dist/node_modules/cacache/node_modules/glob/dist/cjs/src/has-magic.js.map +1 -0
  54. package/dist/node_modules/cacache/node_modules/glob/dist/cjs/src/ignore.d.ts.map +1 -0
  55. package/dist/node_modules/cacache/node_modules/glob/dist/cjs/src/ignore.js +103 -0
  56. package/dist/node_modules/cacache/node_modules/glob/dist/cjs/src/ignore.js.map +1 -0
  57. package/dist/node_modules/cacache/node_modules/glob/dist/cjs/src/index.d.ts.map +1 -0
  58. package/dist/node_modules/cacache/node_modules/glob/dist/cjs/src/index.js +68 -0
  59. package/dist/node_modules/cacache/node_modules/glob/dist/cjs/src/index.js.map +1 -0
  60. package/dist/node_modules/cacache/node_modules/glob/dist/cjs/src/pattern.d.ts.map +1 -0
  61. package/dist/node_modules/cacache/node_modules/glob/dist/cjs/src/pattern.js +219 -0
  62. package/dist/node_modules/cacache/node_modules/glob/dist/cjs/src/pattern.js.map +1 -0
  63. package/dist/node_modules/cacache/node_modules/glob/dist/cjs/src/processor.d.ts.map +1 -0
  64. package/dist/node_modules/cacache/node_modules/glob/dist/cjs/src/processor.js +309 -0
  65. package/dist/node_modules/cacache/node_modules/glob/dist/cjs/src/processor.js.map +1 -0
  66. package/dist/node_modules/cacache/node_modules/glob/dist/cjs/src/walker.d.ts.map +1 -0
  67. package/dist/node_modules/cacache/node_modules/glob/dist/cjs/src/walker.js +358 -0
  68. package/dist/node_modules/cacache/node_modules/glob/dist/cjs/src/walker.js.map +1 -0
  69. package/dist/node_modules/cacache/node_modules/glob/dist/mjs/glob.d.ts.map +1 -0
  70. package/dist/node_modules/cacache/node_modules/glob/dist/mjs/glob.js +230 -0
  71. package/dist/node_modules/cacache/node_modules/glob/dist/mjs/glob.js.map +1 -0
  72. package/dist/node_modules/cacache/node_modules/glob/dist/mjs/has-magic.d.ts.map +1 -0
  73. package/dist/node_modules/cacache/node_modules/glob/dist/mjs/has-magic.js +23 -0
  74. package/dist/node_modules/cacache/node_modules/glob/dist/mjs/has-magic.js.map +1 -0
  75. package/dist/node_modules/cacache/node_modules/glob/dist/mjs/ignore.d.ts.map +1 -0
  76. package/dist/node_modules/cacache/node_modules/glob/dist/mjs/ignore.js +99 -0
  77. package/dist/node_modules/cacache/node_modules/glob/dist/mjs/ignore.js.map +1 -0
  78. package/dist/node_modules/cacache/node_modules/glob/dist/mjs/index.d.ts.map +1 -0
  79. package/dist/node_modules/cacache/node_modules/glob/dist/mjs/index.js +56 -0
  80. package/dist/node_modules/cacache/node_modules/glob/dist/mjs/index.js.map +1 -0
  81. package/dist/node_modules/cacache/node_modules/glob/dist/mjs/package.json +4 -0
  82. package/dist/node_modules/cacache/node_modules/glob/dist/mjs/pattern.d.ts.map +1 -0
  83. package/dist/node_modules/cacache/node_modules/glob/dist/mjs/pattern.js +215 -0
  84. package/dist/node_modules/cacache/node_modules/glob/dist/mjs/pattern.js.map +1 -0
  85. package/dist/node_modules/cacache/node_modules/glob/dist/mjs/processor.d.ts.map +1 -0
  86. package/dist/node_modules/cacache/node_modules/glob/dist/mjs/processor.js +302 -0
  87. package/dist/node_modules/cacache/node_modules/glob/dist/mjs/processor.js.map +1 -0
  88. package/dist/node_modules/cacache/node_modules/glob/dist/mjs/walker.d.ts.map +1 -0
  89. package/dist/node_modules/cacache/node_modules/glob/dist/mjs/walker.js +352 -0
  90. package/dist/node_modules/cacache/node_modules/glob/dist/mjs/walker.js.map +1 -0
  91. package/dist/node_modules/cacache/node_modules/glob/package.json +78 -35
  92. package/dist/node_modules/cacache/node_modules/minimatch/dist/cjs/assert-valid-pattern.d.ts.map +1 -0
  93. package/dist/node_modules/cacache/node_modules/minimatch/dist/cjs/assert-valid-pattern.js +14 -0
  94. package/dist/node_modules/cacache/node_modules/minimatch/dist/cjs/assert-valid-pattern.js.map +1 -0
  95. package/dist/node_modules/cacache/node_modules/minimatch/dist/cjs/ast.d.ts.map +1 -0
  96. package/dist/node_modules/cacache/node_modules/minimatch/dist/cjs/ast.js +589 -0
  97. package/dist/node_modules/cacache/node_modules/minimatch/dist/cjs/ast.js.map +1 -0
  98. package/dist/node_modules/cacache/node_modules/minimatch/dist/cjs/brace-expressions.d.ts.map +1 -0
  99. package/dist/node_modules/cacache/node_modules/minimatch/dist/cjs/brace-expressions.js +152 -0
  100. package/dist/node_modules/cacache/node_modules/minimatch/dist/cjs/brace-expressions.js.map +1 -0
  101. package/dist/node_modules/cacache/node_modules/minimatch/dist/cjs/escape.d.ts.map +1 -0
  102. package/dist/node_modules/cacache/node_modules/minimatch/dist/cjs/escape.js +22 -0
  103. package/dist/node_modules/cacache/node_modules/minimatch/dist/cjs/escape.js.map +1 -0
  104. package/dist/node_modules/cacache/node_modules/minimatch/dist/cjs/index.d.ts.map +1 -0
  105. package/dist/node_modules/cacache/node_modules/minimatch/dist/cjs/index.js +1011 -0
  106. package/dist/node_modules/cacache/node_modules/minimatch/dist/cjs/index.js.map +1 -0
  107. package/dist/node_modules/cacache/node_modules/minimatch/dist/cjs/package.json +3 -0
  108. package/dist/node_modules/cacache/node_modules/minimatch/dist/cjs/unescape.d.ts.map +1 -0
  109. package/dist/node_modules/cacache/node_modules/minimatch/dist/cjs/unescape.js +24 -0
  110. package/dist/node_modules/cacache/node_modules/minimatch/dist/cjs/unescape.js.map +1 -0
  111. package/dist/node_modules/cacache/node_modules/minimatch/dist/mjs/assert-valid-pattern.d.ts.map +1 -0
  112. package/dist/node_modules/cacache/node_modules/minimatch/dist/mjs/assert-valid-pattern.js +10 -0
  113. package/dist/node_modules/cacache/node_modules/minimatch/dist/mjs/assert-valid-pattern.js.map +1 -0
  114. package/dist/node_modules/cacache/node_modules/minimatch/dist/mjs/ast.d.ts.map +1 -0
  115. package/dist/node_modules/cacache/node_modules/minimatch/dist/mjs/ast.js +585 -0
  116. package/dist/node_modules/cacache/node_modules/minimatch/dist/mjs/ast.js.map +1 -0
  117. package/dist/node_modules/cacache/node_modules/minimatch/dist/mjs/brace-expressions.d.ts.map +1 -0
  118. package/dist/node_modules/cacache/node_modules/minimatch/dist/mjs/brace-expressions.js +148 -0
  119. package/dist/node_modules/cacache/node_modules/minimatch/dist/mjs/brace-expressions.js.map +1 -0
  120. package/dist/node_modules/cacache/node_modules/minimatch/dist/mjs/escape.d.ts.map +1 -0
  121. package/dist/node_modules/cacache/node_modules/minimatch/dist/mjs/escape.js +18 -0
  122. package/dist/node_modules/cacache/node_modules/minimatch/dist/mjs/escape.js.map +1 -0
  123. package/dist/node_modules/cacache/node_modules/minimatch/dist/mjs/index.d.ts.map +1 -0
  124. package/dist/node_modules/cacache/node_modules/minimatch/dist/mjs/index.js +995 -0
  125. package/dist/node_modules/cacache/node_modules/minimatch/dist/mjs/index.js.map +1 -0
  126. package/dist/node_modules/cacache/node_modules/minimatch/dist/mjs/package.json +3 -0
  127. package/dist/node_modules/cacache/node_modules/minimatch/dist/mjs/unescape.d.ts.map +1 -0
  128. package/dist/node_modules/cacache/node_modules/minimatch/dist/mjs/unescape.js +20 -0
  129. package/dist/node_modules/cacache/node_modules/minimatch/dist/mjs/unescape.js.map +1 -0
  130. package/dist/node_modules/cacache/node_modules/minimatch/package.json +66 -15
  131. package/dist/node_modules/cacache/package.json +19 -21
  132. package/dist/node_modules/color-convert/LICENSE +21 -0
  133. package/dist/node_modules/color-convert/conversions.js +839 -0
  134. package/dist/node_modules/color-convert/index.js +81 -0
  135. package/dist/node_modules/color-convert/package.json +48 -0
  136. package/dist/node_modules/color-convert/route.js +97 -0
  137. package/dist/node_modules/color-name/LICENSE +8 -0
  138. package/dist/node_modules/color-name/index.js +152 -0
  139. package/dist/node_modules/color-name/package.json +28 -0
  140. package/dist/node_modules/cross-spawn/LICENSE +21 -0
  141. package/dist/node_modules/cross-spawn/index.js +39 -0
  142. package/dist/node_modules/cross-spawn/lib/enoent.js +59 -0
  143. package/dist/node_modules/cross-spawn/lib/parse.js +91 -0
  144. package/dist/node_modules/cross-spawn/lib/util/escape.js +45 -0
  145. package/dist/node_modules/cross-spawn/lib/util/readShebang.js +23 -0
  146. package/dist/node_modules/cross-spawn/lib/util/resolveCommand.js +52 -0
  147. package/dist/node_modules/cross-spawn/package.json +73 -0
  148. package/dist/node_modules/eastasianwidth/eastasianwidth.js +311 -0
  149. package/dist/node_modules/eastasianwidth/package.json +18 -0
  150. package/dist/node_modules/emoji-regex/RGI_Emoji.js +6 -0
  151. package/dist/node_modules/emoji-regex/es2015/RGI_Emoji.js +6 -0
  152. package/dist/node_modules/emoji-regex/es2015/index.js +1 -1
  153. package/dist/node_modules/emoji-regex/es2015/text.js +1 -1
  154. package/dist/node_modules/emoji-regex/index.js +1 -1
  155. package/dist/node_modules/emoji-regex/package.json +13 -11
  156. package/dist/node_modules/emoji-regex/text.js +1 -1
  157. package/dist/node_modules/exponential-backoff/LICENSE +202 -0
  158. package/dist/node_modules/exponential-backoff/dist/backoff.js +118 -0
  159. package/dist/node_modules/exponential-backoff/dist/backoff.js.map +1 -0
  160. package/dist/node_modules/exponential-backoff/dist/delay/always/always.delay.js +25 -0
  161. package/dist/node_modules/exponential-backoff/dist/delay/always/always.delay.js.map +1 -0
  162. package/dist/node_modules/exponential-backoff/dist/delay/delay.base.js +45 -0
  163. package/dist/node_modules/exponential-backoff/dist/delay/delay.base.js.map +1 -0
  164. package/dist/node_modules/exponential-backoff/dist/delay/delay.factory.js +17 -0
  165. package/dist/node_modules/exponential-backoff/dist/delay/delay.factory.js.map +1 -0
  166. package/dist/node_modules/exponential-backoff/dist/delay/delay.interface.js +3 -0
  167. package/dist/node_modules/exponential-backoff/dist/delay/delay.interface.js.map +1 -0
  168. package/dist/node_modules/exponential-backoff/dist/delay/skip-first/skip-first.delay.js +82 -0
  169. package/dist/node_modules/exponential-backoff/dist/delay/skip-first/skip-first.delay.js.map +1 -0
  170. package/dist/node_modules/exponential-backoff/dist/jitter/full/full.jitter.js +8 -0
  171. package/dist/node_modules/exponential-backoff/dist/jitter/full/full.jitter.js.map +1 -0
  172. package/dist/node_modules/exponential-backoff/dist/jitter/jitter.factory.js +15 -0
  173. package/dist/node_modules/exponential-backoff/dist/jitter/jitter.factory.js.map +1 -0
  174. package/dist/node_modules/exponential-backoff/dist/jitter/no/no.jitter.js +7 -0
  175. package/dist/node_modules/exponential-backoff/dist/jitter/no/no.jitter.js.map +1 -0
  176. package/dist/node_modules/exponential-backoff/dist/options.js +31 -0
  177. package/dist/node_modules/exponential-backoff/dist/options.js.map +1 -0
  178. package/dist/node_modules/exponential-backoff/package.json +61 -0
  179. package/dist/node_modules/{promise-inflight → foreground-child}/LICENSE +5 -4
  180. package/dist/node_modules/foreground-child/dist/cjs/all-signals.d.ts.map +1 -0
  181. package/dist/node_modules/foreground-child/dist/cjs/all-signals.js +58 -0
  182. package/dist/node_modules/foreground-child/dist/cjs/all-signals.js.map +1 -0
  183. package/dist/node_modules/foreground-child/dist/cjs/index.d.ts.map +1 -0
  184. package/dist/node_modules/foreground-child/dist/cjs/index.js +154 -0
  185. package/dist/node_modules/foreground-child/dist/cjs/index.js.map +1 -0
  186. package/dist/node_modules/foreground-child/dist/cjs/package.json +3 -0
  187. package/dist/node_modules/foreground-child/dist/cjs/watchdog.d.ts.map +1 -0
  188. package/dist/node_modules/foreground-child/dist/cjs/watchdog.js +43 -0
  189. package/dist/node_modules/foreground-child/dist/cjs/watchdog.js.map +1 -0
  190. package/dist/node_modules/foreground-child/dist/mjs/all-signals.d.ts.map +1 -0
  191. package/dist/node_modules/foreground-child/dist/mjs/all-signals.js +52 -0
  192. package/dist/node_modules/foreground-child/dist/mjs/all-signals.js.map +1 -0
  193. package/dist/node_modules/foreground-child/dist/mjs/index.d.ts.map +1 -0
  194. package/dist/node_modules/foreground-child/dist/mjs/index.js +146 -0
  195. package/dist/node_modules/foreground-child/dist/mjs/index.js.map +1 -0
  196. package/dist/node_modules/foreground-child/dist/mjs/package.json +3 -0
  197. package/dist/node_modules/foreground-child/dist/mjs/watchdog.d.ts.map +1 -0
  198. package/dist/node_modules/foreground-child/dist/mjs/watchdog.js +39 -0
  199. package/dist/node_modules/foreground-child/dist/mjs/watchdog.js.map +1 -0
  200. package/dist/node_modules/foreground-child/package.json +83 -0
  201. package/dist/node_modules/fs-minipass/lib/index.js +443 -0
  202. package/dist/node_modules/fs-minipass/package.json +28 -13
  203. package/dist/node_modules/gauge/node_modules/ansi-regex/index.js +10 -0
  204. package/dist/node_modules/gauge/node_modules/ansi-regex/license +9 -0
  205. package/dist/node_modules/gauge/node_modules/ansi-regex/package.json +55 -0
  206. package/dist/node_modules/gauge/node_modules/signal-exit/LICENSE.txt +16 -0
  207. package/dist/node_modules/gauge/node_modules/signal-exit/package.json +38 -0
  208. package/dist/node_modules/gauge/node_modules/strip-ansi/index.js +4 -0
  209. package/dist/node_modules/gauge/node_modules/strip-ansi/license +9 -0
  210. package/dist/node_modules/gauge/node_modules/strip-ansi/package.json +54 -0
  211. package/dist/node_modules/jackspeak/dist/cjs/index.d.ts.map +1 -0
  212. package/dist/node_modules/jackspeak/dist/cjs/index.js +723 -0
  213. package/dist/node_modules/jackspeak/dist/cjs/index.js.map +1 -0
  214. package/dist/node_modules/jackspeak/dist/cjs/package.json +3 -0
  215. package/dist/node_modules/jackspeak/dist/cjs/parse-args-cjs.d.ts.map +1 -0
  216. package/dist/node_modules/jackspeak/dist/cjs/parse-args-cjs.js.map +1 -0
  217. package/dist/node_modules/jackspeak/dist/cjs/parse-args.js +42 -0
  218. package/dist/node_modules/jackspeak/dist/mjs/index.d.ts.map +1 -0
  219. package/dist/node_modules/jackspeak/dist/mjs/index.js +713 -0
  220. package/dist/node_modules/jackspeak/dist/mjs/index.js.map +1 -0
  221. package/dist/node_modules/jackspeak/dist/mjs/package.json +3 -0
  222. package/dist/node_modules/jackspeak/dist/mjs/parse-args-esm.d.ts.map +1 -0
  223. package/dist/node_modules/jackspeak/dist/mjs/parse-args-esm.js.map +1 -0
  224. package/dist/node_modules/jackspeak/dist/mjs/parse-args.js +19 -0
  225. package/dist/node_modules/jackspeak/package.json +98 -0
  226. package/dist/node_modules/make-fetch-happen/lib/cache/entry.js +26 -1
  227. package/dist/node_modules/make-fetch-happen/lib/options.js +2 -0
  228. package/dist/node_modules/make-fetch-happen/lib/remote.js +1 -1
  229. package/dist/node_modules/make-fetch-happen/package.json +16 -17
  230. package/dist/node_modules/minipass/LICENSE +1 -1
  231. package/dist/node_modules/minipass/index.js +299 -246
  232. package/dist/node_modules/minipass/package.json +27 -7
  233. package/dist/node_modules/{tar → minipass-collect}/node_modules/minipass/LICENSE +1 -1
  234. package/dist/node_modules/minipass-collect/node_modules/minipass/index.js +649 -0
  235. package/dist/node_modules/{tar → minipass-collect}/node_modules/minipass/package.json +7 -27
  236. package/dist/node_modules/minipass-fetch/lib/blob.js +1 -1
  237. package/dist/node_modules/minipass-fetch/lib/body.js +1 -1
  238. package/dist/node_modules/minipass-fetch/lib/index.js +15 -3
  239. package/dist/node_modules/minipass-fetch/lib/request.js +2 -1
  240. package/dist/node_modules/minipass-fetch/package.json +13 -11
  241. package/dist/node_modules/minipass-flush/node_modules/minipass/LICENSE +15 -0
  242. package/dist/node_modules/minipass-flush/node_modules/minipass/index.js +649 -0
  243. package/dist/node_modules/minipass-flush/node_modules/minipass/package.json +56 -0
  244. package/dist/node_modules/minipass-pipeline/node_modules/minipass/LICENSE +15 -0
  245. package/dist/node_modules/minipass-pipeline/node_modules/minipass/index.js +649 -0
  246. package/dist/node_modules/minipass-pipeline/node_modules/minipass/package.json +56 -0
  247. package/dist/node_modules/minipass-sized/node_modules/minipass/LICENSE +15 -0
  248. package/dist/node_modules/minipass-sized/node_modules/minipass/index.js +649 -0
  249. package/dist/node_modules/minipass-sized/node_modules/minipass/package.json +56 -0
  250. package/dist/node_modules/minizlib/node_modules/minipass/LICENSE +15 -0
  251. package/dist/node_modules/minizlib/node_modules/minipass/index.js +649 -0
  252. package/dist/node_modules/minizlib/node_modules/minipass/package.json +56 -0
  253. package/dist/node_modules/node-gyp/.github/workflows/tests.yml +9 -6
  254. package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/eclipse.py +1 -1
  255. package/dist/node_modules/node-gyp/gyp/pylib/gyp/xcodeproj_file.py +1 -1
  256. package/dist/node_modules/node-gyp/lib/find-visualstudio.js +13 -2
  257. package/dist/node_modules/node-gyp/lib/install.js +174 -92
  258. package/dist/node_modules/node-gyp/package.json +7 -6
  259. package/dist/node_modules/node-gyp/update-gyp.py +1 -1
  260. package/dist/node_modules/path-key/index.js +16 -0
  261. package/dist/node_modules/path-key/license +9 -0
  262. package/dist/node_modules/path-key/package.json +39 -0
  263. package/dist/node_modules/path-scurry/dist/cjs/index.d.ts.map +1 -0
  264. package/dist/node_modules/path-scurry/dist/cjs/index.js +1995 -0
  265. package/dist/node_modules/path-scurry/dist/cjs/index.js.map +1 -0
  266. package/dist/node_modules/path-scurry/dist/cjs/package.json +3 -0
  267. package/dist/node_modules/path-scurry/dist/mjs/index.d.ts.map +1 -0
  268. package/dist/node_modules/path-scurry/dist/mjs/index.js +1960 -0
  269. package/dist/node_modules/path-scurry/dist/mjs/index.js.map +1 -0
  270. package/dist/node_modules/path-scurry/dist/mjs/package.json +3 -0
  271. package/dist/node_modules/path-scurry/node_modules/lru-cache/LICENSE +15 -0
  272. package/dist/node_modules/path-scurry/node_modules/lru-cache/dist/cjs/index.d.ts.map +1 -0
  273. package/dist/node_modules/path-scurry/node_modules/lru-cache/dist/cjs/index.js +1395 -0
  274. package/dist/node_modules/path-scurry/node_modules/lru-cache/dist/cjs/index.js.map +1 -0
  275. package/dist/node_modules/path-scurry/node_modules/lru-cache/dist/cjs/index.min.js +2 -0
  276. package/dist/node_modules/path-scurry/node_modules/lru-cache/dist/cjs/index.min.js.map +7 -0
  277. package/dist/node_modules/path-scurry/node_modules/lru-cache/dist/cjs/package.json +3 -0
  278. package/dist/node_modules/path-scurry/node_modules/lru-cache/dist/mjs/index.d.ts.map +1 -0
  279. package/dist/node_modules/path-scurry/node_modules/lru-cache/dist/mjs/index.js +1391 -0
  280. package/dist/node_modules/path-scurry/node_modules/lru-cache/dist/mjs/index.js.map +1 -0
  281. package/dist/node_modules/path-scurry/node_modules/lru-cache/dist/mjs/index.min.js +2 -0
  282. package/dist/node_modules/path-scurry/node_modules/lru-cache/dist/mjs/index.min.js.map +7 -0
  283. package/dist/node_modules/path-scurry/node_modules/lru-cache/dist/mjs/package.json +3 -0
  284. package/dist/node_modules/path-scurry/node_modules/lru-cache/package.json +108 -0
  285. package/dist/node_modules/path-scurry/package.json +87 -0
  286. package/dist/node_modules/semver/classes/comparator.js +2 -1
  287. package/dist/node_modules/semver/classes/range.js +40 -27
  288. package/dist/node_modules/semver/classes/semver.js +5 -3
  289. package/dist/node_modules/semver/functions/coerce.js +1 -1
  290. package/dist/node_modules/semver/functions/diff.js +31 -20
  291. package/dist/node_modules/semver/internal/constants.js +5 -0
  292. package/dist/node_modules/semver/internal/re.js +30 -4
  293. package/dist/node_modules/semver/package.json +4 -4
  294. package/dist/node_modules/shebang-command/index.js +19 -0
  295. package/dist/node_modules/shebang-command/license +9 -0
  296. package/dist/node_modules/shebang-command/package.json +34 -0
  297. package/dist/node_modules/shebang-regex/index.js +2 -0
  298. package/dist/node_modules/shebang-regex/license +9 -0
  299. package/dist/node_modules/shebang-regex/package.json +35 -0
  300. package/dist/node_modules/signal-exit/LICENSE.txt +1 -1
  301. package/dist/node_modules/signal-exit/dist/cjs/browser.d.ts.map +1 -0
  302. package/dist/node_modules/signal-exit/dist/cjs/browser.js +10 -0
  303. package/dist/node_modules/signal-exit/dist/cjs/browser.js.map +1 -0
  304. package/dist/node_modules/signal-exit/dist/cjs/index.d.ts.map +1 -0
  305. package/dist/node_modules/signal-exit/dist/cjs/index.js +272 -0
  306. package/dist/node_modules/signal-exit/dist/cjs/index.js.map +1 -0
  307. package/dist/node_modules/signal-exit/dist/cjs/package.json +3 -0
  308. package/dist/node_modules/signal-exit/dist/cjs/signals.d.ts.map +1 -0
  309. package/dist/node_modules/signal-exit/dist/cjs/signals.js +42 -0
  310. package/dist/node_modules/signal-exit/dist/cjs/signals.js.map +1 -0
  311. package/dist/node_modules/signal-exit/dist/mjs/browser.d.ts.map +1 -0
  312. package/dist/node_modules/signal-exit/dist/mjs/browser.js +4 -0
  313. package/dist/node_modules/signal-exit/dist/mjs/browser.js.map +1 -0
  314. package/dist/node_modules/signal-exit/dist/mjs/index.d.ts.map +1 -0
  315. package/dist/node_modules/signal-exit/dist/mjs/index.js +268 -0
  316. package/dist/node_modules/signal-exit/dist/mjs/index.js.map +1 -0
  317. package/dist/node_modules/signal-exit/dist/mjs/package.json +3 -0
  318. package/dist/node_modules/signal-exit/dist/mjs/signals.d.ts.map +1 -0
  319. package/dist/node_modules/signal-exit/dist/mjs/signals.js +39 -0
  320. package/dist/node_modules/signal-exit/dist/mjs/signals.js.map +1 -0
  321. package/dist/node_modules/signal-exit/package.json +87 -19
  322. package/dist/node_modules/ssri/lib/index.js +157 -101
  323. package/dist/node_modules/ssri/package.json +12 -10
  324. package/dist/node_modules/string-width/node_modules/ansi-regex/index.js +10 -0
  325. package/dist/node_modules/string-width/node_modules/ansi-regex/license +9 -0
  326. package/dist/node_modules/string-width/node_modules/ansi-regex/package.json +55 -0
  327. package/dist/node_modules/string-width/node_modules/emoji-regex/LICENSE-MIT.txt +20 -0
  328. package/dist/node_modules/string-width/node_modules/emoji-regex/es2015/index.js +6 -0
  329. package/dist/node_modules/string-width/node_modules/emoji-regex/es2015/text.js +6 -0
  330. package/dist/node_modules/string-width/node_modules/emoji-regex/index.js +6 -0
  331. package/dist/node_modules/string-width/node_modules/emoji-regex/package.json +50 -0
  332. package/dist/node_modules/string-width/node_modules/emoji-regex/text.js +6 -0
  333. package/dist/node_modules/string-width/node_modules/strip-ansi/index.js +4 -0
  334. package/dist/node_modules/string-width/node_modules/strip-ansi/license +9 -0
  335. package/dist/node_modules/string-width/node_modules/strip-ansi/package.json +54 -0
  336. package/dist/node_modules/string-width-cjs/index.js +47 -0
  337. package/dist/node_modules/string-width-cjs/license +9 -0
  338. package/dist/node_modules/string-width-cjs/node_modules/ansi-regex/index.js +10 -0
  339. package/dist/node_modules/string-width-cjs/node_modules/ansi-regex/license +9 -0
  340. package/dist/node_modules/string-width-cjs/node_modules/ansi-regex/package.json +55 -0
  341. package/dist/node_modules/string-width-cjs/node_modules/emoji-regex/LICENSE-MIT.txt +20 -0
  342. package/dist/node_modules/string-width-cjs/node_modules/emoji-regex/es2015/index.js +6 -0
  343. package/dist/node_modules/string-width-cjs/node_modules/emoji-regex/es2015/text.js +6 -0
  344. package/dist/node_modules/string-width-cjs/node_modules/emoji-regex/index.js +6 -0
  345. package/dist/node_modules/string-width-cjs/node_modules/emoji-regex/package.json +50 -0
  346. package/dist/node_modules/string-width-cjs/node_modules/emoji-regex/text.js +6 -0
  347. package/dist/node_modules/string-width-cjs/node_modules/strip-ansi/index.js +4 -0
  348. package/dist/node_modules/string-width-cjs/node_modules/strip-ansi/license +9 -0
  349. package/dist/node_modules/string-width-cjs/node_modules/strip-ansi/package.json +54 -0
  350. package/dist/node_modules/string-width-cjs/package.json +56 -0
  351. package/dist/node_modules/strip-ansi/index.js +13 -3
  352. package/dist/node_modules/strip-ansi/license +1 -1
  353. package/dist/node_modules/strip-ansi/package.json +10 -7
  354. package/dist/node_modules/strip-ansi-cjs/index.js +4 -0
  355. package/dist/node_modules/strip-ansi-cjs/license +9 -0
  356. package/dist/node_modules/strip-ansi-cjs/node_modules/ansi-regex/index.js +10 -0
  357. package/dist/node_modules/strip-ansi-cjs/node_modules/ansi-regex/license +9 -0
  358. package/dist/node_modules/strip-ansi-cjs/node_modules/ansi-regex/package.json +55 -0
  359. package/dist/node_modules/strip-ansi-cjs/package.json +54 -0
  360. package/dist/node_modules/{infer-owner → tar/node_modules/fs-minipass}/LICENSE +1 -1
  361. package/dist/node_modules/tar/node_modules/fs-minipass/node_modules/minipass/LICENSE +15 -0
  362. package/dist/node_modules/tar/node_modules/fs-minipass/node_modules/minipass/index.js +649 -0
  363. package/dist/node_modules/tar/node_modules/fs-minipass/node_modules/minipass/package.json +56 -0
  364. package/dist/node_modules/tar/node_modules/fs-minipass/package.json +39 -0
  365. package/dist/node_modules/unique-filename/package.json +12 -9
  366. package/dist/node_modules/unique-slug/package.json +10 -7
  367. package/dist/node_modules/wrap-ansi/index.js +214 -0
  368. package/dist/node_modules/wrap-ansi/license +9 -0
  369. package/dist/node_modules/wrap-ansi/node_modules/string-width/index.js +54 -0
  370. package/dist/node_modules/wrap-ansi/node_modules/string-width/license +9 -0
  371. package/dist/node_modules/wrap-ansi/node_modules/string-width/package.json +59 -0
  372. package/dist/node_modules/wrap-ansi/package.json +69 -0
  373. package/dist/node_modules/wrap-ansi-cjs/index.js +216 -0
  374. package/dist/node_modules/wrap-ansi-cjs/license +9 -0
  375. package/dist/node_modules/wrap-ansi-cjs/node_modules/ansi-regex/index.js +10 -0
  376. package/dist/node_modules/wrap-ansi-cjs/node_modules/ansi-regex/license +9 -0
  377. package/dist/node_modules/wrap-ansi-cjs/node_modules/ansi-regex/package.json +55 -0
  378. package/dist/node_modules/wrap-ansi-cjs/node_modules/ansi-styles/index.js +163 -0
  379. package/dist/node_modules/wrap-ansi-cjs/node_modules/ansi-styles/license +9 -0
  380. package/dist/node_modules/wrap-ansi-cjs/node_modules/ansi-styles/package.json +56 -0
  381. package/dist/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/index.js +4 -0
  382. package/dist/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/license +9 -0
  383. package/dist/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/package.json +54 -0
  384. package/dist/node_modules/wrap-ansi-cjs/package.json +62 -0
  385. package/dist/pnpm.cjs +30877 -17543
  386. package/package.json +3 -3
  387. package/dist/node_modules/@gar/promisify/index.js +0 -36
  388. package/dist/node_modules/@gar/promisify/package.json +0 -32
  389. package/dist/node_modules/@npmcli/fs/lib/common/owner-sync.js +0 -96
  390. package/dist/node_modules/@npmcli/fs/lib/common/owner.js +0 -96
  391. package/dist/node_modules/@npmcli/fs/lib/copy-file.js +0 -16
  392. package/dist/node_modules/@npmcli/fs/lib/fs.js +0 -14
  393. package/dist/node_modules/@npmcli/fs/lib/mkdir.js +0 -19
  394. package/dist/node_modules/@npmcli/fs/lib/mkdtemp.js +0 -23
  395. package/dist/node_modules/@npmcli/fs/lib/rm/index.js +0 -22
  396. package/dist/node_modules/@npmcli/fs/lib/rm/polyfill.js +0 -239
  397. package/dist/node_modules/@npmcli/fs/lib/with-owner-sync.js +0 -21
  398. package/dist/node_modules/@npmcli/fs/lib/with-owner.js +0 -21
  399. package/dist/node_modules/@npmcli/fs/lib/write-file.js +0 -14
  400. package/dist/node_modules/@npmcli/move-file/lib/index.js +0 -185
  401. package/dist/node_modules/@npmcli/move-file/package.json +0 -47
  402. package/dist/node_modules/cacache/lib/util/fix-owner.js +0 -145
  403. package/dist/node_modules/cacache/lib/util/move-file.js +0 -56
  404. package/dist/node_modules/cacache/node_modules/glob/common.js +0 -244
  405. package/dist/node_modules/cacache/node_modules/glob/glob.js +0 -790
  406. package/dist/node_modules/cacache/node_modules/glob/sync.js +0 -486
  407. package/dist/node_modules/cacache/node_modules/minimatch/lib/path.js +0 -4
  408. package/dist/node_modules/cacache/node_modules/minimatch/minimatch.js +0 -944
  409. package/dist/node_modules/infer-owner/index.js +0 -71
  410. package/dist/node_modules/infer-owner/package.json +0 -26
  411. package/dist/node_modules/promise-inflight/inflight.js +0 -36
  412. package/dist/node_modules/promise-inflight/package.json +0 -24
  413. package/dist/node_modules/tar/node_modules/minipass/index.js +0 -702
  414. /package/dist/node_modules/@npmcli/fs/lib/{errors.js → cp/errors.js} +0 -0
  415. /package/dist/node_modules/{signal-exit → gauge/node_modules/signal-exit}/index.js +0 -0
  416. /package/dist/node_modules/{signal-exit → gauge/node_modules/signal-exit}/signals.js +0 -0
  417. /package/dist/node_modules/{tar/node_modules/minipass → minipass}/index.mjs +0 -0
  418. /package/dist/node_modules/{fs-minipass → tar/node_modules/fs-minipass}/index.js +0 -0
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pnpm",
3
3
  "description": "Fast, disk space efficient package manager",
4
- "version": "8.6.2",
4
+ "version": "8.6.4",
5
5
  "bin": {
6
6
  "pnpm": "bin/pnpm.cjs",
7
7
  "pnpx": "bin/pnpx.cjs"
@@ -16,7 +16,7 @@
16
16
  "bin"
17
17
  ],
18
18
  "__optionalDependencies": {
19
- "node-gyp": "^9.3.1"
19
+ "node-gyp": "^9.4.0"
20
20
  },
21
21
  "__devDependencies": {
22
22
  "@pnpm/assert-project": "workspace:*",
@@ -99,7 +99,7 @@
99
99
  "ramda": "npm:@pnpm/ramda@0.28.1",
100
100
  "read-yaml-file": "^2.1.0",
101
101
  "render-help": "^1.0.3",
102
- "semver": "^7.5.1",
102
+ "semver": "^7.5.3",
103
103
  "split-cmd": "^1.0.1",
104
104
  "strip-ansi": "^6.0.1",
105
105
  "symlink-dir": "^5.1.1",
@@ -1,36 +0,0 @@
1
- 'use strict'
2
-
3
- const { promisify } = require('util')
4
-
5
- const handler = {
6
- get: function (target, prop, receiver) {
7
- if (typeof target[prop] !== 'function') {
8
- return target[prop]
9
- }
10
- if (target[prop][promisify.custom]) {
11
- return function () {
12
- return Reflect.get(target, prop, receiver)[promisify.custom].apply(target, arguments)
13
- }
14
- }
15
- return function () {
16
- return new Promise((resolve, reject) => {
17
- Reflect.get(target, prop, receiver).apply(target, [...arguments, function (err, result) {
18
- if (err) {
19
- return reject(err)
20
- }
21
- resolve(result)
22
- }])
23
- })
24
- }
25
- }
26
- }
27
-
28
- module.exports = function (thingToPromisify) {
29
- if (typeof thingToPromisify === 'function') {
30
- return promisify(thingToPromisify)
31
- }
32
- if (typeof thingToPromisify === 'object') {
33
- return new Proxy(thingToPromisify, handler)
34
- }
35
- throw new TypeError('Can only promisify functions or objects')
36
- }
@@ -1,32 +0,0 @@
1
- {
2
- "name": "@gar/promisify",
3
- "version": "1.1.3",
4
- "description": "Promisify an entire class or object",
5
- "main": "index.js",
6
- "repository": {
7
- "type": "git",
8
- "url": "https://github.com/wraithgar/gar-promisify.git"
9
- },
10
- "scripts": {
11
- "lint": "standard",
12
- "lint:fix": "standard --fix",
13
- "test": "lab -a @hapi/code -t 100",
14
- "posttest": "npm run lint"
15
- },
16
- "files": [
17
- "index.js"
18
- ],
19
- "keywords": [
20
- "promisify",
21
- "all",
22
- "class",
23
- "object"
24
- ],
25
- "author": "Gar <gar+npm@danger.computer>",
26
- "license": "MIT",
27
- "devDependencies": {
28
- "@hapi/code": "^8.0.1",
29
- "@hapi/lab": "^24.1.0",
30
- "standard": "^16.0.3"
31
- }
32
- }
@@ -1,96 +0,0 @@
1
- const { dirname, resolve } = require('path')
2
- const url = require('url')
3
-
4
- const fs = require('../fs.js')
5
-
6
- // given a path, find the owner of the nearest parent
7
- const find = (path) => {
8
- // if we have no getuid, permissions are irrelevant on this platform
9
- if (!process.getuid) {
10
- return {}
11
- }
12
-
13
- // fs methods accept URL objects with a scheme of file: so we need to unwrap
14
- // those into an actual path string before we can resolve it
15
- const resolved = path != null && path.href && path.origin
16
- ? resolve(url.fileURLToPath(path))
17
- : resolve(path)
18
-
19
- let stat
20
-
21
- try {
22
- stat = fs.lstatSync(resolved)
23
- } finally {
24
- // if we got a stat, return its contents
25
- if (stat) {
26
- return { uid: stat.uid, gid: stat.gid }
27
- }
28
-
29
- // try the parent directory
30
- if (resolved !== dirname(resolved)) {
31
- return find(dirname(resolved))
32
- }
33
-
34
- // no more parents, never got a stat, just return an empty object
35
- return {}
36
- }
37
- }
38
-
39
- // given a path, uid, and gid update the ownership of the path if necessary
40
- const update = (path, uid, gid) => {
41
- // nothing to update, just exit
42
- if (uid === undefined && gid === undefined) {
43
- return
44
- }
45
-
46
- try {
47
- // see if the permissions are already the same, if they are we don't
48
- // need to do anything, so return early
49
- const stat = fs.statSync(path)
50
- if (uid === stat.uid && gid === stat.gid) {
51
- return
52
- }
53
- } catch {
54
- // ignore errors
55
- }
56
-
57
- try {
58
- fs.chownSync(path, uid, gid)
59
- } catch {
60
- // ignore errors
61
- }
62
- }
63
-
64
- // accepts a `path` and the `owner` property of an options object and normalizes
65
- // it into an object with numerical `uid` and `gid`
66
- const validate = (path, input) => {
67
- let uid
68
- let gid
69
-
70
- if (typeof input === 'string' || typeof input === 'number') {
71
- uid = input
72
- gid = input
73
- } else if (input && typeof input === 'object') {
74
- uid = input.uid
75
- gid = input.gid
76
- }
77
-
78
- if (uid === 'inherit' || gid === 'inherit') {
79
- const owner = find(path)
80
- if (uid === 'inherit') {
81
- uid = owner.uid
82
- }
83
-
84
- if (gid === 'inherit') {
85
- gid = owner.gid
86
- }
87
- }
88
-
89
- return { uid, gid }
90
- }
91
-
92
- module.exports = {
93
- find,
94
- update,
95
- validate,
96
- }
@@ -1,96 +0,0 @@
1
- const { dirname, resolve } = require('path')
2
- const url = require('url')
3
-
4
- const fs = require('../fs.js')
5
-
6
- // given a path, find the owner of the nearest parent
7
- const find = async (path) => {
8
- // if we have no getuid, permissions are irrelevant on this platform
9
- if (!process.getuid) {
10
- return {}
11
- }
12
-
13
- // fs methods accept URL objects with a scheme of file: so we need to unwrap
14
- // those into an actual path string before we can resolve it
15
- const resolved = path != null && path.href && path.origin
16
- ? resolve(url.fileURLToPath(path))
17
- : resolve(path)
18
-
19
- let stat
20
-
21
- try {
22
- stat = await fs.lstat(resolved)
23
- } finally {
24
- // if we got a stat, return its contents
25
- if (stat) {
26
- return { uid: stat.uid, gid: stat.gid }
27
- }
28
-
29
- // try the parent directory
30
- if (resolved !== dirname(resolved)) {
31
- return find(dirname(resolved))
32
- }
33
-
34
- // no more parents, never got a stat, just return an empty object
35
- return {}
36
- }
37
- }
38
-
39
- // given a path, uid, and gid update the ownership of the path if necessary
40
- const update = async (path, uid, gid) => {
41
- // nothing to update, just exit
42
- if (uid === undefined && gid === undefined) {
43
- return
44
- }
45
-
46
- try {
47
- // see if the permissions are already the same, if they are we don't
48
- // need to do anything, so return early
49
- const stat = await fs.stat(path)
50
- if (uid === stat.uid && gid === stat.gid) {
51
- return
52
- }
53
- } catch {
54
- // ignore errors
55
- }
56
-
57
- try {
58
- await fs.chown(path, uid, gid)
59
- } catch {
60
- // ignore errors
61
- }
62
- }
63
-
64
- // accepts a `path` and the `owner` property of an options object and normalizes
65
- // it into an object with numerical `uid` and `gid`
66
- const validate = async (path, input) => {
67
- let uid
68
- let gid
69
-
70
- if (typeof input === 'string' || typeof input === 'number') {
71
- uid = input
72
- gid = input
73
- } else if (input && typeof input === 'object') {
74
- uid = input.uid
75
- gid = input.gid
76
- }
77
-
78
- if (uid === 'inherit' || gid === 'inherit') {
79
- const owner = await find(path)
80
- if (uid === 'inherit') {
81
- uid = owner.uid
82
- }
83
-
84
- if (gid === 'inherit') {
85
- gid = owner.gid
86
- }
87
- }
88
-
89
- return { uid, gid }
90
- }
91
-
92
- module.exports = {
93
- find,
94
- update,
95
- validate,
96
- }
@@ -1,16 +0,0 @@
1
- const fs = require('./fs.js')
2
- const getOptions = require('./common/get-options.js')
3
- const withOwner = require('./with-owner.js')
4
-
5
- const copyFile = async (src, dest, opts) => {
6
- const options = getOptions(opts, {
7
- copy: ['mode'],
8
- wrap: 'mode',
9
- })
10
-
11
- // the node core method as of 16.5.0 does not support the mode being in an
12
- // object, so we have to pass the mode value directly
13
- return withOwner(dest, () => fs.copyFile(src, dest, options.mode), opts)
14
- }
15
-
16
- module.exports = copyFile
@@ -1,14 +0,0 @@
1
- const fs = require('fs')
2
- const promisify = require('@gar/promisify')
3
-
4
- const isLower = (s) => s === s.toLowerCase() && s !== s.toUpperCase()
5
-
6
- const fsSync = Object.fromEntries(Object.entries(fs).filter(([k, v]) =>
7
- typeof v === 'function' && (k.endsWith('Sync') || !isLower(k[0]))
8
- ))
9
-
10
- // this module returns the core fs async fns wrapped in a proxy that promisifies
11
- // method calls within the getter. we keep it in a separate module so that the
12
- // overridden methods have a consistent way to get to promisified fs methods
13
- // without creating a circular dependency. the ctors and sync methods are kept untouched
14
- module.exports = { ...promisify(fs), ...fsSync }
@@ -1,19 +0,0 @@
1
- const fs = require('./fs.js')
2
- const getOptions = require('./common/get-options.js')
3
- const withOwner = require('./with-owner.js')
4
-
5
- // extends mkdir with the ability to specify an owner of the new dir
6
- const mkdir = async (path, opts) => {
7
- const options = getOptions(opts, {
8
- copy: ['mode', 'recursive'],
9
- wrap: 'mode',
10
- })
11
-
12
- return withOwner(
13
- path,
14
- () => fs.mkdir(path, options),
15
- opts
16
- )
17
- }
18
-
19
- module.exports = mkdir
@@ -1,23 +0,0 @@
1
- const { dirname, sep } = require('path')
2
-
3
- const fs = require('./fs.js')
4
- const getOptions = require('./common/get-options.js')
5
- const withOwner = require('./with-owner.js')
6
-
7
- const mkdtemp = async (prefix, opts) => {
8
- const options = getOptions(opts, {
9
- copy: ['encoding'],
10
- wrap: 'encoding',
11
- })
12
-
13
- // mkdtemp relies on the trailing path separator to indicate if it should
14
- // create a directory inside of the prefix. if that's the case then the root
15
- // we infer ownership from is the prefix itself, otherwise it's the dirname
16
- // /tmp -> /tmpABCDEF, infers from /
17
- // /tmp/ -> /tmp/ABCDEF, infers from /tmp
18
- const root = prefix.endsWith(sep) ? prefix : dirname(prefix)
19
-
20
- return withOwner(root, () => fs.mkdtemp(prefix, options), opts)
21
- }
22
-
23
- module.exports = mkdtemp
@@ -1,22 +0,0 @@
1
- const fs = require('../fs.js')
2
- const getOptions = require('../common/get-options.js')
3
- const node = require('../common/node.js')
4
- const polyfill = require('./polyfill.js')
5
-
6
- // node 14.14.0 added fs.rm, which allows both the force and recursive options
7
- const useNative = node.satisfies('>=14.14.0')
8
-
9
- const rm = async (path, opts) => {
10
- const options = getOptions(opts, {
11
- copy: ['retryDelay', 'maxRetries', 'recursive', 'force'],
12
- })
13
-
14
- // the polyfill is tested separately from this module, no need to hack
15
- // process.version to try to trigger it just for coverage
16
- // istanbul ignore next
17
- return useNative
18
- ? fs.rm(path, options)
19
- : polyfill(path, options)
20
- }
21
-
22
- module.exports = rm
@@ -1,239 +0,0 @@
1
- // this file is a modified version of the code in node core >=14.14.0
2
- // which is, in turn, a modified version of the rimraf module on npm
3
- // node core changes:
4
- // - Use of the assert module has been replaced with core's error system.
5
- // - All code related to the glob dependency has been removed.
6
- // - Bring your own custom fs module is not currently supported.
7
- // - Some basic code cleanup.
8
- // changes here:
9
- // - remove all callback related code
10
- // - drop sync support
11
- // - change assertions back to non-internal methods (see options.js)
12
- // - throws ENOTDIR when rmdir gets an ENOENT for a path that exists in Windows
13
- const errnos = require('os').constants.errno
14
- const { join } = require('path')
15
- const fs = require('../fs.js')
16
-
17
- // error codes that mean we need to remove contents
18
- const notEmptyCodes = new Set([
19
- 'ENOTEMPTY',
20
- 'EEXIST',
21
- 'EPERM',
22
- ])
23
-
24
- // error codes we can retry later
25
- const retryCodes = new Set([
26
- 'EBUSY',
27
- 'EMFILE',
28
- 'ENFILE',
29
- 'ENOTEMPTY',
30
- 'EPERM',
31
- ])
32
-
33
- const isWindows = process.platform === 'win32'
34
-
35
- const defaultOptions = {
36
- retryDelay: 100,
37
- maxRetries: 0,
38
- recursive: false,
39
- force: false,
40
- }
41
-
42
- // this is drastically simplified, but should be roughly equivalent to what
43
- // node core throws
44
- class ERR_FS_EISDIR extends Error {
45
- constructor (path) {
46
- super()
47
- this.info = {
48
- code: 'EISDIR',
49
- message: 'is a directory',
50
- path,
51
- syscall: 'rm',
52
- errno: errnos.EISDIR,
53
- }
54
- this.name = 'SystemError'
55
- this.code = 'ERR_FS_EISDIR'
56
- this.errno = errnos.EISDIR
57
- this.syscall = 'rm'
58
- this.path = path
59
- this.message = `Path is a directory: ${this.syscall} returned ` +
60
- `${this.info.code} (is a directory) ${path}`
61
- }
62
-
63
- toString () {
64
- return `${this.name} [${this.code}]: ${this.message}`
65
- }
66
- }
67
-
68
- class ENOTDIR extends Error {
69
- constructor (path) {
70
- super()
71
- this.name = 'Error'
72
- this.code = 'ENOTDIR'
73
- this.errno = errnos.ENOTDIR
74
- this.syscall = 'rmdir'
75
- this.path = path
76
- this.message = `not a directory, ${this.syscall} '${this.path}'`
77
- }
78
-
79
- toString () {
80
- return `${this.name}: ${this.code}: ${this.message}`
81
- }
82
- }
83
-
84
- // force is passed separately here because we respect it for the first entry
85
- // into rimraf only, any further calls that are spawned as a result (i.e. to
86
- // delete content within the target) will ignore ENOENT errors
87
- const rimraf = async (path, options, isTop = false) => {
88
- const force = isTop ? options.force : true
89
- const stat = await fs.lstat(path)
90
- .catch((err) => {
91
- // we only ignore ENOENT if we're forcing this call
92
- if (err.code === 'ENOENT' && force) {
93
- return
94
- }
95
-
96
- if (isWindows && err.code === 'EPERM') {
97
- return fixEPERM(path, options, err, isTop)
98
- }
99
-
100
- throw err
101
- })
102
-
103
- // no stat object here means either lstat threw an ENOENT, or lstat threw
104
- // an EPERM and the fixPERM function took care of things. either way, we're
105
- // already done, so return early
106
- if (!stat) {
107
- return
108
- }
109
-
110
- if (stat.isDirectory()) {
111
- return rmdir(path, options, null, isTop)
112
- }
113
-
114
- return fs.unlink(path)
115
- .catch((err) => {
116
- if (err.code === 'ENOENT' && force) {
117
- return
118
- }
119
-
120
- if (err.code === 'EISDIR') {
121
- return rmdir(path, options, err, isTop)
122
- }
123
-
124
- if (err.code === 'EPERM') {
125
- // in windows, we handle this through fixEPERM which will also try to
126
- // delete things again. everywhere else since deleting the target as a
127
- // file didn't work we go ahead and try to delete it as a directory
128
- return isWindows
129
- ? fixEPERM(path, options, err, isTop)
130
- : rmdir(path, options, err, isTop)
131
- }
132
-
133
- throw err
134
- })
135
- }
136
-
137
- const fixEPERM = async (path, options, originalErr, isTop) => {
138
- const force = isTop ? options.force : true
139
- const targetMissing = await fs.chmod(path, 0o666)
140
- .catch((err) => {
141
- if (err.code === 'ENOENT' && force) {
142
- return true
143
- }
144
-
145
- throw originalErr
146
- })
147
-
148
- // got an ENOENT above, return now. no file = no problem
149
- if (targetMissing) {
150
- return
151
- }
152
-
153
- // this function does its own lstat rather than calling rimraf again to avoid
154
- // infinite recursion for a repeating EPERM
155
- const stat = await fs.lstat(path)
156
- .catch((err) => {
157
- if (err.code === 'ENOENT' && force) {
158
- return
159
- }
160
-
161
- throw originalErr
162
- })
163
-
164
- if (!stat) {
165
- return
166
- }
167
-
168
- if (stat.isDirectory()) {
169
- return rmdir(path, options, originalErr, isTop)
170
- }
171
-
172
- return fs.unlink(path)
173
- }
174
-
175
- const rmdir = async (path, options, originalErr, isTop) => {
176
- if (!options.recursive && isTop) {
177
- throw originalErr || new ERR_FS_EISDIR(path)
178
- }
179
- const force = isTop ? options.force : true
180
-
181
- return fs.rmdir(path)
182
- .catch(async (err) => {
183
- // in Windows, calling rmdir on a file path will fail with ENOENT rather
184
- // than ENOTDIR. to determine if that's what happened, we have to do
185
- // another lstat on the path. if the path isn't actually gone, we throw
186
- // away the ENOENT and replace it with our own ENOTDIR
187
- if (isWindows && err.code === 'ENOENT') {
188
- const stillExists = await fs.lstat(path).then(() => true, () => false)
189
- if (stillExists) {
190
- err = new ENOTDIR(path)
191
- }
192
- }
193
-
194
- // not there, not a problem
195
- if (err.code === 'ENOENT' && force) {
196
- return
197
- }
198
-
199
- // we may not have originalErr if lstat tells us our target is a
200
- // directory but that changes before we actually remove it, so
201
- // only throw it here if it's set
202
- if (originalErr && err.code === 'ENOTDIR') {
203
- throw originalErr
204
- }
205
-
206
- // the directory isn't empty, remove the contents and try again
207
- if (notEmptyCodes.has(err.code)) {
208
- const files = await fs.readdir(path)
209
- await Promise.all(files.map((file) => {
210
- const target = join(path, file)
211
- return rimraf(target, options)
212
- }))
213
- return fs.rmdir(path)
214
- }
215
-
216
- throw err
217
- })
218
- }
219
-
220
- const rm = async (path, opts) => {
221
- const options = { ...defaultOptions, ...opts }
222
- let retries = 0
223
-
224
- const errHandler = async (err) => {
225
- if (retryCodes.has(err.code) && ++retries < options.maxRetries) {
226
- const delay = retries * options.retryDelay
227
- await promiseTimeout(delay)
228
- return rimraf(path, options, true).catch(errHandler)
229
- }
230
-
231
- throw err
232
- }
233
-
234
- return rimraf(path, options, true).catch(errHandler)
235
- }
236
-
237
- const promiseTimeout = (ms) => new Promise((r) => setTimeout(r, ms))
238
-
239
- module.exports = rm
@@ -1,21 +0,0 @@
1
- const getOptions = require('./common/get-options.js')
2
- const owner = require('./common/owner-sync.js')
3
-
4
- const withOwnerSync = (path, fn, opts) => {
5
- const options = getOptions(opts, {
6
- copy: ['owner'],
7
- })
8
-
9
- const { uid, gid } = owner.validate(path, options.owner)
10
-
11
- const result = fn({ uid, gid })
12
-
13
- owner.update(path, uid, gid)
14
- if (typeof result === 'string') {
15
- owner.update(result, uid, gid)
16
- }
17
-
18
- return result
19
- }
20
-
21
- module.exports = withOwnerSync
@@ -1,21 +0,0 @@
1
- const getOptions = require('./common/get-options.js')
2
- const owner = require('./common/owner.js')
3
-
4
- const withOwner = async (path, fn, opts) => {
5
- const options = getOptions(opts, {
6
- copy: ['owner'],
7
- })
8
-
9
- const { uid, gid } = await owner.validate(path, options.owner)
10
-
11
- const result = await fn({ uid, gid })
12
-
13
- await Promise.all([
14
- owner.update(path, uid, gid),
15
- typeof result === 'string' ? owner.update(result, uid, gid) : null,
16
- ])
17
-
18
- return result
19
- }
20
-
21
- module.exports = withOwner
@@ -1,14 +0,0 @@
1
- const fs = require('./fs.js')
2
- const getOptions = require('./common/get-options.js')
3
- const withOwner = require('./with-owner.js')
4
-
5
- const writeFile = async (file, data, opts) => {
6
- const options = getOptions(opts, {
7
- copy: ['encoding', 'mode', 'flag', 'signal'],
8
- wrap: 'encoding',
9
- })
10
-
11
- return withOwner(file, () => fs.writeFile(file, data, options), opts)
12
- }
13
-
14
- module.exports = writeFile