@visulima/fs 5.0.0-alpha.25 → 5.0.0-alpha.27
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 +31 -0
- package/dist/glob.d.ts +2 -2
- package/dist/index.d.ts +3 -4
- package/dist/index.js +1 -1
- package/dist/ini.d.ts +2 -2
- package/dist/json5.d.ts +2 -2
- package/dist/jsonc.d.ts +2 -2
- package/dist/match.d.ts +37 -3
- package/dist/match.js +1 -1
- package/dist/packem_shared/{collect-2KPTpCdX.js → collect-JK4R3E7e.js} +1 -1
- package/dist/packem_shared/{collectSync-BX55r_BH.js → collectSync-DttoZ98y.js} +1 -1
- package/dist/packem_shared/{glob-sync.d-B1qc6GUi.d.ts → glob-sync.d-CUoD1V7T.d.ts} +1 -1
- package/dist/packem_shared/{types.d-CXTDvktU.d.ts → types.d-0_MqQRPj.d.ts} +1 -1
- package/dist/packem_shared/walk-B9f2OdKi.js +1 -0
- package/dist/packem_shared/walk-include-DiX96k86.js +1 -0
- package/dist/packem_shared/{walkSync-BknSdmKD.js → walkSync-_5-O8qTe.js} +1 -1
- package/dist/toml.d.ts +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/yaml.d.ts +2 -2
- package/package.json +23 -25
- package/dist/packem_shared/walk-D01Qmmvz.js +0 -1
- package/dist/packem_shared/walk-include-DCiVAwMP.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,34 @@
|
|
|
1
|
+
## @visulima/fs [5.0.0-alpha.27](https://github.com/visulima/visulima/compare/@visulima/fs@5.0.0-alpha.26...@visulima/fs@5.0.0-alpha.27) (2026-05-26)
|
|
2
|
+
|
|
3
|
+
### Miscellaneous Chores
|
|
4
|
+
|
|
5
|
+
* sorted package.json ([b47c545](https://github.com/visulima/visulima/commit/b47c545591600fdab17d5cd3a3fbc68b61e199da))
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Dependencies
|
|
9
|
+
|
|
10
|
+
* **@visulima/error:** upgraded to 6.0.0-alpha.29
|
|
11
|
+
|
|
12
|
+
## @visulima/fs [5.0.0-alpha.26](https://github.com/visulima/visulima/compare/@visulima/fs@5.0.0-alpha.25...@visulima/fs@5.0.0-alpha.26) (2026-05-26)
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* **pail,fs:** bind logger.raw and inline picomatch options ([e8b20d2](https://github.com/visulima/visulima/commit/e8b20d2afdbcadf2f531ac3593dc0b7210684955))
|
|
17
|
+
|
|
18
|
+
### Miscellaneous Chores
|
|
19
|
+
|
|
20
|
+
* **ci-stability:** green CI across vis, native, lint, tests, attw ([#651](https://github.com/visulima/visulima/issues/651)) ([d4eb684](https://github.com/visulima/visulima/commit/d4eb684b5f75c818c9251048c605a0ed54a268e3))
|
|
21
|
+
* **repo:** sort package.json keys across all packages ([e1fd9ab](https://github.com/visulima/visulima/commit/e1fd9ab467ef96a98c777da1572ff6a50fcf7e71))
|
|
22
|
+
|
|
23
|
+
### Tests
|
|
24
|
+
|
|
25
|
+
* **repo:** add dist runtime + types integration tests ([32ee300](https://github.com/visulima/visulima/commit/32ee300b7184117a0ddf9f9d390f75f8932d5ed9))
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Dependencies
|
|
29
|
+
|
|
30
|
+
* **@visulima/error:** upgraded to 6.0.0-alpha.28
|
|
31
|
+
|
|
1
32
|
## @visulima/fs [5.0.0-alpha.25](https://github.com/visulima/visulima/compare/@visulima/fs@5.0.0-alpha.24...@visulima/fs@5.0.0-alpha.25) (2026-05-20)
|
|
2
33
|
|
|
3
34
|
|
package/dist/glob.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { g as glob, a as globSync } from "./packem_shared/glob-sync.d-
|
|
2
|
-
export { type G as GlobOptions } from "./packem_shared/types.d-
|
|
1
|
+
export { g as glob, a as globSync } from "./packem_shared/glob-sync.d-CUoD1V7T.js";
|
|
2
|
+
export { type G as GlobOptions } from "./packem_shared/types.d-0_MqQRPj.js";
|
|
3
3
|
import 'node:fs';
|
|
4
4
|
import 'tinyglobby';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import { q as WalkOptions, F as FindUpName, r as FindUpOptions, s as FindUpNameSync, t as WalkEntry, u as ReadFileOptions, v as ContentType, w as ReadJsonOptions, J as JsonReviver, x as RetryOptions, y as WriteFileOptions, z as WriteJsonOptions } from "./packem_shared/types.d-
|
|
2
|
-
export { type A as CodeFrameLocation, type C as CodeFrameOptions, B as FIND_UP_STOP, D as F_OK, type E as FindUpNameFnResult, type H as FindUpNameSyncFnResult, type G as GlobOptions, type
|
|
1
|
+
import { q as WalkOptions, F as FindUpName, r as FindUpOptions, s as FindUpNameSync, t as WalkEntry, u as ReadFileOptions, v as ContentType, w as ReadJsonOptions, J as JsonReviver, x as RetryOptions, y as WriteFileOptions, z as WriteJsonOptions } from "./packem_shared/types.d-0_MqQRPj.js";
|
|
2
|
+
export { type A as CodeFrameLocation, type C as CodeFrameOptions, B as FIND_UP_STOP, D as F_OK, type E as FindUpNameFnResult, type H as FindUpNameSyncFnResult, type G as GlobOptions, type h as JsonReplacer, K as R_OK, type L as ReadFileEncoding, M as W_OK, X as X_OK } from "./packem_shared/types.d-0_MqQRPj.js";
|
|
3
3
|
import { symlink } from 'node:fs';
|
|
4
4
|
export { CRLF, EOL, LF, detect, format } from "./eol.js";
|
|
5
|
-
export { g as glob, a as globSync } from "./packem_shared/glob-sync.d-
|
|
5
|
+
export { g as glob, a as globSync } from "./packem_shared/glob-sync.d-CUoD1V7T.js";
|
|
6
6
|
export { type GlobParentOptions, default as globParent } from "./glob-parent.js";
|
|
7
7
|
export { type IsGlobOptions, default as isGlob } from "./is-glob.js";
|
|
8
8
|
export { type MatchOptions, match, matcher } from "./match.js";
|
|
9
9
|
import { JsonValue } from 'type-fest';
|
|
10
10
|
import fs from 'fs';
|
|
11
11
|
import 'tinyglobby';
|
|
12
|
-
import './lib/picomatch';
|
|
13
12
|
/**
|
|
14
13
|
* Ensures that the directory exists.
|
|
15
14
|
* If the directory structure does not exist, it is created. Like mkdir -p.
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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-CAwY1qU7.js";import{default as m}from"./packem_shared/ensureDir-CZ4oUFuo.js";import{default as n}from"./packem_shared/ensureDirSync-CoPWhbjM.js";import{default as d}from"./packem_shared/ensureFile-CF1cAAyh.js";import{default as i}from"./packem_shared/ensureFileSync-C3qR6naU.js";import{default as y}from"./packem_shared/ensureLink-LLLxlGHn.js";import{default as F}from"./packem_shared/ensureLinkSync-Dh_GtT8F.js";import{default as k}from"./packem_shared/ensureSymlink-D50kj2zl.js";import{default as O}from"./packem_shared/ensureSymlinkSync-BbVDPvI4.js";import{CRLF as v,EOL as D,LF as L,detect as J,format as K}from"./eol.js";import{default as P}from"./packem_shared/collect-
|
|
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-CAwY1qU7.js";import{default as m}from"./packem_shared/ensureDir-CZ4oUFuo.js";import{default as n}from"./packem_shared/ensureDirSync-CoPWhbjM.js";import{default as d}from"./packem_shared/ensureFile-CF1cAAyh.js";import{default as i}from"./packem_shared/ensureFileSync-C3qR6naU.js";import{default as y}from"./packem_shared/ensureLink-LLLxlGHn.js";import{default as F}from"./packem_shared/ensureLinkSync-Dh_GtT8F.js";import{default as k}from"./packem_shared/ensureSymlink-D50kj2zl.js";import{default as O}from"./packem_shared/ensureSymlinkSync-BbVDPvI4.js";import{CRLF as v,EOL as D,LF as L,detect as J,format as K}from"./eol.js";import{default as P}from"./packem_shared/collect-JK4R3E7e.js";import{default as h}from"./packem_shared/collectSync-DttoZ98y.js";import{default as C}from"./packem_shared/findUp-BT07y_Me.js";import{default as z}from"./packem_shared/findUpSync-BvZiYsKJ.js";import{default as G}from"./packem_shared/glob-MHJQjR39.js";import{default as N}from"./packem_shared/globSync-CwzlELgS.js";import{default as W}from"./packem_shared/walk-B9f2OdKi.js";import{default as j}from"./packem_shared/walkSync-_5-O8qTe.js";import{default as B}from"./glob-parent.js";import{default as M}from"./packem_shared/isAccessible-CDFxsAAo.js";import{default as V}from"./packem_shared/isAccessibleSync-5nzZWgin.js";import{default as Z}from"./is-glob.js";import{match as ee,matcher as re}from"./match.js";import{move as te,moveSync as ae,rename as fe,renameSync as se}from"./packem_shared/move-LmP6P9sn.js";import{default as me}from"./packem_shared/readFile-BAVMZg5e.js";import{default as ne}from"./packem_shared/readFileSync-CGmzMUF2.js";import{default as de}from"./packem_shared/readJson-kPx68Wv1.js";import{default as ie}from"./packem_shared/readJsonSync-_HXNI3Se.js";import{default as ye}from"./packem_shared/emptyDir-8utO028L.js";import{default as Fe}from"./packem_shared/emptyDirSync-Bk5fUX73.js";import{default as ke}from"./packem_shared/remove-DH41Ov_c.js";import{default as Oe}from"./packem_shared/removeSync-50OEdnHd.js";import{sanitize as ve}from"./packem_shared/sanitize-CU1xmyrg.js";import{default as Le}from"./packem_shared/writeFile-DNGaDOMX.js";import{default as Ke}from"./packem_shared/writeFileSync-CE1i-eMA.js";import{default as Pe}from"./packem_shared/writeJson-BkGlq1Kv.js";import{default as he}from"./packem_shared/writeJsonSync-HndmyvEK.js";import{isFsCaseSensitive as Ce}from"./packem_shared/isFsCaseSensitive-CMZVY1A2.js";export{v as CRLF,D as EOL,o as FIND_UP_STOP,t as F_OK,L as LF,a as R_OK,f as W_OK,s as X_OK,P as collect,h as collectSync,J as detect,ye as emptyDir,Fe as emptyDirSync,m as ensureDir,n as ensureDirSync,d as ensureFile,i as ensureFileSync,y as ensureLink,F as ensureLinkSync,k as ensureSymlink,O as ensureSymlinkSync,C as findUp,z as findUpSync,K as format,G as glob,B as globParent,N as globSync,M as isAccessible,V as isAccessibleSync,Ce as isFsCaseSensitive,Z as isGlob,ee as match,re as matcher,te as move,ae as moveSync,me as readFile,ne as readFileSync,de as readJson,ie as readJsonSync,ke as remove,Oe as removeSync,fe as rename,se as renameSync,ve as sanitize,W as walk,j as walkSync,Le as writeFile,Ke as writeFileSync,Pe as writeJson,he as writeJsonSync};
|
package/dist/ini.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as CompressionType,
|
|
2
|
-
export { type I as IniEncodeOptions, type
|
|
1
|
+
import { a as CompressionType, n as ReadIniOptions, o as WriteIniOptions } from "./packem_shared/types.d-0_MqQRPj.js";
|
|
2
|
+
export { type I as IniEncodeOptions, type p as IniLineEnding } from "./packem_shared/types.d-0_MqQRPj.js";
|
|
3
3
|
import 'node:fs';
|
|
4
4
|
import 'tinyglobby';
|
|
5
5
|
/**
|
package/dist/json5.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as CompressionType,
|
|
2
|
-
export { type
|
|
1
|
+
import { a as CompressionType, j as ReadJson5Options, k as Json5Reviver, l as WriteJson5Options } from "./packem_shared/types.d-0_MqQRPj.js";
|
|
2
|
+
export { type m as Json5Replacer } from "./packem_shared/types.d-0_MqQRPj.js";
|
|
3
3
|
import 'node:fs';
|
|
4
4
|
import 'tinyglobby';
|
|
5
5
|
declare function readJson5<R = unknown>(path: URL | string, options?: ReadJson5Options<CompressionType>): Promise<R>;
|
package/dist/jsonc.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as CompressionType,
|
|
2
|
-
export { type
|
|
1
|
+
import { a as CompressionType, b as ReadJsoncOptions, c as WriteJsoncOptions } from "./packem_shared/types.d-0_MqQRPj.js";
|
|
2
|
+
export { type d as JsoncFormattingOptions, type e as JsoncParseOptions } from "./packem_shared/types.d-0_MqQRPj.js";
|
|
3
3
|
import 'node:fs';
|
|
4
4
|
import 'tinyglobby';
|
|
5
5
|
/**
|
package/dist/match.d.ts
CHANGED
|
@@ -1,10 +1,44 @@
|
|
|
1
|
-
import picomatch from './lib/picomatch';
|
|
2
1
|
/**
|
|
3
2
|
* Options accepted by {@link match} and {@link matcher}.
|
|
4
3
|
*
|
|
5
|
-
*
|
|
4
|
+
* Mirrors `picomatch.PicomatchOptions`; passed straight through to
|
|
5
|
+
* [`picomatch`](https://github.com/micromatch/picomatch#options); see its
|
|
6
|
+
* documentation for the full list.
|
|
6
7
|
*/
|
|
7
|
-
|
|
8
|
+
interface MatchOptions {
|
|
9
|
+
basename?: boolean;
|
|
10
|
+
bash?: boolean;
|
|
11
|
+
capture?: boolean;
|
|
12
|
+
contains?: boolean;
|
|
13
|
+
debug?: boolean;
|
|
14
|
+
dot?: boolean;
|
|
15
|
+
expandRange?: ((from: string, to: string, options: MatchOptions) => string) | ((from: string, to: string, step: string, options: MatchOptions) => string);
|
|
16
|
+
fastpaths?: boolean;
|
|
17
|
+
flags?: string;
|
|
18
|
+
format?: (string_: string) => string;
|
|
19
|
+
ignore?: string | string[];
|
|
20
|
+
keepQuotes?: boolean;
|
|
21
|
+
literalBrackets?: boolean;
|
|
22
|
+
matchBase?: boolean;
|
|
23
|
+
maxLength?: number;
|
|
24
|
+
nobrace?: boolean;
|
|
25
|
+
nobracket?: boolean;
|
|
26
|
+
nocase?: boolean;
|
|
27
|
+
noext?: boolean;
|
|
28
|
+
noextglob?: boolean;
|
|
29
|
+
noglobstar?: boolean;
|
|
30
|
+
nonegate?: boolean;
|
|
31
|
+
onIgnore?: (result: unknown) => void;
|
|
32
|
+
onMatch?: (result: unknown) => void;
|
|
33
|
+
onResult?: (result: unknown) => void;
|
|
34
|
+
posix?: boolean;
|
|
35
|
+
prepend?: boolean;
|
|
36
|
+
regex?: boolean;
|
|
37
|
+
strictBrackets?: boolean;
|
|
38
|
+
strictSlashes?: boolean;
|
|
39
|
+
unescape?: boolean;
|
|
40
|
+
windows?: boolean;
|
|
41
|
+
}
|
|
8
42
|
/**
|
|
9
43
|
* Tests whether a path matches one or more glob patterns.
|
|
10
44
|
*
|
package/dist/match.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var s=Object.defineProperty;var
|
|
1
|
+
var s=Object.defineProperty;var c=(r,e)=>s(r,"name",{value:e,configurable:!0});import{s as m}from"./packem_shared/index-DrapuBsB.js";var i=Object.defineProperty,n=c((r,e)=>i(r,"name",{value:e,configurable:!0}),"a");const f=n((r,e,a)=>{const t=m(e,a);return Array.isArray(r)?r.some(o=>t(o)):t(r)},"match"),p=n((r,e)=>{const a=m(r,e);return t=>a(t)},"matcher");export{f as match,p as matcher};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var n=Object.defineProperty;var a=(r,e)=>n(r,"name",{value:e,configurable:!0});import o from"./walk-
|
|
1
|
+
var n=Object.defineProperty;var a=(r,e)=>n(r,"name",{value:e,configurable:!0});import o from"./walk-B9f2OdKi.js";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 +1 @@
|
|
|
1
|
-
var t=Object.defineProperty;var s=(r,e)=>t(r,"name",{value:e,configurable:!0});import a from"./walkSync-
|
|
1
|
+
var t=Object.defineProperty;var s=(r,e)=>t(r,"name",{value:e,configurable:!0});import a from"./walkSync-_5-O8qTe.js";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};
|
|
@@ -1657,4 +1657,4 @@ type WriteIniExtras = {
|
|
|
1657
1657
|
* whitespace and inline `;` / `#` comments) for unchanged values.
|
|
1658
1658
|
*/
|
|
1659
1659
|
type WriteIniOptions = IniEncodeOptions & WriteFileOptions & WriteIniExtras;
|
|
1660
|
-
export { CodeFrameLocation as A, FIND_UP_STOP as B, CodeFrameOptions as C, F_OK as D, FindUpNameFnResult as E, FindUpName as F, GlobOptions as G, FindUpNameSyncFnResult as H, IniEncodeOptions as I, JsonReviver as J, R_OK as K, ReadFileEncoding as L, W_OK as M,
|
|
1660
|
+
export { CodeFrameLocation as A, FIND_UP_STOP as B, CodeFrameOptions as C, F_OK as D, FindUpNameFnResult as E, FindUpName as F, GlobOptions as G, FindUpNameSyncFnResult as H, IniEncodeOptions as I, JsonReviver as J, R_OK as K, ReadFileEncoding as L, W_OK as M, ReadTomlOptions as R, WriteTomlOptions as W, X_OK as X, YamlReviver as Y, CompressionType as a, ReadJsoncOptions as b, WriteJsoncOptions as c, JsoncFormattingOptions as d, JsoncParseOptions as e, ReadYamlOptions as f, WriteYamlOptions as g, JsonReplacer as h, YamlReplacer as i, ReadJson5Options as j, Json5Reviver as k, WriteJson5Options as l, Json5Replacer as m, ReadIniOptions as n, WriteIniOptions as o, IniLineEnding as p, WalkOptions as q, FindUpOptions as r, FindUpNameSync as s, WalkEntry as t, ReadFileOptions as u, ContentType as v, ReadJsonOptions as w, RetryOptions as x, WriteFileOptions as y, WriteJsonOptions as z };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var F=Object.defineProperty;var y=(i,e)=>F(i,"name",{value:e,configurable:!0});import{createRequire as _}from"node:module";import{resolve as T,join as x,normalize as I,basename as N}from"@visulima/path";import{toPath as P}from"@visulima/path/utils";import h from"./WalkError-Olmh4908.js";import q from"./assertValidFileOrDirectoryPath-DgPIPmZT.js";import{a as S,u}from"./walk-include-DiX96k86.js";const v=_(import.meta.url),c=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,g=y(i=>{if(typeof c<"u"&&c.versions&&c.versions.node){const[e,t]=c.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return c.getBuiltinModule(i)}return v(i)},"__cjs_getBuiltinModule"),{readdir:w,realpath:L,stat:j}=g("node:fs/promises");var O=Object.defineProperty,r=y((i,e)=>O(i,"name",{value:e,configurable:!0}),"r");const B=r(async i=>{const e=I(i),t=N(e),l=await j(e);return{isDirectory:r(()=>l.isDirectory(),"isDirectory"),isFile:r(()=>l.isFile(),"isFile"),isSymbolicLink:r(()=>l.isSymbolicLink(),"isSymbolicLink"),name:t,path:e}},"_createWalkEntry");async function*D(i,{extensions:e,followSymlinks:t=!1,includeDirs:l=!0,includeFiles:p=!0,includeSymlinks:d=!0,match:b,maxDepth:f=Number.POSITIVE_INFINITY,skip:k}={}){if(q(i),f<0)return;const m=b?b.map(s=>typeof s=="string"?S(s):s):void 0,a=k?k.map(s=>typeof s=="string"?S(s):s):void 0;if(i=T(P(i)),l&&u(i,e,m,a)&&(yield await B(i)),!(f<1||!u(i,void 0,void 0,a)))try{const s=await w(i,{withFileTypes:!0});for(const o of s){let n=x(i,o.name);if(o.isSymbolicLink())if(t)n=await L(n);else if(d&&u(n,e,m,a)){yield{isDirectory:r(()=>o.isDirectory(),"isDirectory"),isFile:r(()=>o.isFile(),"isFile"),isSymbolicLink:r(()=>o.isSymbolicLink(),"isSymbolicLink"),name:o.name,path:n};continue}else continue;o.isDirectory()?yield*D(n,{extensions:e,followSymlinks:t,includeDirs:l,includeFiles:p,includeSymlinks:d,match:m,maxDepth:f-1,skip:a}):o.isFile()&&p&&u(n,e,m,a)&&(yield{isDirectory:r(()=>o.isDirectory(),"isDirectory"),isFile:r(()=>o.isFile(),"isFile"),isSymbolicLink:r(()=>o.isSymbolicLink(),"isSymbolicLink"),name:o.name,path:n})}}catch(s){throw s instanceof h?s:new h(s,i)}}y(D,"g");r(D,"walk");export{D as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var g=Object.defineProperty;var t=(e,r)=>g(e,"name",{value:r,configurable:!0});var p=Object.defineProperty,s=t((e,r)=>p(e,"name",{value:r,configurable:!0}),"g");const f=s(e=>{const r=e.replace(/\.\*/g,".([^/]*)").replace(/\*\*/g,"(.*)").replace(/(?<!\.)\*(?!\*)/g,"([^/]*)").replace(/\?/g,"[^/]").replace(/\.(?!\*)/g,String.raw`\.`).replace(/\{/g,"(").replace(/\}/g,")").replace(/,/g,"|").replace(/\[!(.*?)\]/g,"[^$1]");return new RegExp(`^${r}$`)},"globToRegExp");var o=Object.defineProperty,u=t((e,r)=>o(e,"name",{value:r,configurable:!0}),"t");const v=u((e,r,l,n)=>{if(Array.isArray(r)&&r.length>0&&!r.some(a=>e.endsWith(a)))return!1;const c=e.includes("\\")?e.replaceAll("\\","/"):e;return l&&!l.some(a=>a.test(c))?!1:!n?.some(a=>a.test(c))},"walkInclude");export{f as a,v as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var _=Object.defineProperty;var m=(i,e)=>_(i,"name",{value:e,configurable:!0});import{createRequire as v}from"node:module";import{resolve as x,join as I,normalize as f,basename as P}from"@visulima/path";import{toPath as N}from"@visulima/path/utils";import h from"./WalkError-Olmh4908.js";import q from"./assertValidFileOrDirectoryPath-DgPIPmZT.js";import{a as D,
|
|
1
|
+
var _=Object.defineProperty;var m=(i,e)=>_(i,"name",{value:e,configurable:!0});import{createRequire as v}from"node:module";import{resolve as x,join as I,normalize as f,basename as P}from"@visulima/path";import{toPath as N}from"@visulima/path/utils";import h from"./WalkError-Olmh4908.js";import q from"./assertValidFileOrDirectoryPath-DgPIPmZT.js";import{a as D,u as y}from"./walk-include-DiX96k86.js";const g=v(import.meta.url),c=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,L=m(i=>{if(typeof c<"u"&&c.versions&&c.versions.node){const[e,n]=c.versions.node.split(".").map(Number);if(e>22||e===22&&n>=3||e===20&&n>=16)return c.getBuiltinModule(i)}return g(i)},"__cjs_getBuiltinModule"),{readdirSync:j,realpathSync:w,statSync:T}=L("node:fs");var B=Object.defineProperty,r=m((i,e)=>B(i,"name",{value:e,configurable:!0}),"t");const E=r(i=>{const e=f(i),n=T(e);return{isDirectory:r(()=>n.isDirectory(),"isDirectory"),isFile:r(()=>n.isFile(),"isFile"),isSymbolicLink:r(()=>n.isSymbolicLink(),"isSymbolicLink"),name:P(e),path:e}},"_createWalkEntry");function*F(i,{extensions:e,followSymlinks:n=!1,includeDirs:p=!0,includeFiles:d=!0,includeSymlinks:b=!0,match:S,maxDepth:u=Number.POSITIVE_INFINITY,skip:k}={}){if(q(i),u<0)return;const a=S?S.map(s=>typeof s=="string"?D(s):s):void 0,l=k?k.map(s=>typeof s=="string"?D(s):s):void 0;if(i=x(N(i)),p&&y(i,e,a,l)&&(yield E(i)),!(u<1||!y(i,void 0,void 0,l)))try{const s=j(i,{withFileTypes:!0});for(const o of s){let t=I(i,o.name);if(o.isSymbolicLink())if(n)t=w(t);else if(b&&y(t,e,a,l)){yield{isDirectory:r(()=>o.isDirectory(),"isDirectory"),isFile:r(()=>o.isFile(),"isFile"),isSymbolicLink:r(()=>o.isSymbolicLink(),"isSymbolicLink"),name:o.name,path:f(t)};continue}else continue;o.isDirectory()?yield*F(t,{extensions:e,followSymlinks:n,includeDirs:p,includeFiles:d,includeSymlinks:b,match:a,maxDepth:u-1,skip:l}):o.isFile()&&d&&y(t,e,a,l)&&(yield{isDirectory:r(()=>o.isDirectory(),"isDirectory"),isFile:r(()=>o.isFile(),"isFile"),isSymbolicLink:r(()=>o.isSymbolicLink(),"isSymbolicLink"),name:o.name,path:f(t)})}}catch(s){throw s instanceof h?s:new h(s,i)}}m(F,"b");r(F,"walkSync");export{F as default};
|
package/dist/toml.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as CompressionType,
|
|
1
|
+
import { a as CompressionType, R as ReadTomlOptions, W as WriteTomlOptions } from "./packem_shared/types.d-0_MqQRPj.js";
|
|
2
2
|
import 'node:fs';
|
|
3
3
|
import 'tinyglobby';
|
|
4
4
|
/**
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { J as JSONError } from "./packem_shared/json-error.d-DVILOyHc.js";
|
|
2
2
|
import { JsonValue } from 'type-fest';
|
|
3
|
-
import { C as CodeFrameOptions, J as JsonReviver } from "./packem_shared/types.d-
|
|
3
|
+
import { C as CodeFrameOptions, J as JsonReviver } from "./packem_shared/types.d-0_MqQRPj.js";
|
|
4
4
|
export { toPath } from '@visulima/path/utils';
|
|
5
5
|
import 'node:fs';
|
|
6
6
|
import 'tinyglobby';
|
package/dist/yaml.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as CompressionType,
|
|
2
|
-
export { type
|
|
1
|
+
import { a as CompressionType, f as ReadYamlOptions, Y as YamlReviver, g as WriteYamlOptions, h as JsonReplacer } from "./packem_shared/types.d-0_MqQRPj.js";
|
|
2
|
+
export { type i as YamlReplacer } from "./packem_shared/types.d-0_MqQRPj.js";
|
|
3
3
|
import 'node:fs';
|
|
4
4
|
import 'tinyglobby';
|
|
5
5
|
declare function readYaml<R = Record<string, unknown>>(path: URL | string, options?: ReadYamlOptions<CompressionType>): Promise<R>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@visulima/fs",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.27",
|
|
4
4
|
"description": "Human friendly file system utilities for Node.js",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"anolilab",
|
|
@@ -60,14 +60,7 @@
|
|
|
60
60
|
"yaml"
|
|
61
61
|
],
|
|
62
62
|
"homepage": "https://visulima.com/packages/fs/",
|
|
63
|
-
"bugs":
|
|
64
|
-
"url": "https://github.com/visulima/visulima/issues"
|
|
65
|
-
},
|
|
66
|
-
"license": "MIT",
|
|
67
|
-
"author": {
|
|
68
|
-
"name": "Daniel Bannert",
|
|
69
|
-
"email": "d.bannert@anolilab.de"
|
|
70
|
-
},
|
|
63
|
+
"bugs": "https://github.com/visulima/visulima/issues",
|
|
71
64
|
"repository": {
|
|
72
65
|
"type": "git",
|
|
73
66
|
"url": "git+https://github.com/visulima/visulima.git",
|
|
@@ -83,19 +76,13 @@
|
|
|
83
76
|
"url": "https://anolilab.com/support"
|
|
84
77
|
}
|
|
85
78
|
],
|
|
86
|
-
"
|
|
87
|
-
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
|
|
91
|
-
],
|
|
92
|
-
"os": [
|
|
93
|
-
"darwin",
|
|
94
|
-
"linux",
|
|
95
|
-
"win32"
|
|
96
|
-
],
|
|
97
|
-
"type": "module",
|
|
79
|
+
"license": "MIT",
|
|
80
|
+
"author": {
|
|
81
|
+
"name": "Daniel Bannert",
|
|
82
|
+
"email": "d.bannert@anolilab.de"
|
|
83
|
+
},
|
|
98
84
|
"sideEffects": false,
|
|
85
|
+
"type": "module",
|
|
99
86
|
"exports": {
|
|
100
87
|
".": {
|
|
101
88
|
"types": "./dist/index.d.ts",
|
|
@@ -155,10 +142,12 @@
|
|
|
155
142
|
},
|
|
156
143
|
"./package.json": "./package.json"
|
|
157
144
|
},
|
|
158
|
-
"
|
|
159
|
-
"
|
|
160
|
-
"
|
|
161
|
-
|
|
145
|
+
"files": [
|
|
146
|
+
"dist/**",
|
|
147
|
+
"README.md",
|
|
148
|
+
"CHANGELOG.md",
|
|
149
|
+
"LICENSE.md"
|
|
150
|
+
],
|
|
162
151
|
"dependencies": {
|
|
163
152
|
"@visulima/path": "3.0.0-alpha.10"
|
|
164
153
|
},
|
|
@@ -188,5 +177,14 @@
|
|
|
188
177
|
},
|
|
189
178
|
"engines": {
|
|
190
179
|
"node": "^22.14.0 || >=24.10.0"
|
|
180
|
+
},
|
|
181
|
+
"os": [
|
|
182
|
+
"darwin",
|
|
183
|
+
"linux",
|
|
184
|
+
"win32"
|
|
185
|
+
],
|
|
186
|
+
"publishConfig": {
|
|
187
|
+
"access": "public",
|
|
188
|
+
"provenance": true
|
|
191
189
|
}
|
|
192
190
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var F=Object.defineProperty;var y=(i,e)=>F(i,"name",{value:e,configurable:!0});import{createRequire as _}from"node:module";import{resolve as T,join as x,normalize as I,basename as N}from"@visulima/path";import{toPath as P}from"@visulima/path/utils";import h from"./WalkError-Olmh4908.js";import q from"./assertValidFileOrDirectoryPath-DgPIPmZT.js";import{a as S,b as f}from"./walk-include-DCiVAwMP.js";const v=_(import.meta.url),c=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,g=y(i=>{if(typeof c<"u"&&c.versions&&c.versions.node){const[e,t]=c.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return c.getBuiltinModule(i)}return v(i)},"__cjs_getBuiltinModule"),{readdir:w,realpath:L,stat:j}=g("node:fs/promises");var O=Object.defineProperty,r=y((i,e)=>O(i,"name",{value:e,configurable:!0}),"r");const B=r(async i=>{const e=I(i),t=N(e),l=await j(e);return{isDirectory:r(()=>l.isDirectory(),"isDirectory"),isFile:r(()=>l.isFile(),"isFile"),isSymbolicLink:r(()=>l.isSymbolicLink(),"isSymbolicLink"),name:t,path:e}},"_createWalkEntry");async function*D(i,{extensions:e,followSymlinks:t=!1,includeDirs:l=!0,includeFiles:p=!0,includeSymlinks:d=!0,match:b,maxDepth:u=Number.POSITIVE_INFINITY,skip:k}={}){if(q(i),u<0)return;const m=b?b.map(s=>typeof s=="string"?S(s):s):void 0,a=k?k.map(s=>typeof s=="string"?S(s):s):void 0;if(i=T(P(i)),l&&f(i,e,m,a)&&(yield await B(i)),!(u<1||!f(i,void 0,void 0,a)))try{const s=await w(i,{withFileTypes:!0});for(const o of s){let n=x(i,o.name);if(o.isSymbolicLink())if(t)n=await L(n);else if(d&&f(n,e,m,a)){yield{isDirectory:r(()=>o.isDirectory(),"isDirectory"),isFile:r(()=>o.isFile(),"isFile"),isSymbolicLink:r(()=>o.isSymbolicLink(),"isSymbolicLink"),name:o.name,path:n};continue}else continue;o.isDirectory()?yield*D(n,{extensions:e,followSymlinks:t,includeDirs:l,includeFiles:p,includeSymlinks:d,match:m,maxDepth:u-1,skip:a}):o.isFile()&&p&&f(n,e,m,a)&&(yield{isDirectory:r(()=>o.isDirectory(),"isDirectory"),isFile:r(()=>o.isFile(),"isFile"),isSymbolicLink:r(()=>o.isSymbolicLink(),"isSymbolicLink"),name:o.name,path:n})}}catch(s){throw s instanceof h?s:new h(s,i)}}y(D,"g");r(D,"walk");export{D as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var l=Object.defineProperty;var t=(e,a)=>l(e,"name",{value:a,configurable:!0});var n=Object.defineProperty,p=t((e,a)=>n(e,"name",{value:a,configurable:!0}),"g");const i=p(e=>{const a=e.replace(/\.\*/g,".([^/]*)").replace(/\*\*/g,"(.*)").replace(/(?<!\.)\*(?!\*)/g,"([^/]*)").replace(/\?/g,"[^/]").replace(/\.(?!\*)/g,String.raw`\.`).replace(/\{/g,"(").replace(/\}/g,")").replace(/,/g,"|").replace(/\[!(.*?)\]/g,"[^$1]");return new RegExp(`^${a}$`)},"globToRegExp");var s=Object.defineProperty,o=t((e,a)=>s(e,"name",{value:a,configurable:!0}),"n");const b=o((e,a,c,g)=>Array.isArray(a)&&a.length>0&&!a.some(r=>e.endsWith(r))||c&&!c.some(r=>r.test(e))?!1:!g?.some(r=>r.test(e)),"walkInclude");export{i as a,b};
|