@visulima/fs 5.0.0-alpha.24 → 5.0.0-alpha.26
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 +27 -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-C9PqqaV9.d.ts → glob-sync.d-DN8agSQz.d.ts} +1 -1
- package/dist/packem_shared/{types.d-B19QTzXi.d.ts → types.d-i5rnQECK.d.ts} +26 -26
- 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 +22 -22
- 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,30 @@
|
|
|
1
|
+
## @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)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* **pail,fs:** bind logger.raw and inline picomatch options ([e8b20d2](https://github.com/visulima/visulima/commit/e8b20d2afdbcadf2f531ac3593dc0b7210684955))
|
|
6
|
+
|
|
7
|
+
### Miscellaneous Chores
|
|
8
|
+
|
|
9
|
+
* **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))
|
|
10
|
+
* **repo:** sort package.json keys across all packages ([e1fd9ab](https://github.com/visulima/visulima/commit/e1fd9ab467ef96a98c777da1572ff6a50fcf7e71))
|
|
11
|
+
|
|
12
|
+
### Tests
|
|
13
|
+
|
|
14
|
+
* **repo:** add dist runtime + types integration tests ([32ee300](https://github.com/visulima/visulima/commit/32ee300b7184117a0ddf9f9d390f75f8932d5ed9))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Dependencies
|
|
18
|
+
|
|
19
|
+
* **@visulima/error:** upgraded to 6.0.0-alpha.28
|
|
20
|
+
|
|
21
|
+
## @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)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Dependencies
|
|
25
|
+
|
|
26
|
+
* **@visulima/error:** upgraded to 6.0.0-alpha.27
|
|
27
|
+
|
|
1
28
|
## @visulima/fs [5.0.0-alpha.24](https://github.com/visulima/visulima/compare/@visulima/fs@5.0.0-alpha.23...@visulima/fs@5.0.0-alpha.24) (2026-05-19)
|
|
2
29
|
|
|
3
30
|
|
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-DN8agSQz.js";
|
|
2
|
+
export { type G as GlobOptions } from "./packem_shared/types.d-i5rnQECK.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,
|
|
2
|
-
export { type A as CodeFrameLocation, 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, l as JsonReviver, x as RetryOptions, y as WriteFileOptions, z as WriteJsonOptions } from "./packem_shared/types.d-i5rnQECK.js";
|
|
2
|
+
export { type A as CodeFrameLocation, type k as CodeFrameOptions, B as FIND_UP_STOP, D as F_OK, type E as FindUpNameFnResult, type H as FindUpNameSyncFnResult, type G as GlobOptions, type J as JsonReplacer, K as R_OK, type L as ReadFileEncoding, M as W_OK, X as X_OK } from "./packem_shared/types.d-i5rnQECK.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-DN8agSQz.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 {
|
|
2
|
-
export { type I as IniEncodeOptions, type
|
|
1
|
+
import { C as CompressionType, h as ReadIniOptions, i as WriteIniOptions } from "./packem_shared/types.d-i5rnQECK.js";
|
|
2
|
+
export { type I as IniEncodeOptions, type j as IniLineEnding } from "./packem_shared/types.d-i5rnQECK.js";
|
|
3
3
|
import 'node:fs';
|
|
4
4
|
import 'tinyglobby';
|
|
5
5
|
/**
|
package/dist/json5.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { type
|
|
1
|
+
import { C as CompressionType, d as ReadJson5Options, e as Json5Reviver, f as WriteJson5Options } from "./packem_shared/types.d-i5rnQECK.js";
|
|
2
|
+
export { type g as Json5Replacer } from "./packem_shared/types.d-i5rnQECK.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 {
|
|
2
|
-
export { type
|
|
1
|
+
import { C as CompressionType, m as ReadJsoncOptions, n as WriteJsoncOptions } from "./packem_shared/types.d-i5rnQECK.js";
|
|
2
|
+
export { type o as JsoncFormattingOptions, type p as JsoncParseOptions } from "./packem_shared/types.d-i5rnQECK.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};
|
|
@@ -1,30 +1,5 @@
|
|
|
1
1
|
import { PathLike, Dirent } from 'node:fs';
|
|
2
2
|
import { GlobOptions as GlobOptions$1 } from 'tinyglobby';
|
|
3
|
-
/**
|
|
4
|
-
* Constant to check if the path is visible to the calling process.
|
|
5
|
-
* Corresponds to `node:fs.constants.F_OK`.
|
|
6
|
-
*/
|
|
7
|
-
declare const F_OK: number;
|
|
8
|
-
/**
|
|
9
|
-
* Constant to check if the path is readable to the calling process.
|
|
10
|
-
* Corresponds to `node:fs.constants.R_OK`.
|
|
11
|
-
*/
|
|
12
|
-
declare const R_OK: number;
|
|
13
|
-
/**
|
|
14
|
-
* Constant to check if the path is writable to the calling process.
|
|
15
|
-
* Corresponds to `node:fs.constants.W_OK`.
|
|
16
|
-
*/
|
|
17
|
-
declare const W_OK: number;
|
|
18
|
-
/**
|
|
19
|
-
* Constant to check if the path is executable by the calling process.
|
|
20
|
-
* Corresponds to `node:fs.constants.X_OK`.
|
|
21
|
-
*/
|
|
22
|
-
declare const X_OK: number;
|
|
23
|
-
/**
|
|
24
|
-
* A special symbol that can be returned by the matcher function in `findUp` or `findUpSync`
|
|
25
|
-
* to stop the search process prematurely.
|
|
26
|
-
*/
|
|
27
|
-
declare const FIND_UP_STOP: symbol;
|
|
28
3
|
/**
|
|
29
4
|
* Tracks newlines during parsing in order to provide an efficient API for
|
|
30
5
|
* determining the one-indexed `{ line, col }` position for any offset
|
|
@@ -1138,6 +1113,31 @@ declare class Directives {
|
|
|
1138
1113
|
tagString(tag: string): string;
|
|
1139
1114
|
toString(doc?: Document): string;
|
|
1140
1115
|
}
|
|
1116
|
+
/**
|
|
1117
|
+
* Constant to check if the path is visible to the calling process.
|
|
1118
|
+
* Corresponds to `node:fs.constants.F_OK`.
|
|
1119
|
+
*/
|
|
1120
|
+
declare const F_OK: number;
|
|
1121
|
+
/**
|
|
1122
|
+
* Constant to check if the path is readable to the calling process.
|
|
1123
|
+
* Corresponds to `node:fs.constants.R_OK`.
|
|
1124
|
+
*/
|
|
1125
|
+
declare const R_OK: number;
|
|
1126
|
+
/**
|
|
1127
|
+
* Constant to check if the path is writable to the calling process.
|
|
1128
|
+
* Corresponds to `node:fs.constants.W_OK`.
|
|
1129
|
+
*/
|
|
1130
|
+
declare const W_OK: number;
|
|
1131
|
+
/**
|
|
1132
|
+
* Constant to check if the path is executable by the calling process.
|
|
1133
|
+
* Corresponds to `node:fs.constants.X_OK`.
|
|
1134
|
+
*/
|
|
1135
|
+
declare const X_OK: number;
|
|
1136
|
+
/**
|
|
1137
|
+
* A special symbol that can be returned by the matcher function in `findUp` or `findUpSync`
|
|
1138
|
+
* to stop the search process prematurely.
|
|
1139
|
+
*/
|
|
1140
|
+
declare const FIND_UP_STOP: symbol;
|
|
1141
1141
|
type ColorizeMethod = (value: string) => string;
|
|
1142
1142
|
/**
|
|
1143
1143
|
* Options accepted by `jsonc-parser`'s `parse` function.
|
|
@@ -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,
|
|
1660
|
+
export { CodeFrameLocation as A, FIND_UP_STOP as B, CompressionType as C, F_OK as D, FindUpNameFnResult as E, FindUpName as F, GlobOptions as G, FindUpNameSyncFnResult as H, IniEncodeOptions as I, JsonReplacer 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, ReadYamlOptions as a, WriteYamlOptions as b, YamlReplacer as c, ReadJson5Options as d, Json5Reviver as e, WriteJson5Options as f, Json5Replacer as g, ReadIniOptions as h, WriteIniOptions as i, IniLineEnding as j, CodeFrameOptions as k, JsonReviver as l, ReadJsoncOptions as m, WriteJsoncOptions as n, JsoncFormattingOptions as o, JsoncParseOptions 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 {
|
|
1
|
+
import { C as CompressionType, R as ReadTomlOptions, W as WriteTomlOptions } from "./packem_shared/types.d-i5rnQECK.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 {
|
|
3
|
+
import { k as CodeFrameOptions, l as JsonReviver } from "./packem_shared/types.d-i5rnQECK.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 {
|
|
2
|
-
export { type
|
|
1
|
+
import { C as CompressionType, a as ReadYamlOptions, Y as YamlReviver, b as WriteYamlOptions, J as JsonReplacer } from "./packem_shared/types.d-i5rnQECK.js";
|
|
2
|
+
export { type c as YamlReplacer } from "./packem_shared/types.d-i5rnQECK.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.26",
|
|
4
4
|
"description": "Human friendly file system utilities for Node.js",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"anolilab",
|
|
@@ -63,11 +63,6 @@
|
|
|
63
63
|
"bugs": {
|
|
64
64
|
"url": "https://github.com/visulima/visulima/issues"
|
|
65
65
|
},
|
|
66
|
-
"license": "MIT",
|
|
67
|
-
"author": {
|
|
68
|
-
"name": "Daniel Bannert",
|
|
69
|
-
"email": "d.bannert@anolilab.de"
|
|
70
|
-
},
|
|
71
66
|
"repository": {
|
|
72
67
|
"type": "git",
|
|
73
68
|
"url": "git+https://github.com/visulima/visulima.git",
|
|
@@ -83,19 +78,13 @@
|
|
|
83
78
|
"url": "https://anolilab.com/support"
|
|
84
79
|
}
|
|
85
80
|
],
|
|
86
|
-
"
|
|
87
|
-
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
|
|
91
|
-
],
|
|
92
|
-
"os": [
|
|
93
|
-
"darwin",
|
|
94
|
-
"linux",
|
|
95
|
-
"win32"
|
|
96
|
-
],
|
|
97
|
-
"type": "module",
|
|
81
|
+
"license": "MIT",
|
|
82
|
+
"author": {
|
|
83
|
+
"name": "Daniel Bannert",
|
|
84
|
+
"email": "d.bannert@anolilab.de"
|
|
85
|
+
},
|
|
98
86
|
"sideEffects": false,
|
|
87
|
+
"type": "module",
|
|
99
88
|
"exports": {
|
|
100
89
|
".": {
|
|
101
90
|
"types": "./dist/index.d.ts",
|
|
@@ -155,10 +144,12 @@
|
|
|
155
144
|
},
|
|
156
145
|
"./package.json": "./package.json"
|
|
157
146
|
},
|
|
158
|
-
"
|
|
159
|
-
"
|
|
160
|
-
"
|
|
161
|
-
|
|
147
|
+
"files": [
|
|
148
|
+
"dist/**",
|
|
149
|
+
"README.md",
|
|
150
|
+
"CHANGELOG.md",
|
|
151
|
+
"LICENSE.md"
|
|
152
|
+
],
|
|
162
153
|
"dependencies": {
|
|
163
154
|
"@visulima/path": "3.0.0-alpha.10"
|
|
164
155
|
},
|
|
@@ -188,5 +179,14 @@
|
|
|
188
179
|
},
|
|
189
180
|
"engines": {
|
|
190
181
|
"node": "^22.14.0 || >=24.10.0"
|
|
182
|
+
},
|
|
183
|
+
"os": [
|
|
184
|
+
"darwin",
|
|
185
|
+
"linux",
|
|
186
|
+
"win32"
|
|
187
|
+
],
|
|
188
|
+
"publishConfig": {
|
|
189
|
+
"access": "public",
|
|
190
|
+
"provenance": true
|
|
191
191
|
}
|
|
192
192
|
}
|
|
@@ -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};
|