@visulima/fs 5.0.0-alpha.13 → 5.0.0-alpha.15

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 (186) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/LICENSE.md +30 -0
  3. package/dist/eol.js +3 -26
  4. package/dist/error.js +1 -7
  5. package/dist/glob-parent.js +1 -90
  6. package/dist/glob.d.ts +2 -2
  7. package/dist/glob.js +1 -2
  8. package/dist/index.d.ts +3 -3
  9. package/dist/index.js +1 -38
  10. package/dist/ini.d.ts +2 -2
  11. package/dist/ini.js +1 -4
  12. package/dist/is-glob.js +1 -9
  13. package/dist/json5.d.ts +2 -2
  14. package/dist/json5.js +1 -4
  15. package/dist/jsonc.d.ts +2 -2
  16. package/dist/jsonc.js +1 -4
  17. package/dist/match.d.ts +1 -1
  18. package/dist/match.js +1 -15
  19. package/dist/packem_shared/AlreadyExistsError-CEu6_Tjb.js +1 -0
  20. package/dist/packem_shared/DirectoryError-ddlbUV8C.js +1 -0
  21. package/dist/packem_shared/F_OK-CAwY1qU7.js +1 -0
  22. package/dist/packem_shared/JSONError-D7h6PNWc.js +4 -0
  23. package/dist/packem_shared/NotEmptyError-DMh1o7UL.js +1 -0
  24. package/dist/packem_shared/NotFoundError-BPiW0icm.js +1 -0
  25. package/dist/packem_shared/PermissionError-B1Emi5a9.js +1 -0
  26. package/dist/packem_shared/WalkError-Olmh4908.js +1 -0
  27. package/dist/packem_shared/_commonjsHelpers-D6W6KoPK.js +1 -0
  28. package/dist/packem_shared/assertValidFileContents-BZFnXa7K.js +1 -0
  29. package/dist/packem_shared/assertValidFileOrDirectoryPath-DgPIPmZT.js +1 -0
  30. package/dist/packem_shared/build-rm-options-C1R4reBu.js +1 -0
  31. package/dist/packem_shared/collect-2KPTpCdX.js +1 -0
  32. package/dist/packem_shared/collectSync-BX55r_BH.js +1 -0
  33. package/dist/packem_shared/emptyDir-8utO028L.js +1 -0
  34. package/dist/packem_shared/emptyDirSync-Bk5fUX73.js +1 -0
  35. package/dist/packem_shared/ensureDir-CZ4oUFuo.js +1 -0
  36. package/dist/packem_shared/ensureDirSync-CoPWhbjM.js +1 -0
  37. package/dist/packem_shared/ensureFile-CF1cAAyh.js +1 -0
  38. package/dist/packem_shared/ensureFileSync-C3qR6naU.js +1 -0
  39. package/dist/packem_shared/ensureLink-LLLxlGHn.js +1 -0
  40. package/dist/packem_shared/ensureLinkSync-Dh_GtT8F.js +1 -0
  41. package/dist/packem_shared/ensureSymlink-D50kj2zl.js +1 -0
  42. package/dist/packem_shared/ensureSymlinkSync-BbVDPvI4.js +1 -0
  43. package/dist/packem_shared/findUp-BT07y_Me.js +1 -0
  44. package/dist/packem_shared/findUpSync-BvZiYsKJ.js +1 -0
  45. package/dist/packem_shared/get-file-info-type-CaWGXRjY.js +1 -0
  46. package/dist/packem_shared/glob-MHJQjR39.js +1 -0
  47. package/dist/packem_shared/{glob-sync.d-Dsxhj3BW.d.ts → glob-sync.d-D2sDeSpa.d.ts} +1 -1
  48. package/dist/packem_shared/globSync-CwzlELgS.js +1 -0
  49. package/dist/packem_shared/index-CYIVJA0W.js +1 -0
  50. package/dist/packem_shared/index-DrapuBsB.js +1 -0
  51. package/dist/packem_shared/index-K-NNTkpb.js +11 -0
  52. package/dist/packem_shared/index-yGx8uzZs.js +1 -0
  53. package/dist/packem_shared/indexToLineColumn-BRSZFC6I-BKj3uzZt.js +6 -0
  54. package/dist/packem_shared/ini-preserve-CXc_xkpG.js +4 -0
  55. package/dist/packem_shared/is-stats-identical-CohsLtWy.js +1 -0
  56. package/dist/packem_shared/isAccessible-CDFxsAAo.js +1 -0
  57. package/dist/packem_shared/isAccessibleSync-5nzZWgin.js +1 -0
  58. package/dist/packem_shared/isFsCaseSensitive-CMZVY1A2.js +1 -0
  59. package/dist/packem_shared/jsonc-merge-CQMjx3Vw.js +2 -0
  60. package/dist/packem_shared/move-LmP6P9sn.js +1 -0
  61. package/dist/packem_shared/parseJson-Xx6vHYbv.js +1 -0
  62. package/dist/packem_shared/readFile-BAVMZg5e.js +1 -0
  63. package/dist/packem_shared/readFileSync-CGmzMUF2.js +1 -0
  64. package/dist/packem_shared/readIni-Cfl6HmTS.js +1 -0
  65. package/dist/packem_shared/readIniSync-DPg4UD0P.js +1 -0
  66. package/dist/packem_shared/readJson-kPx68Wv1.js +1 -0
  67. package/dist/packem_shared/readJson5-pXTL9nUE.js +1 -0
  68. package/dist/packem_shared/readJson5Sync-BedQc292.js +1 -0
  69. package/dist/packem_shared/readJsonSync-_HXNI3Se.js +1 -0
  70. package/dist/packem_shared/readJsonc-BzvuAXbT.js +1 -0
  71. package/dist/packem_shared/readJsoncSync-CVG1_QnX.js +1 -0
  72. package/dist/packem_shared/readToml-BO5CZK2P.js +1 -0
  73. package/dist/packem_shared/readTomlSync-1fKo0R52.js +1 -0
  74. package/dist/packem_shared/readYaml-DjK_Vqj1.js +1 -0
  75. package/dist/packem_shared/readYamlSync-C3h6KA2c.js +1 -0
  76. package/dist/packem_shared/remove-DH41Ov_c.js +1 -0
  77. package/dist/packem_shared/removeSync-50OEdnHd.js +1 -0
  78. package/dist/packem_shared/resolve-symlink-target-BofZSDIc.js +1 -0
  79. package/dist/packem_shared/sanitize-CU1xmyrg.js +1 -0
  80. package/dist/packem_shared/stripJsonComments-CzNR77MF.js +1 -0
  81. package/dist/packem_shared/to-uint-8-array-DwgaTasY.js +1 -0
  82. package/dist/packem_shared/{types.d-CixEXeyM.d.ts → types.d-DjZtAjkJ.d.ts} +26 -26
  83. package/dist/packem_shared/walk-D01Qmmvz.js +1 -0
  84. package/dist/packem_shared/walk-include-DCiVAwMP.js +1 -0
  85. package/dist/packem_shared/walkSync-BknSdmKD.js +1 -0
  86. package/dist/packem_shared/writeFile-DNGaDOMX.js +1 -0
  87. package/dist/packem_shared/writeFileSync-CE1i-eMA.js +1 -0
  88. package/dist/packem_shared/writeIni-DG7U4ji0.js +4 -0
  89. package/dist/packem_shared/writeIniSync-Ldt6HFLb.js +4 -0
  90. package/dist/packem_shared/writeJson-BkGlq1Kv.js +4 -0
  91. package/dist/packem_shared/writeJson5-Btud4sQh.js +4 -0
  92. package/dist/packem_shared/writeJson5Sync-Iln3i1IV.js +4 -0
  93. package/dist/packem_shared/writeJsonSync-HndmyvEK.js +4 -0
  94. package/dist/packem_shared/writeJsonc-9oiamG16.js +4 -0
  95. package/dist/packem_shared/writeJsoncSync-BHBziPiK.js +4 -0
  96. package/dist/packem_shared/writeToml-Cj57wZ8B.js +1 -0
  97. package/dist/packem_shared/writeTomlSync-B34ZZp0e.js +1 -0
  98. package/dist/packem_shared/writeYaml-BhQX2yN9.js +1 -0
  99. package/dist/packem_shared/writeYamlSync-DG01FBeC.js +1 -0
  100. package/dist/size.js +1 -146
  101. package/dist/toml.d.ts +1 -1
  102. package/dist/toml.js +1 -4
  103. package/dist/utils.d.ts +1 -1
  104. package/dist/utils.js +1 -6
  105. package/dist/yaml.d.ts +2 -2
  106. package/dist/yaml.js +1 -4
  107. package/package.json +22 -22
  108. package/dist/packem_shared/AlreadyExistsError-6Y9hjgMn.js +0 -27
  109. package/dist/packem_shared/DirectoryError-BfYPkIYP.js +0 -27
  110. package/dist/packem_shared/F_OK-MldBaGxb.js +0 -8
  111. package/dist/packem_shared/JSONError-BkHRnInH.js +0 -26
  112. package/dist/packem_shared/NotEmptyError-B21RUlVr.js +0 -27
  113. package/dist/packem_shared/NotFoundError-BIp61X6k.js +0 -27
  114. package/dist/packem_shared/PermissionError-CjoiJgip.js +0 -27
  115. package/dist/packem_shared/WalkError-DER5A43G.js +0 -24
  116. package/dist/packem_shared/_commonjsHelpers-BqLXS_qQ.js +0 -5
  117. package/dist/packem_shared/assertValidFileContents-BmcLtsGd.js +0 -7
  118. package/dist/packem_shared/assertValidFileOrDirectoryPath-8HANmVjk.js +0 -7
  119. package/dist/packem_shared/build-rm-options-Cl3VDY4O.js +0 -12
  120. package/dist/packem_shared/collect-CqQ3eVab.js +0 -14
  121. package/dist/packem_shared/collectSync-noE08NNv.js +0 -14
  122. package/dist/packem_shared/emptyDir-DnwENOaV.js +0 -46
  123. package/dist/packem_shared/emptyDirSync-6WiHBo8a.js +0 -43
  124. package/dist/packem_shared/ensureDir-DNlPftys.js +0 -53
  125. package/dist/packem_shared/ensureDirSync-DcPZFMy5.js +0 -53
  126. package/dist/packem_shared/ensureFile-BRQpUOUM.js +0 -47
  127. package/dist/packem_shared/ensureFileSync-SBY7A9-C.js +0 -47
  128. package/dist/packem_shared/ensureLink-DJQeauEn.js +0 -55
  129. package/dist/packem_shared/ensureLinkSync-D9RVAglV.js +0 -55
  130. package/dist/packem_shared/ensureSymlink-CoRYDRwr.js +0 -80
  131. package/dist/packem_shared/ensureSymlinkSync-CFimFlgh.js +0 -81
  132. package/dist/packem_shared/findUp-YcNLKdfV.js +0 -84
  133. package/dist/packem_shared/findUpSync-BfA5fheN.js +0 -83
  134. package/dist/packem_shared/get-file-info-type-FD4-jsyg.js +0 -14
  135. package/dist/packem_shared/glob-DY8l7izD.js +0 -5
  136. package/dist/packem_shared/globSync-5P2KJf_g.js +0 -5
  137. package/dist/packem_shared/index-C8W8sfzP.js +0 -830
  138. package/dist/packem_shared/index-CHM-in-V.js +0 -100
  139. package/dist/packem_shared/index-bhgnhm4u.js +0 -167
  140. package/dist/packem_shared/index-xe4o3cYi.js +0 -1784
  141. package/dist/packem_shared/indexToLineColumn-BUb0GPKl-BF770uX7.js +0 -171
  142. package/dist/packem_shared/ini-preserve-Dq_Q_Jgb.js +0 -251
  143. package/dist/packem_shared/is-stats-identical-D8FxpvQU.js +0 -3
  144. package/dist/packem_shared/isAccessible-DuVrTNFV.js +0 -38
  145. package/dist/packem_shared/isAccessibleSync-DI8mM0fA.js +0 -38
  146. package/dist/packem_shared/isFsCaseSensitive-DunL7Iry.js +0 -62
  147. package/dist/packem_shared/jsonc-merge-C6jWcfWh.js +0 -72
  148. package/dist/packem_shared/move-DbpW5_vA.js +0 -134
  149. package/dist/packem_shared/parseJson-BIp89Xjo.js +0 -63
  150. package/dist/packem_shared/readFile-Iz7kvCCk.js +0 -65
  151. package/dist/packem_shared/readFileSync-gm9yfIhh.js +0 -54
  152. package/dist/packem_shared/readIni-CJ2xfpjB.js +0 -10
  153. package/dist/packem_shared/readIniSync-9LUjaSSp.js +0 -10
  154. package/dist/packem_shared/readJson-C_rwm-wq.js +0 -22
  155. package/dist/packem_shared/readJson5-mBoTZppy.js +0 -15
  156. package/dist/packem_shared/readJson5Sync-8WS2yUok.js +0 -15
  157. package/dist/packem_shared/readJsonSync-BMEmCcJ6.js +0 -22
  158. package/dist/packem_shared/readJsonc-j-OS-APg.js +0 -28
  159. package/dist/packem_shared/readJsoncSync-Aw6EMlWO.js +0 -16
  160. package/dist/packem_shared/readToml-B2MHaSes.js +0 -9
  161. package/dist/packem_shared/readTomlSync-DNbK8NEb.js +0 -9
  162. package/dist/packem_shared/readYaml-D5q2a0e1.js +0 -10
  163. package/dist/packem_shared/readYamlSync-BKX-PAfq.js +0 -10
  164. package/dist/packem_shared/remove-C8_gl3jF.js +0 -39
  165. package/dist/packem_shared/removeSync-BJR_wTwN.js +0 -39
  166. package/dist/packem_shared/resolve-symlink-target-Kh4GovFf.js +0 -16
  167. package/dist/packem_shared/sanitize-BZoLN9Fg.js +0 -205
  168. package/dist/packem_shared/stripJsonComments-vo4k0mpF.js +0 -19
  169. package/dist/packem_shared/to-uint-8-array-Dz2nF1y1.js +0 -19
  170. package/dist/packem_shared/walk-CSZgCuDx.js +0 -124
  171. package/dist/packem_shared/walk-include-CZco7BvN.js +0 -16
  172. package/dist/packem_shared/walkSync-C4Cy28xb.js +0 -123
  173. package/dist/packem_shared/writeFile-B8HX0JIQ.js +0 -81
  174. package/dist/packem_shared/writeFileSync-DB8vv8xR.js +0 -81
  175. package/dist/packem_shared/writeIni-i55QrL8y.js +0 -65
  176. package/dist/packem_shared/writeIniSync-CLqJE5t3.js +0 -64
  177. package/dist/packem_shared/writeJson-Bo7C2UHw.js +0 -50
  178. package/dist/packem_shared/writeJson5-vVmHUQOd.js +0 -53
  179. package/dist/packem_shared/writeJson5Sync-oJ546h5k.js +0 -53
  180. package/dist/packem_shared/writeJsonSync-BKZ_9Acr.js +0 -50
  181. package/dist/packem_shared/writeJsonc-BufH_oC5.js +0 -60
  182. package/dist/packem_shared/writeJsoncSync-DB9be1YL.js +0 -59
  183. package/dist/packem_shared/writeToml-DgTW_-7F.js +0 -8
  184. package/dist/packem_shared/writeTomlSync-DiBiE9ja.js +0 -8
  185. package/dist/packem_shared/writeYaml-BWCOome-.js +0 -24
  186. package/dist/packem_shared/writeYamlSync-DBVnXmuY.js +0 -24
package/CHANGELOG.md CHANGED
@@ -1,3 +1,26 @@
1
+ ## @visulima/fs [5.0.0-alpha.15](https://github.com/visulima/visulima/compare/@visulima/fs@5.0.0-alpha.14...@visulima/fs@5.0.0-alpha.15) (2026-05-06)
2
+
3
+
4
+ ### Dependencies
5
+
6
+ * **@visulima/error:** upgraded to 6.0.0-alpha.17
7
+
8
+ ## @visulima/fs [5.0.0-alpha.14](https://github.com/visulima/visulima/compare/@visulima/fs@5.0.0-alpha.13...@visulima/fs@5.0.0-alpha.14) (2026-05-06)
9
+
10
+ ### Miscellaneous Chores
11
+
12
+ * **fs:** apply prettier and eslint quote-style auto-fix ([cc5525e](https://github.com/visulima/visulima/commit/cc5525e0d5fe37f689ca7357cf274b88b604aba0))
13
+ * **fs:** housekeeping cleanup ([95e8643](https://github.com/visulima/visulima/commit/95e8643922856fa21bd7b6830ff0e94e29c1b783))
14
+
15
+ ### Continuous Integration
16
+
17
+ * integrate codspeed for benchmark tracking ([e758f3d](https://github.com/visulima/visulima/commit/e758f3da491cc00d3f8bbf10d7ba3fdf8deb5325))
18
+
19
+
20
+ ### Dependencies
21
+
22
+ * **@visulima/error:** upgraded to 6.0.0-alpha.16
23
+
1
24
  ## @visulima/fs [5.0.0-alpha.13](https://github.com/visulima/visulima/compare/@visulima/fs@5.0.0-alpha.12...@visulima/fs@5.0.0-alpha.13) (2026-05-04)
2
25
 
3
26
  ### Miscellaneous Chores
package/LICENSE.md CHANGED
@@ -57,11 +57,14 @@ Repository: git+https://github.com/visulima/visulima.git
57
57
  >
58
58
  >
59
59
  > # Licenses of bundled dependencies
60
+ >
60
61
  > The published @visulima/error artifact additionally contains code with the following licenses:
61
62
  > MIT
62
63
  >
63
64
  > # Bundled dependencies:
65
+ >
64
66
  > ## is-plain-obj
67
+ >
65
68
  > License: MIT
66
69
  > By: Sindre Sorhus
67
70
  > Repository: sindresorhus/is-plain-obj
@@ -75,6 +78,33 @@ Repository: git+https://github.com/visulima/visulima.git
75
78
  > > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
76
79
  > >
77
80
  > > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
81
+ >
82
+ >
83
+ >
84
+ >
85
+ >
86
+ > # Licenses of bundled types
87
+ > The published @visulima/error artifact additionally contains code with the following licenses:
88
+ > Apache-2.0
89
+ >
90
+ > # Bundled types:
91
+ > ## ai
92
+ > License: Apache-2.0
93
+ > Repository: https://github.com/vercel/ai
94
+ >
95
+ > > Copyright 2023 Vercel, Inc.
96
+ > >
97
+ > > Licensed under the Apache License, Version 2.0 (the "License");
98
+ > > you may not use this file except in compliance with the License.
99
+ > > You may obtain a copy of the License at
100
+ > >
101
+ > > http://www.apache.org/licenses/LICENSE-2.0
102
+ > >
103
+ > > Unless required by applicable law or agreed to in writing, software
104
+ > > distributed under the License is distributed on an "AS IS" BASIS,
105
+ > > WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
106
+ > > See the License for the specific language governing permissions and
107
+ > > limitations under the License.
78
108
 
79
109
  ---------------------------------------
80
110
 
package/dist/eol.js CHANGED
@@ -1,26 +1,3 @@
1
- import { createRequire as __cjs_createRequire } from "node:module";
2
-
3
- const __cjs_require = __cjs_createRequire(import.meta.url);
4
-
5
- const __cjs_getProcess = typeof globalThis !== "undefined" && typeof globalThis.process !== "undefined" ? globalThis.process : process;
6
-
7
- const {
8
- platform
9
- } = __cjs_getProcess;
10
-
11
- const regDetect = /\r?\n/g;
12
- const LF = "\n";
13
- const CRLF = "\r\n";
14
- const EOL = platform === "win32" ? CRLF : LF;
15
- const detect = (content) => {
16
- const matched = content.match(regDetect);
17
- if (!matched || matched.length === 0) {
18
- return null;
19
- }
20
- const crlf = matched.filter((newline) => newline === CRLF).length;
21
- const lf = matched.length - crlf;
22
- return crlf > lf ? CRLF : LF;
23
- };
24
- const format = (content, eol) => content.replaceAll(regDetect, eol);
25
-
26
- export { CRLF, EOL, LF, detect, format };
1
+ var f=Object.defineProperty;var c=(t,e)=>f(t,"name",{value:e,configurable:!0});import{createRequire as u}from"node:module";const h=u(import.meta.url),p=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,{platform:g}=p;var m=Object.defineProperty,n=c((t,e)=>m(t,"name",{value:e,configurable:!0}),"r");const s=/\r?\n/g,l=`
2
+ `,r=`\r
3
+ `,b=g==="win32"?r:l,j=n(t=>{const e=t.match(s);if(!e||e.length===0)return null;const o=e.filter(i=>i===r).length,a=e.length-o;return o>a?r:l},"detect"),q=n((t,e)=>t.replaceAll(s,e),"format");export{r as CRLF,b as EOL,l as LF,j as detect,q as format};
package/dist/error.js CHANGED
@@ -1,7 +1 @@
1
- export { default as AlreadyExistsError } from './packem_shared/AlreadyExistsError-6Y9hjgMn.js';
2
- export { default as DirectoryError } from './packem_shared/DirectoryError-BfYPkIYP.js';
3
- export { default as JSONError } from './packem_shared/JSONError-BkHRnInH.js';
4
- export { default as NotEmptyError } from './packem_shared/NotEmptyError-B21RUlVr.js';
5
- export { default as NotFoundError } from './packem_shared/NotFoundError-BIp61X6k.js';
6
- export { default as PermissionError } from './packem_shared/PermissionError-CjoiJgip.js';
7
- export { default as WalkError } from './packem_shared/WalkError-DER5A43G.js';
1
+ import{default as t}from"./packem_shared/AlreadyExistsError-CEu6_Tjb.js";import{default as a}from"./packem_shared/DirectoryError-ddlbUV8C.js";import{default as s}from"./packem_shared/JSONError-D7h6PNWc.js";import{default as l}from"./packem_shared/NotEmptyError-DMh1o7UL.js";import{default as E}from"./packem_shared/NotFoundError-BPiW0icm.js";import{default as u}from"./packem_shared/PermissionError-B1Emi5a9.js";import{default as i}from"./packem_shared/WalkError-Olmh4908.js";export{t as AlreadyExistsError,a as DirectoryError,s as JSONError,l as NotEmptyError,E as NotFoundError,u as PermissionError,i as WalkError};
@@ -1,90 +1 @@
1
- import { createRequire as __cjs_createRequire } from "node:module";
2
-
3
- const __cjs_require = __cjs_createRequire(import.meta.url);
4
-
5
- const __cjs_getProcess = typeof globalThis !== "undefined" && typeof globalThis.process !== "undefined" ? globalThis.process : process;
6
-
7
- const __cjs_getBuiltinModule = (module) => {
8
- // Check if we're in Node.js and version supports getBuiltinModule
9
- if (typeof __cjs_getProcess !== "undefined" && __cjs_getProcess.versions && __cjs_getProcess.versions.node) {
10
- const [major, minor] = __cjs_getProcess.versions.node.split(".").map(Number);
11
- // Node.js 20.16.0+ and 22.3.0+
12
- if (major > 22 || (major === 22 && minor >= 3) || (major === 20 && minor >= 16)) {
13
- return __cjs_getProcess.getBuiltinModule(module);
14
- }
15
- }
16
- // Fallback to createRequire
17
- return __cjs_require(module);
18
- };
19
-
20
- import { g as getDefaultExportFromCjs } from './packem_shared/_commonjsHelpers-BqLXS_qQ.js';
21
- import { r as requireIsGlob } from './packem_shared/index-bhgnhm4u.js';
22
- const require$$1 = __cjs_getBuiltinModule("path");
23
- const require$$2 = __cjs_getBuiltinModule("os");
24
-
25
- var globParent$1;
26
- var hasRequiredGlobParent;
27
-
28
- function requireGlobParent () {
29
- if (hasRequiredGlobParent) return globParent$1;
30
- hasRequiredGlobParent = 1;
31
- var isGlob = requireIsGlob();
32
- var pathPosixDirname = require$$1.posix.dirname;
33
- var isWin32 = require$$2.platform() === "win32";
34
- var slash = "/";
35
- var backslash = /\\/g;
36
- var escaped = /\\([!*?|[\](){}])/g;
37
- globParent$1 = function globParent(str, opts) {
38
- var options = Object.assign({ flipBackslashes: true }, opts);
39
- if (options.flipBackslashes && isWin32 && str.indexOf(slash) < 0) {
40
- str = str.replace(backslash, slash);
41
- }
42
- if (isEnclosure(str)) {
43
- str += slash;
44
- }
45
- str += "a";
46
- do {
47
- str = pathPosixDirname(str);
48
- } while (isGlobby(str));
49
- return str.replace(escaped, "$1");
50
- };
51
- function isEnclosure(str) {
52
- var lastChar = str.slice(-1);
53
- var enclosureStart;
54
- switch (lastChar) {
55
- case "}":
56
- enclosureStart = "{";
57
- break;
58
- case "]":
59
- enclosureStart = "[";
60
- break;
61
- default:
62
- return false;
63
- }
64
- var foundIndex = str.indexOf(enclosureStart);
65
- if (foundIndex < 0) {
66
- return false;
67
- }
68
- return str.slice(foundIndex + 1, -1).includes(slash);
69
- }
70
- function isGlobby(str) {
71
- if (/\([^()]+$/.test(str)) {
72
- return true;
73
- }
74
- if (str[0] === "{" || str[0] === "[") {
75
- return true;
76
- }
77
- if (/[^\\][{[]/.test(str)) {
78
- return true;
79
- }
80
- return isGlob(str);
81
- }
82
- return globParent$1;
83
- }
84
-
85
- var globParentExports = requireGlobParent();
86
- const globParentImpl = /*@__PURE__*/getDefaultExportFromCjs(globParentExports);
87
-
88
- const globParent = (pattern, options) => globParentImpl(pattern, options);
89
-
90
- export { globParent as default };
1
+ var _=Object.defineProperty;var t=(s,r)=>_(s,"name",{value:r,configurable:!0});import{createRequire as P}from"node:module";import{g as q}from"./packem_shared/_commonjsHelpers-D6W6KoPK.js";import{r as x}from"./packem_shared/index-K-NNTkpb.js";const j=P(import.meta.url),i=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,d=t(s=>{if(typeof i<"u"&&i.versions&&i.versions.node){const[r,a]=i.versions.node.split(".").map(Number);if(r>22||r===22&&a>=3||r===20&&a>=16)return i.getBuiltinModule(s)}return j(s)},"__cjs_getBuiltinModule"),y=d("path"),G=d("os");var u,b;function $(){if(b)return u;b=1;var s=Object.defineProperty,r=t((e,n)=>s(e,"name",{value:n,configurable:!0}),"n"),a=x(),g=y.posix.dirname,m=G.platform()==="win32",l="/",v=/\\/g,h=/\\([!*?|[\](){}])/g;u=r(function(e,n){var o=Object.assign({flipBackslashes:!0},n);o.flipBackslashes&&m&&e.indexOf(l)<0&&(e=e.replace(v,l)),c(e)&&(e+=l),e+="a";do e=g(e);while(f(e));return e.replace(h,"$1")},"globParent");function c(e){var n=e.slice(-1),o;switch(n){case"}":o="{";break;case"]":o="[";break;default:return!1}var p=e.indexOf(o);return p<0?!1:e.slice(p+1,-1).includes(l)}t(c,"isEnclosure"),r(c,"isEnclosure");function f(e){return/\([^()]+$/.test(e)||e[0]==="{"||e[0]==="["||/[^\\][{[]/.test(e)?!0:a(e)}return t(f,"isGlobby"),r(f,"isGlobby"),u}t($,"requireGlobParent");var k=$();const O=q(k);var B=Object.defineProperty,E=t((s,r)=>B(s,"name",{value:r,configurable:!0}),"e");const M=E((s,r)=>O(s,r),"globParent");export{M as default};
package/dist/glob.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { g as glob, a as globSync } from "./packem_shared/glob-sync.d-Dsxhj3BW.js";
2
- export { type G as GlobOptions } from "./packem_shared/types.d-CixEXeyM.js";
1
+ export { g as glob, a as globSync } from "./packem_shared/glob-sync.d-D2sDeSpa.js";
2
+ export { type G as GlobOptions } from "./packem_shared/types.d-DjZtAjkJ.js";
3
3
  import 'node:fs';
4
4
  import 'tinyglobby';
package/dist/glob.js CHANGED
@@ -1,2 +1 @@
1
- export { default as glob } from './packem_shared/glob-DY8l7izD.js';
2
- export { default as globSync } from './packem_shared/globSync-5P2KJf_g.js';
1
+ import{default as e}from"./packem_shared/glob-MHJQjR39.js";import{default as l}from"./packem_shared/globSync-CwzlELgS.js";export{e as glob,l as globSync};
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { q as WalkOptions, F as FindUpName, r as FindUpOptions, s as FindUpNameSync, t as WalkEntry, u as ReadFileOptions, v as ContentType, w as ReadJsonOptions, J as JsonReviver, x as RetryOptions, y as WriteFileOptions, z as WriteJsonOptions } from "./packem_shared/types.d-CixEXeyM.js";
2
- export { type A as CodeFrameLocation, type C as CodeFrameOptions, B as FIND_UP_STOP, D as F_OK, type E as FindUpNameFnResult, type H as FindUpNameSyncFnResult, type G as GlobOptions, type o as JsonReplacer, K as R_OK, type L as ReadFileEncoding, M as W_OK, X as X_OK } from "./packem_shared/types.d-CixEXeyM.js";
1
+ import { q as WalkOptions, F as FindUpName, r as FindUpOptions, s as FindUpNameSync, t as WalkEntry, u as ReadFileOptions, v as ContentType, w as ReadJsonOptions, i as JsonReviver, x as RetryOptions, y as WriteFileOptions, z as WriteJsonOptions } from "./packem_shared/types.d-DjZtAjkJ.js";
2
+ export { type A as CodeFrameLocation, type h as CodeFrameOptions, B as FIND_UP_STOP, D as F_OK, type E as FindUpNameFnResult, type H as FindUpNameSyncFnResult, type G as GlobOptions, type f as JsonReplacer, K as R_OK, type L as ReadFileEncoding, M as W_OK, X as X_OK } from "./packem_shared/types.d-DjZtAjkJ.js";
3
3
  import { symlink } from 'node:fs';
4
4
  export { CRLF, EOL, LF, detect, format } from "./eol.js";
5
- export { g as glob, a as globSync } from "./packem_shared/glob-sync.d-Dsxhj3BW.js";
5
+ export { g as glob, a as globSync } from "./packem_shared/glob-sync.d-D2sDeSpa.js";
6
6
  export { type GlobParentOptions, default as globParent } from "./glob-parent.js";
7
7
  export { type IsGlobOptions, default as isGlob } from "./is-glob.js";
8
8
  export { type MatchOptions, match, matcher } from "./match.js";
package/dist/index.js CHANGED
@@ -1,38 +1 @@
1
- export { FIND_UP_STOP, F_OK, R_OK, W_OK, X_OK } from './packem_shared/F_OK-MldBaGxb.js';
2
- export { default as ensureDir } from './packem_shared/ensureDir-DNlPftys.js';
3
- export { default as ensureDirSync } from './packem_shared/ensureDirSync-DcPZFMy5.js';
4
- export { default as ensureFile } from './packem_shared/ensureFile-BRQpUOUM.js';
5
- export { default as ensureFileSync } from './packem_shared/ensureFileSync-SBY7A9-C.js';
6
- export { default as ensureLink } from './packem_shared/ensureLink-DJQeauEn.js';
7
- export { default as ensureLinkSync } from './packem_shared/ensureLinkSync-D9RVAglV.js';
8
- export { default as ensureSymlink } from './packem_shared/ensureSymlink-CoRYDRwr.js';
9
- export { default as ensureSymlinkSync } from './packem_shared/ensureSymlinkSync-CFimFlgh.js';
10
- export { CRLF, EOL, LF, detect, format } from './eol.js';
11
- export { default as collect } from './packem_shared/collect-CqQ3eVab.js';
12
- export { default as collectSync } from './packem_shared/collectSync-noE08NNv.js';
13
- export { default as findUp } from './packem_shared/findUp-YcNLKdfV.js';
14
- export { default as findUpSync } from './packem_shared/findUpSync-BfA5fheN.js';
15
- export { default as glob } from './packem_shared/glob-DY8l7izD.js';
16
- export { default as globSync } from './packem_shared/globSync-5P2KJf_g.js';
17
- export { default as walk } from './packem_shared/walk-CSZgCuDx.js';
18
- export { default as walkSync } from './packem_shared/walkSync-C4Cy28xb.js';
19
- export { default as globParent } from './glob-parent.js';
20
- export { default as isAccessible } from './packem_shared/isAccessible-DuVrTNFV.js';
21
- export { default as isAccessibleSync } from './packem_shared/isAccessibleSync-DI8mM0fA.js';
22
- export { default as isGlob } from './is-glob.js';
23
- export { match, matcher } from './match.js';
24
- export { move, moveSync, rename, renameSync } from './packem_shared/move-DbpW5_vA.js';
25
- export { default as readFile } from './packem_shared/readFile-Iz7kvCCk.js';
26
- export { default as readFileSync } from './packem_shared/readFileSync-gm9yfIhh.js';
27
- export { default as readJson } from './packem_shared/readJson-C_rwm-wq.js';
28
- export { default as readJsonSync } from './packem_shared/readJsonSync-BMEmCcJ6.js';
29
- export { default as emptyDir } from './packem_shared/emptyDir-DnwENOaV.js';
30
- export { default as emptyDirSync } from './packem_shared/emptyDirSync-6WiHBo8a.js';
31
- export { default as remove } from './packem_shared/remove-C8_gl3jF.js';
32
- export { default as removeSync } from './packem_shared/removeSync-BJR_wTwN.js';
33
- export { sanitize } from './packem_shared/sanitize-BZoLN9Fg.js';
34
- export { default as writeFile } from './packem_shared/writeFile-B8HX0JIQ.js';
35
- export { default as writeFileSync } from './packem_shared/writeFileSync-DB8vv8xR.js';
36
- export { default as writeJson } from './packem_shared/writeJson-Bo7C2UHw.js';
37
- export { default as writeJsonSync } from './packem_shared/writeJsonSync-BKZ_9Acr.js';
38
- export { isFsCaseSensitive } from './packem_shared/isFsCaseSensitive-DunL7Iry.js';
1
+ import{FIND_UP_STOP as o,F_OK as t,R_OK as a,W_OK as f,X_OK as s}from"./packem_shared/F_OK-CAwY1qU7.js";import{default as m}from"./packem_shared/ensureDir-CZ4oUFuo.js";import{default as n}from"./packem_shared/ensureDirSync-CoPWhbjM.js";import{default as d}from"./packem_shared/ensureFile-CF1cAAyh.js";import{default as i}from"./packem_shared/ensureFileSync-C3qR6naU.js";import{default as y}from"./packem_shared/ensureLink-LLLxlGHn.js";import{default as F}from"./packem_shared/ensureLinkSync-Dh_GtT8F.js";import{default as k}from"./packem_shared/ensureSymlink-D50kj2zl.js";import{default as O}from"./packem_shared/ensureSymlinkSync-BbVDPvI4.js";import{CRLF as v,EOL as D,LF as L,detect as J,format as K}from"./eol.js";import{default as P}from"./packem_shared/collect-2KPTpCdX.js";import{default as h}from"./packem_shared/collectSync-BX55r_BH.js";import{default as C}from"./packem_shared/findUp-BT07y_Me.js";import{default as z}from"./packem_shared/findUpSync-BvZiYsKJ.js";import{default as G}from"./packem_shared/glob-MHJQjR39.js";import{default as N}from"./packem_shared/globSync-CwzlELgS.js";import{default as W}from"./packem_shared/walk-D01Qmmvz.js";import{default as j}from"./packem_shared/walkSync-BknSdmKD.js";import{default as B}from"./glob-parent.js";import{default as M}from"./packem_shared/isAccessible-CDFxsAAo.js";import{default as V}from"./packem_shared/isAccessibleSync-5nzZWgin.js";import{default as Z}from"./is-glob.js";import{match as ee,matcher as re}from"./match.js";import{move as te,moveSync as ae,rename as fe,renameSync as se}from"./packem_shared/move-LmP6P9sn.js";import{default as me}from"./packem_shared/readFile-BAVMZg5e.js";import{default as ne}from"./packem_shared/readFileSync-CGmzMUF2.js";import{default as de}from"./packem_shared/readJson-kPx68Wv1.js";import{default as ie}from"./packem_shared/readJsonSync-_HXNI3Se.js";import{default as ye}from"./packem_shared/emptyDir-8utO028L.js";import{default as Fe}from"./packem_shared/emptyDirSync-Bk5fUX73.js";import{default as ke}from"./packem_shared/remove-DH41Ov_c.js";import{default as Oe}from"./packem_shared/removeSync-50OEdnHd.js";import{sanitize as ve}from"./packem_shared/sanitize-CU1xmyrg.js";import{default as Le}from"./packem_shared/writeFile-DNGaDOMX.js";import{default as Ke}from"./packem_shared/writeFileSync-CE1i-eMA.js";import{default as Pe}from"./packem_shared/writeJson-BkGlq1Kv.js";import{default as he}from"./packem_shared/writeJsonSync-HndmyvEK.js";import{isFsCaseSensitive as Ce}from"./packem_shared/isFsCaseSensitive-CMZVY1A2.js";export{v as CRLF,D as EOL,o as FIND_UP_STOP,t as F_OK,L as LF,a as R_OK,f as W_OK,s as X_OK,P as collect,h as collectSync,J as detect,ye as emptyDir,Fe as emptyDirSync,m as ensureDir,n as ensureDirSync,d as ensureFile,i as ensureFileSync,y as ensureLink,F as ensureLinkSync,k as ensureSymlink,O as ensureSymlinkSync,C as findUp,z as findUpSync,K as format,G as glob,B as globParent,N as globSync,M as isAccessible,V as isAccessibleSync,Ce as isFsCaseSensitive,Z as isGlob,ee as match,re as matcher,te as move,ae as moveSync,me as readFile,ne as readFileSync,de as readJson,ie as readJsonSync,ke as remove,Oe as removeSync,fe as rename,se as renameSync,ve as sanitize,W as walk,j as walkSync,Le as writeFile,Ke as writeFileSync,Pe as writeJson,he as writeJsonSync};
package/dist/ini.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { a as CompressionType, j as ReadIniOptions, k as WriteIniOptions } from "./packem_shared/types.d-CixEXeyM.js";
2
- export { type I as IniEncodeOptions, type l as IniLineEnding } from "./packem_shared/types.d-CixEXeyM.js";
1
+ import { C as CompressionType, j as ReadIniOptions, k as WriteIniOptions } from "./packem_shared/types.d-DjZtAjkJ.js";
2
+ export { type I as IniEncodeOptions, type l as IniLineEnding } from "./packem_shared/types.d-DjZtAjkJ.js";
3
3
  import 'node:fs';
4
4
  import 'tinyglobby';
5
5
  /**
package/dist/ini.js CHANGED
@@ -1,4 +1 @@
1
- export { default as readIni } from './packem_shared/readIni-CJ2xfpjB.js';
2
- export { default as readIniSync } from './packem_shared/readIniSync-9LUjaSSp.js';
3
- export { default as writeIni } from './packem_shared/writeIni-i55QrL8y.js';
4
- export { default as writeIniSync } from './packem_shared/writeIniSync-CLqJE5t3.js';
1
+ import{default as a}from"./packem_shared/readIni-Cfl6HmTS.js";import{default as f}from"./packem_shared/readIniSync-DPg4UD0P.js";import{default as d}from"./packem_shared/writeIni-DG7U4ji0.js";import{default as n}from"./packem_shared/writeIniSync-Ldt6HFLb.js";export{a as readIni,f as readIniSync,d as writeIni,n as writeIniSync};
package/dist/is-glob.js CHANGED
@@ -1,9 +1 @@
1
- import { g as getDefaultExportFromCjs } from './packem_shared/_commonjsHelpers-BqLXS_qQ.js';
2
- import { r as requireIsGlob } from './packem_shared/index-bhgnhm4u.js';
3
-
4
- var isGlobExports = requireIsGlob();
5
- const isGlobImpl = /*@__PURE__*/getDefaultExportFromCjs(isGlobExports);
6
-
7
- const isGlob = (value, options) => isGlobImpl(value, options);
8
-
9
- export { isGlob as default };
1
+ var t=Object.defineProperty;var e=(r,o)=>t(r,"name",{value:o,configurable:!0});import{g as a}from"./packem_shared/_commonjsHelpers-D6W6KoPK.js";import{r as s}from"./packem_shared/index-K-NNTkpb.js";var i=s();const l=a(i);var f=Object.defineProperty,m=e((r,o)=>f(r,"name",{value:o,configurable:!0}),"s");const b=m((r,o)=>l(r,o),"isGlob");export{b as default};
package/dist/json5.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { a as CompressionType, f as ReadJson5Options, g as Json5Reviver, h as WriteJson5Options } from "./packem_shared/types.d-CixEXeyM.js";
2
- export { type i as Json5Replacer } from "./packem_shared/types.d-CixEXeyM.js";
1
+ import { C as CompressionType, a as ReadJson5Options, J as Json5Reviver, b as WriteJson5Options } from "./packem_shared/types.d-DjZtAjkJ.js";
2
+ export { type c as Json5Replacer } from "./packem_shared/types.d-DjZtAjkJ.js";
3
3
  import 'node:fs';
4
4
  import 'tinyglobby';
5
5
  declare function readJson5<R = unknown>(path: URL | string, options?: ReadJson5Options<CompressionType>): Promise<R>;
package/dist/json5.js CHANGED
@@ -1,4 +1 @@
1
- export { default as readJson5 } from './packem_shared/readJson5-mBoTZppy.js';
2
- export { default as readJson5Sync } from './packem_shared/readJson5Sync-8WS2yUok.js';
3
- export { default as writeJson5 } from './packem_shared/writeJson5-vVmHUQOd.js';
4
- export { default as writeJson5Sync } from './packem_shared/writeJson5Sync-oJ546h5k.js';
1
+ import{default as r}from"./packem_shared/readJson5-pXTL9nUE.js";import{default as t}from"./packem_shared/readJson5Sync-BedQc292.js";import{default as s}from"./packem_shared/writeJson5-Btud4sQh.js";import{default as n}from"./packem_shared/writeJson5Sync-Iln3i1IV.js";export{r as readJson5,t as readJson5Sync,s as writeJson5,n as writeJson5Sync};
package/dist/jsonc.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { a as CompressionType, b as ReadJsoncOptions, c as WriteJsoncOptions } from "./packem_shared/types.d-CixEXeyM.js";
2
- export { type d as JsoncFormattingOptions, type e as JsoncParseOptions } from "./packem_shared/types.d-CixEXeyM.js";
1
+ import { C as CompressionType, m as ReadJsoncOptions, n as WriteJsoncOptions } from "./packem_shared/types.d-DjZtAjkJ.js";
2
+ export { type o as JsoncFormattingOptions, type p as JsoncParseOptions } from "./packem_shared/types.d-DjZtAjkJ.js";
3
3
  import 'node:fs';
4
4
  import 'tinyglobby';
5
5
  /**
package/dist/jsonc.js CHANGED
@@ -1,4 +1 @@
1
- export { default as readJsonc } from './packem_shared/readJsonc-j-OS-APg.js';
2
- export { default as readJsoncSync } from './packem_shared/readJsoncSync-Aw6EMlWO.js';
3
- export { default as writeJsonc } from './packem_shared/writeJsonc-BufH_oC5.js';
4
- export { default as writeJsoncSync } from './packem_shared/writeJsoncSync-DB9be1YL.js';
1
+ import{default as r}from"./packem_shared/readJsonc-BzvuAXbT.js";import{default as t}from"./packem_shared/readJsoncSync-CVG1_QnX.js";import{default as s}from"./packem_shared/writeJsonc-9oiamG16.js";import{default as d}from"./packem_shared/writeJsoncSync-BHBziPiK.js";export{r as readJsonc,t as readJsoncSync,s as writeJsonc,d as writeJsoncSync};
package/dist/match.d.ts CHANGED
@@ -42,5 +42,5 @@ declare const match: (value: string | string[], pattern: string | string[], opti
42
42
  * ["a.ts", "b.js", "c.ts"].filter(isTs); // ["a.ts", "c.ts"]
43
43
  * ```
44
44
  */
45
- declare const matcher: (pattern: string | string[], options?: MatchOptions) => (value: string) => boolean;
45
+ declare const matcher: (pattern: string | string[], options?: MatchOptions) => ((value: string) => boolean);
46
46
  export { MatchOptions, match, matcher };
package/dist/match.js CHANGED
@@ -1,15 +1 @@
1
- import { p as picomatch } from './packem_shared/index-xe4o3cYi.js';
2
-
3
- const match = (value, pattern, options) => {
4
- const isMatch = picomatch(pattern, options);
5
- if (Array.isArray(value)) {
6
- return value.some((entry) => isMatch(entry));
7
- }
8
- return isMatch(value);
9
- };
10
- const matcher = (pattern, options) => {
11
- const isMatch = picomatch(pattern, options);
12
- return (value) => isMatch(value);
13
- };
14
-
15
- export { match, matcher };
1
+ var s=Object.defineProperty;var o=(r,e)=>s(r,"name",{value:e,configurable:!0});import{s as c}from"./packem_shared/index-DrapuBsB.js";var i=Object.defineProperty,n=o((r,e)=>i(r,"name",{value:e,configurable:!0}),"i");const f=n((r,e,t)=>{const a=c(e,t);return Array.isArray(r)?r.some(m=>a(m)):a(r)},"match"),p=n((r,e)=>{const t=c(r,e);return a=>t(a)},"matcher");export{f as match,p as matcher};
@@ -0,0 +1 @@
1
+ var o=Object.defineProperty;var t=(e,r)=>o(e,"name",{value:r,configurable:!0});var a=Object.defineProperty,n=t((e,r)=>a(e,"name",{value:r,configurable:!0}),"t");class E extends Error{static{t(this,"n")}static{n(this,"AlreadyExistsError")}constructor(r){super(`EEXIST: ${r}`)}get code(){return"EEXIST"}set code(r){throw new Error("Cannot overwrite code EEXIST")}get name(){return"AlreadyExistsError"}set name(r){throw new Error("Cannot overwrite name of AlreadyExistsError")}}export{E as default};
@@ -0,0 +1 @@
1
+ var t=Object.defineProperty;var o=(e,r)=>t(e,"name",{value:r,configurable:!0});var n=Object.defineProperty,a=o((e,r)=>n(e,"name",{value:r,configurable:!0}),"o");class i extends Error{static{o(this,"n")}static{a(this,"DirectoryError")}constructor(r){super(`EISDIR: Illegal operation on a directory, ${r}`)}get code(){return"EISDIR"}set code(r){throw new Error("Cannot overwrite code EISDIR")}get name(){return"DirectoryError"}set name(r){throw new Error("Cannot overwrite name of DirectoryError")}}export{i as default};
@@ -0,0 +1 @@
1
+ const _=0,O=4,S=2,o=1,K=Symbol("findUpStop"),N=/"(?:[^"\\]|\\.)*"|\/\/[^\r\n]*|\/\*[\s\S]*?\*\//g;export{K as FIND_UP_STOP,_ as F_OK,N as INTERNAL_STRIP_JSON_REGEX,O as R_OK,S as W_OK,o as X_OK};
@@ -0,0 +1,4 @@
1
+ var s=Object.defineProperty;var t=(r,e)=>s(r,"name",{value:e,configurable:!0});var a=Object.defineProperty,i=t((r,e)=>a(r,"name",{value:e,configurable:!0}),"i");class m extends Error{static{t(this,"t")}static{i(this,"JSONError")}fileName;codeFrame;name="JSONError";#e;constructor(e){super(),this.#e=e}get message(){return`${this.#e}${this.fileName?` in ${this.fileName}`:""}${this.codeFrame?`
2
+
3
+ ${this.codeFrame}
4
+ `:""}`}set message(e){this.#e=e}}export{m as default};
@@ -0,0 +1 @@
1
+ var o=Object.defineProperty;var t=(e,r)=>o(e,"name",{value:r,configurable:!0});var n=Object.defineProperty,E=t((e,r)=>n(e,"name",{value:r,configurable:!0}),"t");class c extends Error{static{t(this,"n")}static{E(this,"NotEmptyError")}constructor(r){super(`ENOTEMPTY: Directory not empty, ${r}`)}get code(){return"ENOTEMPTY"}set code(r){throw new Error("Cannot overwrite code ENOTEMPTY")}get name(){return"NotEmptyError"}set name(r){throw new Error("Cannot overwrite name of NotEmptyError")}}export{c as default};
@@ -0,0 +1 @@
1
+ var t=Object.defineProperty;var o=(e,r)=>t(e,"name",{value:r,configurable:!0});var n=Object.defineProperty,a=o((e,r)=>n(e,"name",{value:r,configurable:!0}),"o");class u extends Error{static{o(this,"n")}static{a(this,"NotFoundError")}constructor(r){super(`ENOENT: ${r}`)}get code(){return"ENOENT"}set code(r){throw new Error("Cannot overwrite code ENOENT")}get name(){return"NotFoundError"}set name(r){throw new Error("Cannot overwrite name of NotFoundError")}}export{u as default};
@@ -0,0 +1 @@
1
+ var o=Object.defineProperty;var t=(e,r)=>o(e,"name",{value:r,configurable:!0});var n=Object.defineProperty,s=t((e,r)=>n(e,"name",{value:r,configurable:!0}),"o");class i extends Error{static{t(this,"n")}static{s(this,"PermissionError")}constructor(r){super(`EPERM: Operation not permitted, ${r}`)}get code(){return"EPERM"}set code(r){throw new Error("Cannot overwrite code EPERM")}get name(){return"PermissionError"}set name(r){throw new Error("Cannot overwrite name of PermissionError")}}export{i as default};
@@ -0,0 +1 @@
1
+ var o=Object.defineProperty;var t=(e,r)=>o(e,"name",{value:r,configurable:!0});var n=Object.defineProperty,s=t((e,r)=>n(e,"name",{value:r,configurable:!0}),"t");class c extends Error{static{t(this,"i")}static{s(this,"WalkError")}root;constructor(r,a){super(`${r instanceof Error?r.message:String(r)} for path "${a}"`),this.cause=r,this.root=a}get name(){return"WalkError"}set name(r){throw new Error("Cannot overwrite name of WalkError")}}export{c as default};
@@ -0,0 +1 @@
1
+ var c=Object.defineProperty;var r=(t,e)=>c(t,"name",{value:e,configurable:!0});var p=Object.defineProperty,a=r((t,e)=>p(t,"name",{value:e,configurable:!0}),"t");function f(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}r(f,"getDefaultExportFromCjs");a(f,"getDefaultExportFromCjs");function l(t){return t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}r(l,"getDefaultExportFromNamespaceIfPresent");a(l,"getDefaultExportFromNamespaceIfPresent");function s(t){return t&&Object.prototype.hasOwnProperty.call(t,"default")&&Object.keys(t).length===1?t.default:t}r(s,"getDefaultExportFromNamespaceIfNotNamed");a(s,"getDefaultExportFromNamespaceIfNotNamed");function m(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var e=t.default;if(typeof e=="function"){var o=a(r(function n(){var u=!1;try{u=this instanceof n}catch{}return u?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)},"a"),"a");o.prototype=e.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var u=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(o,n,u.get?u:{enumerable:!0,get:a(function(){return t[n]},"get")})}),o}r(m,"getAugmentedNamespace");a(m,"getAugmentedNamespace");export{f as g};
@@ -0,0 +1 @@
1
+ var a=Object.defineProperty;var t=(e,r)=>a(e,"name",{value:r,configurable:!0});var f=Object.defineProperty,i=t((e,r)=>f(e,"name",{value:r,configurable:!0}),"e");const o=i(e=>{if(typeof e!="string"&&!(e instanceof ArrayBuffer)&&!ArrayBuffer.isView(e))throw new TypeError("File contents must be a string, ArrayBuffer, or ArrayBuffer view.")},"assertValidFileContents");export{o as default};
@@ -0,0 +1 @@
1
+ var a=Object.defineProperty;var t=(e,r)=>a(e,"name",{value:r,configurable:!0});var n=Object.defineProperty,o=t((e,r)=>n(e,"name",{value:r,configurable:!0}),"n");const s=o(e=>{if(!e||!(e instanceof URL)&&typeof e!="string")throw new TypeError("Path must be a non-empty string or URL.")},"assertValidFileOrDirectoryPath");export{s as default};
@@ -0,0 +1 @@
1
+ var a=Object.defineProperty;var t=(e,r)=>a(e,"name",{value:r,configurable:!0});var i=Object.defineProperty,o=t((e,r)=>i(e,"name",{value:r,configurable:!0}),"t");const n=o(e=>{const r={force:!0,recursive:!0};return e?.maxRetries!==void 0&&(r.maxRetries=e.maxRetries),e?.retryDelay!==void 0&&(r.retryDelay=e.retryDelay),r},"buildRmOptions");export{n as i};
@@ -0,0 +1 @@
1
+ var n=Object.defineProperty;var a=(r,e)=>n(r,"name",{value:e,configurable:!0});import o from"./walk-D01Qmmvz.js";var c=Object.defineProperty,i=a((r,e)=>c(r,"name",{value:e,configurable:!0}),"e");const l=i(async(r,e={})=>{Array.isArray(e.extensions)||(e.extensions=["js","mjs","cjs","ts"]);const s=[];for await(const t of o(r,e))s.push(t.path);return s},"collect");export{l as default};
@@ -0,0 +1 @@
1
+ var t=Object.defineProperty;var s=(r,e)=>t(r,"name",{value:e,configurable:!0});import a from"./walkSync-BknSdmKD.js";var c=Object.defineProperty,f=s((r,e)=>c(r,"name",{value:e,configurable:!0}),"n");const l=f((r,e={})=>{Array.isArray(e.extensions)||(e.extensions=["js","mjs","cjs","ts"]);const o=[];for(const n of a(r,e))o.push(n.path);return o},"collectSync");export{l as default};
@@ -0,0 +1 @@
1
+ var c=Object.defineProperty;var i=(e,r)=>c(e,"name",{value:r,configurable:!0});import{createRequire as f}from"node:module";import{join as _}from"@visulima/path";import{toPath as g}from"@visulima/path/utils";import j from"./assertValidFileOrDirectoryPath-DgPIPmZT.js";import{i as v}from"./build-rm-options-C1R4reBu.js";const m=f(import.meta.url),o=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,t=i(e=>{if(typeof o<"u"&&o.versions&&o.versions.node){const[r,s]=o.versions.node.split(".").map(Number);if(r>22||r===22&&s>=3||r===20&&s>=16)return o.getBuiltinModule(e)}return m(e)},"__cjs_getBuiltinModule"),{existsSync:u}=t("node:fs"),{mkdir:p,readdir:d,rm:l}=t("node:fs/promises");var y=Object.defineProperty,b=i((e,r)=>y(e,"name",{value:r,configurable:!0}),"o");const B=b(async(e,r)=>{if(j(e),!u(e)){await p(e,{recursive:!0});return}const s=await d(e),n=v(r);for(const a of s)await l(_(g(e),a),n)},"emptyDir");export{B as default};
@@ -0,0 +1 @@
1
+ var t=Object.defineProperty;var s=(e,r)=>t(e,"name",{value:r,configurable:!0});import{createRequire as c}from"node:module";import{join as l}from"@visulima/path";import{toPath as _}from"@visulima/path/utils";import y from"./assertValidFileOrDirectoryPath-DgPIPmZT.js";import{i as g}from"./build-rm-options-C1R4reBu.js";const f=c(import.meta.url),o=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,m=s(e=>{if(typeof o<"u"&&o.versions&&o.versions.node){const[r,i]=o.versions.node.split(".").map(Number);if(r>22||r===22&&i>=3||r===20&&i>=16)return o.getBuiltinModule(e)}return f(e)},"__cjs_getBuiltinModule"),{existsSync:u,mkdirSync:a,readdirSync:p,rmSync:d}=m("node:fs");var j=Object.defineProperty,v=s((e,r)=>j(e,"name",{value:r,configurable:!0}),"o");const x=v((e,r)=>{if(y(e),!u(e)){a(e,{recursive:!0});return}const i=g(r);for(const n of p(e))d(l(_(e),n),i)},"emptyDirSync");export{x as default};
@@ -0,0 +1 @@
1
+ var c=Object.defineProperty;var s=(r,e)=>c(r,"name",{value:e,configurable:!0});import{createRequire as a}from"node:module";import d from"./assertValidFileOrDirectoryPath-DgPIPmZT.js";import{g as n}from"./get-file-info-type-CaWGXRjY.js";const u=a(import.meta.url),o=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,f=s(r=>{if(typeof o<"u"&&o.versions&&o.versions.node){const[e,t]=o.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return o.getBuiltinModule(r)}return u(r)},"__cjs_getBuiltinModule"),{lstat:i,mkdir:p}=f("node:fs/promises");var l=Object.defineProperty,m=s((r,e)=>l(r,"name",{value:e,configurable:!0}),"o");const w=m(async r=>{d(r);try{const e=await i(r);if(!e.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(n(e))}'`);return}catch(e){if(e.code!=="ENOENT")throw e}try{await p(r,{recursive:!0})}catch(e){if(e.code!=="EEXIST")throw e;const t=await i(r);if(!t.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(n(t))}'`,{cause:e})}},"ensureDir");export{w as default};
@@ -0,0 +1 @@
1
+ var c=Object.defineProperty;var s=(r,e)=>c(r,"name",{value:e,configurable:!0});import{createRequire as a}from"node:module";import p from"./assertValidFileOrDirectoryPath-DgPIPmZT.js";import{g as n}from"./get-file-info-type-CaWGXRjY.js";const u=a(import.meta.url),o=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,f=s(r=>{if(typeof o<"u"&&o.versions&&o.versions.node){const[e,t]=o.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return o.getBuiltinModule(r)}return u(r)},"__cjs_getBuiltinModule"),{lstatSync:i,mkdirSync:d}=f("node:fs");var l=Object.defineProperty,g=s((r,e)=>l(r,"name",{value:e,configurable:!0}),"o");const E=g(r=>{p(r);try{const e=i(r);if(!e.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(n(e))}'`);return}catch(e){if(e.code!=="ENOENT")throw e}try{d(r,{recursive:!0})}catch(e){if(e.code!=="EEXIST")throw e;const t=i(r);if(!t.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(n(t))}'`,{cause:e})}},"ensureDirSync");export{E as default};
@@ -0,0 +1 @@
1
+ var s=Object.defineProperty;var t=(r,e)=>s(r,"name",{value:e,configurable:!0});import{createRequire as n}from"node:module";import{dirname as l}from"@visulima/path";import{toPath as m}from"@visulima/path/utils";import u from"./assertValidFileOrDirectoryPath-DgPIPmZT.js";import d from"./ensureDir-CZ4oUFuo.js";import{g as _}from"./get-file-info-type-CaWGXRjY.js";const a=n(import.meta.url),o=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,c=t(r=>{if(typeof o<"u"&&o.versions&&o.versions.node){const[e,i]=o.versions.node.split(".").map(Number);if(e>22||e===22&&i>=3||e===20&&i>=16)return o.getBuiltinModule(r)}return a(r)},"__cjs_getBuiltinModule"),{lstat:f,writeFile:p}=c("node:fs/promises");var g=Object.defineProperty,w=t((r,e)=>g(r,"name",{value:e,configurable:!0}),"o");const F=w(async r=>{u(r);try{const e=await f(r);if(!e.isFile())throw new Error(`Ensure path exists, expected 'file', got '${String(_(e))}'`)}catch(e){if(e.code==="ENOENT"){await d(l(m(r))),await p(r,new Uint8Array);return}throw e}},"ensureFile");export{F as default};
@@ -0,0 +1 @@
1
+ var s=Object.defineProperty;var t=(r,e)=>s(r,"name",{value:e,configurable:!0});import{createRequire as n}from"node:module";import{dirname as p}from"@visulima/path";import{toPath as u}from"@visulima/path/utils";import m from"./assertValidFileOrDirectoryPath-DgPIPmZT.js";import d from"./ensureDirSync-CoPWhbjM.js";import{g as _}from"./get-file-info-type-CaWGXRjY.js";const c=n(import.meta.url),o=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,a=t(r=>{if(typeof o<"u"&&o.versions&&o.versions.node){const[e,i]=o.versions.node.split(".").map(Number);if(e>22||e===22&&i>=3||e===20&&i>=16)return o.getBuiltinModule(r)}return c(r)},"__cjs_getBuiltinModule"),{lstatSync:f,writeFileSync:l}=a("node:fs");var g=Object.defineProperty,y=t((r,e)=>g(r,"name",{value:e,configurable:!0}),"o");const F=y(r=>{m(r);try{const e=f(r);if(!e.isFile())throw new Error(`Ensure path exists, expected 'file', got '${String(_(e))}'`)}catch(e){if(e.code==="ENOENT"){d(p(u(r))),l(r,new Uint8Array);return}throw e}},"ensureFileSync");export{F as default};
@@ -0,0 +1 @@
1
+ var f=Object.defineProperty;var i=(t,e)=>f(t,"name",{value:e,configurable:!0});import{createRequire as u}from"node:module";import{toNamespacedPath as c,dirname as h}from"@visulima/path";import{toPath as m}from"@visulima/path/utils";import l from"./assertValidFileOrDirectoryPath-DgPIPmZT.js";import y from"./ensureDir-CZ4oUFuo.js";import{l as b}from"./is-stats-identical-CohsLtWy.js";const d=u(import.meta.url),s=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,_=i(t=>{if(typeof s<"u"&&s.versions&&s.versions.node){const[e,o]=s.versions.node.split(".").map(Number);if(e>22||e===22&&o>=3||e===20&&o>=16)return s.getBuiltinModule(t)}return d(t)},"__cjs_getBuiltinModule"),{lstat:n,link:g}=_("node:fs/promises");var j=Object.defineProperty,v=i((t,e)=>j(t,"name",{value:e,configurable:!0}),"i");const M=v(async(t,e)=>{l(t),l(e),t=c(m(t)),e=c(m(e));let o;try{o=await n(e)}catch{}let a;try{a=await n(t)}catch(p){const r=p;throw r.message=r.message.replace("lstat","ensureLink"),r}o&&b(a,o)||(await y(h(e)),await g(t,e))},"ensureLink");export{M as default};
@@ -0,0 +1 @@
1
+ var u=Object.defineProperty;var n=(o,e)=>u(o,"name",{value:e,configurable:!0});import{createRequire as f}from"node:module";import{toNamespacedPath as c,dirname as y}from"@visulima/path";import{toPath as m}from"@visulima/path/utils";import l from"./assertValidFileOrDirectoryPath-DgPIPmZT.js";import h from"./ensureDirSync-CoPWhbjM.js";import{l as b}from"./is-stats-identical-CohsLtWy.js";const d=f(import.meta.url),r=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,_=n(o=>{if(typeof r<"u"&&r.versions&&r.versions.node){const[e,t]=r.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return r.getBuiltinModule(o)}return d(o)},"__cjs_getBuiltinModule"),{lstatSync:a,linkSync:g}=_("node:fs");var j=Object.defineProperty,v=n((o,e)=>j(o,"name",{value:e,configurable:!0}),"m");const M=v((o,e)=>{l(o),l(e),o=c(m(o)),e=c(m(e));let t;try{t=a(e)}catch{}let i;try{i=a(o)}catch(p){const s=p;throw s.message=s.message.replace("lstat","ensureLink"),s}t&&b(i,t)||(h(y(e)),g(o,e))},"ensureLinkSync");export{M as default};
@@ -0,0 +1 @@
1
+ var b=Object.defineProperty;var m=(i,e)=>b(i,"name",{value:e,configurable:!0});import{createRequire as j}from"node:module";import{toNamespacedPath as l,dirname as $,resolve as q}from"@visulima/path";import{toPath as d}from"@visulima/path/utils";import u from"./assertValidFileOrDirectoryPath-DgPIPmZT.js";import x from"./ensureDir-CZ4oUFuo.js";import{g as y}from"./get-file-info-type-CaWGXRjY.js";import{l as w}from"./is-stats-identical-CohsLtWy.js";import{o as E}from"./resolve-symlink-target-BofZSDIc.js";import g from"./AlreadyExistsError-CEu6_Tjb.js";const P=j(import.meta.url),t=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,k=m(i=>{if(typeof t<"u"&&t.versions&&t.versions.node){const[e,o]=t.versions.node.split(".").map(Number);if(e>22||e===22&&o>=3||e===20&&o>=16)return t.getBuiltinModule(i)}return P(i)},"__cjs_getBuiltinModule"),{lstat:f,stat:n,symlink:S,readlink:T}=k("node:fs/promises");var L=Object.defineProperty,A=m((i,e)=>L(i,"name",{value:e,configurable:!0}),"m");const B=process.platform==="win32"||/^(?:msys|cygwin)$/.test(process.env.OSTYPE),D=A(async(i,e,o)=>{u(i),u(e);const r=E(i,e);e=l(d(e));try{if((await f(e)).isSymbolicLink()&&w(await n(r),await n(e))){const[s,a]=await Promise.all([n(r),n(e)]);if(w(s,a))return}}catch{}const h=await f(r),_=y(h);await x($(e));let c=o??"file";o||(B?c="junction":c=_==="dir"?"dir":"file");try{await S(l(d(r)),e,c)}catch(s){if(s.code!=="EEXIST")throw s;const a=await f(e);if(!a.isSymbolicLink())throw new g(`A ${String(y(a))} already exists at the path: ${e}`);const v=await T(e),p=l(q(v));if(p!==r)throw new g(`A symlink targeting to an undesired path already exists: ${e} -> ${p}`)}},"ensureSymlink");export{D as default};
@@ -0,0 +1 @@
1
+ var b=Object.defineProperty;var m=(o,e)=>b(o,"name",{value:e,configurable:!0});import{createRequire as w}from"node:module";import{toNamespacedPath as f,dirname as T,resolve as q}from"@visulima/path";import{toPath as d}from"@visulima/path/utils";import u from"./assertValidFileOrDirectoryPath-DgPIPmZT.js";import x from"./ensureDirSync-CoPWhbjM.js";import{g as y}from"./get-file-info-type-CaWGXRjY.js";import{l as g}from"./is-stats-identical-CohsLtWy.js";import{o as E}from"./resolve-symlink-target-BofZSDIc.js";import h from"./AlreadyExistsError-CEu6_Tjb.js";const j=w(import.meta.url),t=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,$=m(o=>{if(typeof t<"u"&&t.versions&&t.versions.node){const[e,r]=t.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return t.getBuiltinModule(o)}return j(o)},"__cjs_getBuiltinModule"),{lstatSync:l,statSync:c,symlinkSync:k,readlinkSync:P}=$("node:fs");var L=Object.defineProperty,A=m((o,e)=>L(o,"name",{value:e,configurable:!0}),"p");const B=process.platform==="win32"||/^(?:msys|cygwin)$/.test(process.env.OSTYPE),D=A((o,e,r)=>{u(o),u(e);const i=E(o,e);e=f(d(e));try{if(l(e).isSymbolicLink()&&g(c(i),c(e))){const n=c(i),s=c(e);if(g(n,s))return}}catch{}const _=l(i),S=y(_);x(T(e));let a=r??"file";r||(B?a="junction":a=S==="dir"?"dir":"file");try{k(f(d(i)),e,a)}catch(n){if(n.code!=="EEXIST")throw n;const s=l(e);if(!s.isSymbolicLink())throw new h(`A ${String(y(s))} already exists at the path: ${e}`);const v=P(e),p=f(q(v));if(p!==i)throw new h(`A symlink targeting to an undesired path already exists: ${e} -> ${p}`)}},"ensureSymlinkSync");export{D as default};
@@ -0,0 +1 @@
1
+ var b=Object.defineProperty;var a=(r,e)=>b(r,"name",{value:e,configurable:!0});import{createRequire as v}from"node:module";import{resolve as c,parse as B,isAbsolute as R,dirname as S}from"@visulima/path";import{toPath as y}from"@visulima/path/utils";import{FIND_UP_STOP as U}from"./F_OK-CAwY1qU7.js";const T=v(import.meta.url),s=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,d=a(r=>{if(typeof s<"u"&&s.versions&&s.versions.node){const[e,i]=s.versions.node.split(".").map(Number);if(e>22||e===22&&i>=3||e===20&&i>=16)return s.getBuiltinModule(r)}return T(r)},"__cjs_getBuiltinModule"),{stat:j,lstat:A}=d("node:fs/promises"),{fileURLToPath:P}=d("node:url");var q=Object.defineProperty,m=a((r,e)=>q(r,"name",{value:e,configurable:!0}),"n");const N=m(async(r,e={})=>{if(typeof r!="string"&&!Array.isArray(r)&&typeof r!="function")throw new TypeError("The `name` argument must be of type `string` or `string[]`");const i=e.cwd?y(e.cwd):process.cwd();let t=c(i);const{root:f}=B(t),g=y(e.stopAt??f),_=c(t,g),u=e.type??"file",h=m(async function(n){return typeof r=="function"?[await r(n)]:typeof r=="string"?[r]:Array.isArray(r)?r:[r]},"getMatchers");e.allowSymlinks??=!0;const w=e.allowSymlinks?j:A;for(;t&&t!==_&&t!==f;){const n=await h(t);for(let o of n){if(o===U)return;if(o===void 0)continue;Buffer.isBuffer(o)?o=o.toString():o instanceof URL&&(o=P(o));const l=R(o)?o:c(t,o);try{const p=await w(l);if(u==="file"&&p.isFile()||u==="directory"&&p.isDirectory())return l}catch{}}t=S(t)}},"findUp");export{N as default};
@@ -0,0 +1 @@
1
+ var b=Object.defineProperty;var i=(e,t)=>b(e,"name",{value:t,configurable:!0});import{createRequire as v}from"node:module";import{resolve as c,parse as A,isAbsolute as P,dirname as B}from"@visulima/path";import{toPath as p}from"@visulima/path/utils";import{FIND_UP_STOP as R}from"./F_OK-CAwY1qU7.js";const w=v(import.meta.url),n=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,d=i(e=>{if(typeof n<"u"&&n.versions&&n.versions.node){const[t,s]=n.versions.node.split(".").map(Number);if(t>22||t===22&&s>=3||t===20&&s>=16)return n.getBuiltinModule(e)}return w(e)},"__cjs_getBuiltinModule"),{statSync:S,lstatSync:T}=d("node:fs"),{fileURLToPath:j}=d("node:url");var U=Object.defineProperty,y=i((e,t)=>U(e,"name",{value:t,configurable:!0}),"o");const F=y((e,t={})=>{if(typeof e!="string"&&!Array.isArray(e)&&typeof e!="function")throw new TypeError("The `name` argument must be of type `string` or `string[]`");const s=t.cwd?p(t.cwd):process.cwd();let r=c(s);const{root:f}=A(r),m=p(t.stopAt??f),g=c(r,m),a=t.type??"file",_=y(function(o){return typeof e=="function"?[e(o)]:typeof e=="string"?[e]:Array.isArray(e)?e:[e]},"getMatchers");t.allowSymlinks??=!0;const h=t.allowSymlinks?S:T;for(;r&&r!==g&&r!==f;){for(let o of _(r)){if(o===R)return;if(o===void 0)continue;Buffer.isBuffer(o)?o=o.toString():o instanceof URL&&(o=j(o));const u=P(o)?o:c(r,o);try{const l=h(u);if(a==="file"&&l.isFile()||a==="directory"&&l.isDirectory())return u}catch{}}r=B(r)}},"findUpSync");export{F as default};
@@ -0,0 +1 @@
1
+ var n=Object.defineProperty;var r=(e,i)=>n(e,"name",{value:i,configurable:!0});var t=Object.defineProperty,f=r((e,i)=>t(e,"name",{value:i,configurable:!0}),"i");const o=f(e=>{if(e.isFile())return"file";if(e.isDirectory())return"dir";if(e.isSymbolicLink())return"symlink"},"getFileInfoType");export{o as g};
@@ -0,0 +1 @@
1
+ var t=Object.defineProperty;var r=(a,e)=>t(a,"name",{value:e,configurable:!0});import{b as o}from"./index-yGx8uzZs.js";var n=Object.defineProperty,b=r((a,e)=>n(a,"name",{value:e,configurable:!0}),"r");const f=b(async(a,e)=>await o(a,e),"glob");export{f as default};
@@ -1,4 +1,4 @@
1
- import { G as GlobOptions } from "./types.d-CixEXeyM.js";
1
+ import { G as GlobOptions } from "./types.d-DjZtAjkJ.js";
2
2
  /**
3
3
  * Asynchronously matches files on disk using one or more glob patterns.
4
4
  *
@@ -0,0 +1 @@
1
+ var t=Object.defineProperty;var a=(e,r)=>t(e,"name",{value:r,configurable:!0});import{x as o}from"./index-yGx8uzZs.js";var n=Object.defineProperty,c=a((e,r)=>n(e,"name",{value:r,configurable:!0}),"n");const s=c((e,r)=>o(e,r),"globSync");export{s as default};
@@ -0,0 +1 @@
1
+ var w=Object.defineProperty;var s=(n,t)=>w(n,"name",{value:t,configurable:!0});var E=Object.defineProperty,i=s((n,t)=>E(n,"name",{value:t,configurable:!0}),"i");const K=/^(?:( )+|\t+)/,f="space";function g(n,t,e){return n&&t===f&&e===1}s(g,"I");i(g,"shouldIgnoreSingleSpace");function y(n,t){const e=new Map;let o=0,c,r;for(const u of n.split(/\n/g)){if(!u)continue;const l=u.match(K);if(l===null)o=0,c="";else{const d=l[0].length,a=l[1]?f:"tab";if(g(t,a,d))continue;a!==c&&(o=0),c=a;let m=1,I=0;const b=d-o;if(o=d,b===0)m=0,I=1;else{const h=Math.abs(b);if(g(t,a,h))continue;r=v(a,h)}const p=e.get(r);e.set(r,p===void 0?[1,0]:[p[0]+m,p[1]+I])}}return e}s(y,"h");i(y,"makeIndentsMap");function v(n,t){return(n===f?"s":"t")+String(t)}s(v,"m");i(v,"encodeIndentsKey");function M(n){const t=n[0]==="s"?f:"tab",e=Number(n.slice(1));return{type:t,amount:e}}s(M,"_");i(M,"decodeIndentsKey");function S(n){let t,e=0,o=0;for(const[c,[r,u]]of n)(r>e||r===e&&u>o)&&(e=r,o=u,t=c);return t}s(S,"k");i(S,"getMostUsedKey");function k(n,t){return(n===f?" ":" ").repeat(t)}s(k,"D");i(k,"makeIndentString");function x(n){if(typeof n!="string")throw new TypeError("Expected a string");let t=y(n,!0);t.size===0&&(t=y(n,!1));const e=S(t);let o,c=0,r="";return e!==void 0&&({type:o,amount:c}=M(e),r=k(o,c)),{amount:c,type:o,indent:r}}s(x,"C");i(x,"detectIndent");export{x as C};