@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
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var w=Object.defineProperty;var m=(e,s)=>w(e,"name",{value:s,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("node:fs/promises"),c=require("@visulima/path"),D=require("@visulima/path/utils"),b=require("./WalkError-DzbUzZjo.cjs"),F=require("./assertValidFileOrDirectoryPath-BT5xYqBy.cjs"),a=require("./walk-include-CFIYniQi.cjs");var v=Object.defineProperty,h=m((e,s)=>v(e,"name",{value:s,configurable:!0}),"f");const L=h(async e=>{const s=c.normalize(e),t=c.basename(s),n=await u.stat(s);return{isDirectory:n.isDirectory,isFile:n.isFile,isSymbolicLink:n.isSymbolicLink,name:t,path:s}},"_createWalkEntry");async function*d(e,{extensions:s,followSymlinks:t=!1,includeDirs:n=!0,includeFiles:f=!0,includeSymlinks:k=!0,match:p,maxDepth:y=Number.POSITIVE_INFINITY,skip:S}={}){if(F.s(e),y<0)return;const l=p?p.map(i=>typeof i=="string"?a.c(i):i):void 0,o=S?S.map(i=>typeof i=="string"?a.c(i):i):void 0;if(e=c.resolve(D.toPath(e)),n&&a.a(e,s,l,o)&&(yield await L(e)),!(y<1||!a.a(e,void 0,void 0,o)))try{for await(const i of await u.readdir(e,{withFileTypes:!0})){let r=c.join(e,i.name);if(i.isSymbolicLink())if(t)r=await u.realpath(r);else if(k&&a.a(r,s,l,o))yield{isDirectory:i.isDirectory,isFile:i.isFile,isSymbolicLink:i.isSymbolicLink,name:i.name,path:r};else continue;i.isSymbolicLink()||i.isDirectory()?yield*d(r,{extensions:s,followSymlinks:t,includeDirs:n,includeFiles:f,includeSymlinks:k,match:l,maxDepth:y-1,skip:o}):i.isFile()&&f&&a.a(r,s,l,o)&&(yield{isDirectory:i.isDirectory,isFile:i.isFile,isSymbolicLink:i.isSymbolicLink,name:i.name,path:r})}}catch(i){throw i instanceof b.i?i:new b.i(i,e)}}m(d,"d");h(d,"walk");exports.d=d;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var D=Object.defineProperty;var y=(e,n)=>D(e,"name",{value:n,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("node:fs"),t=require("@visulima/path"),F=require("@visulima/path/utils"),p=require("./WalkError-DzbUzZjo.cjs"),v=require("./assertValidFileOrDirectoryPath-BT5xYqBy.cjs"),o=require("./walk-include-CFIYniQi.cjs");var L=Object.defineProperty,b=y((e,n)=>L(e,"name",{value:n,configurable:!0}),"m");const w=b(e=>{const n=t.normalize(e),s=m.statSync(n);return{isDirectory:s.isDirectory,isFile:s.isFile,isSymbolicLink:s.isSymbolicLink,name:t.basename(n),path:n}},"_createWalkEntry");function*d(e,{extensions:n,followSymlinks:s=!1,includeDirs:u=!0,includeFiles:S=!0,includeSymlinks:f=!0,match:k,maxDepth:a=Number.POSITIVE_INFINITY,skip:h}={}){if(v.s(e),a<0)return;const c=k?k.map(i=>typeof i=="string"?o.c(i):i):void 0,l=h?h.map(i=>typeof i=="string"?o.c(i):i):void 0;if(e=t.resolve(F.toPath(e)),u&&o.a(e,n,c,l)&&(yield w(e)),!(a<1||!o.a(e,void 0,void 0,l)))try{for(const i of m.readdirSync(e,{withFileTypes:!0})){let r=t.join(e,i.name);if(i.isSymbolicLink())if(s)r=m.realpathSync(r);else if(f&&o.a(r,n,c,l))yield{isDirectory:i.isDirectory,isFile:i.isFile,isSymbolicLink:i.isSymbolicLink,name:i.name,path:t.normalize(r)};else continue;i.isSymbolicLink()||i.isDirectory()?yield*d(r,{extensions:n,followSymlinks:s,includeDirs:u,includeFiles:S,includeSymlinks:f,match:c,maxDepth:a-1,skip:l}):i.isFile()&&S&&o.a(r,n,c,l)&&(yield{isDirectory:i.isDirectory,isFile:i.isFile,isSymbolicLink:i.isSymbolicLink,name:i.name,path:t.normalize(r)})}}catch(i){throw i instanceof p.i?i:new p.i(i,e)}}y(d,"h");b(d,"walkSync");exports.h=d;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var D=Object.defineProperty;var c=(e,o)=>D(e,"name",{value:o,configurable:!0});import{readdirSync as F,realpathSync as v,statSync as L}from"node:fs";import{resolve as w,join as x,normalize as a,basename as I}from"@visulima/path";import{toPath as g}from"@visulima/path/utils";import{i as k}from"./WalkError-CWKlhCA6.mjs";import{s as N}from"./assertValidFileOrDirectoryPath-CQmKNf2h.mjs";import{c as h,a as l}from"./walk-include-B-MbUqMt.mjs";var O=Object.defineProperty,b=c((e,o)=>O(e,"name",{value:o,configurable:!0}),"m");const P=b(e=>{const o=a(e),r=L(o);return{isDirectory:r.isDirectory,isFile:r.isFile,isSymbolicLink:r.isSymbolicLink,name:I(o),path:o}},"_createWalkEntry");function*u(e,{extensions:o,followSymlinks:r=!1,includeDirs:y=!0,includeFiles:f=!0,includeSymlinks:p=!0,match:d,maxDepth:m=Number.POSITIVE_INFINITY,skip:S}={}){if(N(e),m<0)return;const t=d?d.map(i=>typeof i=="string"?h(i):i):void 0,s=S?S.map(i=>typeof i=="string"?h(i):i):void 0;if(e=w(g(e)),y&&l(e,o,t,s)&&(yield P(e)),!(m<1||!l(e,void 0,void 0,s)))try{for(const i of F(e,{withFileTypes:!0})){let n=x(e,i.name);if(i.isSymbolicLink())if(r)n=v(n);else if(p&&l(n,o,t,s))yield{isDirectory:i.isDirectory,isFile:i.isFile,isSymbolicLink:i.isSymbolicLink,name:i.name,path:a(n)};else continue;i.isSymbolicLink()||i.isDirectory()?yield*u(n,{extensions:o,followSymlinks:r,includeDirs:y,includeFiles:f,includeSymlinks:p,match:t,maxDepth:m-1,skip:s}):i.isFile()&&f&&l(n,o,t,s)&&(yield{isDirectory:i.isDirectory,isFile:i.isFile,isSymbolicLink:i.isSymbolicLink,name:i.name,path:a(n)})}}catch(i){throw i instanceof k?i:new k(i,e)}}c(u,"h");b(u,"walkSync");export{u as h};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var f=Object.defineProperty;var c=(i,a)=>f(i,"name",{value:a,configurable:!0});import{mkdir as s,writeFile as p,stat as l,rename as w,chown as g,chmod as h,unlink as u}from"node:fs/promises";import{dirname as v}from"@visulima/path";import{toPath as $}from"@visulima/path/utils";import{F as d}from"./F_OK-BzMbdSs5.mjs";import{m as e}from"./isAccessible-BbChaABn.mjs";import{a as y}from"./assertValidFileContents-BTXEHdLD.mjs";import{s as F}from"./assertValidFileOrDirectoryPath-CQmKNf2h.mjs";import{a as k}from"./to-uint-8-array-DwgaTasY.mjs";var b=Object.defineProperty,O=c((i,a)=>b(i,"name",{value:a,configurable:!0}),"d");const B=O(async(i,a,t)=>{t={encoding:"utf8",flag:"w",overwrite:!0,recursive:!0,...t},F(i),y(a),i=$(i);try{const o=await e(i,d);if(!o&&t.recursive){const n=v(i);await e(n,d)||await s(n,{recursive:!0})}let m;await p(`${i}.tmp`,k(a),{encoding:t.encoding,flag:t.flag}),o&&!t.overwrite&&(m=await l(i),t.chown===void 0&&(t.chown={gid:m.gid,uid:m.uid}),await w(i,`${i}.bak`));const r=`${i}.tmp`;if(t.chown)try{await g(r,t.chown.uid,t.chown.gid)}catch{}await h(r,m&&!t.mode?m.mode:t.mode??438),await w(r,i)}catch(o){throw new Error(`Failed to write file at: ${i} - ${o.message}`,{cause:o})}finally{await e(`${i}.tmp`)&&await u(`${i}.tmp`)}},"writeFile");export{B as k};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var u=Object.defineProperty;var w=(i,a)=>u(i,"name",{value:a,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("node:fs/promises"),l=require("@visulima/path"),m=require("@visulima/path/utils"),d=require("./F_OK-B8R_JA-Q.cjs"),c=require("./isAccessible-DxFHaxVe.cjs"),g=require("./assertValidFileContents-vTNSeAqn.cjs"),h=require("./assertValidFileOrDirectoryPath-BT5xYqBy.cjs"),f=require("./to-uint-8-array-2-3EvGd7.cjs");var v=Object.defineProperty,y=w((i,a)=>v(i,"name",{value:a,configurable:!0}),"d");const p=y(async(i,a,t)=>{t={encoding:"utf8",flag:"w",overwrite:!0,recursive:!0,...t},h.s(i),g.a(a),i=m.toPath(i);try{const r=await c.m(i,d.F_OK);if(!r&&t.recursive){const s=l.dirname(i);await c.m(s,d.F_OK)||await e.mkdir(s,{recursive:!0})}let o;await e.writeFile(`${i}.tmp`,f.a(a),{encoding:t.encoding,flag:t.flag}),r&&!t.overwrite&&(o=await e.stat(i),t.chown===void 0&&(t.chown={gid:o.gid,uid:o.uid}),await e.rename(i,`${i}.bak`));const n=`${i}.tmp`;if(t.chown)try{await e.chown(n,t.chown.uid,t.chown.gid)}catch{}await e.chmod(n,o&&!t.mode?o.mode:t.mode??438),await e.rename(n,i)}catch(r){throw new Error(`Failed to write file at: ${i} - ${r.message}`,{cause:r})}finally{await c.m(`${i}.tmp`)&&await e.unlink(`${i}.tmp`)}},"writeFile");exports.k=p;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var s=Object.defineProperty;var a=(o,t)=>s(o,"name",{value:t,configurable:!0});import{mkdirSync as p,writeFileSync as w,statSync as l,renameSync as f,chownSync as y,chmodSync as g,unlinkSync as h}from"node:fs";import{dirname as u}from"@visulima/path";import{toPath as $}from"@visulima/path/utils";import{F as d}from"./F_OK-BzMbdSs5.mjs";import{m as r}from"./isAccessibleSync-C3YjvkTe.mjs";import{a as v}from"./assertValidFileContents-BTXEHdLD.mjs";import{s as S}from"./assertValidFileOrDirectoryPath-CQmKNf2h.mjs";import{a as F}from"./to-uint-8-array-DwgaTasY.mjs";var k=Object.defineProperty,b=a((o,t)=>k(o,"name",{value:t,configurable:!0}),"f");const A=b((o,t,i)=>{i={encoding:"utf8",flag:"w",overwrite:!0,recursive:!0,...i},S(o),v(t),o=$(o);try{const n=r(o,d);if(!n&&i.recursive){const e=u(o);r(e,d)||p(e,{recursive:!0})}let c;w(`${o}.tmp`,F(t),{encoding:i.encoding,flag:i.flag}),n&&!i.overwrite&&(c=l(o),i.chown===void 0&&(i.chown={gid:c.gid,uid:c.uid}),f(o,`${o}.bak`));const m=`${o}.tmp`;if(i.chown)try{y(m,i.chown.uid,i.chown.gid)}catch{}g(m,c&&!i.mode?c.mode:i.mode??438),f(m,o)}catch(n){throw new Error(`Failed to write file at: ${o} - ${n.message}`,{cause:n})}finally{r(`${o}.tmp`)&&h(`${o}.tmp`)}},"writeFileSync");export{A as k};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var l=Object.defineProperty;var d=(e,n)=>l(e,"name",{value:n,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("node:fs"),m=require("@visulima/path"),y=require("@visulima/path/utils"),u=require("./F_OK-B8R_JA-Q.cjs"),s=require("./isAccessibleSync-DtOcefUR.cjs"),w=require("./assertValidFileContents-vTNSeAqn.cjs"),f=require("./assertValidFileOrDirectoryPath-BT5xYqBy.cjs"),g=require("./to-uint-8-array-2-3EvGd7.cjs");var h=Object.defineProperty,S=d((e,n)=>h(e,"name",{value:n,configurable:!0}),"f");const v=S((e,n,t)=>{t={encoding:"utf8",flag:"w",overwrite:!0,recursive:!0,...t},f.s(e),w.a(n),e=y.toPath(e);try{const c=s.m(e,u.F_OK);if(!c&&t.recursive){const a=m.dirname(e);s.m(a,u.F_OK)||i.mkdirSync(a,{recursive:!0})}let o;i.writeFileSync(`${e}.tmp`,g.a(n),{encoding:t.encoding,flag:t.flag}),c&&!t.overwrite&&(o=i.statSync(e),t.chown===void 0&&(t.chown={gid:o.gid,uid:o.uid}),i.renameSync(e,`${e}.bak`));const r=`${e}.tmp`;if(t.chown)try{i.chownSync(r,t.chown.uid,t.chown.gid)}catch{}i.chmodSync(r,o&&!t.mode?o.mode:t.mode??438),i.renameSync(r,e)}catch(c){throw new Error(`Failed to write file at: ${e} - ${c.message}`,{cause:c})}finally{s.m(`${e}.tmp`)&&i.unlinkSync(`${e}.tmp`)}},"writeFileSync");exports.k=v;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
var w=Object.defineProperty;var o=(t,e)=>w(t,"name",{value:e,configurable:!0});import{readFile as y}from"node:fs/promises";import{d as u}from"./index-VcQXVcaq.mjs";import{R as O}from"./F_OK-BzMbdSs5.mjs";import{m as g}from"./isAccessible-BbChaABn.mjs";import{k as h}from"./writeFile-BkHnZTWA.mjs";var v=Object.defineProperty,N=o((t,e)=>v(t,"name",{value:e,configurable:!0}),"r");const j=N(async(t,e,a={})=>{const{detectIndent:c,indent:f,replacer:d,stringify:m=JSON.stringify,...s}={indent:" ",...a};let r=f,i=`
|
|
2
|
-
`;if(await g(t,O))try{const n=await y(t,"utf8");if(c){const{indent:l}=u(n);r=l}i=n.endsWith(`
|
|
3
|
-
`)?`
|
|
4
|
-
`:""}catch(n){if(n.code!=="ENOENT")throw n}const p=m(e,d,r);await h(t,`${p}${i}`,s)},"writeJson");export{j as u};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use strict";var y=Object.defineProperty;var c=(e,t)=>y(e,"name",{value:t,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O=require("node:fs/promises"),b=require("./index-Cms6lU4T.cjs"),g=require("./F_OK-B8R_JA-Q.cjs"),m=require("./isAccessible-DxFHaxVe.cjs"),p=require("./writeFile-COembSIp.cjs");var q=Object.defineProperty,v=c((e,t)=>q(e,"name",{value:t,configurable:!0}),"r");const h=v(async(e,t,s={})=>{const{detectIndent:o,indent:a,replacer:d,stringify:u=JSON.stringify,...l}={indent:" ",...s};let i=a,r=`
|
|
2
|
-
`;if(await m.m(e,g.R_OK))try{const n=await O.readFile(e,"utf8");if(o){const{indent:w}=b.detectIndent(n);i=w}r=n.endsWith(`
|
|
3
|
-
`)?`
|
|
4
|
-
`:""}catch(n){if(n.code!=="ENOENT")throw n}const f=u(t,d,i);await p.k(e,`${f}${r}`,l)},"writeJson");exports.u=h;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
var l=Object.defineProperty;var i=(t,e)=>l(t,"name",{value:e,configurable:!0});import{readFileSync as O}from"node:fs";import{d as N}from"./index-VcQXVcaq.mjs";import{R as g}from"./F_OK-BzMbdSs5.mjs";import{m as h}from"./isAccessibleSync-C3YjvkTe.mjs";import{k as u}from"./writeFileSync-6h8CQ9EO.mjs";var v=Object.defineProperty,S=i((t,e)=>v(t,"name",{value:e,configurable:!0}),"r");const R=S((t,e,c={})=>{const{detectIndent:f,indent:d,replacer:m,stringify:s=JSON.stringify,...a}={indent:" ",...c};let n=d,o=`
|
|
2
|
-
`;if(h(t,g))try{const r=O(t,"utf8");if(f){const{indent:y}=N(r);n=y}o=r.endsWith(`
|
|
3
|
-
`)?`
|
|
4
|
-
`:""}catch(r){if(r.code!=="ENOENT")throw r}const p=s(e,m,n);u(t,`${p}${o}`,a)},"writeJsonSync");export{R as N};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use strict";var O=Object.defineProperty;var c=(e,t)=>O(e,"name",{value:t,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("node:fs"),b=require("./index-Cms6lU4T.cjs"),g=require("./F_OK-B8R_JA-Q.cjs"),q=require("./isAccessibleSync-DtOcefUR.cjs"),N=require("./writeFileSync-C3D5fvZf.cjs");var m=Object.defineProperty,p=c((e,t)=>m(e,"name",{value:t,configurable:!0}),"r");const v=p((e,t,o={})=>{const{detectIndent:s,indent:d,replacer:f,stringify:l=JSON.stringify,...u}={indent:" ",...o};let r=d,i=`
|
|
2
|
-
`;if(q.m(e,g.R_OK))try{const n=S.readFileSync(e,"utf8");if(s){const{indent:a}=b.detectIndent(n);r=a}i=n.endsWith(`
|
|
3
|
-
`)?`
|
|
4
|
-
`:""}catch(n){if(n.code!=="ENOENT")throw n}const y=l(t,f,r);N.k(e,`${y}${i}`,u)},"writeJsonSync");exports.N=v;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var i=Object.defineProperty;var o=(a,r)=>i(a,"name",{value:r,configurable:!0});import{stringify as t}from"yaml";import{k as m}from"./writeFile-BkHnZTWA.mjs";var c=Object.defineProperty,y=o((a,r)=>c(a,"name",{value:r,configurable:!0}),"n");async function p(a,r,n,e){const f=typeof n=="function"||Array.isArray(n)?t(r,n,e):t(r,n);await m(a,f)}o(p,"m");y(p,"writeYaml");export{p as m};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var y=Object.defineProperty;var n=(r,e)=>y(r,"name",{value:e,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("yaml"),s=require("./writeFile-COembSIp.cjs");var u=Object.defineProperty,f=n((r,e)=>u(r,"name",{value:e,configurable:!0}),"n");async function i(r,e,t,o){const c=typeof t=="function"||Array.isArray(t)?a.stringify(e,t,o):a.stringify(e,t);await s.k(r,c)}n(i,"m");f(i,"writeYaml");exports.m=i;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var m=Object.defineProperty;var e=(i,r)=>m(i,"name",{value:r,configurable:!0});import{stringify as t}from"yaml";import{k as n}from"./writeFileSync-6h8CQ9EO.mjs";var c=Object.defineProperty,y=e((i,r)=>c(i,"name",{value:r,configurable:!0}),"i");function p(i,r,o,a){const f=typeof o=="function"||Array.isArray(o)?t(r,o,a):t(r,o);n(i,f)}e(p,"m");y(p,"writeYamlSync");export{p as m};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var y=Object.defineProperty;var t=(r,e)=>y(r,"name",{value:e,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("yaml"),s=require("./writeFileSync-C3D5fvZf.cjs");var u=Object.defineProperty,f=t((r,e)=>u(r,"name",{value:e,configurable:!0}),"i");function o(r,e,i,a){const c=typeof i=="function"||Array.isArray(i)?n.stringify(e,i,a):n.stringify(e,i);s.k(r,c)}t(o,"m");f(o,"writeYamlSync");exports.m=o;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|