@visulima/fs 3.1.0 → 3.1.1
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 +10 -0
- package/README.md +166 -165
- package/dist/error.d.ts +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.d.ts +3 -3
- package/dist/index.mjs +2 -2
- package/dist/packem_shared/{collect-BtDVJEOm.mjs → collect-DIZ3yuRZ.mjs} +1 -1
- package/dist/packem_shared/{collect-DxUriHCH.cjs → collect-DZVa0P7v.cjs} +1 -1
- package/dist/packem_shared/{walk-BW7b4GXI.cjs → walk-1LfF6MKY.cjs} +6 -12
- package/dist/packem_shared/{walk-CNcSYQVq.mjs → walk-CSp2zlI2.mjs} +6 -12
- package/dist/utils.d.ts +3 -3
- package/dist/yaml.d.ts +1 -1
- package/package.json +1 -1
- /package/dist/packem_shared/{json-error-ZPgZIXcg.d.mjs → json-error-ZPgZIXcg.d.ts} +0 -0
- /package/dist/packem_shared/{observable-like.d-BlD8q22s.d.mjs → observable-like.d-BlD8q22s.d.ts} +0 -0
- /package/dist/packem_shared/{types-CiwAWOQj.d.mjs → types-CiwAWOQj.d.ts} +0 -0
package/dist/error.d.ts
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -12,11 +12,11 @@ const ensureLinkSync = require('./packem_shared/ensureLinkSync-BVw3h6sK.cjs');
|
|
|
12
12
|
const ensureSymlink = require('./packem_shared/ensureSymlink-CFSfreco.cjs');
|
|
13
13
|
const ensureSymlinkSync = require('./packem_shared/ensureSymlinkSync-BCd9bzsx.cjs');
|
|
14
14
|
const LF = require('./packem_shared/LF-bB2qO80j.cjs');
|
|
15
|
-
const collect = require('./packem_shared/collect-
|
|
15
|
+
const collect = require('./packem_shared/collect-DZVa0P7v.cjs');
|
|
16
16
|
const collectSync = require('./packem_shared/collectSync-BaA0s001.cjs');
|
|
17
17
|
const findUp = require('./packem_shared/findUp-DA511Swp.cjs');
|
|
18
18
|
const findUpSync = require('./packem_shared/findUpSync-u1rGibzw.cjs');
|
|
19
|
-
const walk = require('./packem_shared/walk-
|
|
19
|
+
const walk = require('./packem_shared/walk-1LfF6MKY.cjs');
|
|
20
20
|
const walkSync = require('./packem_shared/walkSync-DgPj93NL.cjs');
|
|
21
21
|
const isAccessible = require('./packem_shared/isAccessible-ZNVGsSb7.cjs');
|
|
22
22
|
const isAccessibleSync = require('./packem_shared/isAccessibleSync-VWjQa-US.cjs');
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { W as WalkOptions, F as FindUpName, a as FindUpOptions, b as FindUpNameSync, c as WalkEntry, R as ReadFileOptions, C as ContentType, d as ReadJsonOptions, J as JsonReviver, E as EmptyDirOptions, e as WriteFileOptions, f as WriteJsonOptions } from './packem_shared/types-CiwAWOQj.
|
|
2
|
-
export { k as CodeFrameLocation, h as FIND_UP_STOP, g as F_OK, l as FindUpNameFnResult, m as FindUpNameSyncFnResult, n as JsonReplacer, i as R_OK, o as ReadFileEncoding, j as W_OK, X as X_OK } from './packem_shared/types-CiwAWOQj.
|
|
1
|
+
import { W as WalkOptions, F as FindUpName, a as FindUpOptions, b as FindUpNameSync, c as WalkEntry, R as ReadFileOptions, C as ContentType, d as ReadJsonOptions, J as JsonReviver, E as EmptyDirOptions, e as WriteFileOptions, f as WriteJsonOptions } from './packem_shared/types-CiwAWOQj.js';
|
|
2
|
+
export { k as CodeFrameLocation, h as FIND_UP_STOP, g as F_OK, l as FindUpNameFnResult, m as FindUpNameSyncFnResult, n as JsonReplacer, i as R_OK, o as ReadFileEncoding, j as W_OK, X as X_OK } from './packem_shared/types-CiwAWOQj.js';
|
|
3
3
|
import { symlink } from 'node:fs';
|
|
4
4
|
import { brotliDecompress, unzip, brotliDecompressSync, unzipSync } from 'node:zlib';
|
|
5
|
-
import { J as JsonValue } from './packem_shared/observable-like.d-BlD8q22s.
|
|
5
|
+
import { J as JsonValue } from './packem_shared/observable-like.d-BlD8q22s.js';
|
|
6
6
|
import 'yaml';
|
|
7
7
|
|
|
8
8
|
declare const ensureDir: (directory: URL | string) => Promise<void>;
|
package/dist/index.mjs
CHANGED
|
@@ -8,11 +8,11 @@ export { default as ensureLinkSync } from './packem_shared/ensureLinkSync-Dk-YeR
|
|
|
8
8
|
export { default as ensureSymlink } from './packem_shared/ensureSymlink-CSqngPoI.mjs';
|
|
9
9
|
export { default as ensureSymlinkSync } from './packem_shared/ensureSymlinkSync-QRaNZX2E.mjs';
|
|
10
10
|
export { CRLF, EOL, LF, detect, format } from './packem_shared/LF-CU3KsvZC.mjs';
|
|
11
|
-
export { default as collect } from './packem_shared/collect-
|
|
11
|
+
export { default as collect } from './packem_shared/collect-DIZ3yuRZ.mjs';
|
|
12
12
|
export { default as collectSync } from './packem_shared/collectSync-CGjdb50I.mjs';
|
|
13
13
|
export { default as findUp } from './packem_shared/findUp-C8_QpAtD.mjs';
|
|
14
14
|
export { default as findUpSync } from './packem_shared/findUpSync-DVOd3V-q.mjs';
|
|
15
|
-
export { default as walk } from './packem_shared/walk-
|
|
15
|
+
export { default as walk } from './packem_shared/walk-CSp2zlI2.mjs';
|
|
16
16
|
export { default as walkSync } from './packem_shared/walkSync-BzxdFWLU.mjs';
|
|
17
17
|
export { default as isAccessible } from './packem_shared/isAccessible-Bonsm1Ez.mjs';
|
|
18
18
|
export { default as isAccessibleSync } from './packem_shared/isAccessibleSync-3gnUWUwX.mjs';
|
|
@@ -14,12 +14,9 @@ const _createWalkEntry = /* @__PURE__ */ __name(async (path$1) => {
|
|
|
14
14
|
const name = path.basename(normalizePath);
|
|
15
15
|
const info = await promises.stat(normalizePath);
|
|
16
16
|
return {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
isFile: info.isFile,
|
|
21
|
-
// eslint-disable-next-line @typescript-eslint/unbound-method
|
|
22
|
-
isSymbolicLink: info.isSymbolicLink,
|
|
17
|
+
isDirectory: /* @__PURE__ */ __name(() => info.isDirectory(), "isDirectory"),
|
|
18
|
+
isFile: /* @__PURE__ */ __name(() => info.isFile(), "isFile"),
|
|
19
|
+
isSymbolicLink: /* @__PURE__ */ __name(() => info.isSymbolicLink(), "isSymbolicLink"),
|
|
23
20
|
name,
|
|
24
21
|
path: normalizePath
|
|
25
22
|
};
|
|
@@ -83,12 +80,9 @@ async function* walk(directory, {
|
|
|
83
80
|
});
|
|
84
81
|
} else if (entry.isFile() && includeFiles && walkInclude.walkInclude(path$1, extensions, mappedMatch, mappedSkip)) {
|
|
85
82
|
yield {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
isFile: entry.isFile,
|
|
90
|
-
// eslint-disable-next-line @typescript-eslint/unbound-method
|
|
91
|
-
isSymbolicLink: entry.isSymbolicLink,
|
|
83
|
+
isDirectory: /* @__PURE__ */ __name(() => entry.isDirectory(), "isDirectory"),
|
|
84
|
+
isFile: /* @__PURE__ */ __name(() => entry.isFile(), "isFile"),
|
|
85
|
+
isSymbolicLink: /* @__PURE__ */ __name(() => entry.isSymbolicLink(), "isSymbolicLink"),
|
|
92
86
|
name: entry.name,
|
|
93
87
|
path: path$1
|
|
94
88
|
};
|
|
@@ -12,12 +12,9 @@ const _createWalkEntry = /* @__PURE__ */ __name(async (path) => {
|
|
|
12
12
|
const name = basename(normalizePath);
|
|
13
13
|
const info = await stat(normalizePath);
|
|
14
14
|
return {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
isFile: info.isFile,
|
|
19
|
-
// eslint-disable-next-line @typescript-eslint/unbound-method
|
|
20
|
-
isSymbolicLink: info.isSymbolicLink,
|
|
15
|
+
isDirectory: /* @__PURE__ */ __name(() => info.isDirectory(), "isDirectory"),
|
|
16
|
+
isFile: /* @__PURE__ */ __name(() => info.isFile(), "isFile"),
|
|
17
|
+
isSymbolicLink: /* @__PURE__ */ __name(() => info.isSymbolicLink(), "isSymbolicLink"),
|
|
21
18
|
name,
|
|
22
19
|
path: normalizePath
|
|
23
20
|
};
|
|
@@ -81,12 +78,9 @@ async function* walk(directory, {
|
|
|
81
78
|
});
|
|
82
79
|
} else if (entry.isFile() && includeFiles && walkInclude(path, extensions, mappedMatch, mappedSkip)) {
|
|
83
80
|
yield {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
isFile: entry.isFile,
|
|
88
|
-
// eslint-disable-next-line @typescript-eslint/unbound-method
|
|
89
|
-
isSymbolicLink: entry.isSymbolicLink,
|
|
81
|
+
isDirectory: /* @__PURE__ */ __name(() => entry.isDirectory(), "isDirectory"),
|
|
82
|
+
isFile: /* @__PURE__ */ __name(() => entry.isFile(), "isFile"),
|
|
83
|
+
isSymbolicLink: /* @__PURE__ */ __name(() => entry.isSymbolicLink(), "isSymbolicLink"),
|
|
90
84
|
name: entry.name,
|
|
91
85
|
path
|
|
92
86
|
};
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { J as JSONError } from './packem_shared/json-error-ZPgZIXcg.
|
|
2
|
-
import { J as JsonValue } from './packem_shared/observable-like.d-BlD8q22s.
|
|
3
|
-
import { p as CodeFrameOptions, J as JsonReviver } from './packem_shared/types-CiwAWOQj.
|
|
1
|
+
export { J as JSONError } from './packem_shared/json-error-ZPgZIXcg.js';
|
|
2
|
+
import { J as JsonValue } from './packem_shared/observable-like.d-BlD8q22s.js';
|
|
3
|
+
import { p as CodeFrameOptions, J as JsonReviver } from './packem_shared/types-CiwAWOQj.js';
|
|
4
4
|
export { toPath } from '@visulima/path/utils';
|
|
5
5
|
import 'node:fs';
|
|
6
6
|
import 'yaml';
|
package/dist/yaml.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { q as ReadYamlOptions, Y as YamlReviver, r as YamlReplacer } from './packem_shared/types-CiwAWOQj.
|
|
1
|
+
import { q as ReadYamlOptions, Y as YamlReviver, r as YamlReplacer } from './packem_shared/types-CiwAWOQj.js';
|
|
2
2
|
import { CreateNodeOptions, DocumentOptions, ParseOptions, SchemaOptions, ToStringOptions } from 'yaml';
|
|
3
3
|
import 'node:fs';
|
|
4
4
|
|
package/package.json
CHANGED
|
File without changes
|
/package/dist/packem_shared/{observable-like.d-BlD8q22s.d.mjs → observable-like.d-BlD8q22s.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|