@visulima/fs 3.1.8 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +37 -0
- package/LICENSE.md +51 -122
- package/README.md +929 -982
- package/dist/eol.js +3 -0
- package/dist/error.js +1 -0
- package/dist/index.d.ts +51 -4
- package/dist/index.js +1 -0
- package/dist/packem_shared/F_OK-CAwY1qU7.js +1 -0
- package/dist/packem_shared/JSONError-D7h6PNWc.js +4 -0
- package/dist/packem_shared/collect-DO31RsLs.js +1 -0
- package/dist/packem_shared/collectSync-Cy7ULmjZ.js +1 -0
- package/dist/packem_shared/emptyDir-zBLHyPsJ.js +1 -0
- package/dist/packem_shared/emptyDirSync-DZ8nTo6g.js +1 -0
- package/dist/packem_shared/ensureDir-CwcwvbZ0.js +1 -0
- package/dist/packem_shared/ensureDirSync-DsFhH5oQ.js +1 -0
- package/dist/packem_shared/ensureFile-DwcEQVDX.js +1 -0
- package/dist/packem_shared/ensureFileSync-KnrH51Ox.js +1 -0
- package/dist/packem_shared/ensureLink-5rjQGEBb.js +1 -0
- package/dist/packem_shared/ensureLinkSync-CYXpscf2.js +1 -0
- package/dist/packem_shared/ensureSymlink-BMLtwpf2.js +1 -0
- package/dist/packem_shared/ensureSymlinkSync-CyAnZg8r.js +1 -0
- package/dist/packem_shared/findUp-Di7Az07S.js +1 -0
- package/dist/packem_shared/findUpSync-iV97v14Q.js +1 -0
- package/dist/packem_shared/index-CYIVJA0W.js +1 -0
- package/dist/packem_shared/isAccessible-CDFxsAAo.js +1 -0
- package/dist/packem_shared/isAccessibleSync-5nzZWgin.js +1 -0
- package/dist/packem_shared/isFsCaseSensitive-Drl8fHLV.js +1 -0
- package/dist/packem_shared/move-Bz4gSIjp.js +1 -0
- package/dist/packem_shared/parseJson-Cj4v3qzl.js +6 -0
- package/dist/packem_shared/readFile-CbxFM_zp.js +1 -0
- package/dist/packem_shared/readFileSync-B9iv2Sb8.js +1 -0
- package/dist/packem_shared/readJson-BgC3msx-.js +1 -0
- package/dist/packem_shared/readJsonSync-DHO1vjAG.js +1 -0
- package/dist/packem_shared/readYaml-C8QlsEFe.js +1 -0
- package/dist/packem_shared/readYamlSync-BIuoBHUt.js +1 -0
- package/dist/packem_shared/remove-BUqZUj1W.js +1 -0
- package/dist/packem_shared/removeSync-BbT4vmDi.js +1 -0
- package/dist/packem_shared/stripJsonComments-DbMjL4qv.js +1 -0
- package/dist/packem_shared/{types-XsSUZ9oS.d.mts → types-T308NKwz.d.ts} +2 -1
- package/dist/packem_shared/walk-ZrZngpc4.js +1 -0
- package/dist/packem_shared/walk-include-DCiVAwMP.js +1 -0
- package/dist/packem_shared/walkSync-BQa4NKSG.js +1 -0
- package/dist/packem_shared/writeFile-D5OYEMHu.js +1 -0
- package/dist/packem_shared/writeFileSync-CO4ySqUn.js +1 -0
- package/dist/packem_shared/writeJson-DfmgiY_s.js +4 -0
- package/dist/packem_shared/writeJsonSync-Ck1pmmj_.js +4 -0
- package/dist/packem_shared/writeYaml-a_cglLPV.js +1 -0
- package/dist/packem_shared/writeYamlSync-vSQIN6OR.js +1 -0
- package/dist/size.js +1 -0
- package/dist/utils.d.ts +2 -2
- package/dist/utils.js +1 -0
- package/dist/yaml.d.ts +1 -1
- package/dist/yaml.js +1 -0
- package/package.json +16 -76
- package/dist/eol.cjs +0 -3
- package/dist/eol.d.cts +0 -7
- package/dist/eol.d.mts +0 -7
- package/dist/eol.mjs +0 -3
- package/dist/error.cjs +0 -1
- package/dist/error.d.cts +0 -50
- package/dist/error.d.mts +0 -50
- package/dist/error.mjs +0 -1
- package/dist/index.cjs +0 -1
- package/dist/index.d.cts +0 -89
- package/dist/index.d.mts +0 -89
- package/dist/index.mjs +0 -1
- package/dist/packem_shared/AlreadyExistsError-GC2XUgzJ.cjs +0 -1
- package/dist/packem_shared/DirectoryError-aGtmQVph.cjs +0 -1
- package/dist/packem_shared/F_OK-7T91O6Oz.cjs +0 -1
- package/dist/packem_shared/F_OK-B71i3mUa.mjs +0 -1
- package/dist/packem_shared/JSONError-CVkb3xZ3.mjs +0 -4
- package/dist/packem_shared/JSONError-CWuiGmNc.cjs +0 -4
- package/dist/packem_shared/NotEmptyError-BWGfec5K.cjs +0 -1
- package/dist/packem_shared/NotFoundError-Diij7oqe.cjs +0 -1
- package/dist/packem_shared/PermissionError-Ck1Es7al.cjs +0 -1
- package/dist/packem_shared/WalkError-gKgp0TWD.cjs +0 -1
- package/dist/packem_shared/assertValidFileContents-CrbDz09d.cjs +0 -1
- package/dist/packem_shared/assertValidFileOrDirectoryPath-HOUs73Jk.cjs +0 -1
- package/dist/packem_shared/collect-Bl2Oc1qs.cjs +0 -1
- package/dist/packem_shared/collect-CyYPQFMs.mjs +0 -1
- package/dist/packem_shared/collectSync-BHjyXWq4.cjs +0 -1
- package/dist/packem_shared/collectSync-CD9cXw2g.mjs +0 -1
- package/dist/packem_shared/emptyDir-BdjO-6Gu.mjs +0 -1
- package/dist/packem_shared/emptyDir-DGRw4yE9.cjs +0 -1
- package/dist/packem_shared/emptyDirSync-C1vsMEp-.mjs +0 -1
- package/dist/packem_shared/emptyDirSync-DzjDZxOx.cjs +0 -1
- package/dist/packem_shared/ensureDir-BuIFF_6B.mjs +0 -1
- package/dist/packem_shared/ensureDir-DtQzyA70.cjs +0 -1
- package/dist/packem_shared/ensureDirSync-BuPHxdP4.mjs +0 -1
- package/dist/packem_shared/ensureDirSync-C8hIoS3o.cjs +0 -1
- package/dist/packem_shared/ensureFile-DcAODM6a.mjs +0 -1
- package/dist/packem_shared/ensureFile-wR8zBfXh.cjs +0 -1
- package/dist/packem_shared/ensureFileSync-BI1fIdNf.cjs +0 -1
- package/dist/packem_shared/ensureFileSync-CzPN6ucX.mjs +0 -1
- package/dist/packem_shared/ensureLink-BaZLXxgx.mjs +0 -1
- package/dist/packem_shared/ensureLink-DCPuU0Za.cjs +0 -1
- package/dist/packem_shared/ensureLinkSync-9C2JL-Sl.mjs +0 -1
- package/dist/packem_shared/ensureLinkSync-CuRZmQlV.cjs +0 -1
- package/dist/packem_shared/ensureSymlink-BH6wbylb.mjs +0 -1
- package/dist/packem_shared/ensureSymlink-J83jhdfA.cjs +0 -1
- package/dist/packem_shared/ensureSymlinkSync-CZSPodAm.mjs +0 -1
- package/dist/packem_shared/ensureSymlinkSync-VNtMTaV8.cjs +0 -1
- package/dist/packem_shared/findUp-C5aWsLuD.cjs +0 -1
- package/dist/packem_shared/findUp-CMGMYNty.mjs +0 -1
- package/dist/packem_shared/findUpSync-QP_ZEsJN.mjs +0 -1
- package/dist/packem_shared/findUpSync-U1lTgv4y.cjs +0 -1
- package/dist/packem_shared/get-file-info-type-DDbpRlDl.cjs +0 -1
- package/dist/packem_shared/index-BSjF-5vj.mjs +0 -1
- package/dist/packem_shared/index-DPla58ce.cjs +0 -1
- package/dist/packem_shared/is-stats-identical-Bti7K05l.cjs +0 -1
- package/dist/packem_shared/isAccessible-BQZd1_xn.cjs +0 -1
- package/dist/packem_shared/isAccessible-CL4eE5VL.mjs +0 -1
- package/dist/packem_shared/isAccessibleSync-BP5N8k_-.cjs +0 -1
- package/dist/packem_shared/isAccessibleSync-_HU_ppdG.mjs +0 -1
- package/dist/packem_shared/json-error-ZPgZIXcg.d.cts +0 -11
- package/dist/packem_shared/json-error-ZPgZIXcg.d.mts +0 -11
- package/dist/packem_shared/move--o4NZLpD.mjs +0 -1
- package/dist/packem_shared/move-DwG6APiG.cjs +0 -1
- package/dist/packem_shared/observable-like.d-BlD8q22s.d.cts +0 -40
- package/dist/packem_shared/observable-like.d-BlD8q22s.d.mts +0 -40
- package/dist/packem_shared/observable-like.d-BlD8q22s.d.ts +0 -40
- package/dist/packem_shared/parseJson-B_GwHpKj.cjs +0 -6
- package/dist/packem_shared/parseJson-Bqic0nN8.mjs +0 -6
- package/dist/packem_shared/readFile-BvefDyr_.cjs +0 -1
- package/dist/packem_shared/readFile-Cix_ijtX.mjs +0 -1
- package/dist/packem_shared/readFileSync-B0O-8BH0.mjs +0 -1
- package/dist/packem_shared/readFileSync-Ct8Ql4Vs.cjs +0 -1
- package/dist/packem_shared/readJson-BLvd2Bsj.mjs +0 -1
- package/dist/packem_shared/readJson-cP5ArpPg.cjs +0 -1
- package/dist/packem_shared/readJsonSync-B6h6A3Un.cjs +0 -1
- package/dist/packem_shared/readJsonSync-Br5dHGAI.mjs +0 -1
- package/dist/packem_shared/readYaml-BOYTR5D1.mjs +0 -1
- package/dist/packem_shared/readYaml-BzMFDsYe.cjs +0 -1
- package/dist/packem_shared/readYamlSync-BbK0khJu.cjs +0 -1
- package/dist/packem_shared/readYamlSync-md9g88k7.mjs +0 -1
- package/dist/packem_shared/remove-CtnFqEpd.mjs +0 -1
- package/dist/packem_shared/remove-DPCf2Qdb.cjs +0 -1
- package/dist/packem_shared/removeSync-Cyriz7r8.cjs +0 -1
- package/dist/packem_shared/removeSync-DI-IjqVp.mjs +0 -1
- package/dist/packem_shared/resolve-symlink-target-zilkQ_AU.cjs +0 -1
- package/dist/packem_shared/stripJsonComments-Cp5SNAB7.mjs +0 -1
- package/dist/packem_shared/stripJsonComments-CvZSDnYT.cjs +0 -1
- package/dist/packem_shared/to-uint-8-array-2-3EvGd7.cjs +0 -1
- package/dist/packem_shared/types-XsSUZ9oS.d.cts +0 -89
- package/dist/packem_shared/types-XsSUZ9oS.d.ts +0 -89
- package/dist/packem_shared/walk-BZTXbT87.mjs +0 -1
- package/dist/packem_shared/walk-DyN_HVFW.cjs +0 -1
- package/dist/packem_shared/walk-include-C9pVST87.mjs +0 -1
- package/dist/packem_shared/walk-include-DkK-WJl4.cjs +0 -1
- package/dist/packem_shared/walkSync-BHlEzV_m.mjs +0 -1
- package/dist/packem_shared/walkSync-Bqi7L2yG.cjs +0 -1
- package/dist/packem_shared/writeFile-COOAkvOE.mjs +0 -1
- package/dist/packem_shared/writeFile-CjgQEfur.cjs +0 -1
- package/dist/packem_shared/writeFileSync-CQuRHo9n.cjs +0 -1
- package/dist/packem_shared/writeFileSync-rhu-y_zx.mjs +0 -1
- package/dist/packem_shared/writeJson-BYT4WInm.mjs +0 -4
- package/dist/packem_shared/writeJson-CJIciZ_Q.cjs +0 -4
- package/dist/packem_shared/writeJsonSync-BIsrhRbV.cjs +0 -4
- package/dist/packem_shared/writeJsonSync-CLlXOFDm.mjs +0 -4
- package/dist/packem_shared/writeYaml-CjzVd0K-.mjs +0 -1
- package/dist/packem_shared/writeYaml-VmX1VKhN.cjs +0 -1
- package/dist/packem_shared/writeYamlSync-D9A9Ixe1.mjs +0 -1
- package/dist/packem_shared/writeYamlSync-DYsM6XBi.cjs +0 -1
- package/dist/size.cjs +0 -1
- package/dist/size.d.cts +0 -12
- package/dist/size.d.mts +0 -12
- package/dist/size.mjs +0 -1
- package/dist/utils.cjs +0 -1
- package/dist/utils.d.cts +0 -19
- package/dist/utils.d.mts +0 -19
- package/dist/utils.mjs +0 -1
- package/dist/yaml.cjs +0 -1
- package/dist/yaml.d.cts +0 -17
- package/dist/yaml.d.mts +0 -17
- package/dist/yaml.mjs +0 -1
- /package/dist/packem_shared/{AlreadyExistsError-CEu6_Tjb.mjs → AlreadyExistsError-CEu6_Tjb.js} +0 -0
- /package/dist/packem_shared/{DirectoryError-ddlbUV8C.mjs → DirectoryError-ddlbUV8C.js} +0 -0
- /package/dist/packem_shared/{NotEmptyError-DMh1o7UL.mjs → NotEmptyError-DMh1o7UL.js} +0 -0
- /package/dist/packem_shared/{NotFoundError-BPiW0icm.mjs → NotFoundError-BPiW0icm.js} +0 -0
- /package/dist/packem_shared/{PermissionError-B1Emi5a9.mjs → PermissionError-B1Emi5a9.js} +0 -0
- /package/dist/packem_shared/{WalkError-BsngoIKJ.mjs → WalkError-BsngoIKJ.js} +0 -0
- /package/dist/packem_shared/{assertValidFileContents-BZFnXa7K.mjs → assertValidFileContents-BZFnXa7K.js} +0 -0
- /package/dist/packem_shared/{assertValidFileOrDirectoryPath-DgPIPmZT.mjs → assertValidFileOrDirectoryPath-DgPIPmZT.js} +0 -0
- /package/dist/packem_shared/{get-file-info-type-CaWGXRjY.mjs → get-file-info-type-CaWGXRjY.js} +0 -0
- /package/dist/packem_shared/{is-stats-identical-CohsLtWy.mjs → is-stats-identical-CohsLtWy.js} +0 -0
- /package/dist/packem_shared/{resolve-symlink-target-BofZSDIc.mjs → resolve-symlink-target-BofZSDIc.js} +0 -0
- /package/dist/packem_shared/{to-uint-8-array-DwgaTasY.mjs → to-uint-8-array-DwgaTasY.js} +0 -0
package/dist/error.d.cts
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
export { J as JSONError } from './packem_shared/json-error-ZPgZIXcg.cjs';
|
|
2
|
-
|
|
3
|
-
declare class AlreadyExistsError extends Error {
|
|
4
|
-
constructor(message: string);
|
|
5
|
-
get code(): string;
|
|
6
|
-
set code(_name: string);
|
|
7
|
-
get name(): string;
|
|
8
|
-
set name(_name: string);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
declare class DirectoryError extends Error {
|
|
12
|
-
constructor(message: string);
|
|
13
|
-
get code(): string;
|
|
14
|
-
set code(_name: string);
|
|
15
|
-
get name(): string;
|
|
16
|
-
set name(_name: string);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
declare class NotEmptyError extends Error {
|
|
20
|
-
constructor(message: string);
|
|
21
|
-
get code(): string;
|
|
22
|
-
set code(_name: string);
|
|
23
|
-
get name(): string;
|
|
24
|
-
set name(_name: string);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
declare class NotFoundError extends Error {
|
|
28
|
-
constructor(message: string);
|
|
29
|
-
get code(): string;
|
|
30
|
-
set code(_name: string);
|
|
31
|
-
get name(): string;
|
|
32
|
-
set name(_name: string);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
declare class PermissionError extends Error {
|
|
36
|
-
constructor(message: string);
|
|
37
|
-
get code(): string;
|
|
38
|
-
set code(_name: string);
|
|
39
|
-
get name(): string;
|
|
40
|
-
set name(_name: string);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
declare class WalkError extends Error {
|
|
44
|
-
root: string;
|
|
45
|
-
constructor(cause: unknown, root: string);
|
|
46
|
-
get name(): string;
|
|
47
|
-
set name(_name: string);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export { AlreadyExistsError, DirectoryError, NotEmptyError, NotFoundError, PermissionError, WalkError };
|
package/dist/error.d.mts
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
export { J as JSONError } from './packem_shared/json-error-ZPgZIXcg.mjs';
|
|
2
|
-
|
|
3
|
-
declare class AlreadyExistsError extends Error {
|
|
4
|
-
constructor(message: string);
|
|
5
|
-
get code(): string;
|
|
6
|
-
set code(_name: string);
|
|
7
|
-
get name(): string;
|
|
8
|
-
set name(_name: string);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
declare class DirectoryError extends Error {
|
|
12
|
-
constructor(message: string);
|
|
13
|
-
get code(): string;
|
|
14
|
-
set code(_name: string);
|
|
15
|
-
get name(): string;
|
|
16
|
-
set name(_name: string);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
declare class NotEmptyError extends Error {
|
|
20
|
-
constructor(message: string);
|
|
21
|
-
get code(): string;
|
|
22
|
-
set code(_name: string);
|
|
23
|
-
get name(): string;
|
|
24
|
-
set name(_name: string);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
declare class NotFoundError extends Error {
|
|
28
|
-
constructor(message: string);
|
|
29
|
-
get code(): string;
|
|
30
|
-
set code(_name: string);
|
|
31
|
-
get name(): string;
|
|
32
|
-
set name(_name: string);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
declare class PermissionError extends Error {
|
|
36
|
-
constructor(message: string);
|
|
37
|
-
get code(): string;
|
|
38
|
-
set code(_name: string);
|
|
39
|
-
get name(): string;
|
|
40
|
-
set name(_name: string);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
declare class WalkError extends Error {
|
|
44
|
-
root: string;
|
|
45
|
-
constructor(cause: unknown, root: string);
|
|
46
|
-
get name(): string;
|
|
47
|
-
set name(_name: string);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export { AlreadyExistsError, DirectoryError, NotEmptyError, NotFoundError, PermissionError, WalkError };
|
package/dist/error.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
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-BPiW0icm.mjs";import{default as u}from"./packem_shared/PermissionError-B1Emi5a9.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
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./packem_shared/F_OK-7T91O6Oz.cjs"),n=require("./packem_shared/ensureDir-DtQzyA70.cjs"),c=require("./packem_shared/ensureDirSync-C8hIoS3o.cjs"),u=require("./packem_shared/ensureFile-wR8zBfXh.cjs"),s=require("./packem_shared/ensureFileSync-BI1fIdNf.cjs"),y=require("./packem_shared/ensureLink-DCPuU0Za.cjs"),S=require("./packem_shared/ensureLinkSync-CuRZmQlV.cjs"),l=require("./packem_shared/ensureSymlink-J83jhdfA.cjs"),q=require("./packem_shared/ensureSymlinkSync-VNtMTaV8.cjs"),r=require("./eol.cjs"),o=require("./packem_shared/collect-Bl2Oc1qs.cjs"),t=require("./packem_shared/collectSync-BHjyXWq4.cjs"),m=require("./packem_shared/findUp-C5aWsLuD.cjs"),a=require("./packem_shared/findUpSync-U1lTgv4y.cjs"),F=require("./packem_shared/walk-DyN_HVFW.cjs"),d=require("./packem_shared/walkSync-Bqi7L2yG.cjs"),_=require("./packem_shared/isAccessible-BQZd1_xn.cjs"),O=require("./packem_shared/isAccessibleSync-BP5N8k_-.cjs"),i=require("./packem_shared/move-DwG6APiG.cjs"),k=require("./packem_shared/readFile-BvefDyr_.cjs"),w=require("./packem_shared/readFileSync-Ct8Ql4Vs.cjs"),v=require("./packem_shared/readJson-cP5ArpPg.cjs"),D=require("./packem_shared/readJsonSync-B6h6A3Un.cjs"),L=require("./packem_shared/emptyDir-DGRw4yE9.cjs"),p=require("./packem_shared/emptyDirSync-DzjDZxOx.cjs"),K=require("./packem_shared/remove-DPCf2Qdb.cjs"),J=require("./packem_shared/removeSync-Cyriz7r8.cjs"),f=require("./packem_shared/writeFile-CjgQEfur.cjs"),b=require("./packem_shared/writeFileSync-CQuRHo9n.cjs"),U=require("./packem_shared/writeJson-CJIciZ_Q.cjs"),P=require("./packem_shared/writeJsonSync-BIsrhRbV.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=c;exports.ensureFile=u;exports.ensureFileSync=s;exports.ensureLink=y;exports.ensureLinkSync=S;exports.ensureSymlink=l;exports.ensureSymlinkSync=q;exports.CRLF=r.CRLF;exports.EOL=r.EOL;exports.LF=r.LF;exports.detect=r.detect;exports.format=r.format;exports.collect=o;exports.collectSync=t;exports.findUp=m;exports.findUpSync=a;exports.walk=F;exports.walkSync=d;exports.isAccessible=_;exports.isAccessibleSync=O;exports.move=i.move;exports.moveSync=i.moveSync;exports.rename=i.rename;exports.renameSync=i.renameSync;exports.readFile=k;exports.readFileSync=w;exports.readJson=v;exports.readJsonSync=D;exports.emptyDir=L;exports.emptyDirSync=p;exports.remove=K;exports.removeSync=J;exports.writeFile=f;exports.writeFileSync=b;exports.writeJson=U;exports.writeJsonSync=P;
|
package/dist/index.d.cts
DELETED
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { W as WalkOptions, F as FindUpName, a as FindUpOptions, b as FindUpNameSync, c as WalkEntry, R as ReadFileOptions, C as ContentType, d as ReadJsonOptions, J as JsonReviver, e as RetryOptions, f as WriteFileOptions, g as WriteJsonOptions } from './packem_shared/types-XsSUZ9oS.cjs';
|
|
2
|
-
export { l as CodeFrameLocation, m as CodeFrameOptions, i as FIND_UP_STOP, h as F_OK, n as FindUpNameFnResult, o as FindUpNameSyncFnResult, p as JsonReplacer, j as R_OK, q as ReadFileEncoding, k as W_OK, X as X_OK } from './packem_shared/types-XsSUZ9oS.cjs';
|
|
3
|
-
import { symlink } from 'node:fs';
|
|
4
|
-
export { CRLF, EOL, LF, detect, format } from './eol.cjs';
|
|
5
|
-
import { brotliDecompress, unzip, brotliDecompressSync, unzipSync } from 'node:zlib';
|
|
6
|
-
import { J as JsonValue } from './packem_shared/observable-like.d-BlD8q22s.cjs';
|
|
7
|
-
import 'yaml';
|
|
8
|
-
|
|
9
|
-
declare const ensureDir: (directory: URL | string) => Promise<void>;
|
|
10
|
-
|
|
11
|
-
declare const ensureDirSync: (directory: URL | string) => void;
|
|
12
|
-
|
|
13
|
-
declare const ensureFile: (filePath: URL | string) => Promise<void>;
|
|
14
|
-
|
|
15
|
-
declare const ensureFileSync: (filePath: URL | string) => void;
|
|
16
|
-
|
|
17
|
-
declare const ensureLink: (source: URL | string, destination: URL | string) => Promise<void>;
|
|
18
|
-
|
|
19
|
-
declare const ensureLinkSync: (source: URL | string, destination: URL | string) => void;
|
|
20
|
-
|
|
21
|
-
declare const ensureSymlink: (target: URL | string, linkName: URL | string, type?: symlink.Type) => Promise<void>;
|
|
22
|
-
|
|
23
|
-
declare const ensureSymlinkSync: (target: URL | string, linkName: URL | string, type?: symlink.Type) => void;
|
|
24
|
-
|
|
25
|
-
declare const collect: (directory: string, options?: WalkOptions) => Promise<string[]>;
|
|
26
|
-
|
|
27
|
-
declare const collectSync: (directory: string, options?: WalkOptions) => string[];
|
|
28
|
-
|
|
29
|
-
declare const findUp: (name: FindUpName, options?: FindUpOptions) => Promise<string | undefined>;
|
|
30
|
-
|
|
31
|
-
declare const findUpSync: (name: FindUpNameSync, options?: FindUpOptions) => string | undefined;
|
|
32
|
-
|
|
33
|
-
declare function walk(directory: URL | string, { extensions, followSymlinks, includeDirs: includeDirectories, includeFiles, includeSymlinks, match, maxDepth, skip, }?: WalkOptions): AsyncIterableIterator<WalkEntry>;
|
|
34
|
-
|
|
35
|
-
declare function walkSync(directory: URL | string, { extensions, followSymlinks, includeDirs: includeDirectories, includeFiles, includeSymlinks, match, maxDepth, skip, }?: WalkOptions): IterableIterator<WalkEntry>;
|
|
36
|
-
|
|
37
|
-
declare function isAccessible(path: URL | string, mode?: number): Promise<boolean>;
|
|
38
|
-
|
|
39
|
-
declare function isAccessibleSync(path: URL | string, mode?: number): boolean;
|
|
40
|
-
|
|
41
|
-
type FilePermissions = number;
|
|
42
|
-
type Options = {
|
|
43
|
-
cwd?: URL | string;
|
|
44
|
-
readonly directoryMode?: FilePermissions;
|
|
45
|
-
readonly overwrite?: boolean;
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
declare const move: (sourcePath: string, destinationPath: string, options?: Options) => Promise<void>;
|
|
49
|
-
declare const moveSync: (sourcePath: string, destinationPath: string, options?: Options) => void;
|
|
50
|
-
declare const rename: (source: string, destination: string, options?: Options) => Promise<void>;
|
|
51
|
-
declare const renameSync: (source: string, destination: string, options?: Options) => void;
|
|
52
|
-
|
|
53
|
-
declare const decompressionMethods$1: {
|
|
54
|
-
readonly brotli: typeof brotliDecompress;
|
|
55
|
-
readonly gzip: typeof unzip;
|
|
56
|
-
readonly none: (buffer: Buffer, callback: (error: Error | null, result: Buffer) => void) => void;
|
|
57
|
-
};
|
|
58
|
-
declare const readFile: <O extends ReadFileOptions<keyof typeof decompressionMethods$1> | undefined = undefined>(path: URL | string, options?: O) => Promise<ContentType<O>>;
|
|
59
|
-
|
|
60
|
-
declare const decompressionMethods: {
|
|
61
|
-
readonly brotli: typeof brotliDecompressSync;
|
|
62
|
-
readonly gzip: typeof unzipSync;
|
|
63
|
-
readonly none: (buffer: Buffer) => Buffer<ArrayBufferLike>;
|
|
64
|
-
};
|
|
65
|
-
declare const readFileSync: <O extends ReadFileOptions<keyof typeof decompressionMethods> | undefined = undefined>(path: URL | string, options?: O) => ContentType<O>;
|
|
66
|
-
|
|
67
|
-
declare function readJson<T extends JsonValue>(path: URL | string, options?: ReadJsonOptions): Promise<T>;
|
|
68
|
-
declare function readJson<T extends JsonValue>(path: URL | string, reviver: JsonReviver, options?: ReadJsonOptions): Promise<T>;
|
|
69
|
-
|
|
70
|
-
declare function readJsonSync<T extends JsonValue>(path: URL | string, options?: ReadJsonOptions): T;
|
|
71
|
-
declare function readJsonSync<T extends JsonValue>(path: URL | string, reviver: JsonReviver, options?: ReadJsonOptions): T;
|
|
72
|
-
|
|
73
|
-
declare const emptyDir: (dir: URL | string, options?: RetryOptions) => Promise<void>;
|
|
74
|
-
|
|
75
|
-
declare const emptyDirSync: (dir: URL | string, options?: RetryOptions) => void;
|
|
76
|
-
|
|
77
|
-
declare const remove: (path: URL | string, options?: RetryOptions) => Promise<void>;
|
|
78
|
-
|
|
79
|
-
declare const removeSync: (path: URL | string, options?: RetryOptions) => void;
|
|
80
|
-
|
|
81
|
-
declare const writeFile: (path: URL | string, content: ArrayBuffer | ArrayBufferView | string, options?: WriteFileOptions) => Promise<void>;
|
|
82
|
-
|
|
83
|
-
declare const writeFileSync: (path: URL | string, content: ArrayBuffer | ArrayBufferView | string, options?: WriteFileOptions) => void;
|
|
84
|
-
|
|
85
|
-
declare const writeJson: (path: URL | string, data: unknown, options?: WriteJsonOptions) => Promise<void>;
|
|
86
|
-
|
|
87
|
-
declare const writeJsonSync: (path: URL | string, data: unknown, options?: WriteJsonOptions) => void;
|
|
88
|
-
|
|
89
|
-
export { ContentType, FindUpName, FindUpNameSync, FindUpOptions, JsonReviver, type Options as MoveOptions, ReadFileOptions, ReadJsonOptions, WalkEntry, WalkOptions, WriteFileOptions, WriteJsonOptions, collect, collectSync, emptyDir, emptyDirSync, ensureDir, ensureDirSync, ensureFile, ensureFileSync, ensureLink, ensureLinkSync, ensureSymlink, ensureSymlinkSync, findUp, findUpSync, isAccessible, isAccessibleSync, move, moveSync, readFile, readFileSync, readJson, readJsonSync, remove, removeSync, rename, renameSync, walk, walkSync, writeFile, writeFileSync, writeJson, writeJsonSync };
|
package/dist/index.d.mts
DELETED
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { W as WalkOptions, F as FindUpName, a as FindUpOptions, b as FindUpNameSync, c as WalkEntry, R as ReadFileOptions, C as ContentType, d as ReadJsonOptions, J as JsonReviver, e as RetryOptions, f as WriteFileOptions, g as WriteJsonOptions } from './packem_shared/types-XsSUZ9oS.mjs';
|
|
2
|
-
export { l as CodeFrameLocation, m as CodeFrameOptions, i as FIND_UP_STOP, h as F_OK, n as FindUpNameFnResult, o as FindUpNameSyncFnResult, p as JsonReplacer, j as R_OK, q as ReadFileEncoding, k as W_OK, X as X_OK } from './packem_shared/types-XsSUZ9oS.mjs';
|
|
3
|
-
import { symlink } from 'node:fs';
|
|
4
|
-
export { CRLF, EOL, LF, detect, format } from './eol.mjs';
|
|
5
|
-
import { brotliDecompress, unzip, brotliDecompressSync, unzipSync } from 'node:zlib';
|
|
6
|
-
import { J as JsonValue } from './packem_shared/observable-like.d-BlD8q22s.mjs';
|
|
7
|
-
import 'yaml';
|
|
8
|
-
|
|
9
|
-
declare const ensureDir: (directory: URL | string) => Promise<void>;
|
|
10
|
-
|
|
11
|
-
declare const ensureDirSync: (directory: URL | string) => void;
|
|
12
|
-
|
|
13
|
-
declare const ensureFile: (filePath: URL | string) => Promise<void>;
|
|
14
|
-
|
|
15
|
-
declare const ensureFileSync: (filePath: URL | string) => void;
|
|
16
|
-
|
|
17
|
-
declare const ensureLink: (source: URL | string, destination: URL | string) => Promise<void>;
|
|
18
|
-
|
|
19
|
-
declare const ensureLinkSync: (source: URL | string, destination: URL | string) => void;
|
|
20
|
-
|
|
21
|
-
declare const ensureSymlink: (target: URL | string, linkName: URL | string, type?: symlink.Type) => Promise<void>;
|
|
22
|
-
|
|
23
|
-
declare const ensureSymlinkSync: (target: URL | string, linkName: URL | string, type?: symlink.Type) => void;
|
|
24
|
-
|
|
25
|
-
declare const collect: (directory: string, options?: WalkOptions) => Promise<string[]>;
|
|
26
|
-
|
|
27
|
-
declare const collectSync: (directory: string, options?: WalkOptions) => string[];
|
|
28
|
-
|
|
29
|
-
declare const findUp: (name: FindUpName, options?: FindUpOptions) => Promise<string | undefined>;
|
|
30
|
-
|
|
31
|
-
declare const findUpSync: (name: FindUpNameSync, options?: FindUpOptions) => string | undefined;
|
|
32
|
-
|
|
33
|
-
declare function walk(directory: URL | string, { extensions, followSymlinks, includeDirs: includeDirectories, includeFiles, includeSymlinks, match, maxDepth, skip, }?: WalkOptions): AsyncIterableIterator<WalkEntry>;
|
|
34
|
-
|
|
35
|
-
declare function walkSync(directory: URL | string, { extensions, followSymlinks, includeDirs: includeDirectories, includeFiles, includeSymlinks, match, maxDepth, skip, }?: WalkOptions): IterableIterator<WalkEntry>;
|
|
36
|
-
|
|
37
|
-
declare function isAccessible(path: URL | string, mode?: number): Promise<boolean>;
|
|
38
|
-
|
|
39
|
-
declare function isAccessibleSync(path: URL | string, mode?: number): boolean;
|
|
40
|
-
|
|
41
|
-
type FilePermissions = number;
|
|
42
|
-
type Options = {
|
|
43
|
-
cwd?: URL | string;
|
|
44
|
-
readonly directoryMode?: FilePermissions;
|
|
45
|
-
readonly overwrite?: boolean;
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
declare const move: (sourcePath: string, destinationPath: string, options?: Options) => Promise<void>;
|
|
49
|
-
declare const moveSync: (sourcePath: string, destinationPath: string, options?: Options) => void;
|
|
50
|
-
declare const rename: (source: string, destination: string, options?: Options) => Promise<void>;
|
|
51
|
-
declare const renameSync: (source: string, destination: string, options?: Options) => void;
|
|
52
|
-
|
|
53
|
-
declare const decompressionMethods$1: {
|
|
54
|
-
readonly brotli: typeof brotliDecompress;
|
|
55
|
-
readonly gzip: typeof unzip;
|
|
56
|
-
readonly none: (buffer: Buffer, callback: (error: Error | null, result: Buffer) => void) => void;
|
|
57
|
-
};
|
|
58
|
-
declare const readFile: <O extends ReadFileOptions<keyof typeof decompressionMethods$1> | undefined = undefined>(path: URL | string, options?: O) => Promise<ContentType<O>>;
|
|
59
|
-
|
|
60
|
-
declare const decompressionMethods: {
|
|
61
|
-
readonly brotli: typeof brotliDecompressSync;
|
|
62
|
-
readonly gzip: typeof unzipSync;
|
|
63
|
-
readonly none: (buffer: Buffer) => Buffer<ArrayBufferLike>;
|
|
64
|
-
};
|
|
65
|
-
declare const readFileSync: <O extends ReadFileOptions<keyof typeof decompressionMethods> | undefined = undefined>(path: URL | string, options?: O) => ContentType<O>;
|
|
66
|
-
|
|
67
|
-
declare function readJson<T extends JsonValue>(path: URL | string, options?: ReadJsonOptions): Promise<T>;
|
|
68
|
-
declare function readJson<T extends JsonValue>(path: URL | string, reviver: JsonReviver, options?: ReadJsonOptions): Promise<T>;
|
|
69
|
-
|
|
70
|
-
declare function readJsonSync<T extends JsonValue>(path: URL | string, options?: ReadJsonOptions): T;
|
|
71
|
-
declare function readJsonSync<T extends JsonValue>(path: URL | string, reviver: JsonReviver, options?: ReadJsonOptions): T;
|
|
72
|
-
|
|
73
|
-
declare const emptyDir: (dir: URL | string, options?: RetryOptions) => Promise<void>;
|
|
74
|
-
|
|
75
|
-
declare const emptyDirSync: (dir: URL | string, options?: RetryOptions) => void;
|
|
76
|
-
|
|
77
|
-
declare const remove: (path: URL | string, options?: RetryOptions) => Promise<void>;
|
|
78
|
-
|
|
79
|
-
declare const removeSync: (path: URL | string, options?: RetryOptions) => void;
|
|
80
|
-
|
|
81
|
-
declare const writeFile: (path: URL | string, content: ArrayBuffer | ArrayBufferView | string, options?: WriteFileOptions) => Promise<void>;
|
|
82
|
-
|
|
83
|
-
declare const writeFileSync: (path: URL | string, content: ArrayBuffer | ArrayBufferView | string, options?: WriteFileOptions) => void;
|
|
84
|
-
|
|
85
|
-
declare const writeJson: (path: URL | string, data: unknown, options?: WriteJsonOptions) => Promise<void>;
|
|
86
|
-
|
|
87
|
-
declare const writeJsonSync: (path: URL | string, data: unknown, options?: WriteJsonOptions) => void;
|
|
88
|
-
|
|
89
|
-
export { ContentType, FindUpName, FindUpNameSync, FindUpOptions, JsonReviver, type Options as MoveOptions, ReadFileOptions, ReadJsonOptions, WalkEntry, WalkOptions, WriteFileOptions, WriteJsonOptions, collect, collectSync, emptyDir, emptyDirSync, ensureDir, ensureDirSync, ensureFile, ensureFileSync, ensureLink, ensureLinkSync, ensureSymlink, ensureSymlinkSync, findUp, findUpSync, isAccessible, isAccessibleSync, move, moveSync, readFile, readFileSync, readJson, readJsonSync, remove, removeSync, rename, renameSync, walk, walkSync, writeFile, writeFileSync, writeJson, writeJsonSync };
|
package/dist/index.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{FIND_UP_STOP as o,F_OK as t,R_OK as a,W_OK as f,X_OK as s}from"./packem_shared/F_OK-B71i3mUa.mjs";import{default as m}from"./packem_shared/ensureDir-BuIFF_6B.mjs";import{default as u}from"./packem_shared/ensureDirSync-BuPHxdP4.mjs";import{default as p}from"./packem_shared/ensureFile-DcAODM6a.mjs";import{default as c}from"./packem_shared/ensureFileSync-CzPN6ucX.mjs";import{default as y}from"./packem_shared/ensureLink-BaZLXxgx.mjs";import{default as F}from"./packem_shared/ensureLinkSync-9C2JL-Sl.mjs";import{default as w}from"./packem_shared/ensureSymlink-BH6wbylb.mjs";import{default as _}from"./packem_shared/ensureSymlinkSync-CZSPodAm.mjs";import{CRLF as L,EOL as v,LF as J,detect as K,format as U}from"./eol.mjs";import{default as A}from"./packem_shared/collect-CyYPQFMs.mjs";import{default as R}from"./packem_shared/collectSync-CD9cXw2g.mjs";import{default as E}from"./packem_shared/findUp-CMGMYNty.mjs";import{default as N}from"./packem_shared/findUpSync-QP_ZEsJN.mjs";import{default as W}from"./packem_shared/walk-BZTXbT87.mjs";import{default as g}from"./packem_shared/walkSync-BHlEzV_m.mjs";import{default as j}from"./packem_shared/isAccessible-CL4eE5VL.mjs";import{default as z}from"./packem_shared/isAccessibleSync-_HU_ppdG.mjs";import{move as G,moveSync as H,rename as M,renameSync as Q}from"./packem_shared/move--o4NZLpD.mjs";import{default as Y}from"./packem_shared/readFile-Cix_ijtX.mjs";import{default as $}from"./packem_shared/readFileSync-B0O-8BH0.mjs";import{default as re}from"./packem_shared/readJson-BLvd2Bsj.mjs";import{default as te}from"./packem_shared/readJsonSync-Br5dHGAI.mjs";import{default as fe}from"./packem_shared/emptyDir-BdjO-6Gu.mjs";import{default as le}from"./packem_shared/emptyDirSync-C1vsMEp-.mjs";import{default as ne}from"./packem_shared/remove-CtnFqEpd.mjs";import{default as de}from"./packem_shared/removeSync-DI-IjqVp.mjs";import{default as xe}from"./packem_shared/writeFile-COOAkvOE.mjs";import{default as ie}from"./packem_shared/writeFileSync-rhu-y_zx.mjs";import{default as Se}from"./packem_shared/writeJson-BYT4WInm.mjs";import{default as ke}from"./packem_shared/writeJsonSync-CLlXOFDm.mjs";export{L as CRLF,v as EOL,o as FIND_UP_STOP,t as F_OK,J as LF,a as R_OK,f as W_OK,s as X_OK,A as collect,R as collectSync,K as detect,fe as emptyDir,le as emptyDirSync,m as ensureDir,u as ensureDirSync,p as ensureFile,c as ensureFileSync,y as ensureLink,F as ensureLinkSync,w as ensureSymlink,_ as ensureSymlinkSync,E as findUp,N as findUpSync,U as format,j as isAccessible,z as isAccessibleSync,G as move,H as moveSync,Y as readFile,$ as readFileSync,re as readJson,te as readJsonSync,ne as remove,de as removeSync,M as rename,Q as renameSync,W as walk,g as walkSync,xe as writeFile,ie as writeFileSync,Se as writeJson,ke as writeJsonSync};
|
|
@@ -1 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";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}),"o");class c extends Error{static{t(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 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const _=0,O=4,e=2,S=1,t=Symbol("findUpStop"),o=/"(?:[^"\\]|\\.)*"|\/\/[^\r\n]*|\/\*(?:[^*]|\*[^/])*\*\//g;exports.FIND_UP_STOP=t;exports.F_OK=_;exports.INTERNAL_STRIP_JSON_REGEX=o;exports.R_OK=O;exports.W_OK=e;exports.X_OK=S;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const _=0,O=4,S=2,o=1,K=Symbol("findUpStop"),N=/"(?:[^"\\]|\\.)*"|\/\/[^\r\n]*|\/\*(?:[^*]|\*[^/])*\*\//g;export{K as FIND_UP_STOP,_ as F_OK,N as INTERNAL_STRIP_JSON_REGEX,O as R_OK,S as W_OK,o as X_OK};
|
|
@@ -1,4 +0,0 @@
|
|
|
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
|
-
|
|
3
|
-
${this.codeFrame}
|
|
4
|
-
`:""}`}set message(e){this.#e=e}}export{a as default};
|
|
@@ -1,4 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var a=Object.defineProperty;var t=(r,e)=>a(r,"name",{value:e,configurable:!0});const o=require("./walk-DyN_HVFW.cjs");var c=Object.defineProperty,i=t((r,e)=>c(r,"name",{value:e,configurable:!0}),"e");const u=i(async(r,e={})=>{Array.isArray(e.extensions)||(e.extensions=["js","mjs","cjs","ts"]);const s=[];for await(const n of o(r,e))s.push(n.path);return s},"collect");module.exports=u;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var n=Object.defineProperty;var a=(r,e)=>n(r,"name",{value:e,configurable:!0});import o from"./walk-BZTXbT87.mjs";var c=Object.defineProperty,i=a((r,e)=>c(r,"name",{value:e,configurable:!0}),"e");const l=i(async(r,e={})=>{Array.isArray(e.extensions)||(e.extensions=["js","mjs","cjs","ts"]);const s=[];for await(const t of o(r,e))s.push(t.path);return s},"collect");export{l as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var c=Object.defineProperty;var n=(r,e)=>c(r,"name",{value:e,configurable:!0});const o=require("./walkSync-Bqi7L2yG.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 t of o(r,e))s.push(t.path);return s},"collectSync");module.exports=u;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var t=Object.defineProperty;var s=(r,e)=>t(r,"name",{value:e,configurable:!0});import a from"./walkSync-BHlEzV_m.mjs";var c=Object.defineProperty,f=s((r,e)=>c(r,"name",{value:e,configurable:!0}),"n");const l=f((r,e={})=>{Array.isArray(e.extensions)||(e.extensions=["js","mjs","cjs","ts"]);const o=[];for(const n of a(r,e))o.push(n.path);return o},"collectSync");export{l as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var i=Object.defineProperty;var e=(r,t)=>i(r,"name",{value:t,configurable:!0});import{existsSync as a}from"node:fs";import{mkdir as m,readdir as f,rm as u}from"node:fs/promises";import{join as c}from"@visulima/path";import{toPath as n}from"@visulima/path/utils";import s from"./assertValidFileOrDirectoryPath-DgPIPmZT.mjs";var p=Object.defineProperty,d=e((r,t)=>p(r,"name",{value:t,configurable:!0}),"o");const x=d(async(r,t)=>{if(s(r),!a(r)){await m(r,{recursive:!0});return}for await(const o of await f(r))await u(c(n(r),o),{...t,force:!0,recursive:!0})},"emptyDir");export{x as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var s=Object.defineProperty;var t=(e,r)=>s(e,"name",{value:r,configurable:!0});const u=require("node:fs"),i=require("node:fs/promises"),o=require("@visulima/path"),c=require("@visulima/path/utils"),n=require("./assertValidFileOrDirectoryPath-HOUs73Jk.cjs");var f=Object.defineProperty,d=t((e,r)=>f(e,"name",{value:r,configurable:!0}),"o");const y=d(async(e,r)=>{if(n(e),!u.existsSync(e)){await i.mkdir(e,{recursive:!0});return}for await(const a of await i.readdir(e))await i.rm(o.join(c.toPath(e),a),{...r,force:!0,recursive:!0})},"emptyDir");module.exports=y;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var i=Object.defineProperty;var o=(r,e)=>i(r,"name",{value:e,configurable:!0});import{existsSync as c,mkdirSync as m,readdirSync as n,rmSync as f}from"node:fs";import{join as u}from"@visulima/path";import{toPath as a}from"@visulima/path/utils";import s from"./assertValidFileOrDirectoryPath-DgPIPmZT.mjs";var p=Object.defineProperty,y=o((r,e)=>p(r,"name",{value:e,configurable:!0}),"e");const j=y((r,e)=>{if(s(r),!c(r)){m(r,{recursive:!0});return}for(const t of n(r))f(u(a(r),t),{...e,force:!0,recursive:!0})},"emptyDirSync");export{j as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var c=Object.defineProperty;var i=(e,r)=>c(e,"name",{value:r,configurable:!0});const t=require("node:fs"),n=require("@visulima/path"),o=require("@visulima/path/utils"),s=require("./assertValidFileOrDirectoryPath-HOUs73Jk.cjs");var a=Object.defineProperty,y=i((e,r)=>a(e,"name",{value:r,configurable:!0}),"e");const f=y((e,r)=>{if(s(e),!t.existsSync(e)){t.mkdirSync(e,{recursive:!0});return}for(const u of t.readdirSync(e))t.rmSync(n.join(o.toPath(e),u),{...r,force:!0,recursive:!0})},"emptyDirSync");module.exports=f;
|
|
@@ -1 +0,0 @@
|
|
|
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 m=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{m as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var o=Object.defineProperty;var s=(e,r)=>o(e,"name",{value:r,configurable:!0});const t=require("node:fs/promises"),c=require("./assertValidFileOrDirectoryPath-HOUs73Jk.cjs"),a=require("./get-file-info-type-DDbpRlDl.cjs");var n=Object.defineProperty,u=s((e,r)=>n(e,"name",{value:r,configurable:!0}),"i");const d=u(async e=>{c(e);try{const r=await t.lstat(e);if(!r.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${a.g(r)}'`);return}catch(r){if(r.code!=="ENOENT")throw r}try{await t.mkdir(e,{recursive:!0})}catch(r){if(r.code!=="EEXIST")throw r;const i=await t.lstat(e);if(!i.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${a.g(i)}'`)}},"ensureDir");module.exports=d;
|
|
@@ -1 +0,0 @@
|
|
|
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 m=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{m as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var s=Object.defineProperty;var c=(e,r)=>s(e,"name",{value:r,configurable:!0});const t=require("node:fs"),n=require("./assertValidFileOrDirectoryPath-HOUs73Jk.cjs"),o=require("./get-file-info-type-DDbpRlDl.cjs");var a=Object.defineProperty,u=c((e,r)=>a(e,"name",{value:r,configurable:!0}),"o");const y=u(e=>{n(e);try{const r=t.lstatSync(e);if(!r.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${o.g(r)}'`);return}catch(r){if(r.code!=="ENOENT")throw r}try{t.mkdirSync(e,{recursive:!0})}catch(r){if(r.code!=="EEXIST")throw r;const i=t.lstatSync(e);if(!i.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${o.g(i)}'`)}},"ensureDirSync");module.exports=y;
|
|
@@ -1 +0,0 @@
|
|
|
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 s from"./ensureDir-BuIFF_6B.mjs";import{g as p}from"./get-file-info-type-CaWGXRjY.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 '${p(r)}'`)}catch(r){if(r.code==="ENOENT"){await s(f(m(e))),await a(e,new Uint8Array);return}throw r}},"ensureFile");export{F as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var a=Object.defineProperty;var i=(r,e)=>a(r,"name",{value:e,configurable:!0});const t=require("node:fs/promises"),s=require("@visulima/path"),n=require("@visulima/path/utils"),o=require("./assertValidFileOrDirectoryPath-HOUs73Jk.cjs"),u=require("./ensureDir-DtQzyA70.cjs"),c=require("./get-file-info-type-DDbpRlDl.cjs");var l=Object.defineProperty,w=i((r,e)=>l(r,"name",{value:e,configurable:!0}),"e");const f=w(async r=>{o(r);try{const e=await t.lstat(r);if(!e.isFile())throw new Error(`Ensure path exists, expected 'file', got '${c.g(e)}'`)}catch(e){if(e.code==="ENOENT"){await u(s.dirname(n.toPath(r))),await t.writeFile(r,new Uint8Array);return}throw e}},"ensureFile");module.exports=f;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var n=Object.defineProperty;var t=(r,e)=>n(r,"name",{value:e,configurable:!0});const i=require("node:fs"),s=require("@visulima/path"),o=require("@visulima/path/utils"),a=require("./assertValidFileOrDirectoryPath-HOUs73Jk.cjs"),c=require("./ensureDirSync-C8hIoS3o.cjs"),u=require("./get-file-info-type-DDbpRlDl.cjs");var l=Object.defineProperty,y=t((r,e)=>l(r,"name",{value:e,configurable:!0}),"e");const f=y(r=>{a(r);try{const e=i.lstatSync(r);if(!e.isFile())throw new Error(`Ensure path exists, expected 'file', got '${u.g(e)}'`)}catch(e){if(e.code==="ENOENT"){c(s.dirname(o.toPath(r))),i.writeFileSync(r,new Uint8Array);return}throw e}},"ensureFileSync");module.exports=f;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var o=Object.defineProperty;var t=(e,r)=>o(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 c from"./ensureDirSync-BuPHxdP4.mjs";import{g as p}from"./get-file-info-type-CaWGXRjY.mjs";var s=Object.defineProperty,l=t((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 '${p(r)}'`)}catch(r){if(r.code==="ENOENT"){c(a(m(e))),n(e,new Uint8Array);return}throw r}},"ensureFileSync");export{F as default};
|
|
@@ -1 +0,0 @@
|
|
|
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 u from"./ensureDir-BuIFF_6B.mjs";import{l as h}from"./is-stats-identical-CohsLtWy.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};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var o=Object.defineProperty;var l=(a,e)=>o(a,"name",{value:e,configurable:!0});const i=require("node:fs/promises"),s=require("@visulima/path"),n=require("@visulima/path/utils"),u=require("./assertValidFileOrDirectoryPath-HOUs73Jk.cjs"),h=require("./ensureDir-DtQzyA70.cjs"),m=require("./is-stats-identical-Bti7K05l.cjs");var p=Object.defineProperty,d=l((a,e)=>p(a,"name",{value:e,configurable:!0}),"m");const q=d(async(a,e)=>{u(a),u(e),a=s.toNamespacedPath(n.toPath(a)),e=s.toNamespacedPath(n.toPath(e));let t;try{t=await i.lstat(e)}catch{}let c;try{c=await i.lstat(a)}catch(r){throw r.message=r.message.replace("lstat","ensureLink"),r}t&&m.l(c,t)||(await h(s.dirname(e)),await i.link(a,e))},"ensureLink");module.exports=q;
|
|
@@ -1 +0,0 @@
|
|
|
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 h from"./ensureDirSync-BuPHxdP4.mjs";import{l as u}from"./is-stats-identical-CohsLtWy.mjs";var y=Object.defineProperty,d=m((t,e)=>y(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 o;try{o=n(t)}catch(r){throw r.message=r.message.replace("lstat","ensureLink"),r}a&&u(o,a)||(h(f(e)),p(t,e))},"ensureLinkSync");export{j as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var o=Object.defineProperty;var c=(t,e)=>o(t,"name",{value:e,configurable:!0});const s=require("node:fs"),i=require("@visulima/path"),l=require("@visulima/path/utils"),u=require("./assertValidFileOrDirectoryPath-HOUs73Jk.cjs"),h=require("./ensureDirSync-C8hIoS3o.cjs"),y=require("./is-stats-identical-Bti7K05l.cjs");var d=Object.defineProperty,m=c((t,e)=>d(t,"name",{value:e,configurable:!0}),"o");const p=m((t,e)=>{u(t),u(e),t=i.toNamespacedPath(l.toPath(t)),e=i.toNamespacedPath(l.toPath(e));let a;try{a=s.lstatSync(e)}catch{}let n;try{n=s.lstatSync(t)}catch(r){throw r.message=r.message.replace("lstat","ensureLink"),r}a&&y.l(n,a)||(h(i.dirname(e)),s.linkSync(t,e))},"ensureLinkSync");module.exports=p;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var P=Object.defineProperty;var c=(t,a)=>P(t,"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 E from"./ensureDir-BuIFF_6B.mjs";import{g as p}from"./get-file-info-type-CaWGXRjY.mjs";import{l as w}from"./is-stats-identical-CohsLtWy.mjs";import{o as L}from"./resolve-symlink-target-BofZSDIc.mjs";import y from"./AlreadyExistsError-CEu6_Tjb.mjs";var T=Object.defineProperty,$=c((t,a)=>T(t,"name",{value:a,configurable:!0}),"f");const j=process.platform==="win32"||/^(?:msys|cygwin)$/.test(process.env.OSTYPE),B=$(async(t,a,d)=>{l(t),l(a);const i=L(t,a);a=s(f(a));try{if((await n(a)).isSymbolicLink()&&w(await e(i),await e(a))){const[o,r]=await Promise.all([e(i),e(a)]);if(w(o,r))return}}catch{}const h=await n(i),u=p(h);await E(b(a));const g=d??(j?"junction":u==="dir"?"dir":"file");try{await S(s(f(i)),a,g)}catch(o){if(o.code!=="EEXIST")throw o;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!==i)throw new y("A symlink targeting to an undesired path already exists: "+a+" -> "+m)}},"ensureSymlink");export{B as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var g=Object.defineProperty;var c=(a,e)=>g(a,"name",{value:e,configurable:!0});const t=require("node:fs/promises"),i=require("@visulima/path"),l=require("@visulima/path/utils"),u=require("./assertValidFileOrDirectoryPath-HOUs73Jk.cjs"),q=require("./ensureDir-DtQzyA70.cjs"),y=require("./get-file-info-type-DDbpRlDl.cjs"),d=require("./is-stats-identical-Bti7K05l.cjs"),S=require("./resolve-symlink-target-zilkQ_AU.cjs"),w=require("./AlreadyExistsError-GC2XUgzJ.cjs");var k=Object.defineProperty,v=c((a,e)=>k(a,"name",{value:e,configurable:!0}),"f");const E=process.platform==="win32"||/^(?:msys|cygwin)$/.test(process.env.OSTYPE),b=v(async(a,e,h)=>{u(a),u(e);const r=S.o(a,e);e=i.toNamespacedPath(l.toPath(e));try{if((await t.lstat(e)).isSymbolicLink()&&d.l(await t.stat(r),await t.stat(e))){const[s,n]=await Promise.all([t.stat(r),t.stat(e)]);if(d.l(s,n))return}}catch{}const m=await t.lstat(r),p=y.g(m);await q(i.dirname(e));const f=h??(E?"junction":p==="dir"?"dir":"file");try{await t.symlink(i.toNamespacedPath(l.toPath(r)),e,f)}catch(s){if(s.code!=="EEXIST")throw s;const n=await t.lstat(e);if(!n.isSymbolicLink())throw new w("A "+y.g(n)+" already exists at the path: "+e);const P=await t.readlink(e),o=i.toNamespacedPath(i.resolve(P));if(o!==r)throw new w("A symlink targeting to an undesired path already exists: "+e+" -> "+o)}},"ensureSymlink");module.exports=b;
|
|
@@ -1 +0,0 @@
|
|
|
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 E from"./ensureDirSync-BuPHxdP4.mjs";import{g as p}from"./get-file-info-type-CaWGXRjY.mjs";import{l}from"./is-stats-identical-CohsLtWy.mjs";import{o as L}from"./resolve-symlink-target-BofZSDIc.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=L(o,r);r=a(f(r));try{if(s(r).isSymbolicLink()&&l(n(e),n(r))){const t=n(e),i=n(r);if(l(t,i))return}}catch{}const S=s(e),u=p(S);E(b(r));const w=h??(A?"junction":u==="dir"?"dir":"file");try{v(a(f(e)),r,w)}catch(t){if(t.code!=="EEXIST")throw t;const i=s(r);if(!i.isSymbolicLink())throw new d("A "+p(i)+" 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};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var q=Object.defineProperty;var o=(t,e)=>q(t,"name",{value:e,configurable:!0});const r=require("node:fs"),i=require("@visulima/path"),y=require("@visulima/path/utils"),l=require("./assertValidFileOrDirectoryPath-HOUs73Jk.cjs"),P=require("./ensureDirSync-C8hIoS3o.cjs"),u=require("./get-file-info-type-DDbpRlDl.cjs"),S=require("./is-stats-identical-Bti7K05l.cjs"),w=require("./resolve-symlink-target-zilkQ_AU.cjs"),d=require("./AlreadyExistsError-GC2XUgzJ.cjs");var k=Object.defineProperty,v=o((t,e)=>k(t,"name",{value:e,configurable:!0}),"f");const E=process.platform==="win32"||/^(?:msys|cygwin)$/.test(process.env.OSTYPE),b=v((t,e,h)=>{l(t),l(e);const s=w.o(t,e);e=i.toNamespacedPath(y.toPath(e));try{if(r.lstatSync(e).isSymbolicLink()&&S.l(r.statSync(s),r.statSync(e))){const n=r.statSync(s),a=r.statSync(e);if(S.l(n,a))return}}catch{}const m=r.lstatSync(s),f=u.g(m);P(i.dirname(e));const p=h??(E?"junction":f==="dir"?"dir":"file");try{r.symlinkSync(i.toNamespacedPath(y.toPath(s)),e,p)}catch(n){if(n.code!=="EEXIST")throw n;const a=r.lstatSync(e);if(!a.isSymbolicLink())throw new d("A "+u.g(a)+" already exists at the path: "+e);const g=r.readlinkSync(e),c=i.toNamespacedPath(i.resolve(g));if(c!==s)throw new d("A symlink targeting to an undesired path already exists: "+e+" -> "+c)}},"ensureSymlinkSync");module.exports=b;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var h=Object.defineProperty;var f=(t,r)=>h(t,"name",{value:r,configurable:!0});const l=require("node:fs/promises"),v=require("node:url"),s=require("@visulima/path"),u=require("@visulima/path/utils"),A=require("./F_OK-7T91O6Oz.cjs");var P=Object.defineProperty,y=f((t,r)=>P(t,"name",{value:r,configurable:!0}),"s");const q=y(async(t,r={})=>{if(typeof t!="string"&&!Array.isArray(t)&&typeof t!="function")throw new TypeError("The `name` argument must be of type `string` or `string[]`");const p=r.cwd?u.toPath(r.cwd):process.cwd();let o=s.resolve(p);const{root:i}=s.parse(o),w=u.toPath(r.stopAt??i),d=s.resolve(o,w),n=r.type??"file",m=y(async function(e){return typeof t=="function"?[await t(e)]:typeof t=="string"?[t]:Array.isArray(t)?t:[t]},"getMatchers");r.allowSymlinks===void 0&&(r.allowSymlinks=!0);const g=r.allowSymlinks?l.stat:l.lstat;for(;o&&o!==d&&o!==i;){for await(let e of await m(o)){if(e===A.FIND_UP_STOP)return;if(e===void 0)continue;Buffer.isBuffer(e)?e=e.toString():e instanceof URL&&(e=v.fileURLToPath(e));const a=s.isAbsolute(e)?e:s.resolve(o,e);try{const c=await g(a);if(n==="file"&&c.isFile()||n==="directory"&&c.isDirectory())return a}catch{}}o=s.dirname(o)}},"findUp");module.exports=q;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var g=Object.defineProperty;var c=(t,r)=>g(t,"name",{value:r,configurable:!0});import{stat as h,lstat as v}from"node:fs/promises";import{fileURLToPath as A}from"node:url";import{resolve as i,parse as P,isAbsolute as S,dirname as b}from"@visulima/path";import{toPath as l}from"@visulima/path/utils";import{FIND_UP_STOP as k}from"./F_OK-B71i3mUa.mjs";var T=Object.defineProperty,y=c((t,r)=>T(t,"name",{value:r,configurable:!0}),"s");const R=y(async(t,r={})=>{if(typeof t!="string"&&!Array.isArray(t)&&typeof t!="function")throw new TypeError("The `name` argument must be of type `string` or `string[]`");const m=r.cwd?l(r.cwd):process.cwd();let e=i(m);const{root:n}=P(e),p=l(r.stopAt??n),u=i(e,p),a=r.type??"file",w=y(async function(o){return typeof t=="function"?[await t(o)]:typeof t=="string"?[t]:Array.isArray(t)?t:[t]},"getMatchers");r.allowSymlinks===void 0&&(r.allowSymlinks=!0);const d=r.allowSymlinks?h:v;for(;e&&e!==u&&e!==n;){for await(let o of await w(e)){if(o===k)return;if(o===void 0)continue;Buffer.isBuffer(o)?o=o.toString():o instanceof URL&&(o=A(o));const s=S(o)?o:i(e,o);try{const f=await d(s);if(a==="file"&&f.isFile()||a==="directory"&&f.isDirectory())return s}catch{}}e=b(e)}},"findUp");export{R as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var w=Object.defineProperty;var a=(t,r)=>w(t,"name",{value:r,configurable:!0});import{statSync as S,lstatSync as h}from"node:fs";import{fileURLToPath as v}from"node:url";import{resolve as n,parse as A,isAbsolute as P,dirname as b}from"@visulima/path";import{toPath as l}from"@visulima/path/utils";import{FIND_UP_STOP as k}from"./F_OK-B71i3mUa.mjs";var T=Object.defineProperty,y=a((t,r)=>T(t,"name",{value:r,configurable:!0}),"o");const R=y((t,r={})=>{if(typeof t!="string"&&!Array.isArray(t)&&typeof t!="function")throw new TypeError("The `name` argument must be of type `string` or `string[]`");const m=r.cwd?l(r.cwd):process.cwd();let e=n(m);const{root:i}=A(e),p=l(r.stopAt??i),u=n(e,p),f=r.type??"file",d=y(function(o){return typeof t=="function"?[t(o)]:typeof t=="string"?[t]:Array.isArray(t)?t:[t]},"getMatchers");r.allowSymlinks===void 0&&(r.allowSymlinks=!0);const g=r.allowSymlinks?S:h;for(;e&&e!==u&&e!==i;){for(let o of d(e)){if(o===k)return;if(o===void 0)continue;Buffer.isBuffer(o)?o=o.toString():o instanceof URL&&(o=v(o));const s=P(o)?o:n(e,o);try{const c=g(s);if(f==="file"&&c.isFile()||f==="directory"&&c.isDirectory())return s}catch{}}e=b(e)}},"findUpSync");export{R as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var v=Object.defineProperty;var a=(e,r)=>v(e,"name",{value:r,configurable:!0});const l=require("node:fs"),w=require("node:url"),n=require("@visulima/path"),u=require("@visulima/path/utils"),S=require("./F_OK-7T91O6Oz.cjs");var A=Object.defineProperty,y=a((e,r)=>A(e,"name",{value:r,configurable:!0}),"o");const P=y((e,r={})=>{if(typeof e!="string"&&!Array.isArray(e)&&typeof e!="function")throw new TypeError("The `name` argument must be of type `string` or `string[]`");const p=r.cwd?u.toPath(r.cwd):process.cwd();let o=n.resolve(p);const{root:s}=n.parse(o),d=u.toPath(r.stopAt??s),g=n.resolve(o,d),i=r.type??"file",m=y(function(t){return typeof e=="function"?[e(t)]:typeof e=="string"?[e]:Array.isArray(e)?e:[e]},"getMatchers");r.allowSymlinks===void 0&&(r.allowSymlinks=!0);const h=r.allowSymlinks?l.statSync:l.lstatSync;for(;o&&o!==g&&o!==s;){for(let t of m(o)){if(t===S.FIND_UP_STOP)return;if(t===void 0)continue;Buffer.isBuffer(t)?t=t.toString():t instanceof URL&&(t=w.fileURLToPath(t));const c=n.isAbsolute(t)?t:n.resolve(o,t);try{const f=h(c);if(i==="file"&&f.isFile()||i==="directory"&&f.isDirectory())return c}catch{}}o=n.dirname(o)}},"findUpSync");module.exports=P;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var t=Object.defineProperty;var r=(e,i)=>t(e,"name",{value:i,configurable:!0});var n=Object.defineProperty,f=r((e,i)=>n(e,"name",{value:i,configurable:!0}),"i");const l=f(e=>{if(e.isFile())return"file";if(e.isDirectory())return"dir";if(e.isSymbolicLink())return"symlink"},"getFileInfoType");exports.g=l;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var K=Object.defineProperty;var i=(t,n)=>K(t,"name",{value:n,configurable:!0});var M=Object.defineProperty,u=i((t,n)=>M(t,"name",{value:n,configurable:!0}),"c");const S=/^(?:( )+|\t+)/,d="space",v="tab";function I(t,n){const e=new Map;let o=0,s,r;for(const a of t.split(/\n/g)){if(!a)continue;let l,f,g,y,c;const m=a.match(S);if(m===null)o=0,s="";else{if(l=m[0].length,f=m[1]?d:v,n&&f===d&&l===1)continue;f!==s&&(o=0),s=f,g=1,y=0;const p=l-o;if(o=l,p===0)g=0,y=1;else{const E=p>0?p:-p;r=b(f,E)}c=e.get(r),c=c===void 0?[1,0]:[c[0]+g,c[1]+y],e.set(r,c)}}return e}i(I,"I");u(I,"makeIndentsMap");function b(t,n){return(t===d?"s":"t")+String(n)}i(b,"k");u(b,"encodeIndentsKey");function h(t){const n=t[0]==="s"?d:v,e=Number(t.slice(1));return{type:n,amount:e}}i(h,"N");u(h,"decodeIndentsKey");function w(t){let n,e=0,o=0;for(const[s,[r,a]]of t)(r>e||r===e&&a>o)&&(e=r,o=a,n=s);return n}i(w,"C");u(w,"getMostUsedKey");function k(t,n){return(t===d?" ":" ").repeat(n)}i(k,"S");u(k,"makeIndentString");function x(t){if(typeof t!="string")throw new TypeError("Expected a string");let n=I(t,!0);n.size===0&&(n=I(t,!1));const e=w(n);let o,s=0,r="";return e!==void 0&&({type:o,amount:s}=h(e),r=k(o,s)),{amount:s,type:o,indent:r}}i(x,"w");u(x,"detectIndent");export{x as w};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var M=Object.defineProperty;var i=(t,n)=>M(t,"name",{value:n,configurable:!0});var S=Object.defineProperty,u=i((t,n)=>S(t,"name",{value:n,configurable:!0}),"c");const N=/^(?:( )+|\t+)/,d="space",v="tab";function I(t,n){const e=new Map;let o=0,s,r;for(const a of t.split(/\n/g)){if(!a)continue;let l,f,g,y,c;const m=a.match(N);if(m===null)o=0,s="";else{if(l=m[0].length,f=m[1]?d:v,n&&f===d&&l===1)continue;f!==s&&(o=0),s=f,g=1,y=0;const p=l-o;if(o=l,p===0)g=0,y=1;else{const K=p>0?p:-p;r=w(f,K)}c=e.get(r),c=c===void 0?[1,0]:[c[0]+g,c[1]+y],e.set(r,c)}}return e}i(I,"I");u(I,"makeIndentsMap");function w(t,n){return(t===d?"s":"t")+String(n)}i(w,"k");u(w,"encodeIndentsKey");function b(t){const n=t[0]==="s"?d:v,e=Number(t.slice(1));return{type:n,amount:e}}i(b,"N");u(b,"decodeIndentsKey");function h(t){let n,e=0,o=0;for(const[s,[r,a]]of t)(r>e||r===e&&a>o)&&(e=r,o=a,n=s);return n}i(h,"C");u(h,"getMostUsedKey");function k(t,n){return(t===d?" ":" ").repeat(n)}i(k,"S");u(k,"makeIndentString");function E(t){if(typeof t!="string")throw new TypeError("Expected a string");let n=I(t,!0);n.size===0&&(n=I(t,!1));const e=h(n);let o,s=0,r="";return e!==void 0&&({type:o,amount:s}=b(e),r=k(o,s)),{amount:s,type:o,indent:r}}i(E,"w");u(E,"detectIndent");exports.w=E;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var n=Object.defineProperty;var i=(t,e)=>n(t,"name",{value:e,configurable:!0});var a=Object.defineProperty,r=i((t,e)=>a(t,"name",{value:e,configurable:!0}),"d");const d=r((t,e)=>!!e.ino&&!!e.dev&&e.ino===t.ino&&e.dev===t.dev,"isStatsIdentical");exports.l=d;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var s=Object.defineProperty;var t=(e,r)=>s(e,"name",{value:r,configurable:!0});const a=require("node:fs/promises"),c=require("@visulima/path/utils"),u=require("./F_OK-7T91O6Oz.cjs"),n=require("./assertValidFileOrDirectoryPath-HOUs73Jk.cjs");var o=Object.defineProperty,l=t((e,r)=>o(e,"name",{value:r,configurable:!0}),"o");async function i(e,r=u.F_OK){n(e),e=c.toPath(e);try{return await a.access(e,r),!0}catch{return!1}}t(i,"m");l(i,"isAccessible");module.exports=i;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var a=Object.defineProperty;var e=(t,r)=>a(t,"name",{value:r,configurable:!0});import{access as o}from"node:fs/promises";import{toPath as c}from"@visulima/path/utils";import{F_OK as i}from"./F_OK-B71i3mUa.mjs";import m from"./assertValidFileOrDirectoryPath-DgPIPmZT.mjs";var f=Object.defineProperty,s=e((t,r)=>f(t,"name",{value:r,configurable:!0}),"o");async function n(t,r=i){m(t),t=c(t);try{return await o(t,r),!0}catch{return!1}}e(n,"m");s(n,"isAccessible");export{n as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var i=Object.defineProperty;var t=(e,r)=>i(e,"name",{value:r,configurable:!0});const s=require("node:fs"),u=require("@visulima/path/utils"),a=require("./F_OK-7T91O6Oz.cjs"),n=require("./assertValidFileOrDirectoryPath-HOUs73Jk.cjs");var o=Object.defineProperty,l=t((e,r)=>o(e,"name",{value:r,configurable:!0}),"o");function c(e,r=a.F_OK){n(e),e=u.toPath(e);try{return s.accessSync(e,r),!0}catch{return!1}}t(c,"m");l(c,"isAccessibleSync");module.exports=c;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var o=Object.defineProperty;var e=(r,t)=>o(r,"name",{value:t,configurable:!0});import{accessSync as a}from"node:fs";import{toPath as c}from"@visulima/path/utils";import{F_OK as m}from"./F_OK-B71i3mUa.mjs";import f from"./assertValidFileOrDirectoryPath-DgPIPmZT.mjs";var i=Object.defineProperty,n=e((r,t)=>i(r,"name",{value:t,configurable:!0}),"o");function s(r,t=m){f(r),r=c(r);try{return a(r,t),!0}catch{return!1}}e(s,"m");n(s,"isAccessibleSync");export{s as default};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
declare class JSONError extends Error {
|
|
2
|
-
#private;
|
|
3
|
-
fileName: string | undefined;
|
|
4
|
-
codeFrame: string | undefined;
|
|
5
|
-
readonly name = "JSONError";
|
|
6
|
-
constructor(message: string);
|
|
7
|
-
get message(): string;
|
|
8
|
-
set message(message: string);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export { JSONError as J };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
declare class JSONError extends Error {
|
|
2
|
-
#private;
|
|
3
|
-
fileName: string | undefined;
|
|
4
|
-
codeFrame: string | undefined;
|
|
5
|
-
readonly name = "JSONError";
|
|
6
|
-
constructor(message: string);
|
|
7
|
-
get message(): string;
|
|
8
|
-
set message(message: string);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export { JSONError as J };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var p=Object.defineProperty;var a=(r,e)=>p(r,"name",{value:e,configurable:!0});import{cwd as d}from"node:process";import{toPath as m}from"@visulima/path/utils";import{mkdir as h,rename as S,copyFile as D,unlink as $}from"node:fs/promises";import{dirname as i,resolve as n}from"@visulima/path";import E from"./isAccessible-CL4eE5VL.mjs";import{mkdirSync as b,renameSync as g,copyFileSync as x,unlinkSync as P}from"node:fs";import j from"./isAccessibleSync-_HU_ppdG.mjs";var k=Object.defineProperty,v=a((r,e)=>k(r,"name",{value:e,configurable:!0}),"o$2");class F extends Error{static{a(this,"a")}static{v(this,"SameDirectoryError")}constructor(e,o){super(`Source directory "${i(e)}" does not match destination directory "${i(o)}"`),this.name="SameDirectoryError"}}const l=v((r,e)=>{if(!r||!e)throw new Error("Source and destination paths must not be empty");if(i(r)!==i(e))throw new F(r,e)},"validateSameDirectory");var M=Object.defineProperty,O=a((r,e)=>M(r,"name",{value:e,configurable:!0}),"o$1");const u=O(async(r,e,{cwd:o,directoryMode:t,overwrite:w,validateDirectory:y})=>{if(o&&(r=n(o,r),e=n(o,e)),y&&l(r,e),!w&&await E(e))throw new Error(`The destination file exists: ${e}`);await h(i(e),{mode:t,recursive:!0});try{await S(r,e)}catch(c){if(c.code==="EXDEV")await D(r,e),await $(r);else throw c}},"internalMoveFile");var T=Object.defineProperty,V=a((r,e)=>T(r,"name",{value:e,configurable:!0}),"o");const f=V((r,e,{cwd:o,directoryMode:t,overwrite:w,validateDirectory:y})=>{if(o&&(r=n(o,r),e=n(o,e)),y&&l(r,e),!w&&j(e))throw new Error(`The destination file exists: ${e}`);b(i(e),{mode:t,recursive:!0});try{g(r,e)}catch(c){if(c.code==="EXDEV")x(r,e),P(r);else throw c}},"internalMoveFileSync");var X=Object.defineProperty,s=a((r,e)=>X(r,"name",{value:e,configurable:!0}),"i");const J=s(async(r,e,o={})=>{const t={overwrite:!0,validateDirectory:!1,...o,cwd:o.cwd?m(o.cwd):d()};await u(r,e,t)},"move"),K=s((r,e,o)=>{const t={overwrite:!0,validateDirectory:!1,...o};t.cwd=t.cwd?m(t.cwd):d(),f(r,e,t)},"moveSync"),L=s(async(r,e,o)=>{const t={overwrite:!0,...o,validateDirectory:!0};t.cwd=t.cwd?m(t.cwd):d(),await u(r,e,t)},"rename"),N=s((r,e,o)=>{const t={overwrite:!0,...o,validateDirectory:!0};t.cwd=t.cwd?m(t.cwd):d(),f(r,e,t)},"renameSync");export{J as move,K as moveSync,L as rename,N as renameSync};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var S=Object.defineProperty;var a=(r,e)=>S(r,"name",{value:e,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("node:process"),u=require("@visulima/path/utils"),n=require("node:fs/promises"),i=require("@visulima/path"),p=require("./isAccessible-BQZd1_xn.cjs"),d=require("node:fs"),b=require("./isAccessibleSync-BP5N8k_-.cjs");var D=Object.defineProperty,m=a((r,e)=>D(r,"name",{value:e,configurable:!0}),"o$2");class E extends Error{static{a(this,"a")}static{m(this,"SameDirectoryError")}constructor(e,o){super(`Source directory "${i.dirname(e)}" does not match destination directory "${i.dirname(o)}"`),this.name="SameDirectoryError"}}const y=m((r,e)=>{if(!r||!e)throw new Error("Source and destination paths must not be empty");if(i.dirname(r)!==i.dirname(e))throw new E(r,e)},"validateSameDirectory");var P=Object.defineProperty,$=a((r,e)=>P(r,"name",{value:e,configurable:!0}),"o$1");const f=$(async(r,e,{cwd:o,directoryMode:t,overwrite:v,validateDirectory:w})=>{if(o&&(r=i.resolve(o,r),e=i.resolve(o,e)),w&&y(r,e),!v&&await p(e))throw new Error(`The destination file exists: ${e}`);await n.mkdir(i.dirname(e),{mode:t,recursive:!0});try{await n.rename(r,e)}catch(c){if(c.code==="EXDEV")await n.copyFile(r,e),await n.unlink(r);else throw c}},"internalMoveFile");var g=Object.defineProperty,q=a((r,e)=>g(r,"name",{value:e,configurable:!0}),"o");const h=q((r,e,{cwd:o,directoryMode:t,overwrite:v,validateDirectory:w})=>{if(o&&(r=i.resolve(o,r),e=i.resolve(o,e)),w&&y(r,e),!v&&b(e))throw new Error(`The destination file exists: ${e}`);d.mkdirSync(i.dirname(e),{mode:t,recursive:!0});try{d.renameSync(r,e)}catch(c){if(c.code==="EXDEV")d.copyFileSync(r,e),d.unlinkSync(r);else throw c}},"internalMoveFileSync");var M=Object.defineProperty,l=a((r,e)=>M(r,"name",{value:e,configurable:!0}),"i");const j=l(async(r,e,o={})=>{const t={overwrite:!0,validateDirectory:!1,...o,cwd:o.cwd?u.toPath(o.cwd):s.cwd()};await f(r,e,t)},"move"),O=l((r,e,o)=>{const t={overwrite:!0,validateDirectory:!1,...o};t.cwd=t.cwd?u.toPath(t.cwd):s.cwd(),h(r,e,t)},"moveSync"),k=l(async(r,e,o)=>{const t={overwrite:!0,...o,validateDirectory:!0};t.cwd=t.cwd?u.toPath(t.cwd):s.cwd(),await f(r,e,t)},"rename"),x=l((r,e,o)=>{const t={overwrite:!0,...o,validateDirectory:!0};t.cwd=t.cwd?u.toPath(t.cwd):s.cwd(),h(r,e,t)},"renameSync");exports.move=j;exports.moveSync=O;exports.rename=k;exports.renameSync=x;
|