@visulima/fs 2.1.14 → 2.1.16

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 (178) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/LICENSE.md +20 -20
  3. package/dist/error.cjs +1 -1
  4. package/dist/error.mjs +1 -1
  5. package/dist/index.cjs +1 -1
  6. package/dist/index.mjs +1 -1
  7. package/dist/shared/{AlreadyExistsError-yT45kpVd.mjs → AlreadyExistsError-CEu6_Tjb.mjs} +1 -1
  8. package/dist/shared/AlreadyExistsError-GC2XUgzJ.cjs +1 -0
  9. package/dist/shared/DirectoryError-B8wqer68.cjs +1 -0
  10. package/dist/shared/{DirectoryError-DYXOepnO.mjs → DirectoryError-ddlbUV8C.mjs} +1 -1
  11. package/dist/shared/F_OK-CiLqIeYK.mjs +1 -0
  12. package/dist/shared/{JSONError-BwfyCaRr.mjs → JSONError-CVkb3xZ3.mjs} +2 -2
  13. package/dist/shared/JSONError-CWuiGmNc.cjs +4 -0
  14. package/dist/shared/LF-Dbx0i6a7.mjs +3 -0
  15. package/dist/shared/NotEmptyError-BWGfec5K.cjs +1 -0
  16. package/dist/shared/{NotEmptyError-DCoszDiD.mjs → NotEmptyError-DMh1o7UL.mjs} +1 -1
  17. package/dist/shared/NotFoundError-Diij7oqe.cjs +1 -0
  18. package/dist/shared/{NotFoundError-CQCvj7gX.mjs → NotFoundError-T95YsWYl.mjs} +1 -1
  19. package/dist/shared/{PermissionError-BYPqHEY9.mjs → PermissionError-B8oi38Bx.mjs} +1 -1
  20. package/dist/shared/PermissionError-Ck1Es7al.cjs +1 -0
  21. package/dist/shared/WalkError-BsngoIKJ.mjs +1 -0
  22. package/dist/shared/WalkError-gKgp0TWD.cjs +1 -0
  23. package/dist/shared/assertValidFileContents-BLhwm7u2.mjs +1 -0
  24. package/dist/shared/assertValidFileContents-CrbDz09d.cjs +1 -0
  25. package/dist/shared/{assertValidFileOrDirectoryPath-CQmKNf2h.mjs → assertValidFileOrDirectoryPath-DgPIPmZT.mjs} +1 -1
  26. package/dist/shared/assertValidFileOrDirectoryPath-HOUs73Jk.cjs +1 -0
  27. package/dist/shared/collect-4au76gDu.cjs +1 -0
  28. package/dist/shared/collect-CRzGiRGg.mjs +1 -0
  29. package/dist/shared/collectSync-BE8DAOke.mjs +1 -0
  30. package/dist/shared/collectSync-CbKwt8rz.cjs +1 -0
  31. package/dist/shared/emptyDir-D2m8OP8u.mjs +1 -0
  32. package/dist/shared/emptyDir-DKxQHQQb.cjs +1 -0
  33. package/dist/shared/emptyDirSync-CLM_zyIb.cjs +1 -0
  34. package/dist/shared/emptyDirSync-CZNcW4wc.mjs +1 -0
  35. package/dist/shared/ensureDir-BtvxsJiS.mjs +1 -0
  36. package/dist/shared/ensureDir-DVHj-_yp.cjs +1 -0
  37. package/dist/shared/ensureDirSync-CvjJ3bGq.cjs +1 -0
  38. package/dist/shared/ensureDirSync-bGe0QB7d.mjs +1 -0
  39. package/dist/shared/ensureFile-C46R6-4l.mjs +1 -0
  40. package/dist/shared/ensureFile-CcJ5XIZm.cjs +1 -0
  41. package/dist/shared/ensureFileSync-CwYTIP4G.mjs +1 -0
  42. package/dist/shared/ensureFileSync-v-PhMLTr.cjs +1 -0
  43. package/dist/shared/ensureLink-63XWiA3I.mjs +1 -0
  44. package/dist/shared/ensureLink-C-v4AxzH.cjs +1 -0
  45. package/dist/shared/ensureLinkSync-C4S-zdVb.cjs +1 -0
  46. package/dist/shared/ensureLinkSync-D2LVObKd.mjs +1 -0
  47. package/dist/shared/ensureSymlink-C5cy9585.cjs +1 -0
  48. package/dist/shared/ensureSymlink-D36fS4KE.mjs +1 -0
  49. package/dist/shared/ensureSymlinkSync-PvWVgeXc.mjs +1 -0
  50. package/dist/shared/ensureSymlinkSync-YDRbg9hX.cjs +1 -0
  51. package/dist/shared/findUp-DTU501Mn.cjs +1 -0
  52. package/dist/shared/findUp-ik4TWAC2.mjs +1 -0
  53. package/dist/shared/findUpSync-C1w6Z_6P.cjs +1 -0
  54. package/dist/shared/findUpSync-DO0R67zX.mjs +1 -0
  55. package/dist/shared/isAccessible-C58XjRjT.cjs +1 -0
  56. package/dist/shared/isAccessible-vmOjbVOF.mjs +1 -0
  57. package/dist/shared/isAccessibleSync-9njSth1z.cjs +1 -0
  58. package/dist/shared/isAccessibleSync-BxoK0UkJ.mjs +1 -0
  59. package/dist/shared/parseJson-CgmZtT7L.mjs +6 -0
  60. package/dist/shared/parseJson-DAKf187w.cjs +6 -0
  61. package/dist/shared/readFile-D6U3MP6g.mjs +1 -0
  62. package/dist/shared/readFile-DIQKBQ0d.cjs +1 -0
  63. package/dist/shared/readFileSync-Bao-E5R8.mjs +1 -0
  64. package/dist/shared/readFileSync-CTVwduD2.cjs +1 -0
  65. package/dist/shared/readJson-CIJOiEDB.cjs +1 -0
  66. package/dist/shared/readJson-CspqAlYM.mjs +1 -0
  67. package/dist/shared/readJsonSync-CIpsOFdq.cjs +1 -0
  68. package/dist/shared/readJsonSync-D9HVAN14.mjs +1 -0
  69. package/dist/shared/readYaml-BYMJDJU0.mjs +1 -0
  70. package/dist/shared/readYaml-D4PbAXZD.cjs +1 -0
  71. package/dist/shared/readYamlSync-Bnyr8iGt.cjs +1 -0
  72. package/dist/shared/readYamlSync-CdYj75zz.mjs +1 -0
  73. package/dist/shared/remove-B-9MI2l5.cjs +1 -0
  74. package/dist/shared/remove-DzfvbZOm.mjs +1 -0
  75. package/dist/shared/removeSync-CJPR6M7V.cjs +1 -0
  76. package/dist/shared/removeSync-D165rXSn.mjs +1 -0
  77. package/dist/shared/stripJsonComments-BG8VWVP8.cjs +1 -0
  78. package/dist/shared/stripJsonComments-CnWkqJaX.mjs +1 -0
  79. package/dist/shared/walk-BJgnJy5d.cjs +1 -0
  80. package/dist/shared/walk-DH-95i_B.mjs +1 -0
  81. package/dist/shared/walkSync-D4zvt_kM.mjs +1 -0
  82. package/dist/shared/walkSync-DYawhxUA.cjs +1 -0
  83. package/dist/shared/writeFile-DwkUvAF-.mjs +1 -0
  84. package/dist/shared/writeFile-z1NYn8jk.cjs +1 -0
  85. package/dist/shared/writeFileSync-DYhY33yC.mjs +1 -0
  86. package/dist/shared/writeFileSync-rAuaAA6w.cjs +1 -0
  87. package/dist/shared/writeJson-BW5_Vr5i.cjs +4 -0
  88. package/dist/shared/writeJson-DI_vpDVy.mjs +4 -0
  89. package/dist/shared/writeJsonSync-BkoMtNUG.cjs +4 -0
  90. package/dist/shared/writeJsonSync-DLo6ZPEV.mjs +4 -0
  91. package/dist/shared/writeYaml-B4jtxffY.mjs +1 -0
  92. package/dist/shared/writeYaml-BO_bcnqK.cjs +1 -0
  93. package/dist/shared/writeYamlSync-BG69YBbH.mjs +1 -0
  94. package/dist/shared/writeYamlSync-DozAaY0A.cjs +1 -0
  95. package/dist/utils.cjs +1 -1
  96. package/dist/utils.mjs +1 -1
  97. package/package.json +20 -6
  98. package/dist/shared/AlreadyExistsError-qYsUje4Q.cjs +0 -1
  99. package/dist/shared/DirectoryError-JjvRpYZe.cjs +0 -1
  100. package/dist/shared/F_OK-BzMbdSs5.mjs +0 -1
  101. package/dist/shared/JSONError-BywLDEj4.cjs +0 -4
  102. package/dist/shared/LF-DwWQ8GdI.mjs +0 -3
  103. package/dist/shared/NotEmptyError-Bh6NOR9V.cjs +0 -1
  104. package/dist/shared/NotFoundError-BvgYH3iL.cjs +0 -1
  105. package/dist/shared/PermissionError-Dl1gfUwc.cjs +0 -1
  106. package/dist/shared/WalkError-CWKlhCA6.mjs +0 -1
  107. package/dist/shared/WalkError-DzbUzZjo.cjs +0 -1
  108. package/dist/shared/assertValidFileContents-BTXEHdLD.mjs +0 -1
  109. package/dist/shared/assertValidFileContents-vTNSeAqn.cjs +0 -1
  110. package/dist/shared/assertValidFileOrDirectoryPath-BT5xYqBy.cjs +0 -1
  111. package/dist/shared/collect-B2KdWG6-.mjs +0 -1
  112. package/dist/shared/collect-DwzKTfA1.cjs +0 -1
  113. package/dist/shared/collectSync-BMKZmoZR.mjs +0 -1
  114. package/dist/shared/collectSync-D-h8vph4.cjs +0 -1
  115. package/dist/shared/emptyDir-BkedPAhT.mjs +0 -1
  116. package/dist/shared/emptyDir-Ddqlcb6Q.cjs +0 -1
  117. package/dist/shared/emptyDirSync-Cp_8wgUR.mjs +0 -1
  118. package/dist/shared/emptyDirSync-DqizscgL.cjs +0 -1
  119. package/dist/shared/ensureDir-CpMWmVZ0.mjs +0 -1
  120. package/dist/shared/ensureDir-tKW3dSA0.cjs +0 -1
  121. package/dist/shared/ensureDirSync-DzJ1sUTo.cjs +0 -1
  122. package/dist/shared/ensureDirSync-hyBJv3ax.mjs +0 -1
  123. package/dist/shared/ensureFile-C4MogFm1.cjs +0 -1
  124. package/dist/shared/ensureFile-b-ST2MTk.mjs +0 -1
  125. package/dist/shared/ensureFileSync-BXhhrF2q.cjs +0 -1
  126. package/dist/shared/ensureFileSync-ClzIyiYf.mjs +0 -1
  127. package/dist/shared/ensureLink-CHQqG8z2.mjs +0 -1
  128. package/dist/shared/ensureLink-DY7IQxZ4.cjs +0 -1
  129. package/dist/shared/ensureLinkSync-Cq1cPBbo.mjs +0 -1
  130. package/dist/shared/ensureLinkSync-DJpt1OVV.cjs +0 -1
  131. package/dist/shared/ensureSymlink-CMtb3oPM.mjs +0 -1
  132. package/dist/shared/ensureSymlink-D6VKdTBJ.cjs +0 -1
  133. package/dist/shared/ensureSymlinkSync-DRDE5so4.mjs +0 -1
  134. package/dist/shared/ensureSymlinkSync-DWIrsihx.cjs +0 -1
  135. package/dist/shared/findUp-BVECzzpO.cjs +0 -1
  136. package/dist/shared/findUp-COYH0Ul9.mjs +0 -1
  137. package/dist/shared/findUpSync-nA9H0jZj.mjs +0 -1
  138. package/dist/shared/findUpSync-vnrRIw6w.cjs +0 -1
  139. package/dist/shared/isAccessible-BbChaABn.mjs +0 -1
  140. package/dist/shared/isAccessible-DxFHaxVe.cjs +0 -1
  141. package/dist/shared/isAccessibleSync-C3YjvkTe.mjs +0 -1
  142. package/dist/shared/isAccessibleSync-DtOcefUR.cjs +0 -1
  143. package/dist/shared/parseJson-DjId4v2J.mjs +0 -6
  144. package/dist/shared/parseJson-IY63B_0y.cjs +0 -6
  145. package/dist/shared/readFile-BvgGZivd.mjs +0 -1
  146. package/dist/shared/readFile-DBC_s-48.cjs +0 -1
  147. package/dist/shared/readFileSync-C2bxnV-R.mjs +0 -1
  148. package/dist/shared/readFileSync-CBzoyWtz.cjs +0 -1
  149. package/dist/shared/readJson-BpngPb-8.cjs +0 -1
  150. package/dist/shared/readJson-hlujfMhv.mjs +0 -1
  151. package/dist/shared/readJsonSync-C1vainhA.mjs +0 -1
  152. package/dist/shared/readJsonSync-DTRTDPzu.cjs +0 -1
  153. package/dist/shared/readYaml-Cm-6prFv.mjs +0 -1
  154. package/dist/shared/readYaml-jKVEYXs2.cjs +0 -1
  155. package/dist/shared/readYamlSync-C73N6_GL.cjs +0 -1
  156. package/dist/shared/readYamlSync-DgaclC7K.mjs +0 -1
  157. package/dist/shared/remove-D67tECRM.cjs +0 -1
  158. package/dist/shared/remove-DbvVKBUa.mjs +0 -1
  159. package/dist/shared/removeSync-Ngu7GWsH.mjs +0 -1
  160. package/dist/shared/removeSync-womNIl-8.cjs +0 -1
  161. package/dist/shared/stripJsonComments-BuOddwNE.cjs +0 -1
  162. package/dist/shared/stripJsonComments-DtqWH5Xl.mjs +0 -1
  163. package/dist/shared/walk-DO_o7eRl.mjs +0 -1
  164. package/dist/shared/walk-kHxIkAkJ.cjs +0 -1
  165. package/dist/shared/walkSync-BLhXIHWn.cjs +0 -1
  166. package/dist/shared/walkSync-C5uWmu9Q.mjs +0 -1
  167. package/dist/shared/writeFile-BkHnZTWA.mjs +0 -1
  168. package/dist/shared/writeFile-COembSIp.cjs +0 -1
  169. package/dist/shared/writeFileSync-6h8CQ9EO.mjs +0 -1
  170. package/dist/shared/writeFileSync-C3D5fvZf.cjs +0 -1
  171. package/dist/shared/writeJson-C8i3IALv.mjs +0 -4
  172. package/dist/shared/writeJson-rHdXUJ9n.cjs +0 -4
  173. package/dist/shared/writeJsonSync-BVBRbGPP.mjs +0 -4
  174. package/dist/shared/writeJsonSync-C7xU8DX6.cjs +0 -4
  175. package/dist/shared/writeYaml-BG-a4bX4.mjs +0 -1
  176. package/dist/shared/writeYaml-BnD26RjE.cjs +0 -1
  177. package/dist/shared/writeYamlSync-BEUPvAyj.mjs +0 -1
  178. package/dist/shared/writeYamlSync-BS0MBjJo.cjs +0 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,35 @@
1
+ ## @visulima/fs [2.1.16](https://github.com/visulima/visulima/compare/@visulima/fs@2.1.15...@visulima/fs@2.1.16) (2024-09-07)
2
+
3
+ ### Bug Fixes
4
+
5
+ * fixed broken chunk splitting from packem ([1aaf277](https://github.com/visulima/visulima/commit/1aaf27779292d637923c5f8a220e18606e78caa2))
6
+
7
+
8
+ ### Dependencies
9
+
10
+ * **@visulima/path:** upgraded to 1.0.7
11
+ * **@visulima/error:** upgraded to 4.4.3
12
+
13
+ ## @visulima/fs [2.1.15](https://github.com/visulima/visulima/compare/@visulima/fs@2.1.14...@visulima/fs@2.1.15) (2024-09-07)
14
+
15
+ ### Bug Fixes
16
+
17
+ * added types support for node10 ([604583f](https://github.com/visulima/visulima/commit/604583fa3c24b950fafad45d17e7a1333040fd76))
18
+
19
+ ### Styles
20
+
21
+ * cs fixes ([f5c4af7](https://github.com/visulima/visulima/commit/f5c4af7cfa9fc79b6d3fa60c1e48d88bffab5a08))
22
+
23
+ ### Miscellaneous Chores
24
+
25
+ * update dev dependencies ([0738f98](https://github.com/visulima/visulima/commit/0738f9810478bb215ce4b2571dc8874c4c503089))
26
+
27
+
28
+ ### Dependencies
29
+
30
+ * **@visulima/path:** upgraded to 1.0.6
31
+ * **@visulima/error:** upgraded to 4.4.2
32
+
1
33
  ## @visulima/fs [2.1.14](https://github.com/visulima/visulima/compare/@visulima/fs@2.1.13...@visulima/fs@2.1.14) (2024-08-30)
2
34
 
3
35
  ### Bug Fixes
package/LICENSE.md CHANGED
@@ -30,7 +30,7 @@ MIT
30
30
  ## @visulima/error
31
31
  License: MIT
32
32
  By: Daniel Bannert
33
- Repository: https://github.com/visulima/visulima.git
33
+ Repository: git+https://github.com/visulima/visulima.git
34
34
 
35
35
  > MIT License
36
36
  >
@@ -67,13 +67,13 @@ Repository: https://github.com/visulima/visulima.git
67
67
  > Repository: sindresorhus/is-plain-obj
68
68
  >
69
69
  > > MIT License
70
- > >
70
+ > >
71
71
  > > Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
72
- > >
72
+ > >
73
73
  > > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
74
- > >
74
+ > >
75
75
  > > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
76
- > >
76
+ > >
77
77
  > > 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.
78
78
 
79
79
  ---------------------------------------
@@ -128,7 +128,7 @@ MIT
128
128
  ## @visulima/error
129
129
  License: MIT
130
130
  By: Daniel Bannert
131
- Repository: https://github.com/visulima/visulima.git
131
+ Repository: git+https://github.com/visulima/visulima.git
132
132
 
133
133
  > MIT License
134
134
  >
@@ -165,13 +165,13 @@ Repository: https://github.com/visulima/visulima.git
165
165
  > Repository: sindresorhus/is-plain-obj
166
166
  >
167
167
  > > MIT License
168
- > >
168
+ > >
169
169
  > > Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
170
- > >
170
+ > >
171
171
  > > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
172
- > >
172
+ > >
173
173
  > > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
174
- > >
174
+ > >
175
175
  > > 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.
176
176
 
177
177
  ---------------------------------------
@@ -226,7 +226,7 @@ MIT
226
226
  ## @visulima/error
227
227
  License: MIT
228
228
  By: Daniel Bannert
229
- Repository: https://github.com/visulima/visulima.git
229
+ Repository: git+https://github.com/visulima/visulima.git
230
230
 
231
231
  > MIT License
232
232
  >
@@ -263,13 +263,13 @@ Repository: https://github.com/visulima/visulima.git
263
263
  > Repository: sindresorhus/is-plain-obj
264
264
  >
265
265
  > > MIT License
266
- > >
266
+ > >
267
267
  > > Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
268
- > >
268
+ > >
269
269
  > > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
270
- > >
270
+ > >
271
271
  > > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
272
- > >
272
+ > >
273
273
  > > 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.
274
274
 
275
275
  ---------------------------------------
@@ -324,7 +324,7 @@ MIT
324
324
  ## @visulima/error
325
325
  License: MIT
326
326
  By: Daniel Bannert
327
- Repository: https://github.com/visulima/visulima.git
327
+ Repository: git+https://github.com/visulima/visulima.git
328
328
 
329
329
  > MIT License
330
330
  >
@@ -361,13 +361,13 @@ Repository: https://github.com/visulima/visulima.git
361
361
  > Repository: sindresorhus/is-plain-obj
362
362
  >
363
363
  > > MIT License
364
- > >
364
+ > >
365
365
  > > Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
366
- > >
366
+ > >
367
367
  > > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
368
- > >
368
+ > >
369
369
  > > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
370
- > >
370
+ > >
371
371
  > > 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.
372
372
 
373
373
  ---------------------------------------
package/dist/error.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./shared/AlreadyExistsError-qYsUje4Q.cjs"),o=require("./shared/DirectoryError-JjvRpYZe.cjs"),e=require("./shared/JSONError-BywLDEj4.cjs"),t=require("./shared/NotEmptyError-Bh6NOR9V.cjs"),i=require("./shared/NotFoundError-BvgYH3iL.cjs"),n=require("./shared/PermissionError-Dl1gfUwc.cjs"),E=require("./shared/WalkError-DzbUzZjo.cjs");exports.AlreadyExistsError=r.n;exports.DirectoryError=o.n;exports.JSONError=e.r;exports.NotEmptyError=t.n;exports.NotFoundError=i.n;exports.PermissionError=n.n;exports.WalkError=E.i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./shared/AlreadyExistsError-GC2XUgzJ.cjs"),o=require("./shared/DirectoryError-B8wqer68.cjs"),e=require("./shared/JSONError-CWuiGmNc.cjs"),t=require("./shared/NotEmptyError-BWGfec5K.cjs"),i=require("./shared/NotFoundError-Diij7oqe.cjs"),E=require("./shared/PermissionError-Ck1Es7al.cjs"),s=require("./shared/WalkError-gKgp0TWD.cjs");exports.AlreadyExistsError=r;exports.DirectoryError=o;exports.JSONError=e;exports.NotEmptyError=t;exports.NotFoundError=i;exports.PermissionError=E;exports.WalkError=s;
package/dist/error.mjs CHANGED
@@ -1 +1 @@
1
- import{n as t}from"./shared/AlreadyExistsError-yT45kpVd.mjs";import{n as e}from"./shared/DirectoryError-DYXOepnO.mjs";import{r as m}from"./shared/JSONError-BwfyCaRr.mjs";import{n as p}from"./shared/NotEmptyError-DCoszDiD.mjs";import{n as f}from"./shared/NotFoundError-CQCvj7gX.mjs";import{n as i}from"./shared/PermissionError-BYPqHEY9.mjs";import{i as N}from"./shared/WalkError-CWKlhCA6.mjs";export{t as AlreadyExistsError,e as DirectoryError,m as JSONError,p as NotEmptyError,f as NotFoundError,i as PermissionError,N as WalkError};
1
+ import{default as t}from"./shared/AlreadyExistsError-CEu6_Tjb.mjs";import{default as a}from"./shared/DirectoryError-ddlbUV8C.mjs";import{default as s}from"./shared/JSONError-CVkb3xZ3.mjs";import{default as l}from"./shared/NotEmptyError-DMh1o7UL.mjs";import{default as E}from"./shared/NotFoundError-T95YsWYl.mjs";import{default as u}from"./shared/PermissionError-B8oi38Bx.mjs";import{default as i}from"./shared/WalkError-BsngoIKJ.mjs";export{t as AlreadyExistsError,a as DirectoryError,s as JSONError,l as NotEmptyError,E as NotFoundError,u as PermissionError,i as WalkError};
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./shared/F_OK-B8R_JA-Q.cjs"),n=require("./shared/ensureDir-tKW3dSA0.cjs"),i=require("./shared/ensureDirSync-DzJ1sUTo.cjs"),c=require("./shared/ensureFile-C4MogFm1.cjs"),s=require("./shared/ensureFileSync-BXhhrF2q.cjs"),t=require("./shared/ensureLink-DY7IQxZ4.cjs"),o=require("./shared/ensureLinkSync-DJpt1OVV.cjs"),u=require("./shared/ensureSymlink-D6VKdTBJ.cjs"),y=require("./shared/ensureSymlinkSync-DWIrsihx.cjs"),r=require("./shared/LF-D4BqIfQm.cjs"),l=require("./shared/collect-DwzKTfA1.cjs"),S=require("./shared/collectSync-D-h8vph4.cjs"),q=require("./shared/findUp-BVECzzpO.cjs"),a=require("./shared/findUpSync-vnrRIw6w.cjs"),m=require("./shared/walk-kHxIkAkJ.cjs"),F=require("./shared/walkSync-BLhXIHWn.cjs"),d=require("./shared/isAccessible-DxFHaxVe.cjs"),w=require("./shared/isAccessibleSync-DtOcefUR.cjs"),k=require("./shared/readFile-DBC_s-48.cjs"),O=require("./shared/readFileSync-CBzoyWtz.cjs"),_=require("./shared/readJson-BpngPb-8.cjs"),L=require("./shared/readJsonSync-DTRTDPzu.cjs"),D=require("./shared/readYaml-jKVEYXs2.cjs"),f=require("./shared/readYamlSync-C73N6_GL.cjs"),p=require("./shared/emptyDir-Ddqlcb6Q.cjs"),J=require("./shared/emptyDirSync-DqizscgL.cjs"),K=require("./shared/remove-D67tECRM.cjs"),Y=require("./shared/removeSync-womNIl-8.cjs"),R=require("./shared/writeFile-COembSIp.cjs"),b=require("./shared/writeFileSync-C3D5fvZf.cjs"),U=require("./shared/writeJson-rHdXUJ9n.cjs"),v=require("./shared/writeJsonSync-C7xU8DX6.cjs"),P=require("./shared/writeYaml-BnD26RjE.cjs"),A=require("./shared/writeYamlSync-BS0MBjJo.cjs");exports.FIND_UP_STOP=e.FIND_UP_STOP;exports.F_OK=e.F_OK;exports.R_OK=e.R_OK;exports.W_OK=e.W_OK;exports.X_OK=e.X_OK;exports.ensureDir=n.f;exports.ensureDirSync=i.a;exports.ensureFile=c.f;exports.ensureFileSync=s.y;exports.ensureLink=t.y;exports.ensureLinkSync=o.h;exports.ensureSymlink=u.R;exports.ensureSymlinkSync=y.R;exports.CRLF=r.CRLF;exports.EOL=r.EOL;exports.LF=r.LF;exports.detect=r.detect;exports.format=r.format;exports.collect=l.a;exports.collectSync=S.c;exports.findUp=q.F;exports.findUpSync=a.F;exports.walk=m.d;exports.walkSync=F.h;exports.isAccessible=d.m;exports.isAccessibleSync=w.m;exports.readFile=k.R;exports.readFileSync=O.g;exports.readJson=_.c;exports.readJsonSync=L.J;exports.readYaml=D.d;exports.readYamlSync=f.d;exports.emptyDir=p.y;exports.emptyDirSync=J.u;exports.remove=K.y;exports.removeSync=Y.m;exports.writeFile=R.k;exports.writeFileSync=b.k;exports.writeJson=U.u;exports.writeJsonSync=v.N;exports.writeYaml=P.m;exports.writeYamlSync=A.m;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./shared/F_OK-B8R_JA-Q.cjs"),n=require("./shared/ensureDir-DVHj-_yp.cjs"),i=require("./shared/ensureDirSync-CvjJ3bGq.cjs"),c=require("./shared/ensureFile-CcJ5XIZm.cjs"),s=require("./shared/ensureFileSync-v-PhMLTr.cjs"),t=require("./shared/ensureLink-C-v4AxzH.cjs"),o=require("./shared/ensureLinkSync-C4S-zdVb.cjs"),u=require("./shared/ensureSymlink-C5cy9585.cjs"),l=require("./shared/ensureSymlinkSync-YDRbg9hX.cjs"),r=require("./shared/LF-D4BqIfQm.cjs"),y=require("./shared/collect-4au76gDu.cjs"),S=require("./shared/collectSync-CbKwt8rz.cjs"),q=require("./shared/findUp-DTU501Mn.cjs"),a=require("./shared/findUpSync-C1w6Z_6P.cjs"),m=require("./shared/walk-BJgnJy5d.cjs"),F=require("./shared/walkSync-DYawhxUA.cjs"),d=require("./shared/isAccessible-C58XjRjT.cjs"),w=require("./shared/isAccessibleSync-9njSth1z.cjs"),O=require("./shared/readFile-DIQKBQ0d.cjs"),_=require("./shared/readFileSync-CTVwduD2.cjs"),k=require("./shared/readJson-CIJOiEDB.cjs"),L=require("./shared/readJsonSync-CIpsOFdq.cjs"),D=require("./shared/readYaml-D4PbAXZD.cjs"),p=require("./shared/readYamlSync-Bnyr8iGt.cjs"),K=require("./shared/emptyDir-DKxQHQQb.cjs"),J=require("./shared/emptyDirSync-CLM_zyIb.cjs"),Y=require("./shared/remove-B-9MI2l5.cjs"),f=require("./shared/removeSync-CJPR6M7V.cjs"),b=require("./shared/writeFile-z1NYn8jk.cjs"),U=require("./shared/writeFileSync-rAuaAA6w.cjs"),v=require("./shared/writeJson-BW5_Vr5i.cjs"),P=require("./shared/writeJsonSync-BkoMtNUG.cjs"),A=require("./shared/writeYaml-BO_bcnqK.cjs"),R=require("./shared/writeYamlSync-DozAaY0A.cjs");exports.FIND_UP_STOP=e.FIND_UP_STOP;exports.F_OK=e.F_OK;exports.R_OK=e.R_OK;exports.W_OK=e.W_OK;exports.X_OK=e.X_OK;exports.ensureDir=n;exports.ensureDirSync=i;exports.ensureFile=c;exports.ensureFileSync=s;exports.ensureLink=t;exports.ensureLinkSync=o;exports.ensureSymlink=u;exports.ensureSymlinkSync=l;exports.CRLF=r.CRLF;exports.EOL=r.EOL;exports.LF=r.LF;exports.detect=r.detect;exports.format=r.format;exports.collect=y;exports.collectSync=S;exports.findUp=q;exports.findUpSync=a;exports.walk=m;exports.walkSync=F;exports.isAccessible=d;exports.isAccessibleSync=w;exports.readFile=O;exports.readFileSync=_;exports.readJson=k;exports.readJsonSync=L;exports.readYaml=D;exports.readYamlSync=p;exports.emptyDir=K;exports.emptyDirSync=J;exports.remove=Y;exports.removeSync=f;exports.writeFile=b;exports.writeFileSync=U;exports.writeJson=v;exports.writeJsonSync=P;exports.writeYaml=A;exports.writeYamlSync=R;
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- import{a as o,F as s,R as a,W as m,X as t}from"./shared/F_OK-BzMbdSs5.mjs";import{f as p}from"./shared/ensureDir-CpMWmVZ0.mjs";import{a as x}from"./shared/ensureDirSync-hyBJv3ax.mjs";import{f as i}from"./shared/ensureFile-b-ST2MTk.mjs";import{y as l}from"./shared/ensureFileSync-ClzIyiYf.mjs";import{y as d}from"./shared/ensureLink-CHQqG8z2.mjs";import{h as u}from"./shared/ensureLinkSync-Cq1cPBbo.mjs";import{R as w}from"./shared/ensureSymlink-CMtb3oPM.mjs";import{R as O}from"./shared/ensureSymlinkSync-DRDE5so4.mjs";import{C as _,E as D,L as J,d as K,f as Y}from"./shared/LF-DwWQ8GdI.mjs";import{a as b}from"./shared/collect-B2KdWG6-.mjs";import{c as v}from"./shared/collectSync-BMKZmoZR.mjs";import{F as C}from"./shared/findUp-COYH0Ul9.mjs";import{F as N}from"./shared/findUpSync-nA9H0jZj.mjs";import{d as W}from"./shared/walk-DO_o7eRl.mjs";import{h as g}from"./shared/walkSync-C5uWmu9Q.mjs";import{m as T}from"./shared/isAccessible-BbChaABn.mjs";import{m as q}from"./shared/isAccessibleSync-C3YjvkTe.mjs";import{R as B}from"./shared/readFile-BvgGZivd.mjs";import{g as H}from"./shared/readFileSync-C2bxnV-R.mjs";import{c as Q}from"./shared/readJson-hlujfMhv.mjs";import{J as Z}from"./shared/readJsonSync-C1vainhA.mjs";import{d as rr}from"./shared/readYaml-Cm-6prFv.mjs";import{d as or}from"./shared/readYamlSync-DgaclC7K.mjs";import{y as ar}from"./shared/emptyDir-BkedPAhT.mjs";import{u as tr}from"./shared/emptyDirSync-Cp_8wgUR.mjs";import{y as pr}from"./shared/remove-DbvVKBUa.mjs";import{m as xr}from"./shared/removeSync-Ngu7GWsH.mjs";import{k as ir}from"./shared/writeFile-BkHnZTWA.mjs";import{k as lr}from"./shared/writeFileSync-6h8CQ9EO.mjs";import{u as dr}from"./shared/writeJson-C8i3IALv.mjs";import{N as ur}from"./shared/writeJsonSync-BVBRbGPP.mjs";import{m as wr}from"./shared/writeYaml-BG-a4bX4.mjs";import{m as Or}from"./shared/writeYamlSync-BEUPvAyj.mjs";export{_ as CRLF,D as EOL,o as FIND_UP_STOP,s as F_OK,J as LF,a as R_OK,m as W_OK,t as X_OK,b as collect,v as collectSync,K as detect,ar as emptyDir,tr as emptyDirSync,p as ensureDir,x as ensureDirSync,i as ensureFile,l as ensureFileSync,d as ensureLink,u as ensureLinkSync,w as ensureSymlink,O as ensureSymlinkSync,C as findUp,N as findUpSync,Y as format,T as isAccessible,q as isAccessibleSync,B as readFile,H as readFileSync,Q as readJson,Z as readJsonSync,rr as readYaml,or as readYamlSync,pr as remove,xr as removeSync,W as walk,g as walkSync,ir as writeFile,lr as writeFileSync,dr as writeJson,ur as writeJsonSync,wr as writeYaml,Or as writeYamlSync};
1
+ import{FIND_UP_STOP as t,F_OK as a,R_OK as o,W_OK as f,X_OK as l}from"./shared/F_OK-CiLqIeYK.mjs";import{default as m}from"./shared/ensureDir-BtvxsJiS.mjs";import{default as u}from"./shared/ensureDirSync-bGe0QB7d.mjs";import{default as n}from"./shared/ensureFile-C46R6-4l.mjs";import{default as i}from"./shared/ensureFileSync-CwYTIP4G.mjs";import{default as y}from"./shared/ensureLink-63XWiA3I.mjs";import{default as F}from"./shared/ensureLinkSync-D2LVObKd.mjs";import{default as k}from"./shared/ensureSymlink-D36fS4KE.mjs";import{default as _}from"./shared/ensureSymlinkSync-PvWVgeXc.mjs";import{CRLF as L,EOL as J,LF as K,detect as Y,format as U}from"./shared/LF-Dbx0i6a7.mjs";import{default as v}from"./shared/collect-CRzGiRGg.mjs";import{default as P}from"./shared/collectSync-BE8DAOke.mjs";import{default as C}from"./shared/findUp-ik4TWAC2.mjs";import{default as I}from"./shared/findUpSync-DO0R67zX.mjs";import{default as T}from"./shared/walk-DH-95i_B.mjs";import{default as X}from"./shared/walkSync-D4zvt_kM.mjs";import{default as h}from"./shared/isAccessible-vmOjbVOF.mjs";import{default as q}from"./shared/isAccessibleSync-BxoK0UkJ.mjs";import{default as B}from"./shared/readFile-D6U3MP6g.mjs";import{default as H}from"./shared/readFileSync-Bao-E5R8.mjs";import{default as Q}from"./shared/readJson-CspqAlYM.mjs";import{default as Z}from"./shared/readJsonSync-D9HVAN14.mjs";import{default as ee}from"./shared/readYaml-BYMJDJU0.mjs";import{default as te}from"./shared/readYamlSync-CdYj75zz.mjs";import{default as oe}from"./shared/emptyDir-D2m8OP8u.mjs";import{default as le}from"./shared/emptyDirSync-CZNcW4wc.mjs";import{default as me}from"./shared/remove-DzfvbZOm.mjs";import{default as ue}from"./shared/removeSync-D165rXSn.mjs";import{default as ne}from"./shared/writeFile-DwkUvAF-.mjs";import{default as ie}from"./shared/writeFileSync-DYhY33yC.mjs";import{default as ye}from"./shared/writeJson-DI_vpDVy.mjs";import{default as Fe}from"./shared/writeJsonSync-DLo6ZPEV.mjs";import{default as ke}from"./shared/writeYaml-B4jtxffY.mjs";import{default as _e}from"./shared/writeYamlSync-BG69YBbH.mjs";export{L as CRLF,J as EOL,t as FIND_UP_STOP,a as F_OK,K as LF,o as R_OK,f as W_OK,l as X_OK,v as collect,P as collectSync,Y as detect,oe as emptyDir,le as emptyDirSync,m as ensureDir,u as ensureDirSync,n as ensureFile,i as ensureFileSync,y as ensureLink,F as ensureLinkSync,k as ensureSymlink,_ as ensureSymlinkSync,C as findUp,I as findUpSync,U as format,h as isAccessible,q as isAccessibleSync,B as readFile,H as readFileSync,Q as readJson,Z as readJsonSync,ee as readYaml,te as readYamlSync,me as remove,ue as removeSync,T as walk,X as walkSync,ne as writeFile,ie as writeFileSync,ye as writeJson,Fe as writeJsonSync,ke as writeYaml,_e as writeYamlSync};
@@ -1 +1 @@
1
- var o=Object.defineProperty;var t=(e,r)=>o(e,"name",{value:r,configurable:!0});var n=Object.defineProperty,a=t((e,r)=>n(e,"name",{value:r,configurable:!0}),"t");class E extends Error{static{t(this,"n")}static{a(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 n};
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
+ "use strict";var o=Object.defineProperty;var t=(e,r)=>o(e,"name",{value:r,configurable:!0});var s=Object.defineProperty,n=t((e,r)=>s(e,"name",{value:r,configurable:!0}),"t");class a 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")}}module.exports=a;
@@ -0,0 +1 @@
1
+ "use strict";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 c 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")}}module.exports=c;
@@ -1 +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 n};
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,o=2,K=1,p=Symbol("findUpStop");export{p as FIND_UP_STOP,_ as F_OK,O as R_OK,o as W_OK,K as X_OK};
@@ -1,4 +1,4 @@
1
- var a=Object.defineProperty;var t=(r,e)=>a(r,"name",{value:e,configurable:!0});var i=Object.defineProperty,c=t((r,e)=>i(r,"name",{value:e,configurable:!0}),"i");class s extends Error{static{t(this,"r")}static{c(this,"JSONError")}fileName;codeFrame;name="JSONError";#e;constructor(e){super(),this.#e=e,Error.captureStackTrace(this,s)}get message(){return`${this.#e}${this.fileName?` in ${this.fileName}`:""}${this.codeFrame?`
1
+ var s=Object.defineProperty;var t=(r,e)=>s(r,"name",{value:e,configurable:!0});var i=Object.defineProperty,c=t((r,e)=>i(r,"name",{value:e,configurable:!0}),"i");class a extends Error{static{t(this,"r")}static{c(this,"JSONError")}fileName;codeFrame;name="JSONError";#e;constructor(e){super(),this.#e=e,Error.captureStackTrace(this,a)}get message(){return`${this.#e}${this.fileName?` in ${this.fileName}`:""}${this.codeFrame?`
2
2
 
3
3
  ${this.codeFrame}
4
- `:""}`}set message(e){this.#e=e}}export{s as r};
4
+ `:""}`}set message(e){this.#e=e}}export{a as default};
@@ -0,0 +1,4 @@
1
+ "use strict";var a=Object.defineProperty;var t=(r,e)=>a(r,"name",{value:e,configurable:!0});var i=Object.defineProperty,c=t((r,e)=>i(r,"name",{value:e,configurable:!0}),"i");class s extends Error{static{t(this,"r")}static{c(this,"JSONError")}fileName;codeFrame;name="JSONError";#e;constructor(e){super(),this.#e=e,Error.captureStackTrace(this,s)}get message(){return`${this.#e}${this.fileName?` in ${this.fileName}`:""}${this.codeFrame?`
2
+
3
+ ${this.codeFrame}
4
+ `:""}`}set message(e){this.#e=e}}module.exports=s;
@@ -0,0 +1,3 @@
1
+ var i=Object.defineProperty;var l=(e,t)=>i(e,"name",{value:t,configurable:!0});import{platform as g}from"node:process";var p=Object.defineProperty,o=l((e,t)=>p(e,"name",{value:t,configurable:!0}),"r");const c=/\r?\n/g,a=`
2
+ `,r=`\r
3
+ `,s=g==="win32"?r:a,d=o(e=>{const t=e.match(c);if(!t||t.length===0)return null;const n=t.filter(m=>m===r).length,f=t.length-n;return n>f?r:a},"detect"),v=o((e,t)=>e.replaceAll(c,t),"format");export{r as CRLF,s as EOL,a as LF,d as detect,v as format};
@@ -0,0 +1 @@
1
+ "use strict";var o=Object.defineProperty;var e=(t,r)=>o(t,"name",{value:r,configurable:!0});var n=Object.defineProperty,E=e((t,r)=>n(t,"name",{value:r,configurable:!0}),"t");class a extends Error{static{e(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")}}module.exports=a;
@@ -1 +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 n};
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
+ "use strict";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 s 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")}}module.exports=s;
@@ -1 +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 c 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{c as n};
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 s 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{s as default};
@@ -1 +1 @@
1
- var t=Object.defineProperty;var o=(e,r)=>t(e,"name",{value:r,configurable:!0});var n=Object.defineProperty,s=o((e,r)=>n(e,"name",{value:r,configurable:!0}),"o");class a extends Error{static{o(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{a as n};
1
+ var t=Object.defineProperty;var o=(e,r)=>t(e,"name",{value:r,configurable:!0});var n=Object.defineProperty,s=o((e,r)=>n(e,"name",{value:r,configurable:!0}),"o");class i extends Error{static{o(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
+ "use strict";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")}}module.exports=i;
@@ -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: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
+ "use strict";var a=Object.defineProperty;var t=(e,r)=>a(e,"name",{value:r,configurable:!0});var s=Object.defineProperty,n=t((e,r)=>s(e,"name",{value:r,configurable:!0}),"t");class i extends Error{static{t(this,"i")}static{n(this,"WalkError")}root;constructor(r,o){super(`${r instanceof Error?r.message:r} for path "${o}"`),this.cause=r,this.root=o}get name(){return"WalkError"}set name(r){throw new Error("Cannot overwrite name of WalkError")}}module.exports=i;
@@ -0,0 +1 @@
1
+ var t=Object.defineProperty;var a=(e,r)=>t(e,"name",{value:r,configurable:!0});var f=Object.defineProperty,i=a((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
+ "use strict";var a=Object.defineProperty;var t=(e,r)=>a(e,"name",{value:r,configurable:!0});var i=Object.defineProperty,f=t((e,r)=>i(e,"name",{value:r,configurable:!0}),"e");const n=f(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");module.exports=n;
@@ -1 +1 @@
1
- var n=Object.defineProperty;var t=(e,r)=>n(e,"name",{value:r,configurable:!0});var a=Object.defineProperty,o=t((e,r)=>a(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};
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
+ "use strict";var n=Object.defineProperty;var t=(e,r)=>n(e,"name",{value:r,configurable:!0});var a=Object.defineProperty,o=t((e,r)=>a(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");module.exports=s;
@@ -0,0 +1 @@
1
+ "use strict";var a=Object.defineProperty;var n=(s,e)=>a(s,"name",{value:e,configurable:!0});const o=require("./walk-BJgnJy5d.cjs");var c=Object.defineProperty,i=n((s,e)=>c(s,"name",{value:e,configurable:!0}),"e");const u=i(async(s,e={})=>{Array.isArray(e.extensions)||(e.extensions=["js","mjs","cjs","ts"]);const r=[];for await(const t of o(s,e))r.push(t.path);return r},"collect");module.exports=u;
@@ -0,0 +1 @@
1
+ var o=Object.defineProperty;var a=(r,e)=>o(r,"name",{value:e,configurable:!0});import t from"./walk-DH-95i_B.mjs";var c=Object.defineProperty,i=a((r,e)=>c(r,"name",{value:e,configurable:!0}),"e");const p=i(async(r,e={})=>{Array.isArray(e.extensions)||(e.extensions=["js","mjs","cjs","ts"]);const s=[];for await(const n of t(r,e))s.push(n.path);return s},"collect");export{p 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-D4zvt_kM.mjs";var c=Object.defineProperty,f=s((r,e)=>c(r,"name",{value:e,configurable:!0}),"n");const p=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{p as default};
@@ -0,0 +1 @@
1
+ "use strict";var o=Object.defineProperty;var n=(r,e)=>o(r,"name",{value:e,configurable:!0});const t=require("./walkSync-DYawhxUA.cjs");var a=Object.defineProperty,i=n((r,e)=>a(r,"name",{value:e,configurable:!0}),"n");const u=i((r,e={})=>{Array.isArray(e.extensions)||(e.extensions=["js","mjs","cjs","ts"]);const s=[];for(const c of t(r,e))s.push(c.path);return s},"collectSync");module.exports=u;
@@ -0,0 +1 @@
1
+ var e=Object.defineProperty;var i=(r,o)=>e(r,"name",{value:o,configurable:!0});import{existsSync as a}from"node:fs";import{mkdir as m,readdir as f,rm as c}from"node:fs/promises";import{join as n}from"@visulima/path";import{toPath as s}from"@visulima/path/utils";import p from"./assertValidFileOrDirectoryPath-DgPIPmZT.mjs";var u=Object.defineProperty,d=i((r,o)=>u(r,"name",{value:o,configurable:!0}),"i");const x=d(async(r,o)=>{if(p(r),!a(r)){await m(r,{recursive:!0});return}for await(const t of await f(r))await c(n(s(r),t),{...o,force:!0,recursive:!0})},"emptyDir");export{x as default};
@@ -0,0 +1 @@
1
+ "use strict";var a=Object.defineProperty;var t=(e,r)=>a(e,"name",{value:r,configurable:!0});const o=require("node:fs"),i=require("node:fs/promises"),c=require("@visulima/path"),n=require("@visulima/path/utils"),u=require("./assertValidFileOrDirectoryPath-HOUs73Jk.cjs");var f=Object.defineProperty,d=t((e,r)=>f(e,"name",{value:r,configurable:!0}),"i");const y=d(async(e,r)=>{if(u(e),!o.existsSync(e)){await i.mkdir(e,{recursive:!0});return}for await(const s of await i.readdir(e))await i.rm(c.join(n.toPath(e),s),{...r,force:!0,recursive:!0})},"emptyDir");module.exports=y;
@@ -0,0 +1 @@
1
+ "use strict";var o=Object.defineProperty;var i=(e,r)=>o(e,"name",{value:r,configurable:!0});const t=require("node:fs"),s=require("@visulima/path"),n=require("@visulima/path/utils"),u=require("./assertValidFileOrDirectoryPath-HOUs73Jk.cjs");var a=Object.defineProperty,f=i((e,r)=>a(e,"name",{value:r,configurable:!0}),"o");const y=f((e,r)=>{if(u(e),!t.existsSync(e)){t.mkdirSync(e,{recursive:!0});return}for(const c of t.readdirSync(e))t.rmSync(s.join(n.toPath(e),c),{...r,force:!0,recursive:!0})},"emptyDir");module.exports=y;
@@ -0,0 +1 @@
1
+ var t=Object.defineProperty;var o=(r,e)=>t(r,"name",{value:e,configurable:!0});import{existsSync as m,mkdirSync as c,readdirSync as f,rmSync as n}from"node:fs";import{join as a}from"@visulima/path";import{toPath as s}from"@visulima/path/utils";import p from"./assertValidFileOrDirectoryPath-DgPIPmZT.mjs";var u=Object.defineProperty,y=o((r,e)=>u(r,"name",{value:e,configurable:!0}),"o");const j=y((r,e)=>{if(p(r),!m(r)){c(r,{recursive:!0});return}for(const i of f(r))n(a(s(r),i),{...e,force:!0,recursive:!0})},"emptyDir");export{j as default};
@@ -0,0 +1 @@
1
+ var s=Object.defineProperty;var i=(e,r)=>s(e,"name",{value:r,configurable:!0});import{lstat as o,mkdir as c}from"node:fs/promises";import n from"./assertValidFileOrDirectoryPath-DgPIPmZT.mjs";import{g as a}from"./get-file-info-type-CaWGXRjY.mjs";var f=Object.defineProperty,p=i((e,r)=>f(e,"name",{value:r,configurable:!0}),"i");const u=p(async e=>{n(e);try{const r=await o(e);if(!r.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${a(r)}'`);return}catch(r){if(r.code!=="ENOENT")throw r}try{await c(e,{recursive:!0})}catch(r){if(r.code!=="EEXIST")throw r;const t=await o(e);if(!t.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${a(t)}'`)}},"ensureDir");export{u as default};
@@ -0,0 +1 @@
1
+ "use strict";var a=Object.defineProperty;var o=(r,e)=>a(r,"name",{value:e,configurable:!0});const t=require("node:fs/promises"),c=require("./assertValidFileOrDirectoryPath-HOUs73Jk.cjs"),s=require("./get-file-info-type-BXcpoWEM.cjs");var n=Object.defineProperty,u=o((r,e)=>n(r,"name",{value:e,configurable:!0}),"i");const f=u(async r=>{c(r);try{const e=await t.lstat(r);if(!e.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${s.getFileInfoType(e)}'`);return}catch(e){if(e.code!=="ENOENT")throw e}try{await t.mkdir(r,{recursive:!0})}catch(e){if(e.code!=="EEXIST")throw e;const i=await t.lstat(r);if(!i.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${s.getFileInfoType(i)}'`)}},"ensureDir");module.exports=f;
@@ -0,0 +1 @@
1
+ "use strict";var s=Object.defineProperty;var o=(r,e)=>s(r,"name",{value:e,configurable:!0});const t=require("node:fs"),n=require("./assertValidFileOrDirectoryPath-HOUs73Jk.cjs"),c=require("./get-file-info-type-BXcpoWEM.cjs");var a=Object.defineProperty,y=o((r,e)=>a(r,"name",{value:e,configurable:!0}),"o");const u=y(r=>{n(r);try{const e=t.lstatSync(r);if(!e.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${c.getFileInfoType(e)}'`);return}catch(e){if(e.code!=="ENOENT")throw e}try{t.mkdirSync(r,{recursive:!0})}catch(e){if(e.code!=="EEXIST")throw e;const i=t.lstatSync(r);if(!i.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${c.getFileInfoType(i)}'`)}},"ensureDirSync");module.exports=u;
@@ -0,0 +1 @@
1
+ var s=Object.defineProperty;var o=(e,r)=>s(e,"name",{value:r,configurable:!0});import{lstatSync as i,mkdirSync as n}from"node:fs";import a from"./assertValidFileOrDirectoryPath-DgPIPmZT.mjs";import{g as c}from"./get-file-info-type-CaWGXRjY.mjs";var f=Object.defineProperty,p=o((e,r)=>f(e,"name",{value:r,configurable:!0}),"o");const u=p(e=>{a(e);try{const r=i(e);if(!r.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${c(r)}'`);return}catch(r){if(r.code!=="ENOENT")throw r}try{n(e,{recursive:!0})}catch(r){if(r.code!=="EEXIST")throw r;const t=i(e);if(!t.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${c(t)}'`)}},"ensureDirSync");export{u as default};
@@ -0,0 +1 @@
1
+ var o=Object.defineProperty;var t=(e,r)=>o(e,"name",{value:r,configurable:!0});import{lstat as i,writeFile as a}from"node:fs/promises";import{dirname as f}from"@visulima/path";import{toPath as m}from"@visulima/path/utils";import n from"./assertValidFileOrDirectoryPath-DgPIPmZT.mjs";import{g as s}from"./get-file-info-type-CaWGXRjY.mjs";import p from"./ensureDir-BtvxsJiS.mjs";var c=Object.defineProperty,l=t((e,r)=>c(e,"name",{value:r,configurable:!0}),"e");const F=l(async e=>{n(e);try{const r=await i(e);if(!r.isFile())throw new Error(`Ensure path exists, expected 'file', got '${s(r)}'`)}catch(r){if(r.code==="ENOENT"){await p(f(m(e))),await a(e,new Uint8Array);return}throw r}},"ensureFile");export{F as default};
@@ -0,0 +1 @@
1
+ "use strict";var s=Object.defineProperty;var t=(r,e)=>s(r,"name",{value:e,configurable:!0});const i=require("node:fs/promises"),a=require("@visulima/path"),n=require("@visulima/path/utils"),o=require("./assertValidFileOrDirectoryPath-HOUs73Jk.cjs"),c=require("./get-file-info-type-BXcpoWEM.cjs"),u=require("./ensureDir-DVHj-_yp.cjs");var l=Object.defineProperty,f=t((r,e)=>l(r,"name",{value:e,configurable:!0}),"e");const p=f(async r=>{o(r);try{const e=await i.lstat(r);if(!e.isFile())throw new Error(`Ensure path exists, expected 'file', got '${c.getFileInfoType(e)}'`)}catch(e){if(e.code==="ENOENT"){await u(a.dirname(n.toPath(r))),await i.writeFile(r,new Uint8Array);return}throw e}},"ensureFile");module.exports=p;
@@ -0,0 +1 @@
1
+ var t=Object.defineProperty;var o=(e,r)=>t(e,"name",{value:r,configurable:!0});import{lstatSync as i,writeFileSync as n}from"node:fs";import{dirname as a}from"@visulima/path";import{toPath as m}from"@visulima/path/utils";import f from"./assertValidFileOrDirectoryPath-DgPIPmZT.mjs";import{g as c}from"./get-file-info-type-CaWGXRjY.mjs";import p from"./ensureDirSync-bGe0QB7d.mjs";var s=Object.defineProperty,l=o((e,r)=>s(e,"name",{value:r,configurable:!0}),"e");const F=l(e=>{f(e);try{const r=i(e);if(!r.isFile())throw new Error(`Ensure path exists, expected 'file', got '${c(r)}'`)}catch(r){if(r.code==="ENOENT"){p(a(m(e))),n(e,new Uint8Array);return}throw r}},"ensureFileSync");export{F as default};
@@ -0,0 +1 @@
1
+ "use strict";var n=Object.defineProperty;var t=(r,e)=>n(r,"name",{value:e,configurable:!0});const i=require("node:fs"),o=require("@visulima/path"),s=require("@visulima/path/utils"),c=require("./assertValidFileOrDirectoryPath-HOUs73Jk.cjs"),a=require("./get-file-info-type-BXcpoWEM.cjs"),u=require("./ensureDirSync-CvjJ3bGq.cjs");var l=Object.defineProperty,y=t((r,e)=>l(r,"name",{value:e,configurable:!0}),"e");const f=y(r=>{c(r);try{const e=i.lstatSync(r);if(!e.isFile())throw new Error(`Ensure path exists, expected 'file', got '${a.getFileInfoType(e)}'`)}catch(e){if(e.code==="ENOENT"){u(o.dirname(s.toPath(r))),i.writeFileSync(r,new Uint8Array);return}throw e}},"ensureFileSync");module.exports=f;
@@ -0,0 +1 @@
1
+ var c=Object.defineProperty;var m=(e,a)=>c(e,"name",{value:a,configurable:!0});import{lstat as i,link as l}from"node:fs/promises";import{toNamespacedPath as s,dirname as p}from"@visulima/path";import{toPath as f}from"@visulima/path/utils";import n from"./assertValidFileOrDirectoryPath-DgPIPmZT.mjs";import{l as h}from"./is-stats-identical-CS5Y91zW.mjs";import u from"./ensureDir-BtvxsJiS.mjs";var w=Object.defineProperty,y=m((e,a)=>w(e,"name",{value:a,configurable:!0}),"m");const j=y(async(e,a)=>{n(e),n(a),e=s(f(e)),a=s(f(a));let t;try{t=await i(a)}catch{}let o;try{o=await i(e)}catch(r){throw r.message=r.message.replace("lstat","ensureLink"),r}t&&h(o,t)||(await u(p(a)),await l(e,a))},"ensureLink");export{j as default};
@@ -0,0 +1 @@
1
+ "use strict";var u=Object.defineProperty;var n=(t,e)=>u(t,"name",{value:e,configurable:!0});const r=require("node:fs/promises"),i=require("@visulima/path"),o=require("@visulima/path/utils"),l=require("./assertValidFileOrDirectoryPath-HOUs73Jk.cjs"),h=require("./is-stats-identical-CPCumzsC.cjs"),m=require("./ensureDir-DVHj-_yp.cjs");var p=Object.defineProperty,d=n((t,e)=>p(t,"name",{value:e,configurable:!0}),"m");const q=d(async(t,e)=>{l(t),l(e),t=i.toNamespacedPath(o.toPath(t)),e=i.toNamespacedPath(o.toPath(e));let a;try{a=await r.lstat(e)}catch{}let c;try{c=await r.lstat(t)}catch(s){throw s.message=s.message.replace("lstat","ensureLink"),s}a&&h.l(c,a)||(await m(i.dirname(e)),await r.link(t,e))},"ensureLink");module.exports=q;
@@ -0,0 +1 @@
1
+ "use strict";var u=Object.defineProperty;var i=(t,e)=>u(t,"name",{value:e,configurable:!0});const r=require("node:fs"),n=require("@visulima/path"),o=require("@visulima/path/utils"),l=require("./assertValidFileOrDirectoryPath-HOUs73Jk.cjs"),h=require("./is-stats-identical-CPCumzsC.cjs"),y=require("./ensureDirSync-CvjJ3bGq.cjs");var d=Object.defineProperty,m=i((t,e)=>d(t,"name",{value:e,configurable:!0}),"o");const p=m((t,e)=>{l(t),l(e),t=n.toNamespacedPath(o.toPath(t)),e=n.toNamespacedPath(o.toPath(e));let a;try{a=r.lstatSync(e)}catch{}let c;try{c=r.lstatSync(t)}catch(s){throw s.message=s.message.replace("lstat","ensureLink"),s}a&&h.l(c,a)||(y(n.dirname(e)),r.linkSync(t,e))},"ensureLinkSync");module.exports=p;
@@ -0,0 +1 @@
1
+ var l=Object.defineProperty;var m=(t,e)=>l(t,"name",{value:e,configurable:!0});import{lstatSync as n,linkSync as p}from"node:fs";import{toNamespacedPath as c,dirname as f}from"@visulima/path";import{toPath as i}from"@visulima/path/utils";import s from"./assertValidFileOrDirectoryPath-DgPIPmZT.mjs";import{l as h}from"./is-stats-identical-CS5Y91zW.mjs";import y from"./ensureDirSync-bGe0QB7d.mjs";var u=Object.defineProperty,d=m((t,e)=>u(t,"name",{value:e,configurable:!0}),"o");const j=d((t,e)=>{s(t),s(e),t=c(i(t)),e=c(i(e));let a;try{a=n(e)}catch{}let r;try{r=n(t)}catch(o){throw o.message=o.message.replace("lstat","ensureLink"),o}a&&h(r,a)||(y(f(e)),p(t,e))},"ensureLinkSync");export{j as default};
@@ -0,0 +1 @@
1
+ "use strict";var g=Object.defineProperty;var c=(a,e)=>g(a,"name",{value:e,configurable:!0});const t=require("node:fs/promises"),r=require("@visulima/path"),l=require("@visulima/path/utils"),y=require("./assertValidFileOrDirectoryPath-HOUs73Jk.cjs"),u=require("./get-file-info-type-BXcpoWEM.cjs"),d=require("./is-stats-identical-CPCumzsC.cjs"),q=require("./resolve-symlink-target-HnbdXA1S.cjs"),S=require("./ensureDir-DVHj-_yp.cjs"),w=require("./AlreadyExistsError-GC2XUgzJ.cjs");var k=Object.defineProperty,v=c((a,e)=>k(a,"name",{value:e,configurable:!0}),"f");const T=process.platform==="win32"||/^(?:msys|cygwin)$/.test(process.env.OSTYPE),E=v(async(a,e,h)=>{y(a),y(e);const i=q.o(a,e);e=r.toNamespacedPath(l.toPath(e));try{if((await t.lstat(e)).isSymbolicLink()&&d.l(await t.stat(i),await t.stat(e))){const[s,n]=await Promise.all([t.stat(i),t.stat(e)]);if(d.l(s,n))return}}catch{}const m=await t.lstat(i),p=u.getFileInfoType(m);await S(r.dirname(e));const f=h??(T?"junction":p==="dir"?"dir":"file");try{await t.symlink(r.toNamespacedPath(l.toPath(i)),e,f)}catch(s){if(s.code!=="EEXIST")throw s;const n=await t.lstat(e);if(!n.isSymbolicLink())throw new w("A "+u.getFileInfoType(n)+" already exists at the path: "+e);const P=await t.readlink(e),o=r.toNamespacedPath(r.resolve(P));if(o!==i)throw new w("A symlink targeting to an undesired path already exists: "+e+" -> "+o)}},"ensureSymlink");module.exports=E;
@@ -0,0 +1 @@
1
+ var P=Object.defineProperty;var c=(i,a)=>P(i,"name",{value:a,configurable:!0});import{lstat as n,stat as e,symlink as S,readlink as v}from"node:fs/promises";import{toNamespacedPath as s,dirname as b,resolve as x}from"@visulima/path";import{toPath as f}from"@visulima/path/utils";import l from"./assertValidFileOrDirectoryPath-DgPIPmZT.mjs";import{g as p}from"./get-file-info-type-CaWGXRjY.mjs";import{l as w}from"./is-stats-identical-CS5Y91zW.mjs";import{o as E}from"./resolve-symlink-target-BofZSDIc.mjs";import L from"./ensureDir-BtvxsJiS.mjs";import y from"./AlreadyExistsError-CEu6_Tjb.mjs";var T=Object.defineProperty,$=c((i,a)=>T(i,"name",{value:a,configurable:!0}),"f");const j=process.platform==="win32"||/^(?:msys|cygwin)$/.test(process.env.OSTYPE),B=$(async(i,a,d)=>{l(i),l(a);const o=E(i,a);a=s(f(a));try{if((await n(a)).isSymbolicLink()&&w(await e(o),await e(a))){const[t,r]=await Promise.all([e(o),e(a)]);if(w(t,r))return}}catch{}const h=await n(o),u=p(h);await L(b(a));const g=d??(j?"junction":u==="dir"?"dir":"file");try{await S(s(f(o)),a,g)}catch(t){if(t.code!=="EEXIST")throw t;const r=await n(a);if(!r.isSymbolicLink())throw new y("A "+p(r)+" already exists at the path: "+a);const k=await v(a),m=s(x(k));if(m!==o)throw new y("A symlink targeting to an undesired path already exists: "+a+" -> "+m)}},"ensureSymlink");export{B as default};
@@ -0,0 +1 @@
1
+ var k=Object.defineProperty;var c=(o,r)=>k(o,"name",{value:r,configurable:!0});import{lstatSync as s,statSync as n,symlinkSync as v,readlinkSync as P}from"node:fs";import{toNamespacedPath as a,dirname as b,resolve as x}from"@visulima/path";import{toPath as f}from"@visulima/path/utils";import y from"./assertValidFileOrDirectoryPath-DgPIPmZT.mjs";import{g as p}from"./get-file-info-type-CaWGXRjY.mjs";import{l}from"./is-stats-identical-CS5Y91zW.mjs";import{o as E}from"./resolve-symlink-target-BofZSDIc.mjs";import L from"./ensureDirSync-bGe0QB7d.mjs";import d from"./AlreadyExistsError-CEu6_Tjb.mjs";var T=Object.defineProperty,j=c((o,r)=>T(o,"name",{value:r,configurable:!0}),"f");const A=process.platform==="win32"||/^(?:msys|cygwin)$/.test(process.env.OSTYPE),B=j((o,r,h)=>{y(o),y(r);const e=E(o,r);r=a(f(r));try{if(s(r).isSymbolicLink()&&l(n(e),n(r))){const i=n(e),t=n(r);if(l(i,t))return}}catch{}const S=s(e),u=p(S);L(b(r));const w=h??(A?"junction":u==="dir"?"dir":"file");try{v(a(f(e)),r,w)}catch(i){if(i.code!=="EEXIST")throw i;const t=s(r);if(!t.isSymbolicLink())throw new d("A "+p(t)+" already exists at the path: "+r);const g=P(r),m=a(x(g));if(m!==e)throw new d("A symlink targeting to an undesired path already exists: "+r+" -> "+m)}},"ensureSymlinkSync");export{B as default};
@@ -0,0 +1 @@
1
+ "use strict";var q=Object.defineProperty;var o=(s,e)=>q(s,"name",{value:e,configurable:!0});const t=require("node:fs"),n=require("@visulima/path"),y=require("@visulima/path/utils"),l=require("./assertValidFileOrDirectoryPath-HOUs73Jk.cjs"),u=require("./get-file-info-type-BXcpoWEM.cjs"),S=require("./is-stats-identical-CPCumzsC.cjs"),P=require("./resolve-symlink-target-HnbdXA1S.cjs"),w=require("./ensureDirSync-CvjJ3bGq.cjs"),d=require("./AlreadyExistsError-GC2XUgzJ.cjs");var k=Object.defineProperty,v=o((s,e)=>k(s,"name",{value:e,configurable:!0}),"f");const T=process.platform==="win32"||/^(?:msys|cygwin)$/.test(process.env.OSTYPE),E=v((s,e,h)=>{l(s),l(e);const r=P.o(s,e);e=n.toNamespacedPath(y.toPath(e));try{if(t.lstatSync(e).isSymbolicLink()&&S.l(t.statSync(r),t.statSync(e))){const i=t.statSync(r),c=t.statSync(e);if(S.l(i,c))return}}catch{}const f=t.lstatSync(r),p=u.getFileInfoType(f);w(n.dirname(e));const m=h??(T?"junction":p==="dir"?"dir":"file");try{t.symlinkSync(n.toNamespacedPath(y.toPath(r)),e,m)}catch(i){if(i.code!=="EEXIST")throw i;const c=t.lstatSync(e);if(!c.isSymbolicLink())throw new d("A "+u.getFileInfoType(c)+" already exists at the path: "+e);const g=t.readlinkSync(e),a=n.toNamespacedPath(n.resolve(g));if(a!==r)throw new d("A symlink targeting to an undesired path already exists: "+e+" -> "+a)}},"ensureSymlinkSync");module.exports=E;
@@ -0,0 +1 @@
1
+ "use strict";var g=Object.defineProperty;var f=(r,t)=>g(r,"name",{value:t,configurable:!0});const h=require("node:fs/promises"),i=require("@visulima/path"),u=require("@visulima/path/utils"),v=require("./F_OK-B8R_JA-Q.cjs");var m=Object.defineProperty,y=f((r,t)=>m(r,"name",{value:t,configurable:!0}),"n");const A=y(async(r,t={})=>{if(typeof r!="string"&&!Array.isArray(r)&&typeof r!="function")throw new TypeError("The `name` argument must be of type `string` or `string[]`");const p=t.cwd?u.toPath(t.cwd):process.cwd();let e=i.resolve(p);const{root:s}=i.parse(e),l=u.toPath(t.stopAt??s),d=i.resolve(e,l),n=t.type??"file",w=y(async function(o){return typeof r=="function"?[await r(o)]:typeof r=="string"?[r]:Array.isArray(r)?r:[r]},"getMatchers");for(;e&&e!==d&&e!==s;){for await(const o of await w(e)){if(o===v.FIND_UP_STOP)return;if(o===void 0)continue;const a=i.isAbsolute(o)?o:i.resolve(e,o);try{const c=await h.stat(a);if(n==="file"&&c.isFile()||n==="directory"&&c.isDirectory())return a}catch{}}e=i.dirname(e)}},"findUp");module.exports=A;
@@ -0,0 +1 @@
1
+ var w=Object.defineProperty;var c=(r,o)=>w(r,"name",{value:o,configurable:!0});import{stat as g}from"node:fs/promises";import{resolve as i,parse as h,isAbsolute as A,dirname as v}from"@visulima/path";import{toPath as y}from"@visulima/path/utils";import{FIND_UP_STOP as b}from"./F_OK-CiLqIeYK.mjs";var P=Object.defineProperty,p=c((r,o)=>P(r,"name",{value:o,configurable:!0}),"n");const _=p(async(r,o={})=>{if(typeof r!="string"&&!Array.isArray(r)&&typeof r!="function")throw new TypeError("The `name` argument must be of type `string` or `string[]`");const u=o.cwd?y(o.cwd):process.cwd();let t=i(u);const{root:n}=h(t),m=y(o.stopAt??n),d=i(t,m),a=o.type??"file",l=p(async function(e){return typeof r=="function"?[await r(e)]:typeof r=="string"?[r]:Array.isArray(r)?r:[r]},"getMatchers");for(;t&&t!==d&&t!==n;){for await(const e of await l(t)){if(e===b)return;if(e===void 0)continue;const s=A(e)?e:i(t,e);try{const f=await g(s);if(a==="file"&&f.isFile()||a==="directory"&&f.isDirectory())return s}catch{}}t=v(t)}},"findUp");export{_ as default};
@@ -0,0 +1 @@
1
+ "use strict";var h=Object.defineProperty;var a=(r,t)=>h(r,"name",{value:t,configurable:!0});const v=require("node:fs"),n=require("@visulima/path"),u=require("@visulima/path/utils"),A=require("./F_OK-B8R_JA-Q.cjs");var m=Object.defineProperty,y=a((r,t)=>m(r,"name",{value:t,configurable:!0}),"o");const w=y((r,t={})=>{if(typeof r!="string"&&!Array.isArray(r)&&typeof r!="function")throw new TypeError("The `name` argument must be of type `string` or `string[]`");const p=t.cwd?u.toPath(t.cwd):process.cwd();let e=n.resolve(p);const{root:s}=n.parse(e),l=u.toPath(t.stopAt??s),d=n.resolve(e,l),i=t.type??"file",g=y(function(o){return typeof r=="function"?[r(o)]:typeof r=="string"?[r]:Array.isArray(r)?r:[r]},"getMatchers");for(;e&&e!==d&&e!==s;){for(const o of g(e)){if(o===A.FIND_UP_STOP)return;if(o===void 0)continue;const c=n.isAbsolute(o)?o:n.resolve(e,o);try{const f=v.statSync(c);if(i==="file"&&f.isFile()||i==="directory"&&f.isDirectory())return c}catch{}}e=n.dirname(e)}},"findUpSync");module.exports=w;
@@ -0,0 +1 @@
1
+ var g=Object.defineProperty;var a=(r,t)=>g(r,"name",{value:t,configurable:!0});import{statSync as h}from"node:fs";import{resolve as i,parse as A,isAbsolute as v,dirname as w}from"@visulima/path";import{toPath as p}from"@visulima/path/utils";import{FIND_UP_STOP as b}from"./F_OK-CiLqIeYK.mjs";var P=Object.defineProperty,y=a((r,t)=>P(r,"name",{value:t,configurable:!0}),"o");const U=y((r,t={})=>{if(typeof r!="string"&&!Array.isArray(r)&&typeof r!="function")throw new TypeError("The `name` argument must be of type `string` or `string[]`");const u=t.cwd?p(t.cwd):process.cwd();let o=i(u);const{root:n}=A(o),m=p(t.stopAt??n),d=i(o,m),f=t.type??"file",l=y(function(e){return typeof r=="function"?[r(e)]:typeof r=="string"?[r]:Array.isArray(r)?r:[r]},"getMatchers");for(;o&&o!==d&&o!==n;){for(const e of l(o)){if(e===b)return;if(e===void 0)continue;const s=v(e)?e:i(o,e);try{const c=h(s);if(f==="file"&&c.isFile()||f==="directory"&&c.isDirectory())return s}catch{}}o=w(o)}},"findUpSync");export{U as default};
@@ -0,0 +1 @@
1
+ "use strict";var c=Object.defineProperty;var t=(e,r)=>c(e,"name",{value:r,configurable:!0});const i=require("node:fs/promises"),a=require("@visulima/path/utils"),n=require("./F_OK-B8R_JA-Q.cjs"),o=require("./assertValidFileOrDirectoryPath-HOUs73Jk.cjs");var u=Object.defineProperty,l=t((e,r)=>u(e,"name",{value:r,configurable:!0}),"o");async function s(e,r=n.F_OK){o(e),e=a.toPath(e);try{return await i.access(e,r),!0}catch{return!1}}t(s,"m");l(s,"isAccessible");module.exports=s;
@@ -0,0 +1 @@
1
+ var o=Object.defineProperty;var e=(t,r)=>o(t,"name",{value:r,configurable:!0});import{access as a}from"node:fs/promises";import{toPath as c}from"@visulima/path/utils";import{F_OK as i}from"./F_OK-CiLqIeYK.mjs";import m from"./assertValidFileOrDirectoryPath-DgPIPmZT.mjs";var f=Object.defineProperty,n=e((t,r)=>f(t,"name",{value:r,configurable:!0}),"o");async function s(t,r=i){m(t),t=c(t);try{return await a(t,r),!0}catch{return!1}}e(s,"m");n(s,"isAccessible");export{s as default};
@@ -0,0 +1 @@
1
+ "use strict";var s=Object.defineProperty;var t=(e,r)=>s(e,"name",{value:r,configurable:!0});const i=require("node:fs"),n=require("@visulima/path/utils"),o=require("./F_OK-B8R_JA-Q.cjs"),a=require("./assertValidFileOrDirectoryPath-HOUs73Jk.cjs");var u=Object.defineProperty,l=t((e,r)=>u(e,"name",{value:r,configurable:!0}),"o");function c(e,r=o.F_OK){a(e),e=n.toPath(e);try{return i.accessSync(e,r),!0}catch{return!1}}t(c,"m");l(c,"isAccessibleSync");module.exports=c;
@@ -0,0 +1 @@
1
+ var o=Object.defineProperty;var e=(r,t)=>o(r,"name",{value:t,configurable:!0});import{accessSync as c}from"node:fs";import{toPath as a}from"@visulima/path/utils";import{F_OK as m}from"./F_OK-CiLqIeYK.mjs";import i from"./assertValidFileOrDirectoryPath-DgPIPmZT.mjs";var n=Object.defineProperty,f=e((r,t)=>n(r,"name",{value:t,configurable:!0}),"o");function s(r,t=m){i(r),r=a(r);try{return c(r,t),!0}catch{return!1}}e(s,"m");f(s,"isAccessibleSync");export{s as default};
@@ -0,0 +1,6 @@
1
+ var F=Object.defineProperty;var y=(e,r)=>F(e,"name",{value:r,configurable:!0});import T from"./JSONError-CVkb3xZ3.mjs";var W=Object.defineProperty,k=y((e,r)=>W(e,"name",{value:r,configurable:!0}),"v"),M=Object.defineProperty,B=k((e,r)=>M(e,"name",{value:r,configurable:!0}),"r$1");const E=B(e=>e.replaceAll(/\r\n|\r(?!\n)|\n/gu,`
2
+ `),"normalizeLF"),I=globalThis.process||Object.create(null),P={versions:{}},w=new Proxy(I,{get(e,r){if(r in e)return e[r];if(r in P)return P[r]}});var J=Object.defineProperty,q=k((e,r)=>J(e,"name",{value:r,configurable:!0}),"b");const G=q((e,r,o,t)=>{const n={column:0,line:-1,...e.start},l={...n,...e.end},a=n.line,s=n.column,f=l.line,g=l.column;let p=Math.max(a-(o+1),0),d=Math.min(r.length,f+t);a===-1&&(p=0),f===-1&&(d=r.length);const b=f-a,c={};if(b)for(let i=0;i<=b;i++){const u=i+a;if(!s)c[u]=!0;else if(i===0){const m=r[u-1]?.length;c[u]=[s,(m??0)-s+1]}else if(i===b)c[u]=[0,g];else{const m=r[u-i]?.length;c[u]=[0,m]}}else s===g?c[a]=s?[s,0]:!0:c[a]=[s,(g??0)-(s??0)];return{end:d,markerLines:c,start:p}},"getMarkerLines");var U=Object.defineProperty,x=k((e,r)=>U(e,"name",{value:r,configurable:!0}),"o");const _=w.platform==="win32"&&!w.env?.WT_SESSION?">":"❯",z=x((e,r,o)=>{const t={linesAbove:2,linesBelow:3,prefix:"",showGutter:!0,showLineNumbers:!0,tabWidth:4,...o,color:{gutter:x(i=>i,"gutter"),marker:x(i=>i,"marker"),message:x(i=>i,"message"),...o?.color}},n=r.start&&typeof r.start.column=="number";let l=E(e).split(`
3
+ `);typeof t?.tabWidth=="number"&&(l=l.map(i=>i.replaceAll(" "," ".repeat(t.tabWidth))));const{end:a,markerLines:s,start:f}=G(r,l,t.linesAbove,t.linesBelow),g=String(a).length,{gutter:p,marker:d,message:b}=t.color;let c=l.slice(f,a).map((i,u)=>{const m=f+1+u,v=s[m],L=(" "+m).slice(-g),N=!s[m+1],A=" "+L+(t.showGutter?" |":"");if(v){let j="";if(Array.isArray(v)){const $=i.replaceAll(/[^\t]/g," ").slice(0,Math.max(v[0]-1,0)),C=v[1]||1;j=[`
4
+ `,t.prefix+p(A.replaceAll(/\d/g," "))," ",$,d("^").repeat(C)].join(""),N&&t.message&&(j+=` ${b(t.message)}`)}return[t.prefix+d(_),p(A),i.length>0?" "+i:"",j].join("")}return t.prefix+" "+p(A)+(i.length>0?" "+i:"")}).join(`
5
+ `);return t.message&&!n&&(c=t.prefix+" ".repeat(g+1)+t.message+`
6
+ `+c),c},"codeFrame");var D=Object.defineProperty,H=y((e,r)=>D(e,"name",{value:r,configurable:!0}),"a"),K=Object.defineProperty,O=H((e,r)=>K(e,"name",{value:r,configurable:!0}),"l");const S=O((e,r)=>{let o=0,t=r.length-2;for(;o<t;){const n=o+(t-o>>1);if(e<r[n])t=n-1;else if(e>=r[n+1])o=n+1;else{o=n;break}}return o},"binarySearch"),Q=O(e=>e.split(/\n|\r(?!\n)/).reduce((r,o)=>(r.push(r.at(-1)+o.length+1),r),[0]),"getLineStartIndexes"),R=O((e,r,o)=>{const t=o?.skipChecks??!1;if(!t&&(!Array.isArray(e)&&typeof e!="string"||(typeof e=="string"||Array.isArray(e))&&e.length===0))return{column:0,line:0};if(!t&&(typeof r!="number"||typeof e=="string"&&r>=e.length||Array.isArray(e)&&r+1>=e.at(-1)))return{column:0,line:0};if(typeof e=="string"){const l=Q(e),a=S(r,l);return{column:r-l[a]+1,line:a+1}}const n=S(r,e);return{column:r-e[n]+1,line:n+1}},"indexToLineColumn");var V=Object.defineProperty,h=y((e,r)=>V(e,"name",{value:r,configurable:!0}),"s");const X=h(e=>`\\u{${e.codePointAt(0).toString(16)}}`,"getCodePoint"),Y=h((e,r,o)=>z(e,{start:r},{tabWidth:!1,...o}),"generateCodeFrame"),Z=h((e,r)=>{const o=/in JSON at position (?<index>\d+)(?: \(line (?<line>\d+) column (?<column>\d+)\))?$/.exec(r);if(!o)return;let{column:t,index:n,line:l}=o.groups;return l&&t?{column:Number(t),line:Number(l)}:(n=Number(n),n===e.length&&(n=e.length-1),R(e,n))},"getErrorLocation"),ee=h(e=>e.replace(/(?<=^Unexpected token )(?<quote>')?(.)\k<quote>/,(r,o,t)=>`"${t}"(${X(t)})`),"addCodePointToUnexpectedToken");function re(e,r,o,t){typeof r=="string"&&(typeof o=="object"&&(t=o),o=r,r=void 0);let n;try{return JSON.parse(e,r)}catch(s){n=s.message}let l;e?(l=Z(e,n),n=ee(n)):n+=" while parsing empty string";const a=new T(n);throw a.fileName=o,l&&(a.codeFrame=Y(e,l,t)),a}y(re,"F");h(re,"parseJson");export{re as default};
@@ -0,0 +1,6 @@
1
+ "use strict";var T=Object.defineProperty;var y=(e,r)=>T(e,"name",{value:r,configurable:!0});const W=require("./JSONError-CWuiGmNc.cjs");var M=Object.defineProperty,k=y((e,r)=>M(e,"name",{value:r,configurable:!0}),"v"),E=Object.defineProperty,J=k((e,r)=>E(e,"name",{value:r,configurable:!0}),"r$1");const q=J(e=>e.replaceAll(/\r\n|\r(?!\n)|\n/gu,`
2
+ `),"normalizeLF"),B=globalThis.process||Object.create(null),P={versions:{}},w=new Proxy(B,{get(e,r){if(r in e)return e[r];if(r in P)return P[r]}});var I=Object.defineProperty,G=k((e,r)=>I(e,"name",{value:r,configurable:!0}),"b");const U=G((e,r,o,t)=>{const n={column:0,line:-1,...e.start},l={...n,...e.end},a=n.line,s=n.column,g=l.line,f=l.column;let p=Math.max(a-(o+1),0),d=Math.min(r.length,g+t);a===-1&&(p=0),g===-1&&(d=r.length);const b=g-a,c={};if(b)for(let i=0;i<=b;i++){const u=i+a;if(!s)c[u]=!0;else if(i===0){const m=r[u-1]?.length;c[u]=[s,(m??0)-s+1]}else if(i===b)c[u]=[0,f];else{const m=r[u-i]?.length;c[u]=[0,m]}}else s===f?c[a]=s?[s,0]:!0:c[a]=[s,(f??0)-(s??0)];return{end:d,markerLines:c,start:p}},"getMarkerLines");var _=Object.defineProperty,x=k((e,r)=>_(e,"name",{value:r,configurable:!0}),"o");const z=w.platform==="win32"&&!w.env?.WT_SESSION?">":"❯",D=x((e,r,o)=>{const t={linesAbove:2,linesBelow:3,prefix:"",showGutter:!0,showLineNumbers:!0,tabWidth:4,...o,color:{gutter:x(i=>i,"gutter"),marker:x(i=>i,"marker"),message:x(i=>i,"message"),...o?.color}},n=r.start&&typeof r.start.column=="number";let l=q(e).split(`
3
+ `);typeof t?.tabWidth=="number"&&(l=l.map(i=>i.replaceAll(" "," ".repeat(t.tabWidth))));const{end:a,markerLines:s,start:g}=U(r,l,t.linesAbove,t.linesBelow),f=String(a).length,{gutter:p,marker:d,message:b}=t.color;let c=l.slice(g,a).map((i,u)=>{const m=g+1+u,v=s[m],$=(" "+m).slice(-f),L=!s[m+1],A=" "+$+(t.showGutter?" |":"");if(v){let j="";if(Array.isArray(v)){const C=i.replaceAll(/[^\t]/g," ").slice(0,Math.max(v[0]-1,0)),F=v[1]||1;j=[`
4
+ `,t.prefix+p(A.replaceAll(/\d/g," "))," ",C,d("^").repeat(F)].join(""),L&&t.message&&(j+=` ${b(t.message)}`)}return[t.prefix+d(z),p(A),i.length>0?" "+i:"",j].join("")}return t.prefix+" "+p(A)+(i.length>0?" "+i:"")}).join(`
5
+ `);return t.message&&!n&&(c=t.prefix+" ".repeat(f+1)+t.message+`
6
+ `+c),c},"codeFrame");var H=Object.defineProperty,K=y((e,r)=>H(e,"name",{value:r,configurable:!0}),"a"),Q=Object.defineProperty,O=K((e,r)=>Q(e,"name",{value:r,configurable:!0}),"l");const S=O((e,r)=>{let o=0,t=r.length-2;for(;o<t;){const n=o+(t-o>>1);if(e<r[n])t=n-1;else if(e>=r[n+1])o=n+1;else{o=n;break}}return o},"binarySearch"),R=O(e=>e.split(/\n|\r(?!\n)/).reduce((r,o)=>(r.push(r.at(-1)+o.length+1),r),[0]),"getLineStartIndexes"),V=O((e,r,o)=>{const t=o?.skipChecks??!1;if(!t&&(!Array.isArray(e)&&typeof e!="string"||(typeof e=="string"||Array.isArray(e))&&e.length===0))return{column:0,line:0};if(!t&&(typeof r!="number"||typeof e=="string"&&r>=e.length||Array.isArray(e)&&r+1>=e.at(-1)))return{column:0,line:0};if(typeof e=="string"){const l=R(e),a=S(r,l);return{column:r-l[a]+1,line:a+1}}const n=S(r,e);return{column:r-e[n]+1,line:n+1}},"indexToLineColumn");var X=Object.defineProperty,h=y((e,r)=>X(e,"name",{value:r,configurable:!0}),"s");const Y=h(e=>`\\u{${e.codePointAt(0).toString(16)}}`,"getCodePoint"),Z=h((e,r,o)=>D(e,{start:r},{tabWidth:!1,...o}),"generateCodeFrame"),ee=h((e,r)=>{const o=/in JSON at position (?<index>\d+)(?: \(line (?<line>\d+) column (?<column>\d+)\))?$/.exec(r);if(!o)return;let{column:t,index:n,line:l}=o.groups;return l&&t?{column:Number(t),line:Number(l)}:(n=Number(n),n===e.length&&(n=e.length-1),V(e,n))},"getErrorLocation"),re=h(e=>e.replace(/(?<=^Unexpected token )(?<quote>')?(.)\k<quote>/,(r,o,t)=>`"${t}"(${Y(t)})`),"addCodePointToUnexpectedToken");function N(e,r,o,t){typeof r=="string"&&(typeof o=="object"&&(t=o),o=r,r=void 0);let n;try{return JSON.parse(e,r)}catch(s){n=s.message}let l;e?(l=ee(e,n),n=re(n)):n+=" while parsing empty string";const a=new W(n);throw a.fileName=o,l&&(a.codeFrame=Z(e,l,t)),a}y(N,"F");h(N,"parseJson");module.exports=N;
@@ -0,0 +1 @@
1
+ var w=Object.defineProperty;var m=(o,r)=>w(o,"name",{value:r,configurable:!0});import{readFile as b}from"node:fs/promises";import{brotliDecompress as g,unzip as h}from"node:zlib";import{toPath as u}from"@visulima/path/utils";import{R_OK as P}from"./F_OK-CiLqIeYK.mjs";import v from"./PermissionError-B8oi38Bx.mjs";import f from"./isAccessible-vmOjbVOF.mjs";import y from"./assertValidFileOrDirectoryPath-DgPIPmZT.mjs";var $=Object.defineProperty,l=m((o,r)=>$(o,"name",{value:r,configurable:!0}),"n");const z={brotli:g,gzip:h,none:l((o,r)=>{r(null,o)},"none")},S=l(async(o,r)=>{if(y(o),o=u(o),!await f(o))throw new v(`unable to read the non-accessible file: ${o}`);if(!await f(o,P))throw new Error(`Unable to read the non-readable file: ${o}`);const{buffer:c,compression:p,encoding:e,flag:t}=r??{};return await b(o,t?{encoding:e,flag:t}:{encoding:e}).then(async n=>await new Promise((s,d)=>{z[p??"none"](n,(i,a)=>{i?d(i):s(c?a:a.toString())})})).catch(n=>{throw n})},"readFile");export{S as default};
@@ -0,0 +1 @@
1
+ "use strict";var h=Object.defineProperty;var s=(e,r)=>h(e,"name",{value:r,configurable:!0});const g=require("node:fs/promises"),c=require("node:zlib"),p=require("@visulima/path/utils"),q=require("./F_OK-B8R_JA-Q.cjs"),m=require("./PermissionError-Ck1Es7al.cjs"),l=require("./isAccessible-C58XjRjT.cjs"),P=require("./assertValidFileOrDirectoryPath-HOUs73Jk.cjs");var y=Object.defineProperty,u=s((e,r)=>y(e,"name",{value:r,configurable:!0}),"n");const F={brotli:c.brotliDecompress,gzip:c.unzip,none:u((e,r)=>{r(null,e)},"none")},O=u(async(e,r)=>{if(P(e),e=p.toPath(e),!await l(e))throw new m(`unable to read the non-accessible file: ${e}`);if(!await l(e,q.R_OK))throw new Error(`Unable to read the non-readable file: ${e}`);const{buffer:d,compression:b,encoding:i,flag:o}=r??{};return await g.readFile(e,o?{encoding:i,flag:o}:{encoding:i}).then(async n=>await new Promise((f,w)=>{F[b??"none"](n,(t,a)=>{t?w(t):f(d?a:a.toString())})})).catch(n=>{throw n})},"readFile");module.exports=O;
@@ -0,0 +1 @@
1
+ var s=Object.defineProperty;var t=(o,r)=>s(o,"name",{value:r,configurable:!0});import{readFileSync as d}from"node:fs";import{brotliDecompressSync as g,unzipSync as b}from"node:zlib";import{toPath as u}from"@visulima/path/utils";import{R_OK as y}from"./F_OK-CiLqIeYK.mjs";import a from"./PermissionError-B8oi38Bx.mjs";import f from"./isAccessibleSync-BxoK0UkJ.mjs";import S from"./assertValidFileOrDirectoryPath-DgPIPmZT.mjs";var h=Object.defineProperty,m=t((o,r)=>h(o,"name",{value:r,configurable:!0}),"n");const v={brotli:g,gzip:b,none:m(o=>o,"none")},D=m((o,r)=>{if(S(o),o=u(o),!f(o))throw new a(`unable to read the non-accessible file: ${o}`);if(!f(o,y))throw new a(`invalid access to read file at: ${o}`);const{buffer:c,compression:l,encoding:n,flag:e}=r??{},p=d(o,e?{encoding:n,flag:e}:{encoding:n}),i=v[l??"none"](p);return c?i:i.toString()},"readFileSync");export{D as default};
@@ -0,0 +1 @@
1
+ "use strict";var b=Object.defineProperty;var t=(e,r)=>b(e,"name",{value:r,configurable:!0});const g=require("node:fs"),c=require("node:zlib"),q=require("@visulima/path/utils"),y=require("./F_OK-B8R_JA-Q.cjs"),s=require("./PermissionError-Ck1Es7al.cjs"),a=require("./isAccessibleSync-9njSth1z.cjs"),p=require("./assertValidFileOrDirectoryPath-HOUs73Jk.cjs");var S=Object.defineProperty,l=t((e,r)=>S(e,"name",{value:r,configurable:!0}),"n");const h={brotli:c.brotliDecompressSync,gzip:c.unzipSync,none:l(e=>e,"none")},m=l((e,r)=>{if(p(e),e=q.toPath(e),!a(e))throw new s(`unable to read the non-accessible file: ${e}`);if(!a(e,y.R_OK))throw new s(`invalid access to read file at: ${e}`);const{buffer:u,compression:d,encoding:n,flag:i}=r??{},f=g.readFileSync(e,i?{encoding:n,flag:i}:{encoding:n}),o=h[d??"none"](f);return u?o:o.toString()},"readFileSync");module.exports=m;
@@ -0,0 +1 @@
1
+ "use strict";var u=Object.defineProperty;var t=(o,e)=>u(o,"name",{value:e,configurable:!0});const d=require("@visulima/path/utils"),f=require("./parseJson-DAKf187w.cjs"),l=require("./readFile-DIQKBQ0d.cjs");var b=Object.defineProperty,p=t((o,e)=>b(o,"name",{value:e,configurable:!0}),"i");async function i(o,e,n){typeof e=="object"&&(n=e,e=void 0);const s=await l(o,{buffer:!0,encoding:void 0});let r=new TextDecoder().decode(s);const{beforeParse:c,color:a}=n??{};return typeof c=="function"&&(r=c(r)),f(r,e,d.toPath(o),{color:a})}t(i,"c");p(i,"readJson");module.exports=i;
@@ -0,0 +1 @@
1
+ var i=Object.defineProperty;var t=(e,o)=>i(e,"name",{value:o,configurable:!0});import{toPath as d}from"@visulima/path/utils";import m from"./parseJson-CgmZtT7L.mjs";import p from"./readFile-D6U3MP6g.mjs";var s=Object.defineProperty,u=t((e,o)=>s(e,"name",{value:o,configurable:!0}),"i");async function l(e,o,n){typeof o=="object"&&(n=o,o=void 0);const c=await p(e,{buffer:!0,encoding:void 0});let r=new TextDecoder().decode(c);const{beforeParse:a,color:f}=n??{};return typeof a=="function"&&(r=a(r)),m(r,o,d(e),{color:f})}t(l,"c");u(l,"readJson");export{l as default};
@@ -0,0 +1 @@
1
+ "use strict";var u=Object.defineProperty;var t=(o,e)=>u(o,"name",{value:e,configurable:!0});const d=require("@visulima/path/utils"),f=require("./parseJson-DAKf187w.cjs"),l=require("./readFileSync-CTVwduD2.cjs");var b=Object.defineProperty,p=t((o,e)=>b(o,"name",{value:e,configurable:!0}),"r");function i(o,e,n){typeof e=="object"&&(n=e,e=void 0);const s=l(o,{buffer:!0,encoding:void 0});let r=new TextDecoder().decode(s);const{beforeParse:c,color:a}=n??{};return typeof c=="function"&&(r=c(r)),f(r,e,d.toPath(o),{color:a})}t(i,"J");p(i,"readJsonSync");module.exports=i;
@@ -0,0 +1 @@
1
+ var i=Object.defineProperty;var t=(e,o)=>i(e,"name",{value:o,configurable:!0});import{toPath as d}from"@visulima/path/utils";import m from"./parseJson-CgmZtT7L.mjs";import p from"./readFileSync-Bao-E5R8.mjs";var u=Object.defineProperty,l=t((e,o)=>u(e,"name",{value:o,configurable:!0}),"r");function s(e,o,n){typeof o=="object"&&(n=o,o=void 0);const f=p(e,{buffer:!0,encoding:void 0});let r=new TextDecoder().decode(f);const{beforeParse:c,color:a}=n??{};return typeof c=="function"&&(r=c(r)),m(r,o,d(e),{color:a})}t(s,"J");l(s,"readJsonSync");export{s as default};
@@ -0,0 +1 @@
1
+ var s=Object.defineProperty;var o=(r,e)=>s(r,"name",{value:e,configurable:!0});import{parse as n}from"yaml";import u from"./readFile-D6U3MP6g.mjs";var l=Object.defineProperty,d=o((r,e)=>l(r,"name",{value:e,configurable:!0}),"e");async function g(r,e,t){const{buffer:i,compression:c,encoding:m="utf8",flag:p,...a}=t??{},f=await u(r,{buffer:i,compression:c,encoding:m,flag:p});return typeof e=="function"?n(f,e,a):n(f,a)}o(g,"d");d(g,"readYaml");export{g as default};
@@ -0,0 +1 @@
1
+ "use strict";var p=Object.defineProperty;var n=(r,e)=>p(r,"name",{value:e,configurable:!0});const t=require("yaml"),d=require("./readFile-DIQKBQ0d.cjs");var m=Object.defineProperty,g=n((r,e)=>m(r,"name",{value:e,configurable:!0}),"e");async function i(r,e,s){const{buffer:c,compression:f,encoding:u="utf8",flag:l,...a}=s??{},o=await d(r,{buffer:c,compression:f,encoding:u,flag:l});return typeof e=="function"?t.parse(o,e,a):t.parse(o,a)}n(i,"d");g(i,"readYaml");module.exports=i;
@@ -0,0 +1 @@
1
+ "use strict";var p=Object.defineProperty;var n=(r,e)=>p(r,"name",{value:e,configurable:!0});const t=require("yaml"),d=require("./readFileSync-CTVwduD2.cjs");var m=Object.defineProperty,g=n((r,e)=>m(r,"name",{value:e,configurable:!0}),"i");function a(r,e,i){const{buffer:s,compression:f,encoding:u="utf8",flag:l,...o}=i??{},c=d(r,{buffer:s,compression:f,encoding:u,flag:l});return typeof e=="function"?t.parse(c,e,o):t.parse(c,o)}n(a,"d");g(a,"readYamlSync");module.exports=a;
@@ -0,0 +1 @@
1
+ var u=Object.defineProperty;var o=(r,e)=>u(r,"name",{value:e,configurable:!0});import{parse as t}from"yaml";import s from"./readFileSync-Bao-E5R8.mjs";var l=Object.defineProperty,d=o((r,e)=>l(r,"name",{value:e,configurable:!0}),"i");function g(r,e,a){const{buffer:i,compression:c,encoding:m="utf8",flag:p,...f}=a??{},n=s(r,{buffer:i,compression:c,encoding:m,flag:p});return typeof e=="function"?t(n,e,f):t(n,f)}o(g,"d");d(g,"readYamlSync");export{g as default};
@@ -0,0 +1 @@
1
+ "use strict";var i=Object.defineProperty;var t=(e,r)=>i(e,"name",{value:r,configurable:!0});const a=require("node:fs/promises"),c=require("./assertValidFileOrDirectoryPath-HOUs73Jk.cjs");var s=Object.defineProperty,o=t((e,r)=>s(e,"name",{value:r,configurable:!0}),"t");const y=o(async(e,r={})=>{c(e);try{await a.unlink(e)}catch{}try{await a.rm(e,{force:!0,maxRetries:r?.maxRetries,recursive:!0,retryDelay:r?.retryDelay})}catch{}},"remove");module.exports=y;