@visulima/fs 2.0.8 → 2.1.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 +14 -0
- package/dist/chunk-BZXQ545V.cjs +12 -0
- package/dist/chunk-BZXQ545V.cjs.map +1 -0
- package/dist/{chunk-6XPCNSVG.js → chunk-LH4ACTAD.js} +1 -1
- package/dist/{chunk-6XPCNSVG.js.map → chunk-LH4ACTAD.js.map} +1 -1
- package/dist/{chunk-MWQH2OUL.cjs → chunk-OC6EOVBX.cjs} +1 -1
- package/dist/{chunk-MWQH2OUL.cjs.map → chunk-OC6EOVBX.cjs.map} +1 -1
- package/dist/chunk-P3KZLWQC.js +5 -0
- package/dist/chunk-P3KZLWQC.js.map +1 -0
- package/dist/error.cjs +20 -8
- package/dist/error.cjs.map +1 -1
- package/dist/error.js +1 -5
- package/dist/error.js.map +1 -1
- package/dist/index.cjs +51 -49
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -2
- package/dist/index.d.ts +6 -2
- package/dist/index.js +13 -13
- package/dist/index.js.map +1 -1
- package/dist/utils.cjs +5 -5
- package/dist/utils.js +1 -1
- package/package.json +7 -7
- package/dist/chunk-JSJNX53G.cjs +0 -8
- package/dist/chunk-JSJNX53G.cjs.map +0 -1
- package/dist/chunk-X5PFFPHW.js +0 -5
- package/dist/chunk-X5PFFPHW.js.map +0 -1
package/dist/chunk-JSJNX53G.cjs
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var e=class extends Error{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")}},s=e;var t=class extends Error{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")}},u=t;
|
|
4
|
-
|
|
5
|
-
exports.a = s;
|
|
6
|
-
exports.b = u;
|
|
7
|
-
//# sourceMappingURL=out.js.map
|
|
8
|
-
//# sourceMappingURL=chunk-JSJNX53G.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/error/walk-error.ts","../src/error/permission-error.ts"],"names":["WalkError","cause","root","_name","walk_error_default","PermissionError","message","permission_error_default"],"mappings":"AAMA,IAAMA,EAAN,cAAwB,KAAM,CAEnB,KAGA,YAAYC,EAAgBC,EAAc,CAE7C,MAAM,GAAGD,aAAiB,MAAQA,EAAM,QAAUA,CAAK,cAAcC,CAAI,GAAG,EAE5E,KAAK,MAAQD,EACb,KAAK,KAAOC,CAChB,CAGA,IAAoB,MAAe,CAC/B,MAAO,WACX,CAGA,IAAoB,KAAKC,EAAO,CAC5B,MAAM,IAAI,MAAM,oCAAoC,CACxD,CACJ,EAEOC,EAAQJ,EC3Bf,IAAMK,EAAN,cAA8B,KAAM,CAKzB,YAAYC,EAAiB,CAChC,MAAM,mCAAmCA,CAAO,EAAE,CACtD,CAGA,IAAW,MAAe,CACtB,MAAO,OACX,CAGA,IAAW,KAAKH,EAAO,CACnB,MAAM,IAAI,MAAM,6BAA6B,CACjD,CAGA,IAAoB,MAAe,CAC/B,MAAO,iBACX,CAGA,IAAoB,KAAKA,EAAO,CAC5B,MAAM,IAAI,MAAM,0CAA0C,CAC9D,CACJ,EAEOI,EAAQF","sourcesContent":["// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.\n// Documentation and interface for walk were adapted from Go\n// https://golang.org/pkg/path/filepath/#Walk\n// Copyright 2009 The Go Authors. All rights reserved. BSD license.\n\n/** Error thrown in {@linkcode walk} or {@linkcode walkSync} during iteration. */\nclass WalkError extends Error {\n /** File path of the root that's being walked. */\n public root: string;\n\n /** Constructs a new instance. */\n public constructor(cause: unknown, root: string) {\n // eslint-disable-next-line @typescript-eslint/restrict-template-expressions\n super(`${cause instanceof Error ? cause.message : cause} for path \"${root}\"`);\n\n this.cause = cause;\n this.root = root;\n }\n\n // eslint-disable-next-line class-methods-use-this,@typescript-eslint/class-literal-property-style\n public override get name(): string {\n return \"WalkError\";\n }\n\n // eslint-disable-next-line class-methods-use-this,@typescript-eslint/explicit-module-boundary-types\n public override set name(_name) {\n throw new Error(\"Cannot overwrite name of WalkError\");\n }\n}\n\nexport default WalkError;\n","/**\n * Error thrown when an operation is not permitted.\n */\nclass PermissionError extends Error {\n /**\n * Creates a new instance.\n * @param {string} message The error message.\n */\n public constructor(message: string) {\n super(`EPERM: Operation not permitted, ${message}`);\n }\n\n // eslint-disable-next-line class-methods-use-this,@typescript-eslint/class-literal-property-style\n public get code(): string {\n return \"EPERM\";\n }\n\n // eslint-disable-next-line class-methods-use-this,@typescript-eslint/explicit-module-boundary-types\n public set code(_name) {\n throw new Error(\"Cannot overwrite code EPERM\");\n }\n\n // eslint-disable-next-line class-methods-use-this,@typescript-eslint/class-literal-property-style\n public override get name(): string {\n return \"PermissionError\";\n }\n\n // eslint-disable-next-line class-methods-use-this,@typescript-eslint/explicit-module-boundary-types\n public override set name(_name) {\n throw new Error(\"Cannot overwrite name of PermissionError\");\n }\n}\n\nexport default PermissionError;\n"]}
|
package/dist/chunk-X5PFFPHW.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
var e=class extends Error{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")}},a=e;var t=class extends Error{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")}},p=t;
|
|
2
|
-
|
|
3
|
-
export { a, p as b };
|
|
4
|
-
//# sourceMappingURL=out.js.map
|
|
5
|
-
//# sourceMappingURL=chunk-X5PFFPHW.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/error/walk-error.ts","../src/error/permission-error.ts"],"names":["WalkError","cause","root","_name","walk_error_default","PermissionError","message","permission_error_default"],"mappings":"AAMA,IAAMA,EAAN,cAAwB,KAAM,CAEnB,KAGA,YAAYC,EAAgBC,EAAc,CAE7C,MAAM,GAAGD,aAAiB,MAAQA,EAAM,QAAUA,CAAK,cAAcC,CAAI,GAAG,EAE5E,KAAK,MAAQD,EACb,KAAK,KAAOC,CAChB,CAGA,IAAoB,MAAe,CAC/B,MAAO,WACX,CAGA,IAAoB,KAAKC,EAAO,CAC5B,MAAM,IAAI,MAAM,oCAAoC,CACxD,CACJ,EAEOC,EAAQJ,EC3Bf,IAAMK,EAAN,cAA8B,KAAM,CAKzB,YAAYC,EAAiB,CAChC,MAAM,mCAAmCA,CAAO,EAAE,CACtD,CAGA,IAAW,MAAe,CACtB,MAAO,OACX,CAGA,IAAW,KAAKH,EAAO,CACnB,MAAM,IAAI,MAAM,6BAA6B,CACjD,CAGA,IAAoB,MAAe,CAC/B,MAAO,iBACX,CAGA,IAAoB,KAAKA,EAAO,CAC5B,MAAM,IAAI,MAAM,0CAA0C,CAC9D,CACJ,EAEOI,EAAQF","sourcesContent":["// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.\n// Documentation and interface for walk were adapted from Go\n// https://golang.org/pkg/path/filepath/#Walk\n// Copyright 2009 The Go Authors. All rights reserved. BSD license.\n\n/** Error thrown in {@linkcode walk} or {@linkcode walkSync} during iteration. */\nclass WalkError extends Error {\n /** File path of the root that's being walked. */\n public root: string;\n\n /** Constructs a new instance. */\n public constructor(cause: unknown, root: string) {\n // eslint-disable-next-line @typescript-eslint/restrict-template-expressions\n super(`${cause instanceof Error ? cause.message : cause} for path \"${root}\"`);\n\n this.cause = cause;\n this.root = root;\n }\n\n // eslint-disable-next-line class-methods-use-this,@typescript-eslint/class-literal-property-style\n public override get name(): string {\n return \"WalkError\";\n }\n\n // eslint-disable-next-line class-methods-use-this,@typescript-eslint/explicit-module-boundary-types\n public override set name(_name) {\n throw new Error(\"Cannot overwrite name of WalkError\");\n }\n}\n\nexport default WalkError;\n","/**\n * Error thrown when an operation is not permitted.\n */\nclass PermissionError extends Error {\n /**\n * Creates a new instance.\n * @param {string} message The error message.\n */\n public constructor(message: string) {\n super(`EPERM: Operation not permitted, ${message}`);\n }\n\n // eslint-disable-next-line class-methods-use-this,@typescript-eslint/class-literal-property-style\n public get code(): string {\n return \"EPERM\";\n }\n\n // eslint-disable-next-line class-methods-use-this,@typescript-eslint/explicit-module-boundary-types\n public set code(_name) {\n throw new Error(\"Cannot overwrite code EPERM\");\n }\n\n // eslint-disable-next-line class-methods-use-this,@typescript-eslint/class-literal-property-style\n public override get name(): string {\n return \"PermissionError\";\n }\n\n // eslint-disable-next-line class-methods-use-this,@typescript-eslint/explicit-module-boundary-types\n public override set name(_name) {\n throw new Error(\"Cannot overwrite name of PermissionError\");\n }\n}\n\nexport default PermissionError;\n"]}
|