@visulima/fs 2.1.15 → 2.1.17
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.
- package/CHANGELOG.md +28 -0
- package/LICENSE.md +4 -4
- package/dist/error.cjs +1 -1
- package/dist/error.d.cts +1 -1
- package/dist/error.d.mts +1 -1
- package/dist/error.d.ts +1 -1
- package/dist/error.mjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +1 -1
- package/dist/{shared/AlreadyExistsError-yT45kpVd.mjs → packem_shared/AlreadyExistsError-CEu6_Tjb.mjs} +1 -1
- package/dist/packem_shared/AlreadyExistsError-GC2XUgzJ.cjs +1 -0
- package/dist/packem_shared/DirectoryError-B8wqer68.cjs +1 -0
- package/dist/{shared/DirectoryError-DYXOepnO.mjs → packem_shared/DirectoryError-ddlbUV8C.mjs} +1 -1
- package/dist/packem_shared/F_OK-CiLqIeYK.mjs +1 -0
- package/dist/{shared/JSONError-BwfyCaRr.mjs → packem_shared/JSONError-CVkb3xZ3.mjs} +2 -2
- package/dist/packem_shared/JSONError-CWuiGmNc.cjs +4 -0
- package/dist/packem_shared/LF-Dbx0i6a7.mjs +3 -0
- package/dist/packem_shared/NotEmptyError-BWGfec5K.cjs +1 -0
- package/dist/{shared/NotEmptyError-DCoszDiD.mjs → packem_shared/NotEmptyError-DMh1o7UL.mjs} +1 -1
- package/dist/packem_shared/NotFoundError-Diij7oqe.cjs +1 -0
- package/dist/{shared/NotFoundError-CQCvj7gX.mjs → packem_shared/NotFoundError-T95YsWYl.mjs} +1 -1
- package/dist/{shared/PermissionError-BYPqHEY9.mjs → packem_shared/PermissionError-B8oi38Bx.mjs} +1 -1
- package/dist/packem_shared/PermissionError-Ck1Es7al.cjs +1 -0
- package/dist/packem_shared/WalkError-BsngoIKJ.mjs +1 -0
- package/dist/packem_shared/WalkError-gKgp0TWD.cjs +1 -0
- package/dist/packem_shared/assertValidFileContents-BLhwm7u2.mjs +1 -0
- package/dist/packem_shared/assertValidFileContents-CrbDz09d.cjs +1 -0
- package/dist/{shared/assertValidFileOrDirectoryPath-CQmKNf2h.mjs → packem_shared/assertValidFileOrDirectoryPath-DgPIPmZT.mjs} +1 -1
- package/dist/packem_shared/assertValidFileOrDirectoryPath-HOUs73Jk.cjs +1 -0
- package/dist/packem_shared/collect-4au76gDu.cjs +1 -0
- package/dist/packem_shared/collect-CRzGiRGg.mjs +1 -0
- package/dist/packem_shared/collectSync-BE8DAOke.mjs +1 -0
- package/dist/packem_shared/collectSync-CbKwt8rz.cjs +1 -0
- package/dist/packem_shared/emptyDir-D2m8OP8u.mjs +1 -0
- package/dist/packem_shared/emptyDir-DKxQHQQb.cjs +1 -0
- package/dist/packem_shared/emptyDirSync-CLM_zyIb.cjs +1 -0
- package/dist/packem_shared/emptyDirSync-CZNcW4wc.mjs +1 -0
- package/dist/packem_shared/ensureDir-BtvxsJiS.mjs +1 -0
- package/dist/packem_shared/ensureDir-DVHj-_yp.cjs +1 -0
- package/dist/packem_shared/ensureDirSync-CvjJ3bGq.cjs +1 -0
- package/dist/packem_shared/ensureDirSync-bGe0QB7d.mjs +1 -0
- package/dist/packem_shared/ensureFile-C46R6-4l.mjs +1 -0
- package/dist/packem_shared/ensureFile-CcJ5XIZm.cjs +1 -0
- package/dist/packem_shared/ensureFileSync-CwYTIP4G.mjs +1 -0
- package/dist/packem_shared/ensureFileSync-v-PhMLTr.cjs +1 -0
- package/dist/packem_shared/ensureLink-63XWiA3I.mjs +1 -0
- package/dist/packem_shared/ensureLink-C-v4AxzH.cjs +1 -0
- package/dist/packem_shared/ensureLinkSync-C4S-zdVb.cjs +1 -0
- package/dist/packem_shared/ensureLinkSync-D2LVObKd.mjs +1 -0
- package/dist/packem_shared/ensureSymlink-C5cy9585.cjs +1 -0
- package/dist/packem_shared/ensureSymlink-D36fS4KE.mjs +1 -0
- package/dist/packem_shared/ensureSymlinkSync-PvWVgeXc.mjs +1 -0
- package/dist/packem_shared/ensureSymlinkSync-YDRbg9hX.cjs +1 -0
- package/dist/packem_shared/findUp-DTU501Mn.cjs +1 -0
- package/dist/packem_shared/findUp-ik4TWAC2.mjs +1 -0
- package/dist/packem_shared/findUpSync-C1w6Z_6P.cjs +1 -0
- package/dist/packem_shared/findUpSync-DO0R67zX.mjs +1 -0
- package/dist/packem_shared/isAccessible-C58XjRjT.cjs +1 -0
- package/dist/packem_shared/isAccessible-vmOjbVOF.mjs +1 -0
- package/dist/packem_shared/isAccessibleSync-9njSth1z.cjs +1 -0
- package/dist/packem_shared/isAccessibleSync-BxoK0UkJ.mjs +1 -0
- package/dist/{shared/parseJson-pshz9KrK.mjs → packem_shared/parseJson-Ci9N3Kqh.mjs} +6 -6
- package/dist/{shared/parseJson-D_udZACk.cjs → packem_shared/parseJson-aI1tthJV.cjs} +4 -4
- package/dist/packem_shared/readFile-D6U3MP6g.mjs +1 -0
- package/dist/packem_shared/readFile-DIQKBQ0d.cjs +1 -0
- package/dist/packem_shared/readFileSync-Bao-E5R8.mjs +1 -0
- package/dist/packem_shared/readFileSync-CTVwduD2.cjs +1 -0
- package/dist/packem_shared/readJson-Cf5QS1cQ.cjs +1 -0
- package/dist/packem_shared/readJson-fgrin-Wb.mjs +1 -0
- package/dist/packem_shared/readJsonSync-D2_W7t7m.mjs +1 -0
- package/dist/packem_shared/readJsonSync-Dzu0ErIN.cjs +1 -0
- package/dist/packem_shared/readYaml-BYMJDJU0.mjs +1 -0
- package/dist/packem_shared/readYaml-D4PbAXZD.cjs +1 -0
- package/dist/packem_shared/readYamlSync-Bnyr8iGt.cjs +1 -0
- package/dist/packem_shared/readYamlSync-CdYj75zz.mjs +1 -0
- package/dist/packem_shared/remove-B-9MI2l5.cjs +1 -0
- package/dist/packem_shared/remove-DzfvbZOm.mjs +1 -0
- package/dist/packem_shared/removeSync-CJPR6M7V.cjs +1 -0
- package/dist/packem_shared/removeSync-D165rXSn.mjs +1 -0
- package/dist/packem_shared/stripJsonComments-BG8VWVP8.cjs +1 -0
- package/dist/packem_shared/stripJsonComments-CnWkqJaX.mjs +1 -0
- package/dist/packem_shared/walk-BJgnJy5d.cjs +1 -0
- package/dist/packem_shared/walk-DH-95i_B.mjs +1 -0
- package/dist/packem_shared/walkSync-D4zvt_kM.mjs +1 -0
- package/dist/packem_shared/walkSync-DYawhxUA.cjs +1 -0
- package/dist/packem_shared/writeFile-DwkUvAF-.mjs +1 -0
- package/dist/packem_shared/writeFile-z1NYn8jk.cjs +1 -0
- package/dist/packem_shared/writeFileSync-DYhY33yC.mjs +1 -0
- package/dist/packem_shared/writeFileSync-rAuaAA6w.cjs +1 -0
- package/dist/packem_shared/writeJson-BW5_Vr5i.cjs +4 -0
- package/dist/packem_shared/writeJson-DI_vpDVy.mjs +4 -0
- package/dist/packem_shared/writeJsonSync-BkoMtNUG.cjs +4 -0
- package/dist/packem_shared/writeJsonSync-DLo6ZPEV.mjs +4 -0
- package/dist/packem_shared/writeYaml-B4jtxffY.mjs +1 -0
- package/dist/packem_shared/writeYaml-BO_bcnqK.cjs +1 -0
- package/dist/packem_shared/writeYamlSync-BG69YBbH.mjs +1 -0
- package/dist/packem_shared/writeYamlSync-DozAaY0A.cjs +1 -0
- package/dist/utils.cjs +1 -1
- package/dist/utils.d.cts +2 -2
- package/dist/utils.d.mts +2 -2
- package/dist/utils.d.ts +2 -2
- package/dist/utils.mjs +1 -1
- package/package.json +14 -10
- package/dist/shared/AlreadyExistsError-qYsUje4Q.cjs +0 -1
- package/dist/shared/DirectoryError-JjvRpYZe.cjs +0 -1
- package/dist/shared/F_OK-BzMbdSs5.mjs +0 -1
- package/dist/shared/JSONError-BywLDEj4.cjs +0 -4
- package/dist/shared/LF-DwWQ8GdI.mjs +0 -3
- package/dist/shared/NotEmptyError-Bh6NOR9V.cjs +0 -1
- package/dist/shared/NotFoundError-BvgYH3iL.cjs +0 -1
- package/dist/shared/PermissionError-Dl1gfUwc.cjs +0 -1
- package/dist/shared/WalkError-CWKlhCA6.mjs +0 -1
- package/dist/shared/WalkError-DzbUzZjo.cjs +0 -1
- package/dist/shared/assertValidFileContents-BTXEHdLD.mjs +0 -1
- package/dist/shared/assertValidFileContents-vTNSeAqn.cjs +0 -1
- package/dist/shared/assertValidFileOrDirectoryPath-BT5xYqBy.cjs +0 -1
- package/dist/shared/collect-B2KdWG6-.mjs +0 -1
- package/dist/shared/collect-DwzKTfA1.cjs +0 -1
- package/dist/shared/collectSync-BMKZmoZR.mjs +0 -1
- package/dist/shared/collectSync-D-h8vph4.cjs +0 -1
- package/dist/shared/emptyDir-BkedPAhT.mjs +0 -1
- package/dist/shared/emptyDir-Ddqlcb6Q.cjs +0 -1
- package/dist/shared/emptyDirSync-Cp_8wgUR.mjs +0 -1
- package/dist/shared/emptyDirSync-DqizscgL.cjs +0 -1
- package/dist/shared/ensureDir-CpMWmVZ0.mjs +0 -1
- package/dist/shared/ensureDir-tKW3dSA0.cjs +0 -1
- package/dist/shared/ensureDirSync-DzJ1sUTo.cjs +0 -1
- package/dist/shared/ensureDirSync-hyBJv3ax.mjs +0 -1
- package/dist/shared/ensureFile-C4MogFm1.cjs +0 -1
- package/dist/shared/ensureFile-b-ST2MTk.mjs +0 -1
- package/dist/shared/ensureFileSync-BXhhrF2q.cjs +0 -1
- package/dist/shared/ensureFileSync-ClzIyiYf.mjs +0 -1
- package/dist/shared/ensureLink-CHQqG8z2.mjs +0 -1
- package/dist/shared/ensureLink-DY7IQxZ4.cjs +0 -1
- package/dist/shared/ensureLinkSync-Cq1cPBbo.mjs +0 -1
- package/dist/shared/ensureLinkSync-DJpt1OVV.cjs +0 -1
- package/dist/shared/ensureSymlink-CMtb3oPM.mjs +0 -1
- package/dist/shared/ensureSymlink-D6VKdTBJ.cjs +0 -1
- package/dist/shared/ensureSymlinkSync-DRDE5so4.mjs +0 -1
- package/dist/shared/ensureSymlinkSync-DWIrsihx.cjs +0 -1
- package/dist/shared/findUp-BVECzzpO.cjs +0 -1
- package/dist/shared/findUp-COYH0Ul9.mjs +0 -1
- package/dist/shared/findUpSync-nA9H0jZj.mjs +0 -1
- package/dist/shared/findUpSync-vnrRIw6w.cjs +0 -1
- package/dist/shared/isAccessible-BbChaABn.mjs +0 -1
- package/dist/shared/isAccessible-DxFHaxVe.cjs +0 -1
- package/dist/shared/isAccessibleSync-C3YjvkTe.mjs +0 -1
- package/dist/shared/isAccessibleSync-DtOcefUR.cjs +0 -1
- package/dist/shared/readFile-BvgGZivd.mjs +0 -1
- package/dist/shared/readFile-DBC_s-48.cjs +0 -1
- package/dist/shared/readFileSync-C2bxnV-R.mjs +0 -1
- package/dist/shared/readFileSync-CBzoyWtz.cjs +0 -1
- package/dist/shared/readJson-BLlsJf8v.mjs +0 -1
- package/dist/shared/readJson-BmoR7jqx.cjs +0 -1
- package/dist/shared/readJsonSync-C4lPifQR.cjs +0 -1
- package/dist/shared/readJsonSync-D4CNs2Oh.mjs +0 -1
- package/dist/shared/readYaml-Cm-6prFv.mjs +0 -1
- package/dist/shared/readYaml-jKVEYXs2.cjs +0 -1
- package/dist/shared/readYamlSync-C73N6_GL.cjs +0 -1
- package/dist/shared/readYamlSync-DgaclC7K.mjs +0 -1
- package/dist/shared/remove-D67tECRM.cjs +0 -1
- package/dist/shared/remove-DbvVKBUa.mjs +0 -1
- package/dist/shared/removeSync-Ngu7GWsH.mjs +0 -1
- package/dist/shared/removeSync-womNIl-8.cjs +0 -1
- package/dist/shared/stripJsonComments-BuOddwNE.cjs +0 -1
- package/dist/shared/stripJsonComments-DtqWH5Xl.mjs +0 -1
- package/dist/shared/walk-DO_o7eRl.mjs +0 -1
- package/dist/shared/walk-kHxIkAkJ.cjs +0 -1
- package/dist/shared/walkSync-BLhXIHWn.cjs +0 -1
- package/dist/shared/walkSync-C5uWmu9Q.mjs +0 -1
- package/dist/shared/writeFile-BkHnZTWA.mjs +0 -1
- package/dist/shared/writeFile-COembSIp.cjs +0 -1
- package/dist/shared/writeFileSync-6h8CQ9EO.mjs +0 -1
- package/dist/shared/writeFileSync-C3D5fvZf.cjs +0 -1
- package/dist/shared/writeJson-C8i3IALv.mjs +0 -4
- package/dist/shared/writeJson-rHdXUJ9n.cjs +0 -4
- package/dist/shared/writeJsonSync-BVBRbGPP.mjs +0 -4
- package/dist/shared/writeJsonSync-C7xU8DX6.cjs +0 -4
- package/dist/shared/writeYaml-BG-a4bX4.mjs +0 -1
- package/dist/shared/writeYaml-BnD26RjE.cjs +0 -1
- package/dist/shared/writeYamlSync-BEUPvAyj.mjs +0 -1
- package/dist/shared/writeYamlSync-BS0MBjJo.cjs +0 -1
- /package/dist/{shared → packem_shared}/F_OK-B8R_JA-Q.cjs +0 -0
- /package/dist/{shared → packem_shared}/LF-D4BqIfQm.cjs +0 -0
- /package/dist/{shared → packem_shared}/get-file-info-type-BXcpoWEM.cjs +0 -0
- /package/dist/{shared → packem_shared}/get-file-info-type-CaWGXRjY.mjs +0 -0
- /package/dist/{shared → packem_shared}/index-Cms6lU4T.cjs +0 -0
- /package/dist/{shared → packem_shared}/index-VcQXVcaq.mjs +0 -0
- /package/dist/{shared → packem_shared}/is-stats-identical-CPCumzsC.cjs +0 -0
- /package/dist/{shared → packem_shared}/is-stats-identical-CS5Y91zW.mjs +0 -0
- /package/dist/{shared → packem_shared}/json-error-ZPgZIXcg.d.cts +0 -0
- /package/dist/{shared → packem_shared}/json-error-ZPgZIXcg.d.mjs +0 -0
- /package/dist/{shared → packem_shared}/json-error-ZPgZIXcg.d.mts +0 -0
- /package/dist/{shared → packem_shared}/observable-like.d-CpT5ICZl.d.cts +0 -0
- /package/dist/{shared → packem_shared}/observable-like.d-CpT5ICZl.d.mjs +0 -0
- /package/dist/{shared → packem_shared}/observable-like.d-CpT5ICZl.d.mts +0 -0
- /package/dist/{shared → packem_shared}/resolve-symlink-target-BofZSDIc.mjs +0 -0
- /package/dist/{shared → packem_shared}/resolve-symlink-target-HnbdXA1S.cjs +0 -0
- /package/dist/{shared → packem_shared}/to-uint-8-array-2-3EvGd7.cjs +0 -0
- /package/dist/{shared → packem_shared}/to-uint-8-array-DwgaTasY.mjs +0 -0
- /package/dist/{shared → packem_shared}/walk-include-B-MbUqMt.mjs +0 -0
- /package/dist/{shared → packem_shared}/walk-include-CFIYniQi.cjs +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,31 @@
|
|
|
1
|
+
## @visulima/fs [2.1.17](https://github.com/visulima/visulima/compare/@visulima/fs@2.1.16...@visulima/fs@2.1.17) (2024-09-11)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* fixed node10 support ([f5e78d9](https://github.com/visulima/visulima/commit/f5e78d9bff8fd603967666598b34f9338a8726b5))
|
|
6
|
+
|
|
7
|
+
### Miscellaneous Chores
|
|
8
|
+
|
|
9
|
+
* updated dev dependencies ([28b5ee5](https://github.com/visulima/visulima/commit/28b5ee5c805ca8868536418829cde7ba8c5bb8dd))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Dependencies
|
|
13
|
+
|
|
14
|
+
* **@visulima/path:** upgraded to 1.0.8
|
|
15
|
+
* **@visulima/error:** upgraded to 4.4.4
|
|
16
|
+
|
|
17
|
+
## @visulima/fs [2.1.16](https://github.com/visulima/visulima/compare/@visulima/fs@2.1.15...@visulima/fs@2.1.16) (2024-09-07)
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
* fixed broken chunk splitting from packem ([1aaf277](https://github.com/visulima/visulima/commit/1aaf27779292d637923c5f8a220e18606e78caa2))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Dependencies
|
|
25
|
+
|
|
26
|
+
* **@visulima/path:** upgraded to 1.0.7
|
|
27
|
+
* **@visulima/error:** upgraded to 4.4.3
|
|
28
|
+
|
|
1
29
|
## @visulima/fs [2.1.15](https://github.com/visulima/visulima/compare/@visulima/fs@2.1.14...@visulima/fs@2.1.15) (2024-09-07)
|
|
2
30
|
|
|
3
31
|
### 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
|
>
|
|
@@ -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
|
>
|
|
@@ -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
|
>
|
|
@@ -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
|
>
|
package/dist/error.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./packem_shared/AlreadyExistsError-GC2XUgzJ.cjs"),o=require("./packem_shared/DirectoryError-B8wqer68.cjs"),e=require("./packem_shared/JSONError-CWuiGmNc.cjs"),t=require("./packem_shared/NotEmptyError-BWGfec5K.cjs"),i=require("./packem_shared/NotFoundError-Diij7oqe.cjs"),E=require("./packem_shared/PermissionError-Ck1Es7al.cjs"),s=require("./packem_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.d.cts
CHANGED
package/dist/error.d.mts
CHANGED
package/dist/error.d.ts
CHANGED
package/dist/error.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{default as t}from"./packem_shared/AlreadyExistsError-CEu6_Tjb.mjs";import{default as a}from"./packem_shared/DirectoryError-ddlbUV8C.mjs";import{default as s}from"./packem_shared/JSONError-CVkb3xZ3.mjs";import{default as l}from"./packem_shared/NotEmptyError-DMh1o7UL.mjs";import{default as E}from"./packem_shared/NotFoundError-T95YsWYl.mjs";import{default as u}from"./packem_shared/PermissionError-B8oi38Bx.mjs";import{default as i}from"./packem_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("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./packem_shared/F_OK-B8R_JA-Q.cjs"),n=require("./packem_shared/ensureDir-DVHj-_yp.cjs"),i=require("./packem_shared/ensureDirSync-CvjJ3bGq.cjs"),c=require("./packem_shared/ensureFile-CcJ5XIZm.cjs"),s=require("./packem_shared/ensureFileSync-v-PhMLTr.cjs"),t=require("./packem_shared/ensureLink-C-v4AxzH.cjs"),o=require("./packem_shared/ensureLinkSync-C4S-zdVb.cjs"),u=require("./packem_shared/ensureSymlink-C5cy9585.cjs"),l=require("./packem_shared/ensureSymlinkSync-YDRbg9hX.cjs"),r=require("./packem_shared/LF-D4BqIfQm.cjs"),y=require("./packem_shared/collect-4au76gDu.cjs"),S=require("./packem_shared/collectSync-CbKwt8rz.cjs"),q=require("./packem_shared/findUp-DTU501Mn.cjs"),a=require("./packem_shared/findUpSync-C1w6Z_6P.cjs"),m=require("./packem_shared/walk-BJgnJy5d.cjs"),F=require("./packem_shared/walkSync-DYawhxUA.cjs"),d=require("./packem_shared/isAccessible-C58XjRjT.cjs"),w=require("./packem_shared/isAccessibleSync-9njSth1z.cjs"),O=require("./packem_shared/readFile-DIQKBQ0d.cjs"),_=require("./packem_shared/readFileSync-CTVwduD2.cjs"),k=require("./packem_shared/readJson-Cf5QS1cQ.cjs"),L=require("./packem_shared/readJsonSync-Dzu0ErIN.cjs"),D=require("./packem_shared/readYaml-D4PbAXZD.cjs"),p=require("./packem_shared/readYamlSync-Bnyr8iGt.cjs"),K=require("./packem_shared/emptyDir-DKxQHQQb.cjs"),J=require("./packem_shared/emptyDirSync-CLM_zyIb.cjs"),Y=require("./packem_shared/remove-B-9MI2l5.cjs"),f=require("./packem_shared/removeSync-CJPR6M7V.cjs"),b=require("./packem_shared/writeFile-z1NYn8jk.cjs"),U=require("./packem_shared/writeFileSync-rAuaAA6w.cjs"),v=require("./packem_shared/writeJson-BW5_Vr5i.cjs"),P=require("./packem_shared/writeJsonSync-BkoMtNUG.cjs"),A=require("./packem_shared/writeYaml-BO_bcnqK.cjs"),R=require("./packem_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.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { W as WalkOptions, M as Match, F as FindUpOptions, a as WalkEntry, R as ReadFileOptions, C as ContentType, J as JsonValue, b as ReadJsonOptions, c as JsonReviver, d as ReadYamlOptions, Y as YamlReviver, E as EmptyDirOptions, e as WriteFileOptions, f as WriteJsonOptions, g as YamlReplacer } from './
|
|
2
|
-
export { l as CodeFrameLocation, i as FIND_UP_STOP, h as F_OK, m as JsonReplacer, j as R_OK, n as ReadFileEncoding, k as W_OK, X as X_OK } from './
|
|
1
|
+
import { W as WalkOptions, M as Match, F as FindUpOptions, a as WalkEntry, R as ReadFileOptions, C as ContentType, J as JsonValue, b as ReadJsonOptions, c as JsonReviver, d as ReadYamlOptions, Y as YamlReviver, E as EmptyDirOptions, e as WriteFileOptions, f as WriteJsonOptions, g as YamlReplacer } from './packem_shared/observable-like.d-CpT5ICZl.cjs';
|
|
2
|
+
export { l as CodeFrameLocation, i as FIND_UP_STOP, h as F_OK, m as JsonReplacer, j as R_OK, n as ReadFileEncoding, k as W_OK, X as X_OK } from './packem_shared/observable-like.d-CpT5ICZl.cjs';
|
|
3
3
|
import { symlink } from 'node:fs';
|
|
4
4
|
import { CreateNodeOptions, DocumentOptions, ParseOptions, SchemaOptions, ToStringOptions } from 'yaml';
|
|
5
5
|
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { W as WalkOptions, M as Match, F as FindUpOptions, a as WalkEntry, R as ReadFileOptions, C as ContentType, J as JsonValue, b as ReadJsonOptions, c as JsonReviver, d as ReadYamlOptions, Y as YamlReviver, E as EmptyDirOptions, e as WriteFileOptions, f as WriteJsonOptions, g as YamlReplacer } from './
|
|
2
|
-
export { l as CodeFrameLocation, i as FIND_UP_STOP, h as F_OK, m as JsonReplacer, j as R_OK, n as ReadFileEncoding, k as W_OK, X as X_OK } from './
|
|
1
|
+
import { W as WalkOptions, M as Match, F as FindUpOptions, a as WalkEntry, R as ReadFileOptions, C as ContentType, J as JsonValue, b as ReadJsonOptions, c as JsonReviver, d as ReadYamlOptions, Y as YamlReviver, E as EmptyDirOptions, e as WriteFileOptions, f as WriteJsonOptions, g as YamlReplacer } from './packem_shared/observable-like.d-CpT5ICZl.mjs';
|
|
2
|
+
export { l as CodeFrameLocation, i as FIND_UP_STOP, h as F_OK, m as JsonReplacer, j as R_OK, n as ReadFileEncoding, k as W_OK, X as X_OK } from './packem_shared/observable-like.d-CpT5ICZl.mjs';
|
|
3
3
|
import { symlink } from 'node:fs';
|
|
4
4
|
import { CreateNodeOptions, DocumentOptions, ParseOptions, SchemaOptions, ToStringOptions } from 'yaml';
|
|
5
5
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { W as WalkOptions, M as Match, F as FindUpOptions, a as WalkEntry, R as ReadFileOptions, C as ContentType, J as JsonValue, b as ReadJsonOptions, c as JsonReviver, d as ReadYamlOptions, Y as YamlReviver, E as EmptyDirOptions, e as WriteFileOptions, f as WriteJsonOptions, g as YamlReplacer } from './
|
|
2
|
-
export { l as CodeFrameLocation, i as FIND_UP_STOP, h as F_OK, m as JsonReplacer, j as R_OK, n as ReadFileEncoding, k as W_OK, X as X_OK } from './
|
|
1
|
+
import { W as WalkOptions, M as Match, F as FindUpOptions, a as WalkEntry, R as ReadFileOptions, C as ContentType, J as JsonValue, b as ReadJsonOptions, c as JsonReviver, d as ReadYamlOptions, Y as YamlReviver, E as EmptyDirOptions, e as WriteFileOptions, f as WriteJsonOptions, g as YamlReplacer } from './packem_shared/observable-like.d-CpT5ICZl.d.mjs';
|
|
2
|
+
export { l as CodeFrameLocation, i as FIND_UP_STOP, h as F_OK, m as JsonReplacer, j as R_OK, n as ReadFileEncoding, k as W_OK, X as X_OK } from './packem_shared/observable-like.d-CpT5ICZl.d.mjs';
|
|
3
3
|
import { symlink } from 'node:fs';
|
|
4
4
|
import { CreateNodeOptions, DocumentOptions, ParseOptions, SchemaOptions, ToStringOptions } from 'yaml';
|
|
5
5
|
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{FIND_UP_STOP as t,F_OK as a,R_OK as o,W_OK as f,X_OK as l}from"./packem_shared/F_OK-CiLqIeYK.mjs";import{default as m}from"./packem_shared/ensureDir-BtvxsJiS.mjs";import{default as u}from"./packem_shared/ensureDirSync-bGe0QB7d.mjs";import{default as n}from"./packem_shared/ensureFile-C46R6-4l.mjs";import{default as i}from"./packem_shared/ensureFileSync-CwYTIP4G.mjs";import{default as y}from"./packem_shared/ensureLink-63XWiA3I.mjs";import{default as F}from"./packem_shared/ensureLinkSync-D2LVObKd.mjs";import{default as k}from"./packem_shared/ensureSymlink-D36fS4KE.mjs";import{default as _}from"./packem_shared/ensureSymlinkSync-PvWVgeXc.mjs";import{CRLF as L,EOL as J,LF as K,detect as Y,format as U}from"./packem_shared/LF-Dbx0i6a7.mjs";import{default as v}from"./packem_shared/collect-CRzGiRGg.mjs";import{default as P}from"./packem_shared/collectSync-BE8DAOke.mjs";import{default as C}from"./packem_shared/findUp-ik4TWAC2.mjs";import{default as I}from"./packem_shared/findUpSync-DO0R67zX.mjs";import{default as T}from"./packem_shared/walk-DH-95i_B.mjs";import{default as X}from"./packem_shared/walkSync-D4zvt_kM.mjs";import{default as h}from"./packem_shared/isAccessible-vmOjbVOF.mjs";import{default as q}from"./packem_shared/isAccessibleSync-BxoK0UkJ.mjs";import{default as B}from"./packem_shared/readFile-D6U3MP6g.mjs";import{default as H}from"./packem_shared/readFileSync-Bao-E5R8.mjs";import{default as Q}from"./packem_shared/readJson-fgrin-Wb.mjs";import{default as Z}from"./packem_shared/readJsonSync-D2_W7t7m.mjs";import{default as ee}from"./packem_shared/readYaml-BYMJDJU0.mjs";import{default as te}from"./packem_shared/readYamlSync-CdYj75zz.mjs";import{default as oe}from"./packem_shared/emptyDir-D2m8OP8u.mjs";import{default as le}from"./packem_shared/emptyDirSync-CZNcW4wc.mjs";import{default as me}from"./packem_shared/remove-DzfvbZOm.mjs";import{default as ue}from"./packem_shared/removeSync-D165rXSn.mjs";import{default as ne}from"./packem_shared/writeFile-DwkUvAF-.mjs";import{default as ie}from"./packem_shared/writeFileSync-DYhY33yC.mjs";import{default as ye}from"./packem_shared/writeJson-DI_vpDVy.mjs";import{default as Fe}from"./packem_shared/writeJsonSync-DLo6ZPEV.mjs";import{default as ke}from"./packem_shared/writeYaml-B4jtxffY.mjs";import{default as _e}from"./packem_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
|
|
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;
|
package/dist/{shared/DirectoryError-DYXOepnO.mjs → packem_shared/DirectoryError-ddlbUV8C.mjs}
RENAMED
|
@@ -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
|
|
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
|
|
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{
|
|
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
|
|
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
|
|
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};
|
package/dist/{shared/PermissionError-BYPqHEY9.mjs → packem_shared/PermissionError-B8oi38Bx.mjs}
RENAMED
|
@@ -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
|
|
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
|
|
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};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
var F=Object.defineProperty;var y=(e,r)=>F(e,"name",{value:r,configurable:!0});import
|
|
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,
|
|
3
|
-
`);typeof t?.tabWidth=="number"&&(l=l.map(i=>i.replaceAll(" "," ".repeat(t.tabWidth))));const{end:a,markerLines:s,start:
|
|
4
|
-
`,t.prefix+p(A.replaceAll(/\d/g," "))," "
|
|
5
|
-
`);return t.message&&!n&&(c=t.prefix+" ".repeat(
|
|
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
|
|
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],$=(" "+m).slice(-g),L=!s[m+1],A=" "+$+(t.showGutter?" |":"");if(v){let j="";if(Array.isArray(v)){const N=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," "))," ",N,d("^").repeat(C)].join(""),L&&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};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";var T=Object.defineProperty;var y=(e,r)=>T(e,"name",{value:r,configurable:!0});
|
|
2
|
-
`),"normalizeLF"),B=globalThis.process||Object.create(null),P={versions:{}},
|
|
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]
|
|
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],N=(" "+m).slice(-f),L=!s[m+1],A=" "+N+(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
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
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,
|
|
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 $(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($,"F");h($,"parseJson");module.exports=$;
|
|
@@ -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-aI1tthJV.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-Ci9N3Kqh.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
|
+
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-Ci9N3Kqh.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
|
+
"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-aI1tthJV.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;
|