@pnpm/exe 11.13.0 → 11.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (443) hide show
  1. package/dist/node-gyp-bin/node-gyp +6 -0
  2. package/dist/node-gyp-bin/node-gyp.cmd +5 -0
  3. package/dist/node_modules/.bin/node-gyp +38 -0
  4. package/dist/node_modules/.bin/node-which +38 -0
  5. package/dist/node_modules/.bin/nopt +38 -0
  6. package/dist/node_modules/.bin/semver +38 -0
  7. package/dist/node_modules/.package-map.json +1 -0
  8. package/dist/node_modules/@isaacs/fs-minipass/LICENSE +15 -0
  9. package/dist/node_modules/@isaacs/fs-minipass/dist/commonjs/index.js +430 -0
  10. package/dist/node_modules/@isaacs/fs-minipass/dist/commonjs/package.json +3 -0
  11. package/dist/node_modules/@isaacs/fs-minipass/dist/esm/index.js +420 -0
  12. package/dist/node_modules/@isaacs/fs-minipass/dist/esm/package.json +3 -0
  13. package/dist/node_modules/@isaacs/fs-minipass/package.json +72 -0
  14. package/dist/node_modules/abbrev/LICENSE +46 -0
  15. package/dist/node_modules/abbrev/lib/index.js +53 -0
  16. package/dist/node_modules/abbrev/package.json +41 -0
  17. package/dist/node_modules/chownr/dist/commonjs/index.js +93 -0
  18. package/dist/node_modules/chownr/dist/commonjs/package.json +3 -0
  19. package/dist/node_modules/chownr/dist/esm/index.js +85 -0
  20. package/dist/node_modules/chownr/dist/esm/package.json +3 -0
  21. package/dist/node_modules/chownr/package.json +69 -0
  22. package/dist/node_modules/env-paths/index.js +74 -0
  23. package/dist/node_modules/env-paths/license +9 -0
  24. package/dist/node_modules/env-paths/package.json +45 -0
  25. package/dist/node_modules/exponential-backoff/LICENSE +202 -0
  26. package/dist/node_modules/exponential-backoff/dist/backoff.js +124 -0
  27. package/dist/node_modules/exponential-backoff/dist/delay/always/always.delay.js +25 -0
  28. package/dist/node_modules/exponential-backoff/dist/delay/delay.base.js +45 -0
  29. package/dist/node_modules/exponential-backoff/dist/delay/delay.factory.js +17 -0
  30. package/dist/node_modules/exponential-backoff/dist/delay/delay.interface.js +3 -0
  31. package/dist/node_modules/exponential-backoff/dist/delay/skip-first/skip-first.delay.js +82 -0
  32. package/dist/node_modules/exponential-backoff/dist/jitter/full/full.jitter.js +8 -0
  33. package/dist/node_modules/exponential-backoff/dist/jitter/jitter.factory.js +15 -0
  34. package/dist/node_modules/exponential-backoff/dist/jitter/no/no.jitter.js +7 -0
  35. package/dist/node_modules/exponential-backoff/dist/options.js +31 -0
  36. package/dist/node_modules/exponential-backoff/package.json +62 -0
  37. package/dist/node_modules/fdir/LICENSE +7 -0
  38. package/dist/node_modules/fdir/dist/index.cjs +588 -0
  39. package/dist/node_modules/fdir/dist/index.d.cts +155 -0
  40. package/dist/node_modules/fdir/dist/index.d.mts +155 -0
  41. package/dist/node_modules/fdir/dist/index.mjs +570 -0
  42. package/dist/node_modules/fdir/package.json +103 -0
  43. package/dist/node_modules/graceful-fs/LICENSE +15 -0
  44. package/dist/node_modules/graceful-fs/clone.js +23 -0
  45. package/dist/node_modules/graceful-fs/graceful-fs.js +448 -0
  46. package/dist/node_modules/graceful-fs/legacy-streams.js +118 -0
  47. package/dist/node_modules/graceful-fs/package.json +53 -0
  48. package/dist/node_modules/graceful-fs/polyfills.js +355 -0
  49. package/dist/node_modules/isexe/dist/commonjs/index.js +56 -0
  50. package/dist/node_modules/isexe/dist/commonjs/index.min.js +2 -0
  51. package/dist/node_modules/isexe/dist/commonjs/options.js +3 -0
  52. package/dist/node_modules/isexe/dist/commonjs/package.json +3 -0
  53. package/dist/node_modules/isexe/dist/commonjs/posix.js +67 -0
  54. package/dist/node_modules/isexe/dist/commonjs/win32.js +63 -0
  55. package/dist/node_modules/isexe/dist/esm/index.js +16 -0
  56. package/dist/node_modules/isexe/dist/esm/index.min.js +2 -0
  57. package/dist/node_modules/isexe/dist/esm/options.js +2 -0
  58. package/dist/node_modules/isexe/dist/esm/package.json +3 -0
  59. package/dist/node_modules/isexe/dist/esm/posix.js +62 -0
  60. package/dist/node_modules/isexe/dist/esm/win32.js +58 -0
  61. package/dist/node_modules/isexe/package.json +78 -0
  62. package/dist/node_modules/minipass/dist/commonjs/index.js +1038 -0
  63. package/dist/node_modules/minipass/dist/commonjs/package.json +3 -0
  64. package/dist/node_modules/minipass/dist/esm/index.js +1020 -0
  65. package/dist/node_modules/minipass/dist/esm/package.json +3 -0
  66. package/dist/node_modules/minipass/package.json +77 -0
  67. package/dist/node_modules/minizlib/LICENSE +26 -0
  68. package/dist/node_modules/minizlib/dist/commonjs/constants.js +123 -0
  69. package/dist/node_modules/minizlib/dist/commonjs/index.js +416 -0
  70. package/dist/node_modules/minizlib/dist/commonjs/package.json +3 -0
  71. package/dist/node_modules/minizlib/dist/esm/constants.js +117 -0
  72. package/dist/node_modules/minizlib/dist/esm/index.js +363 -0
  73. package/dist/node_modules/minizlib/dist/esm/package.json +3 -0
  74. package/dist/node_modules/minizlib/package.json +80 -0
  75. package/dist/node_modules/node-gyp/.release-please-manifest.json +3 -0
  76. package/dist/node_modules/node-gyp/LICENSE +24 -0
  77. package/dist/node_modules/node-gyp/addon.gypi +204 -0
  78. package/dist/node_modules/node-gyp/bin/node-gyp.js +145 -0
  79. package/dist/node_modules/node-gyp/eslint.config.js +3 -0
  80. package/dist/node_modules/node-gyp/gyp/.release-please-manifest.json +3 -0
  81. package/dist/node_modules/node-gyp/gyp/LICENSE +28 -0
  82. package/dist/node_modules/node-gyp/gyp/data/ninja/build.ninja +4 -0
  83. package/dist/node_modules/node-gyp/gyp/data/win/large-pdb-shim.cc +12 -0
  84. package/dist/node_modules/node-gyp/gyp/gyp +8 -0
  85. package/dist/node_modules/node-gyp/gyp/gyp.bat +5 -0
  86. package/dist/node_modules/node-gyp/gyp/gyp_main.py +45 -0
  87. package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSNew.py +365 -0
  88. package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSProject.py +206 -0
  89. package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings.py +1283 -0
  90. package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings_test.py +1545 -0
  91. package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSToolFile.py +59 -0
  92. package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSUserFile.py +152 -0
  93. package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSUtil.py +270 -0
  94. package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSVersion.py +607 -0
  95. package/dist/node_modules/node-gyp/gyp/pylib/gyp/__init__.py +706 -0
  96. package/dist/node_modules/node-gyp/gyp/pylib/gyp/common.py +725 -0
  97. package/dist/node_modules/node-gyp/gyp/pylib/gyp/common_test.py +186 -0
  98. package/dist/node_modules/node-gyp/gyp/pylib/gyp/easy_xml.py +170 -0
  99. package/dist/node_modules/node-gyp/gyp/pylib/gyp/easy_xml_test.py +113 -0
  100. package/dist/node_modules/node-gyp/gyp/pylib/gyp/flock_tool.py +55 -0
  101. package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/__init__.py +0 -0
  102. package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/analyzer.py +805 -0
  103. package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/android.py +1169 -0
  104. package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/cmake.py +1316 -0
  105. package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/compile_commands_json.py +128 -0
  106. package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/dump_dependency_json.py +104 -0
  107. package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/eclipse.py +461 -0
  108. package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/gypd.py +88 -0
  109. package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/gypsh.py +55 -0
  110. package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py +2755 -0
  111. package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs.py +3970 -0
  112. package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs_test.py +44 -0
  113. package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja.py +2957 -0
  114. package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja_test.py +77 -0
  115. package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode.py +1389 -0
  116. package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode_test.py +26 -0
  117. package/dist/node_modules/node-gyp/gyp/pylib/gyp/input.py +3097 -0
  118. package/dist/node_modules/node-gyp/gyp/pylib/gyp/input_test.py +99 -0
  119. package/dist/node_modules/node-gyp/gyp/pylib/gyp/mac_tool.py +765 -0
  120. package/dist/node_modules/node-gyp/gyp/pylib/gyp/msvs_emulation.py +1255 -0
  121. package/dist/node_modules/node-gyp/gyp/pylib/gyp/ninja_syntax.py +174 -0
  122. package/dist/node_modules/node-gyp/gyp/pylib/gyp/simple_copy.py +61 -0
  123. package/dist/node_modules/node-gyp/gyp/pylib/gyp/win_tool.py +371 -0
  124. package/dist/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py +1936 -0
  125. package/dist/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation_test.py +54 -0
  126. package/dist/node_modules/node-gyp/gyp/pylib/gyp/xcode_ninja.py +301 -0
  127. package/dist/node_modules/node-gyp/gyp/pylib/gyp/xcodeproj_file.py +3180 -0
  128. package/dist/node_modules/node-gyp/gyp/pylib/gyp/xml_fix.py +64 -0
  129. package/dist/node_modules/node-gyp/gyp/pylib/packaging/LICENSE +3 -0
  130. package/dist/node_modules/node-gyp/gyp/pylib/packaging/LICENSE.APACHE +177 -0
  131. package/dist/node_modules/node-gyp/gyp/pylib/packaging/LICENSE.BSD +23 -0
  132. package/dist/node_modules/node-gyp/gyp/pylib/packaging/__init__.py +15 -0
  133. package/dist/node_modules/node-gyp/gyp/pylib/packaging/_elffile.py +107 -0
  134. package/dist/node_modules/node-gyp/gyp/pylib/packaging/_manylinux.py +252 -0
  135. package/dist/node_modules/node-gyp/gyp/pylib/packaging/_musllinux.py +83 -0
  136. package/dist/node_modules/node-gyp/gyp/pylib/packaging/_parser.py +359 -0
  137. package/dist/node_modules/node-gyp/gyp/pylib/packaging/_structures.py +61 -0
  138. package/dist/node_modules/node-gyp/gyp/pylib/packaging/_tokenizer.py +192 -0
  139. package/dist/node_modules/node-gyp/gyp/pylib/packaging/markers.py +251 -0
  140. package/dist/node_modules/node-gyp/gyp/pylib/packaging/metadata.py +807 -0
  141. package/dist/node_modules/node-gyp/gyp/pylib/packaging/py.typed +0 -0
  142. package/dist/node_modules/node-gyp/gyp/pylib/packaging/requirements.py +90 -0
  143. package/dist/node_modules/node-gyp/gyp/pylib/packaging/specifiers.py +1030 -0
  144. package/dist/node_modules/node-gyp/gyp/pylib/packaging/tags.py +541 -0
  145. package/dist/node_modules/node-gyp/gyp/pylib/packaging/utils.py +172 -0
  146. package/dist/node_modules/node-gyp/gyp/pylib/packaging/version.py +563 -0
  147. package/dist/node_modules/node-gyp/gyp/pyproject.toml +116 -0
  148. package/dist/node_modules/node-gyp/gyp/release-please-config.json +11 -0
  149. package/dist/node_modules/node-gyp/gyp/test_gyp.py +260 -0
  150. package/dist/node_modules/node-gyp/lib/Find-VisualStudio.cs +250 -0
  151. package/dist/node_modules/node-gyp/lib/build.js +230 -0
  152. package/dist/node_modules/node-gyp/lib/clean.js +15 -0
  153. package/dist/node_modules/node-gyp/lib/configure.js +328 -0
  154. package/dist/node_modules/node-gyp/lib/create-config-gypi.js +153 -0
  155. package/dist/node_modules/node-gyp/lib/download.js +86 -0
  156. package/dist/node_modules/node-gyp/lib/find-node-directory.js +63 -0
  157. package/dist/node_modules/node-gyp/lib/find-python.js +304 -0
  158. package/dist/node_modules/node-gyp/lib/find-visualstudio.js +606 -0
  159. package/dist/node_modules/node-gyp/lib/install.js +411 -0
  160. package/dist/node_modules/node-gyp/lib/list.js +26 -0
  161. package/dist/node_modules/node-gyp/lib/log.js +168 -0
  162. package/dist/node_modules/node-gyp/lib/node-gyp.js +199 -0
  163. package/dist/node_modules/node-gyp/lib/process-release.js +144 -0
  164. package/dist/node_modules/node-gyp/lib/rebuild.js +12 -0
  165. package/dist/node_modules/node-gyp/lib/remove.js +43 -0
  166. package/dist/node_modules/node-gyp/lib/util.js +81 -0
  167. package/dist/node_modules/node-gyp/macOS_Catalina_acid_test.sh +21 -0
  168. package/dist/node_modules/node-gyp/package.json +52 -0
  169. package/dist/node_modules/node-gyp/release-please-config.json +40 -0
  170. package/dist/node_modules/node-gyp/src/win_delay_load_hook.cc +41 -0
  171. package/dist/node_modules/nopt/LICENSE +15 -0
  172. package/dist/node_modules/nopt/bin/nopt.js +29 -0
  173. package/dist/node_modules/nopt/lib/debug.js +5 -0
  174. package/dist/node_modules/nopt/lib/nopt-lib.js +514 -0
  175. package/dist/node_modules/nopt/lib/nopt.js +34 -0
  176. package/dist/node_modules/nopt/lib/type-defs.js +91 -0
  177. package/dist/node_modules/nopt/package.json +52 -0
  178. package/dist/node_modules/picomatch/LICENSE +21 -0
  179. package/dist/node_modules/picomatch/index.js +17 -0
  180. package/dist/node_modules/picomatch/lib/constants.js +184 -0
  181. package/dist/node_modules/picomatch/lib/parse.js +1416 -0
  182. package/dist/node_modules/picomatch/lib/picomatch.js +361 -0
  183. package/dist/node_modules/picomatch/lib/scan.js +391 -0
  184. package/dist/node_modules/picomatch/lib/utils.js +72 -0
  185. package/dist/node_modules/picomatch/package.json +83 -0
  186. package/dist/node_modules/picomatch/posix.js +3 -0
  187. package/dist/node_modules/proc-log/LICENSE +15 -0
  188. package/dist/node_modules/proc-log/lib/index.js +158 -0
  189. package/dist/node_modules/proc-log/package.json +46 -0
  190. package/dist/node_modules/semver/LICENSE +15 -0
  191. package/dist/node_modules/semver/bin/semver.js +195 -0
  192. package/dist/node_modules/semver/classes/comparator.js +143 -0
  193. package/dist/node_modules/semver/classes/index.js +7 -0
  194. package/dist/node_modules/semver/classes/range.js +577 -0
  195. package/dist/node_modules/semver/classes/semver.js +350 -0
  196. package/dist/node_modules/semver/functions/clean.js +8 -0
  197. package/dist/node_modules/semver/functions/cmp.js +54 -0
  198. package/dist/node_modules/semver/functions/coerce.js +62 -0
  199. package/dist/node_modules/semver/functions/compare-build.js +9 -0
  200. package/dist/node_modules/semver/functions/compare-loose.js +5 -0
  201. package/dist/node_modules/semver/functions/compare.js +7 -0
  202. package/dist/node_modules/semver/functions/diff.js +60 -0
  203. package/dist/node_modules/semver/functions/eq.js +5 -0
  204. package/dist/node_modules/semver/functions/gt.js +5 -0
  205. package/dist/node_modules/semver/functions/gte.js +5 -0
  206. package/dist/node_modules/semver/functions/inc.js +21 -0
  207. package/dist/node_modules/semver/functions/lt.js +5 -0
  208. package/dist/node_modules/semver/functions/lte.js +5 -0
  209. package/dist/node_modules/semver/functions/major.js +5 -0
  210. package/dist/node_modules/semver/functions/minor.js +5 -0
  211. package/dist/node_modules/semver/functions/neq.js +5 -0
  212. package/dist/node_modules/semver/functions/parse.js +18 -0
  213. package/dist/node_modules/semver/functions/patch.js +5 -0
  214. package/dist/node_modules/semver/functions/prerelease.js +8 -0
  215. package/dist/node_modules/semver/functions/rcompare.js +5 -0
  216. package/dist/node_modules/semver/functions/rsort.js +5 -0
  217. package/dist/node_modules/semver/functions/satisfies.js +12 -0
  218. package/dist/node_modules/semver/functions/sort.js +5 -0
  219. package/dist/node_modules/semver/functions/truncate.js +48 -0
  220. package/dist/node_modules/semver/functions/valid.js +8 -0
  221. package/dist/node_modules/semver/index.js +93 -0
  222. package/dist/node_modules/semver/internal/constants.js +37 -0
  223. package/dist/node_modules/semver/internal/debug.js +11 -0
  224. package/dist/node_modules/semver/internal/identifiers.js +29 -0
  225. package/dist/node_modules/semver/internal/lrucache.js +42 -0
  226. package/dist/node_modules/semver/internal/parse-options.js +17 -0
  227. package/dist/node_modules/semver/internal/re.js +223 -0
  228. package/dist/node_modules/semver/package.json +78 -0
  229. package/dist/node_modules/semver/preload.js +4 -0
  230. package/dist/node_modules/semver/range.bnf +17 -0
  231. package/dist/node_modules/semver/ranges/gtr.js +6 -0
  232. package/dist/node_modules/semver/ranges/intersects.js +9 -0
  233. package/dist/node_modules/semver/ranges/ltr.js +6 -0
  234. package/dist/node_modules/semver/ranges/max-satisfying.js +27 -0
  235. package/dist/node_modules/semver/ranges/min-satisfying.js +26 -0
  236. package/dist/node_modules/semver/ranges/min-version.js +63 -0
  237. package/dist/node_modules/semver/ranges/outside.js +82 -0
  238. package/dist/node_modules/semver/ranges/simplify.js +49 -0
  239. package/dist/node_modules/semver/ranges/subset.js +249 -0
  240. package/dist/node_modules/semver/ranges/to-comparators.js +10 -0
  241. package/dist/node_modules/semver/ranges/valid.js +13 -0
  242. package/dist/node_modules/tar/dist/commonjs/create.js +82 -0
  243. package/dist/node_modules/tar/dist/commonjs/cwd-error.js +18 -0
  244. package/dist/node_modules/tar/dist/commonjs/extract.js +88 -0
  245. package/dist/node_modules/tar/dist/commonjs/get-write-flag.js +32 -0
  246. package/dist/node_modules/tar/dist/commonjs/header.js +348 -0
  247. package/dist/node_modules/tar/dist/commonjs/index.js +64 -0
  248. package/dist/node_modules/tar/dist/commonjs/index.min.js +4 -0
  249. package/dist/node_modules/tar/dist/commonjs/large-numbers.js +99 -0
  250. package/dist/node_modules/tar/dist/commonjs/list.js +145 -0
  251. package/dist/node_modules/tar/dist/commonjs/make-command.js +52 -0
  252. package/dist/node_modules/tar/dist/commonjs/mkdir.js +187 -0
  253. package/dist/node_modules/tar/dist/commonjs/mode-fix.js +29 -0
  254. package/dist/node_modules/tar/dist/commonjs/normalize-unicode.js +38 -0
  255. package/dist/node_modules/tar/dist/commonjs/normalize-windows-path.js +12 -0
  256. package/dist/node_modules/tar/dist/commonjs/options.js +66 -0
  257. package/dist/node_modules/tar/dist/commonjs/pack.js +544 -0
  258. package/dist/node_modules/tar/dist/commonjs/package.json +3 -0
  259. package/dist/node_modules/tar/dist/commonjs/parse.js +655 -0
  260. package/dist/node_modules/tar/dist/commonjs/path-reservations.js +170 -0
  261. package/dist/node_modules/tar/dist/commonjs/pax.js +182 -0
  262. package/dist/node_modules/tar/dist/commonjs/process-umask.js +7 -0
  263. package/dist/node_modules/tar/dist/commonjs/read-entry.js +136 -0
  264. package/dist/node_modules/tar/dist/commonjs/replace.js +227 -0
  265. package/dist/node_modules/tar/dist/commonjs/strip-absolute-path.js +29 -0
  266. package/dist/node_modules/tar/dist/commonjs/strip-trailing-slashes.js +18 -0
  267. package/dist/node_modules/tar/dist/commonjs/symlink-error.js +19 -0
  268. package/dist/node_modules/tar/dist/commonjs/types.js +70 -0
  269. package/dist/node_modules/tar/dist/commonjs/unpack.js +932 -0
  270. package/dist/node_modules/tar/dist/commonjs/update.js +33 -0
  271. package/dist/node_modules/tar/dist/commonjs/warn-method.js +31 -0
  272. package/dist/node_modules/tar/dist/commonjs/winchars.js +14 -0
  273. package/dist/node_modules/tar/dist/commonjs/write-entry.js +698 -0
  274. package/dist/node_modules/tar/dist/esm/create.js +76 -0
  275. package/dist/node_modules/tar/dist/esm/cwd-error.js +14 -0
  276. package/dist/node_modules/tar/dist/esm/extract.js +49 -0
  277. package/dist/node_modules/tar/dist/esm/get-write-flag.js +26 -0
  278. package/dist/node_modules/tar/dist/esm/header.js +311 -0
  279. package/dist/node_modules/tar/dist/esm/index.js +20 -0
  280. package/dist/node_modules/tar/dist/esm/index.min.js +4 -0
  281. package/dist/node_modules/tar/dist/esm/large-numbers.js +94 -0
  282. package/dist/node_modules/tar/dist/esm/list.js +105 -0
  283. package/dist/node_modules/tar/dist/esm/make-command.js +48 -0
  284. package/dist/node_modules/tar/dist/esm/mkdir.js +179 -0
  285. package/dist/node_modules/tar/dist/esm/mode-fix.js +25 -0
  286. package/dist/node_modules/tar/dist/esm/normalize-unicode.js +34 -0
  287. package/dist/node_modules/tar/dist/esm/normalize-windows-path.js +9 -0
  288. package/dist/node_modules/tar/dist/esm/options.js +54 -0
  289. package/dist/node_modules/tar/dist/esm/pack.js +502 -0
  290. package/dist/node_modules/tar/dist/esm/package.json +3 -0
  291. package/dist/node_modules/tar/dist/esm/parse.js +651 -0
  292. package/dist/node_modules/tar/dist/esm/path-reservations.js +166 -0
  293. package/dist/node_modules/tar/dist/esm/pax.js +178 -0
  294. package/dist/node_modules/tar/dist/esm/process-umask.js +3 -0
  295. package/dist/node_modules/tar/dist/esm/read-entry.js +132 -0
  296. package/dist/node_modules/tar/dist/esm/replace.js +221 -0
  297. package/dist/node_modules/tar/dist/esm/strip-absolute-path.js +25 -0
  298. package/dist/node_modules/tar/dist/esm/strip-trailing-slashes.js +14 -0
  299. package/dist/node_modules/tar/dist/esm/symlink-error.js +15 -0
  300. package/dist/node_modules/tar/dist/esm/types.js +65 -0
  301. package/dist/node_modules/tar/dist/esm/unpack.js +891 -0
  302. package/dist/node_modules/tar/dist/esm/update.js +30 -0
  303. package/dist/node_modules/tar/dist/esm/warn-method.js +27 -0
  304. package/dist/node_modules/tar/dist/esm/winchars.js +9 -0
  305. package/dist/node_modules/tar/dist/esm/write-entry.js +656 -0
  306. package/dist/node_modules/tar/package.json +298 -0
  307. package/dist/node_modules/tinyglobby/LICENSE +21 -0
  308. package/dist/node_modules/tinyglobby/dist/index.cjs +335 -0
  309. package/dist/node_modules/tinyglobby/dist/index.d.cts +148 -0
  310. package/dist/node_modules/tinyglobby/dist/index.d.mts +148 -0
  311. package/dist/node_modules/tinyglobby/dist/index.mjs +307 -0
  312. package/dist/node_modules/tinyglobby/package.json +70 -0
  313. package/dist/node_modules/undici/LICENSE +21 -0
  314. package/dist/node_modules/undici/index-fetch.js +35 -0
  315. package/dist/node_modules/undici/index.js +169 -0
  316. package/dist/node_modules/undici/lib/api/abort-signal.js +57 -0
  317. package/dist/node_modules/undici/lib/api/api-connect.js +108 -0
  318. package/dist/node_modules/undici/lib/api/api-pipeline.js +251 -0
  319. package/dist/node_modules/undici/lib/api/api-request.js +214 -0
  320. package/dist/node_modules/undici/lib/api/api-stream.js +220 -0
  321. package/dist/node_modules/undici/lib/api/api-upgrade.js +108 -0
  322. package/dist/node_modules/undici/lib/api/index.js +7 -0
  323. package/dist/node_modules/undici/lib/api/readable.js +385 -0
  324. package/dist/node_modules/undici/lib/api/util.js +93 -0
  325. package/dist/node_modules/undici/lib/core/connect.js +240 -0
  326. package/dist/node_modules/undici/lib/core/constants.js +118 -0
  327. package/dist/node_modules/undici/lib/core/diagnostics.js +202 -0
  328. package/dist/node_modules/undici/lib/core/errors.js +425 -0
  329. package/dist/node_modules/undici/lib/core/request.js +405 -0
  330. package/dist/node_modules/undici/lib/core/symbols.js +67 -0
  331. package/dist/node_modules/undici/lib/core/tree.js +152 -0
  332. package/dist/node_modules/undici/lib/core/util.js +719 -0
  333. package/dist/node_modules/undici/lib/dispatcher/agent.js +129 -0
  334. package/dist/node_modules/undici/lib/dispatcher/balanced-pool.js +209 -0
  335. package/dist/node_modules/undici/lib/dispatcher/client-h1.js +1487 -0
  336. package/dist/node_modules/undici/lib/dispatcher/client-h2.js +744 -0
  337. package/dist/node_modules/undici/lib/dispatcher/client.js +623 -0
  338. package/dist/node_modules/undici/lib/dispatcher/dispatcher-base.js +199 -0
  339. package/dist/node_modules/undici/lib/dispatcher/dispatcher.js +65 -0
  340. package/dist/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +160 -0
  341. package/dist/node_modules/undici/lib/dispatcher/fixed-queue.js +117 -0
  342. package/dist/node_modules/undici/lib/dispatcher/pool-base.js +194 -0
  343. package/dist/node_modules/undici/lib/dispatcher/pool-stats.js +34 -0
  344. package/dist/node_modules/undici/lib/dispatcher/pool.js +107 -0
  345. package/dist/node_modules/undici/lib/dispatcher/proxy-agent.js +274 -0
  346. package/dist/node_modules/undici/lib/dispatcher/retry-agent.js +35 -0
  347. package/dist/node_modules/undici/lib/global.js +32 -0
  348. package/dist/node_modules/undici/lib/handler/decorator-handler.js +44 -0
  349. package/dist/node_modules/undici/lib/handler/redirect-handler.js +232 -0
  350. package/dist/node_modules/undici/lib/handler/retry-handler.js +374 -0
  351. package/dist/node_modules/undici/lib/interceptor/dns.js +375 -0
  352. package/dist/node_modules/undici/lib/interceptor/dump.js +123 -0
  353. package/dist/node_modules/undici/lib/interceptor/redirect-interceptor.js +21 -0
  354. package/dist/node_modules/undici/lib/interceptor/redirect.js +24 -0
  355. package/dist/node_modules/undici/lib/interceptor/response-error.js +86 -0
  356. package/dist/node_modules/undici/lib/interceptor/retry.js +19 -0
  357. package/dist/node_modules/undici/lib/llhttp/.gitkeep +0 -0
  358. package/dist/node_modules/undici/lib/llhttp/constants.js +278 -0
  359. package/dist/node_modules/undici/lib/llhttp/llhttp-wasm.js +5 -0
  360. package/dist/node_modules/undici/lib/llhttp/llhttp_simd-wasm.js +5 -0
  361. package/dist/node_modules/undici/lib/llhttp/utils.js +15 -0
  362. package/dist/node_modules/undici/lib/mock/mock-agent.js +160 -0
  363. package/dist/node_modules/undici/lib/mock/mock-client.js +59 -0
  364. package/dist/node_modules/undici/lib/mock/mock-errors.js +28 -0
  365. package/dist/node_modules/undici/lib/mock/mock-interceptor.js +207 -0
  366. package/dist/node_modules/undici/lib/mock/mock-pool.js +59 -0
  367. package/dist/node_modules/undici/lib/mock/mock-symbols.js +23 -0
  368. package/dist/node_modules/undici/lib/mock/mock-utils.js +367 -0
  369. package/dist/node_modules/undici/lib/mock/pending-interceptors-formatter.js +43 -0
  370. package/dist/node_modules/undici/lib/mock/pluralizer.js +29 -0
  371. package/dist/node_modules/undici/lib/util/timers.js +423 -0
  372. package/dist/node_modules/undici/lib/web/cache/cache.js +859 -0
  373. package/dist/node_modules/undici/lib/web/cache/cachestorage.js +152 -0
  374. package/dist/node_modules/undici/lib/web/cache/symbols.js +5 -0
  375. package/dist/node_modules/undici/lib/web/cache/util.js +45 -0
  376. package/dist/node_modules/undici/lib/web/cookies/constants.js +12 -0
  377. package/dist/node_modules/undici/lib/web/cookies/index.js +184 -0
  378. package/dist/node_modules/undici/lib/web/cookies/parse.js +310 -0
  379. package/dist/node_modules/undici/lib/web/cookies/util.js +282 -0
  380. package/dist/node_modules/undici/lib/web/eventsource/eventsource-stream.js +398 -0
  381. package/dist/node_modules/undici/lib/web/eventsource/eventsource.js +480 -0
  382. package/dist/node_modules/undici/lib/web/eventsource/util.js +37 -0
  383. package/dist/node_modules/undici/lib/web/fetch/LICENSE +21 -0
  384. package/dist/node_modules/undici/lib/web/fetch/body.js +529 -0
  385. package/dist/node_modules/undici/lib/web/fetch/constants.js +124 -0
  386. package/dist/node_modules/undici/lib/web/fetch/data-url.js +744 -0
  387. package/dist/node_modules/undici/lib/web/fetch/dispatcher-weakref.js +46 -0
  388. package/dist/node_modules/undici/lib/web/fetch/file.js +126 -0
  389. package/dist/node_modules/undici/lib/web/fetch/formdata-parser.js +474 -0
  390. package/dist/node_modules/undici/lib/web/fetch/formdata.js +252 -0
  391. package/dist/node_modules/undici/lib/web/fetch/global.js +40 -0
  392. package/dist/node_modules/undici/lib/web/fetch/headers.js +687 -0
  393. package/dist/node_modules/undici/lib/web/fetch/index.js +2272 -0
  394. package/dist/node_modules/undici/lib/web/fetch/request.js +1037 -0
  395. package/dist/node_modules/undici/lib/web/fetch/response.js +610 -0
  396. package/dist/node_modules/undici/lib/web/fetch/symbols.js +9 -0
  397. package/dist/node_modules/undici/lib/web/fetch/util.js +1632 -0
  398. package/dist/node_modules/undici/lib/web/fetch/webidl.js +695 -0
  399. package/dist/node_modules/undici/lib/web/fileapi/encoding.js +290 -0
  400. package/dist/node_modules/undici/lib/web/fileapi/filereader.js +344 -0
  401. package/dist/node_modules/undici/lib/web/fileapi/progressevent.js +78 -0
  402. package/dist/node_modules/undici/lib/web/fileapi/symbols.js +10 -0
  403. package/dist/node_modules/undici/lib/web/fileapi/util.js +391 -0
  404. package/dist/node_modules/undici/lib/web/websocket/connection.js +371 -0
  405. package/dist/node_modules/undici/lib/web/websocket/constants.js +66 -0
  406. package/dist/node_modules/undici/lib/web/websocket/events.js +329 -0
  407. package/dist/node_modules/undici/lib/web/websocket/frame.js +96 -0
  408. package/dist/node_modules/undici/lib/web/websocket/permessage-deflate.js +100 -0
  409. package/dist/node_modules/undici/lib/web/websocket/receiver.js +513 -0
  410. package/dist/node_modules/undici/lib/web/websocket/sender.js +104 -0
  411. package/dist/node_modules/undici/lib/web/websocket/symbols.js +12 -0
  412. package/dist/node_modules/undici/lib/web/websocket/util.js +322 -0
  413. package/dist/node_modules/undici/lib/web/websocket/websocket.js +595 -0
  414. package/dist/node_modules/undici/package.json +160 -0
  415. package/dist/node_modules/undici/scripts/strip-comments.js +8 -0
  416. package/{LICENSE → dist/node_modules/v8-compile-cache/LICENSE} +1 -2
  417. package/dist/node_modules/v8-compile-cache/package.json +34 -0
  418. package/dist/node_modules/v8-compile-cache/v8-compile-cache.js +373 -0
  419. package/dist/node_modules/which/LICENSE +15 -0
  420. package/dist/node_modules/which/bin/which.js +52 -0
  421. package/dist/node_modules/which/lib/index.js +111 -0
  422. package/dist/node_modules/which/package.json +52 -0
  423. package/dist/node_modules/yallist/dist/commonjs/index.js +384 -0
  424. package/dist/node_modules/yallist/dist/commonjs/package.json +3 -0
  425. package/dist/node_modules/yallist/dist/esm/index.js +379 -0
  426. package/dist/node_modules/yallist/dist/esm/package.json +3 -0
  427. package/dist/node_modules/yallist/package.json +68 -0
  428. package/dist/pnpm.mjs +311857 -0
  429. package/dist/pnpmrc +2 -0
  430. package/dist/templates/completion.bash +31 -0
  431. package/dist/templates/completion.fish +22 -0
  432. package/dist/templates/completion.ps1 +193 -0
  433. package/dist/templates/completion.zsh +27 -0
  434. package/dist/vendor/fastlist-0.3.0-x64.exe +0 -0
  435. package/dist/vendor/fastlist-0.3.0-x86.exe +0 -0
  436. package/dist/worker.js +11941 -0
  437. package/package.json +12 -12
  438. package/pn.cmd +2 -0
  439. package/pn.ps1 +1 -0
  440. package/pnpx.cmd +2 -0
  441. package/pnpx.ps1 +1 -0
  442. package/pnx.cmd +2 -0
  443. package/pnx.ps1 +1 -0
@@ -0,0 +1,298 @@
1
+ {
2
+ "author": "Isaac Z. Schlueter",
3
+ "name": "tar",
4
+ "description": "tar for node",
5
+ "version": "7.5.20",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/isaacs/node-tar.git"
9
+ },
10
+ "scripts": {
11
+ "genparse": "node scripts/generate-parse-fixtures.js",
12
+ "snap": "tap",
13
+ "test": "tap",
14
+ "pretest": "npm run prepare",
15
+ "presnap": "npm run prepare",
16
+ "prepare": "tshy && bash scripts/build.sh",
17
+ "preversion": "npm test",
18
+ "postversion": "npm publish",
19
+ "prepublishOnly": "git push origin --follow-tags",
20
+ "format": "prettier --write . --log-level warn",
21
+ "typedoc": "typedoc --tsconfig .tshy/esm.json ./src/*.ts",
22
+ "lint": "oxlint --fix src test",
23
+ "postsnap": "npm run lint",
24
+ "postlint": "npm run format"
25
+ },
26
+ "dependencies": {
27
+ "@isaacs/fs-minipass": "^4.0.0",
28
+ "chownr": "^3.0.0",
29
+ "minipass": "^7.1.2",
30
+ "minizlib": "^3.1.0",
31
+ "yallist": "^5.0.0"
32
+ },
33
+ "devDependencies": {
34
+ "@types/node": "^25.9.1",
35
+ "chmodr": "^2.0.2",
36
+ "end-of-stream": "^1.4.3",
37
+ "esbuild": "^0.28.0",
38
+ "events-to-array": "^2.0.3",
39
+ "mutate-fs": "^2.1.1",
40
+ "nock": "^13.5.4",
41
+ "oxlint": "^1.67.0",
42
+ "oxlint-tsgolint": "^0.23.0",
43
+ "prettier": "^3.8.3",
44
+ "rimraf": "^6.1.2",
45
+ "tap": "^21.7.4",
46
+ "tshy": "^4.1.2",
47
+ "typedoc": "^0.28.19"
48
+ },
49
+ "license": "BlueOak-1.0.0",
50
+ "engines": {
51
+ "node": ">=18"
52
+ },
53
+ "files": [
54
+ "dist"
55
+ ],
56
+ "tshy": {
57
+ "exports": {
58
+ "./package.json": "./package.json",
59
+ ".": {
60
+ "import": {
61
+ "types": "./dist/esm/index.d.ts",
62
+ "default": "./dist/esm/index.min.js"
63
+ },
64
+ "require": {
65
+ "types": "./dist/commonjs/index.d.ts",
66
+ "default": "./dist/commonjs/index.min.js"
67
+ }
68
+ },
69
+ "./raw": "./src/index.ts",
70
+ "./c": "./src/create.ts",
71
+ "./create": "./src/create.ts",
72
+ "./replace": "./src/create.ts",
73
+ "./r": "./src/create.ts",
74
+ "./list": "./src/list.ts",
75
+ "./t": "./src/list.ts",
76
+ "./update": "./src/update.ts",
77
+ "./u": "./src/update.ts",
78
+ "./extract": "./src/extract.ts",
79
+ "./x": "./src/extract.ts",
80
+ "./pack": "./src/pack.ts",
81
+ "./unpack": "./src/unpack.ts",
82
+ "./parse": "./src/parse.ts",
83
+ "./read-entry": "./src/read-entry.ts",
84
+ "./write-entry": "./src/write-entry.ts",
85
+ "./header": "./src/header.ts",
86
+ "./pax": "./src/pax.ts",
87
+ "./types": "./src/types.ts"
88
+ },
89
+ "selfLink": false
90
+ },
91
+ "exports": {
92
+ "./package.json": "./package.json",
93
+ ".": {
94
+ "import": {
95
+ "types": "./dist/esm/index.d.ts",
96
+ "default": "./dist/esm/index.min.js"
97
+ },
98
+ "require": {
99
+ "types": "./dist/commonjs/index.d.ts",
100
+ "default": "./dist/commonjs/index.min.js"
101
+ }
102
+ },
103
+ "./raw": {
104
+ "import": {
105
+ "types": "./dist/esm/index.d.ts",
106
+ "default": "./dist/esm/index.js"
107
+ },
108
+ "require": {
109
+ "types": "./dist/commonjs/index.d.ts",
110
+ "default": "./dist/commonjs/index.js"
111
+ }
112
+ },
113
+ "./c": {
114
+ "import": {
115
+ "types": "./dist/esm/create.d.ts",
116
+ "default": "./dist/esm/create.js"
117
+ },
118
+ "require": {
119
+ "types": "./dist/commonjs/create.d.ts",
120
+ "default": "./dist/commonjs/create.js"
121
+ }
122
+ },
123
+ "./create": {
124
+ "import": {
125
+ "types": "./dist/esm/create.d.ts",
126
+ "default": "./dist/esm/create.js"
127
+ },
128
+ "require": {
129
+ "types": "./dist/commonjs/create.d.ts",
130
+ "default": "./dist/commonjs/create.js"
131
+ }
132
+ },
133
+ "./replace": {
134
+ "import": {
135
+ "types": "./dist/esm/create.d.ts",
136
+ "default": "./dist/esm/create.js"
137
+ },
138
+ "require": {
139
+ "types": "./dist/commonjs/create.d.ts",
140
+ "default": "./dist/commonjs/create.js"
141
+ }
142
+ },
143
+ "./r": {
144
+ "import": {
145
+ "types": "./dist/esm/create.d.ts",
146
+ "default": "./dist/esm/create.js"
147
+ },
148
+ "require": {
149
+ "types": "./dist/commonjs/create.d.ts",
150
+ "default": "./dist/commonjs/create.js"
151
+ }
152
+ },
153
+ "./list": {
154
+ "import": {
155
+ "types": "./dist/esm/list.d.ts",
156
+ "default": "./dist/esm/list.js"
157
+ },
158
+ "require": {
159
+ "types": "./dist/commonjs/list.d.ts",
160
+ "default": "./dist/commonjs/list.js"
161
+ }
162
+ },
163
+ "./t": {
164
+ "import": {
165
+ "types": "./dist/esm/list.d.ts",
166
+ "default": "./dist/esm/list.js"
167
+ },
168
+ "require": {
169
+ "types": "./dist/commonjs/list.d.ts",
170
+ "default": "./dist/commonjs/list.js"
171
+ }
172
+ },
173
+ "./update": {
174
+ "import": {
175
+ "types": "./dist/esm/update.d.ts",
176
+ "default": "./dist/esm/update.js"
177
+ },
178
+ "require": {
179
+ "types": "./dist/commonjs/update.d.ts",
180
+ "default": "./dist/commonjs/update.js"
181
+ }
182
+ },
183
+ "./u": {
184
+ "import": {
185
+ "types": "./dist/esm/update.d.ts",
186
+ "default": "./dist/esm/update.js"
187
+ },
188
+ "require": {
189
+ "types": "./dist/commonjs/update.d.ts",
190
+ "default": "./dist/commonjs/update.js"
191
+ }
192
+ },
193
+ "./extract": {
194
+ "import": {
195
+ "types": "./dist/esm/extract.d.ts",
196
+ "default": "./dist/esm/extract.js"
197
+ },
198
+ "require": {
199
+ "types": "./dist/commonjs/extract.d.ts",
200
+ "default": "./dist/commonjs/extract.js"
201
+ }
202
+ },
203
+ "./x": {
204
+ "import": {
205
+ "types": "./dist/esm/extract.d.ts",
206
+ "default": "./dist/esm/extract.js"
207
+ },
208
+ "require": {
209
+ "types": "./dist/commonjs/extract.d.ts",
210
+ "default": "./dist/commonjs/extract.js"
211
+ }
212
+ },
213
+ "./pack": {
214
+ "import": {
215
+ "types": "./dist/esm/pack.d.ts",
216
+ "default": "./dist/esm/pack.js"
217
+ },
218
+ "require": {
219
+ "types": "./dist/commonjs/pack.d.ts",
220
+ "default": "./dist/commonjs/pack.js"
221
+ }
222
+ },
223
+ "./unpack": {
224
+ "import": {
225
+ "types": "./dist/esm/unpack.d.ts",
226
+ "default": "./dist/esm/unpack.js"
227
+ },
228
+ "require": {
229
+ "types": "./dist/commonjs/unpack.d.ts",
230
+ "default": "./dist/commonjs/unpack.js"
231
+ }
232
+ },
233
+ "./parse": {
234
+ "import": {
235
+ "types": "./dist/esm/parse.d.ts",
236
+ "default": "./dist/esm/parse.js"
237
+ },
238
+ "require": {
239
+ "types": "./dist/commonjs/parse.d.ts",
240
+ "default": "./dist/commonjs/parse.js"
241
+ }
242
+ },
243
+ "./read-entry": {
244
+ "import": {
245
+ "types": "./dist/esm/read-entry.d.ts",
246
+ "default": "./dist/esm/read-entry.js"
247
+ },
248
+ "require": {
249
+ "types": "./dist/commonjs/read-entry.d.ts",
250
+ "default": "./dist/commonjs/read-entry.js"
251
+ }
252
+ },
253
+ "./write-entry": {
254
+ "import": {
255
+ "types": "./dist/esm/write-entry.d.ts",
256
+ "default": "./dist/esm/write-entry.js"
257
+ },
258
+ "require": {
259
+ "types": "./dist/commonjs/write-entry.d.ts",
260
+ "default": "./dist/commonjs/write-entry.js"
261
+ }
262
+ },
263
+ "./header": {
264
+ "import": {
265
+ "types": "./dist/esm/header.d.ts",
266
+ "default": "./dist/esm/header.js"
267
+ },
268
+ "require": {
269
+ "types": "./dist/commonjs/header.d.ts",
270
+ "default": "./dist/commonjs/header.js"
271
+ }
272
+ },
273
+ "./pax": {
274
+ "import": {
275
+ "types": "./dist/esm/pax.d.ts",
276
+ "default": "./dist/esm/pax.js"
277
+ },
278
+ "require": {
279
+ "types": "./dist/commonjs/pax.d.ts",
280
+ "default": "./dist/commonjs/pax.js"
281
+ }
282
+ },
283
+ "./types": {
284
+ "import": {
285
+ "types": "./dist/esm/types.d.ts",
286
+ "default": "./dist/esm/types.js"
287
+ },
288
+ "require": {
289
+ "types": "./dist/commonjs/types.d.ts",
290
+ "default": "./dist/commonjs/types.js"
291
+ }
292
+ }
293
+ },
294
+ "type": "module",
295
+ "main": "./dist/commonjs/index.min.js",
296
+ "types": "./dist/commonjs/index.d.ts",
297
+ "module": "./dist/esm/index.min.js"
298
+ }
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Madeline Gurriarán
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,335 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ //#region \0rolldown/runtime.js
3
+ var __create = Object.create;
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getProtoOf = Object.getPrototypeOf;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
11
+ key = keys[i];
12
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
13
+ get: ((k) => from[k]).bind(null, key),
14
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
15
+ });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
20
+ value: mod,
21
+ enumerable: true
22
+ }) : target, mod));
23
+ //#endregion
24
+ let fs = require("fs");
25
+ let path = require("path");
26
+ let url = require("url");
27
+ let fdir = require("fdir");
28
+ let picomatch = require("picomatch");
29
+ picomatch = __toESM(picomatch, 1);
30
+ //#region src/utils.ts
31
+ const isReadonlyArray = Array.isArray;
32
+ const BACKSLASHES = /\\/g;
33
+ const DRIVE_RELATIVE_PATH = /^[A-Za-z]:$/;
34
+ const isWin = process.platform === "win32";
35
+ const ONLY_PARENT_DIRECTORIES = /^(\/?\.\.)+$/;
36
+ function getPartialMatcher(patterns, options = {}) {
37
+ const patternsCount = patterns.length;
38
+ const patternsParts = Array(patternsCount);
39
+ const matchers = Array(patternsCount);
40
+ let i, j;
41
+ for (i = 0; i < patternsCount; i++) {
42
+ const parts = splitPattern(patterns[i]);
43
+ patternsParts[i] = parts;
44
+ const partsCount = parts.length;
45
+ const partMatchers = Array(partsCount);
46
+ for (j = 0; j < partsCount; j++) partMatchers[j] = (0, picomatch.default)(parts[j], options);
47
+ matchers[i] = partMatchers;
48
+ }
49
+ return (input) => {
50
+ const inputParts = input.split("/");
51
+ if (inputParts[0] === ".." && ONLY_PARENT_DIRECTORIES.test(input)) return true;
52
+ for (i = 0; i < patternsCount; i++) {
53
+ const patternParts = patternsParts[i];
54
+ const matcher = matchers[i];
55
+ const inputPatternCount = inputParts.length;
56
+ const minParts = Math.min(inputPatternCount, patternParts.length);
57
+ j = 0;
58
+ while (j < minParts) {
59
+ const part = patternParts[j];
60
+ if (part.includes("/")) return true;
61
+ if (!matcher[j](inputParts[j])) break;
62
+ if (!options.noglobstar && part === "**") return true;
63
+ j++;
64
+ }
65
+ if (j === inputPatternCount) return true;
66
+ }
67
+ return false;
68
+ };
69
+ }
70
+ /* node:coverage ignore next 2 */
71
+ const WIN32_ROOT_DIR = /^[A-Z]:\/$/i;
72
+ const isRoot = isWin ? (p) => WIN32_ROOT_DIR.test(p) : (p) => p === "/";
73
+ function buildFormat(cwd, root, absolute) {
74
+ if (cwd === root || root.startsWith(`${cwd}/`)) {
75
+ if (absolute) {
76
+ const start = cwd.length + +!isRoot(cwd);
77
+ return (p, isDir) => p.slice(start, isDir ? -1 : void 0) || ".";
78
+ }
79
+ const prefix = root.slice(cwd.length + 1);
80
+ if (prefix) return (p, isDir) => {
81
+ if (p === ".") return prefix;
82
+ const result = `${prefix}/${p}`;
83
+ return isDir ? result.slice(0, -1) : result;
84
+ };
85
+ return (p, isDir) => isDir && p !== "." ? p.slice(0, -1) : p;
86
+ }
87
+ if (absolute) return (p) => path.posix.relative(cwd, p) || ".";
88
+ return (p) => path.posix.relative(cwd, `${root}/${p}`) || ".";
89
+ }
90
+ function buildRelative(cwd, root) {
91
+ if (root.startsWith(`${cwd}/`)) {
92
+ const prefix = root.slice(cwd.length + 1);
93
+ return (p) => `${prefix}/${p}`;
94
+ }
95
+ return (p) => {
96
+ const result = path.posix.relative(cwd, `${root}/${p}`);
97
+ return p[p.length - 1] === "/" && result !== "" ? `${result}/` : result || ".";
98
+ };
99
+ }
100
+ function ensureNonDriveRelativePath(path$1) {
101
+ return path$1.replace(DRIVE_RELATIVE_PATH, (match) => `${match}/`);
102
+ }
103
+ const splitPatternOptions = { parts: true };
104
+ function splitPattern(path$2) {
105
+ var _result$parts;
106
+ const result = picomatch.default.scan(path$2, splitPatternOptions);
107
+ return ((_result$parts = result.parts) === null || _result$parts === void 0 ? void 0 : _result$parts.length) ? result.parts : [path$2];
108
+ }
109
+ const ESCAPED_WIN32_BACKSLASHES = /\\(?![()[\]{}!+@])/g;
110
+ function convertPosixPathToPattern(path$3) {
111
+ return escapePosixPath(path$3);
112
+ }
113
+ function convertWin32PathToPattern(path$4) {
114
+ return escapeWin32Path(path$4).replace(ESCAPED_WIN32_BACKSLASHES, "/");
115
+ }
116
+ /**
117
+ * Converts a path to a pattern depending on the platform.
118
+ * Identical to {@link escapePath} on POSIX systems.
119
+ * @see {@link https://superchupu.dev/tinyglobby/documentation#convertPathToPattern}
120
+ */
121
+ /* node:coverage ignore next 3 */
122
+ const convertPathToPattern = isWin ? convertWin32PathToPattern : convertPosixPathToPattern;
123
+ const POSIX_UNESCAPED_GLOB_SYMBOLS = /(?<!\\)([()[\]{}*?|]|^!|[!+@](?=\()|\\(?![()[\]{}!*+?@|]))/g;
124
+ const WIN32_UNESCAPED_GLOB_SYMBOLS = /(?<!\\)([()[\]{}]|^!|[!+@](?=\())/g;
125
+ const escapePosixPath = (path$5) => path$5.replace(POSIX_UNESCAPED_GLOB_SYMBOLS, "\\$&");
126
+ const escapeWin32Path = (path$6) => path$6.replace(WIN32_UNESCAPED_GLOB_SYMBOLS, "\\$&");
127
+ /**
128
+ * Escapes a path's special characters depending on the platform.
129
+ * @see {@link https://superchupu.dev/tinyglobby/documentation#escapePath}
130
+ */
131
+ /* node:coverage ignore next */
132
+ const escapePath = isWin ? escapeWin32Path : escapePosixPath;
133
+ /**
134
+ * Checks if a pattern has dynamic parts.
135
+ *
136
+ * Has a few minor differences with [`fast-glob`](https://github.com/mrmlnc/fast-glob) for better accuracy:
137
+ *
138
+ * - Doesn't necessarily return `false` on patterns that include `\`.
139
+ * - Returns `true` if the pattern includes parentheses, regardless of them representing one single pattern or not.
140
+ * - Returns `true` for unfinished glob extensions i.e. `(h`, `+(h`.
141
+ * - Returns `true` for unfinished brace expansions as long as they include `,` or `..`.
142
+ *
143
+ * @see {@link https://superchupu.dev/tinyglobby/documentation#isDynamicPattern}
144
+ */
145
+ function isDynamicPattern(pattern, options) {
146
+ if ((options === null || options === void 0 ? void 0 : options.caseSensitiveMatch) === false) return true;
147
+ const scan = picomatch.default.scan(pattern);
148
+ return scan.isGlob || scan.negated;
149
+ }
150
+ function log(...tasks) {
151
+ console.log(`[tinyglobby ${(/* @__PURE__ */ new Date()).toLocaleTimeString("es")}]`, ...tasks);
152
+ }
153
+ function ensureStringArray(value) {
154
+ return typeof value === "string" ? [value] : value !== null && value !== void 0 ? value : [];
155
+ }
156
+ //#endregion
157
+ //#region src/patterns.ts
158
+ const PARENT_DIRECTORY = /^(\/?\.\.)+/;
159
+ const ESCAPING_BACKSLASHES = /\\(?=[()[\]{}!*+?@|])/g;
160
+ function normalizePattern(pattern, opts, props, isIgnore) {
161
+ var _PARENT_DIRECTORY$exe;
162
+ const cwd = opts.cwd;
163
+ let result = pattern;
164
+ if (pattern[pattern.length - 1] === "/") result = pattern.slice(0, -1);
165
+ if (result[result.length - 1] !== "*" && opts.expandDirectories) result += "/**";
166
+ const escapedCwd = escapePath(cwd);
167
+ result = (0, path.isAbsolute)(result.replace(ESCAPING_BACKSLASHES, "")) ? path.posix.relative(escapedCwd, result) : path.posix.normalize(result);
168
+ const parentDir = (_PARENT_DIRECTORY$exe = PARENT_DIRECTORY.exec(result)) === null || _PARENT_DIRECTORY$exe === void 0 ? void 0 : _PARENT_DIRECTORY$exe[0];
169
+ const parts = splitPattern(result);
170
+ if (parentDir) {
171
+ const n = (parentDir.length + 1) / 3;
172
+ let i = 0;
173
+ const cwdParts = escapedCwd.split("/");
174
+ while (i < n && parts[i + n] === cwdParts[cwdParts.length + i - n]) {
175
+ result = result.slice(0, (n - i - 1) * 3) + result.slice((n - i) * 3 + parts[i + n].length + 1) || ".";
176
+ i++;
177
+ }
178
+ const potentialRoot = path.posix.join(cwd, parentDir.slice(i * 3));
179
+ if (potentialRoot[0] !== "." && props.root.length > potentialRoot.length) {
180
+ props.root = ensureNonDriveRelativePath(potentialRoot);
181
+ props.depthOffset = -n + i;
182
+ }
183
+ }
184
+ if (!isIgnore && props.depthOffset >= 0) {
185
+ var _props$commonPath;
186
+ (_props$commonPath = props.commonPath) !== null && _props$commonPath !== void 0 || (props.commonPath = parts);
187
+ const newCommonPath = [];
188
+ const length = Math.min(props.commonPath.length, parts.length);
189
+ for (let i = 0; i < length; i++) {
190
+ const part = parts[i];
191
+ if (part === "**" && !parts[i + 1]) {
192
+ newCommonPath.pop();
193
+ break;
194
+ }
195
+ if (i === parts.length - 1 || part !== props.commonPath[i] || isDynamicPattern(part)) break;
196
+ newCommonPath.push(part);
197
+ }
198
+ props.depthOffset = newCommonPath.length;
199
+ props.commonPath = newCommonPath;
200
+ props.root = ensureNonDriveRelativePath(newCommonPath.length > 0 ? path.posix.join(cwd, ...newCommonPath) : cwd);
201
+ }
202
+ return result;
203
+ }
204
+ function processPatterns(options, patterns, props) {
205
+ const matchPatterns = [];
206
+ const ignorePatterns = [];
207
+ for (const pattern of options.ignore) {
208
+ if (!pattern) continue;
209
+ if (pattern[0] !== "!" || pattern[1] === "(") ignorePatterns.push(normalizePattern(pattern, options, props, true));
210
+ }
211
+ for (const pattern of patterns) {
212
+ if (!pattern) continue;
213
+ if (pattern[0] !== "!" || pattern[1] === "(") matchPatterns.push(normalizePattern(pattern, options, props, false));
214
+ else if (pattern[1] !== "!" || pattern[2] === "(") ignorePatterns.push(normalizePattern(pattern.slice(1), options, props, true));
215
+ }
216
+ return {
217
+ match: matchPatterns,
218
+ ignore: ignorePatterns
219
+ };
220
+ }
221
+ //#endregion
222
+ //#region src/crawler.ts
223
+ function buildCrawler(options, patterns) {
224
+ const cwd = options.cwd;
225
+ const props = {
226
+ root: cwd,
227
+ depthOffset: 0
228
+ };
229
+ const processed = processPatterns(options, patterns, props);
230
+ if (options.debug) log("internal processing patterns:", processed);
231
+ const { absolute, caseSensitiveMatch, debug, dot, followSymbolicLinks, onlyDirectories } = options;
232
+ const root = props.root.replace(BACKSLASHES, "");
233
+ const matchOptions = {
234
+ dot,
235
+ nobrace: options.braceExpansion === false,
236
+ nocase: !caseSensitiveMatch,
237
+ noextglob: options.extglob === false,
238
+ noglobstar: options.globstar === false,
239
+ posix: true
240
+ };
241
+ const matcher = (0, picomatch.default)(processed.match, matchOptions);
242
+ const ignore = (0, picomatch.default)(processed.ignore, matchOptions);
243
+ const partialMatcher = getPartialMatcher(processed.match, matchOptions);
244
+ const format = buildFormat(cwd, root, absolute);
245
+ const excludeFormatter = absolute ? format : buildFormat(cwd, root, true);
246
+ const excludePredicate = (_, p) => {
247
+ const relativePath = excludeFormatter(p, true);
248
+ return relativePath !== "." && !partialMatcher(relativePath) || ignore(relativePath);
249
+ };
250
+ let maxDepth;
251
+ if (options.deep !== void 0) maxDepth = Math.round(options.deep - props.depthOffset);
252
+ const crawler = new fdir.fdir({
253
+ filters: [debug ? (p, isDirectory) => {
254
+ const path = format(p, isDirectory);
255
+ const matches = matcher(path) && !ignore(path);
256
+ if (matches) log(`matched ${path}`);
257
+ return matches;
258
+ } : (p, isDirectory) => {
259
+ const path = format(p, isDirectory);
260
+ return matcher(path) && !ignore(path);
261
+ }],
262
+ exclude: debug ? (_, p) => {
263
+ const skipped = excludePredicate(_, p);
264
+ log(`${skipped ? "skipped" : "crawling"} ${p}`);
265
+ return skipped;
266
+ } : excludePredicate,
267
+ fs: options.fs,
268
+ pathSeparator: "/",
269
+ relativePaths: !absolute,
270
+ resolvePaths: absolute,
271
+ includeBasePath: absolute,
272
+ resolveSymlinks: followSymbolicLinks,
273
+ excludeSymlinks: !followSymbolicLinks,
274
+ excludeFiles: onlyDirectories,
275
+ includeDirs: onlyDirectories || !options.onlyFiles,
276
+ maxDepth,
277
+ signal: options.signal
278
+ }).crawl(root);
279
+ if (options.debug) log("internal properties:", {
280
+ ...props,
281
+ root
282
+ });
283
+ return [crawler, cwd !== root && !absolute && buildRelative(cwd, root)];
284
+ }
285
+ //#endregion
286
+ //#region src/index.ts
287
+ function formatPaths(paths, mapper) {
288
+ if (mapper) for (let i = paths.length - 1; i >= 0; i--) paths[i] = mapper(paths[i]);
289
+ return paths;
290
+ }
291
+ const defaultOptions = {
292
+ caseSensitiveMatch: true,
293
+ debug: !!process.env.TINYGLOBBY_DEBUG,
294
+ expandDirectories: true,
295
+ followSymbolicLinks: true,
296
+ onlyFiles: true
297
+ };
298
+ function getOptions(options) {
299
+ const opts = Object.assign({}, options);
300
+ for (const key in defaultOptions) if (opts[key] === void 0) Object.assign(opts, { [key]: defaultOptions[key] });
301
+ opts.cwd = (opts.cwd instanceof URL ? (0, url.fileURLToPath)(opts.cwd) : (0, path.resolve)(opts.cwd || process.cwd())).replace(BACKSLASHES, "/");
302
+ opts.ignore = ensureStringArray(opts.ignore);
303
+ opts.fs && (opts.fs = {
304
+ readdir: opts.fs.readdir || fs.readdir,
305
+ readdirSync: opts.fs.readdirSync || fs.readdirSync,
306
+ realpath: opts.fs.realpath || fs.realpath,
307
+ realpathSync: opts.fs.realpathSync || fs.realpathSync,
308
+ stat: opts.fs.stat || fs.stat,
309
+ statSync: opts.fs.statSync || fs.statSync
310
+ });
311
+ if (opts.debug) log("globbing with options:", opts);
312
+ return opts;
313
+ }
314
+ function getCrawler(globInput, inputOptions = {}) {
315
+ var _ref;
316
+ if (globInput && (inputOptions === null || inputOptions === void 0 ? void 0 : inputOptions.patterns)) throw new Error("Cannot pass patterns as both an argument and an option");
317
+ const isModern = isReadonlyArray(globInput) || typeof globInput === "string";
318
+ const patterns = ensureStringArray((_ref = isModern ? globInput : globInput.patterns) !== null && _ref !== void 0 ? _ref : "**/*");
319
+ const options = getOptions(isModern ? inputOptions : globInput);
320
+ return patterns.length > 0 ? buildCrawler(options, patterns) : [];
321
+ }
322
+ async function glob(globInput, options) {
323
+ const [crawler, relative] = getCrawler(globInput, options);
324
+ return crawler ? formatPaths(await crawler.withPromise(), relative) : [];
325
+ }
326
+ function globSync(globInput, options) {
327
+ const [crawler, relative] = getCrawler(globInput, options);
328
+ return crawler ? formatPaths(crawler.sync(), relative) : [];
329
+ }
330
+ //#endregion
331
+ exports.convertPathToPattern = convertPathToPattern;
332
+ exports.escapePath = escapePath;
333
+ exports.glob = glob;
334
+ exports.globSync = globSync;
335
+ exports.isDynamicPattern = isDynamicPattern;