@gesslar/toolkit 5.8.0 → 5.9.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/package.json +6 -6
- package/src/node/lib/Cache.js +97 -21
- package/src/node/lib/DirectoryObject.js +2 -8
- package/types/browser/index.d.ts +6 -3
- package/types/browser/index.d.ts.map +1 -1
- package/types/browser/lib/Collection.d.ts +9 -2
- package/types/browser/lib/Collection.d.ts.map +1 -1
- package/types/browser/lib/Data.d.ts +21 -7
- package/types/browser/lib/Data.d.ts.map +1 -1
- package/types/browser/lib/Disposer.d.ts +2 -2
- package/types/browser/lib/Disposer.d.ts.map +1 -1
- package/types/browser/lib/HTML.d.ts +2 -2
- package/types/browser/lib/HTML.d.ts.map +1 -1
- package/types/browser/lib/Notify.d.ts +16 -16
- package/types/browser/lib/Notify.d.ts.map +1 -1
- package/types/browser/lib/Promised.d.ts +10 -10
- package/types/browser/lib/Promised.d.ts.map +1 -1
- package/types/browser/lib/Sass.d.ts +40 -28
- package/types/browser/lib/Sass.d.ts.map +1 -1
- package/types/browser/lib/Tantrum.d.ts +26 -16
- package/types/browser/lib/Tantrum.d.ts.map +1 -1
- package/types/browser/lib/Time.d.ts.map +1 -1
- package/types/browser/lib/TypeSpec.d.ts +33 -23
- package/types/browser/lib/TypeSpec.d.ts.map +1 -1
- package/types/browser/lib/Util.d.ts.map +1 -1
- package/types/browser/lib/Valid.d.ts +14 -11
- package/types/browser/lib/Valid.d.ts.map +1 -1
- package/types/browser/lib/vendor/dompurify.esm.d.ts +11 -23
- package/types/browser/lib/vendor/dompurify.esm.d.ts.map +1 -1
- package/types/node/index.d.ts +4 -2
- package/types/node/index.d.ts.map +1 -1
- package/types/node/lib/Cache.d.ts +65 -9
- package/types/node/lib/Cache.d.ts.map +1 -1
- package/types/node/lib/Data.d.ts +3 -3
- package/types/node/lib/Data.d.ts.map +1 -1
- package/types/node/lib/DirectoryObject.d.ts +101 -74
- package/types/node/lib/DirectoryObject.d.ts.map +1 -1
- package/types/node/lib/FileObject.d.ts +50 -21
- package/types/node/lib/FileObject.d.ts.map +1 -1
- package/types/node/lib/FileSystem.d.ts +63 -53
- package/types/node/lib/FileSystem.d.ts.map +1 -1
- package/types/node/lib/Font.d.ts +5 -5
- package/types/node/lib/Font.d.ts.map +1 -1
- package/types/node/lib/Glog.d.ts +157 -145
- package/types/node/lib/Glog.d.ts.map +1 -1
- package/types/node/lib/Notify.d.ts +18 -12
- package/types/node/lib/Notify.d.ts.map +1 -1
- package/types/node/lib/Sass.d.ts +14 -2
- package/types/node/lib/Sass.d.ts.map +1 -1
- package/types/node/lib/Tantrum.d.ts +18 -1
- package/types/node/lib/Tantrum.d.ts.map +1 -1
- package/types/node/lib/Term.d.ts +1 -2
- package/types/node/lib/Term.d.ts.map +1 -1
- package/types/node/lib/Util.d.ts +3 -11
- package/types/node/lib/Util.d.ts.map +1 -1
- package/types/node/lib/Valid.d.ts +8 -2
- package/types/node/lib/Valid.d.ts.map +1 -1
- package/types/node/lib/Watcher.d.ts +4 -4
- package/types/node/lib/Watcher.d.ts.map +1 -1
- package/vendor/toolkit.esm.js +1 -1
- package/vendor/toolkit.umd.js +1 -1
|
@@ -1,8 +1,58 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @
|
|
3
|
-
* @
|
|
4
|
-
*
|
|
2
|
+
* @file DirectoryObject.js
|
|
3
|
+
* @description Class representing a directory and its metadata, including path
|
|
4
|
+
* resolution and existence checks.
|
|
5
5
|
*/
|
|
6
|
+
import { URL } from "node:url";
|
|
7
|
+
import { inspect } from "node:util";
|
|
8
|
+
import FileObject from "./FileObject.js";
|
|
9
|
+
import FS from "./FileSystem.js";
|
|
10
|
+
export type DirectoryMeta = {
|
|
11
|
+
/**
|
|
12
|
+
* - Always true for directories
|
|
13
|
+
*/
|
|
14
|
+
isDirectory: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* - The directory extension (if any)
|
|
17
|
+
*/
|
|
18
|
+
extension: string | null;
|
|
19
|
+
/**
|
|
20
|
+
* - The directory name without extension
|
|
21
|
+
*/
|
|
22
|
+
module: string | null;
|
|
23
|
+
/**
|
|
24
|
+
* - The directory name
|
|
25
|
+
*/
|
|
26
|
+
name: string | null;
|
|
27
|
+
/**
|
|
28
|
+
* - The parent DirectoryObject
|
|
29
|
+
*/
|
|
30
|
+
parent: DirectoryObject | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* - The parent directory path
|
|
33
|
+
*/
|
|
34
|
+
parentPath: string | null;
|
|
35
|
+
/**
|
|
36
|
+
* - The absolute directory path
|
|
37
|
+
*/
|
|
38
|
+
path: string | null;
|
|
39
|
+
/**
|
|
40
|
+
* - Path separator
|
|
41
|
+
*/
|
|
42
|
+
sep: string | null;
|
|
43
|
+
/**
|
|
44
|
+
* - User-supplied path
|
|
45
|
+
*/
|
|
46
|
+
supplied: string | null;
|
|
47
|
+
/**
|
|
48
|
+
* - Path segments
|
|
49
|
+
*/
|
|
50
|
+
trail: Array<string> | null;
|
|
51
|
+
/**
|
|
52
|
+
* - The directory URL
|
|
53
|
+
*/
|
|
54
|
+
url: URL | null;
|
|
55
|
+
};
|
|
6
56
|
/**
|
|
7
57
|
* @typedef {object} DirectoryMeta
|
|
8
58
|
*
|
|
@@ -65,7 +115,22 @@
|
|
|
65
115
|
* const file = dir.getFile("package.json")
|
|
66
116
|
*/
|
|
67
117
|
export default class DirectoryObject extends FS {
|
|
68
|
-
|
|
118
|
+
#private;
|
|
119
|
+
/**
|
|
120
|
+
* Custom Node.js inspect implementation for console.log output.
|
|
121
|
+
*
|
|
122
|
+
* @param {number} depth - Inspection depth
|
|
123
|
+
* @param {object} options - Inspect options
|
|
124
|
+
* @param {Function} ins - The inspect function
|
|
125
|
+
* @returns {string} Formatted string representation
|
|
126
|
+
*/
|
|
127
|
+
[inspect.custom]: (depth: number, options: object, ins: Function) => string;
|
|
128
|
+
/**
|
|
129
|
+
* Constructs a DirectoryObject instance.
|
|
130
|
+
*
|
|
131
|
+
* @param {string?} [supplied="."] - The directory path (defaults to current directory)
|
|
132
|
+
*/
|
|
133
|
+
constructor(supplied?: string | null);
|
|
69
134
|
/**
|
|
70
135
|
* Creates a DirectoryObject from the current working directory.
|
|
71
136
|
* Useful when working with pnpx or other tools where the project root
|
|
@@ -78,17 +143,26 @@ export default class DirectoryObject extends FS {
|
|
|
78
143
|
*/
|
|
79
144
|
static fromCwd(): DirectoryObject;
|
|
80
145
|
/**
|
|
81
|
-
*
|
|
146
|
+
* Returns a string representation of the DirectoryObject.
|
|
82
147
|
*
|
|
83
|
-
* @
|
|
148
|
+
* @returns {string} string representation of the DirectoryObject
|
|
84
149
|
*/
|
|
85
|
-
|
|
150
|
+
toString(): string;
|
|
86
151
|
/**
|
|
87
152
|
* Returns a JSON-serializable representation of the DirectoryObject.
|
|
88
153
|
*
|
|
89
154
|
* @returns {object} Plain object with directory metadata
|
|
90
155
|
*/
|
|
91
156
|
toJSON(): object;
|
|
157
|
+
/**
|
|
158
|
+
* Returns the directory path as a primitive value, enabling natural use in
|
|
159
|
+
* string contexts. String and default hints return the directory path; number
|
|
160
|
+
* hint returns NaN.
|
|
161
|
+
*
|
|
162
|
+
* @param {"string"|"number"|"default"} hint - The coercion type hint
|
|
163
|
+
* @returns {string|number} The directory path, or NaN for numeric coercion
|
|
164
|
+
*/
|
|
165
|
+
[Symbol.toPrimitive](hint: "string" | "number" | "default"): string | number;
|
|
92
166
|
/**
|
|
93
167
|
* Returns the directory path as a primitive string value.
|
|
94
168
|
*
|
|
@@ -191,6 +265,13 @@ export default class DirectoryObject extends FS {
|
|
|
191
265
|
* @returns {boolean} Always true
|
|
192
266
|
*/
|
|
193
267
|
get isDirectory(): boolean;
|
|
268
|
+
/**
|
|
269
|
+
* Resolves the link kind at this path.
|
|
270
|
+
*
|
|
271
|
+
* @private
|
|
272
|
+
* @returns {Promise<"none"|"symbolic"|null>} The link kind
|
|
273
|
+
*/
|
|
274
|
+
private #directoryLinkType;
|
|
194
275
|
/**
|
|
195
276
|
* Lists the contents of a directory, optionally filtered by a glob pattern.
|
|
196
277
|
*
|
|
@@ -241,6 +322,17 @@ export default class DirectoryObject extends FS {
|
|
|
241
322
|
files: Array<FileObject>;
|
|
242
323
|
directories: Array<DirectoryObject>;
|
|
243
324
|
}>;
|
|
325
|
+
/**
|
|
326
|
+
* Categorizes an array of Dirent objects into files and directories.
|
|
327
|
+
* Resolves symbolic links to their target type via `fs.stat()`. Broken
|
|
328
|
+
* symlinks (where the target does not exist) are categorized as files
|
|
329
|
+
* so they can be unlinked.
|
|
330
|
+
*
|
|
331
|
+
* @private
|
|
332
|
+
* @param {Array<import("node:fs").Dirent>} dirents - Directory entries to categorize
|
|
333
|
+
* @returns {Promise<{files: Array<FileObject>, directories: Array<DirectoryObject>}>} Categorized entries
|
|
334
|
+
*/
|
|
335
|
+
private #categorize;
|
|
244
336
|
/**
|
|
245
337
|
* Ensures a directory exists, creating it if necessary.
|
|
246
338
|
* Gracefully handles the case where the directory already exists.
|
|
@@ -259,7 +351,7 @@ export default class DirectoryObject extends FS {
|
|
|
259
351
|
* Generator that walks up the directory tree, yielding each parent directory.
|
|
260
352
|
* Starts from the current directory and yields each parent until reaching the root.
|
|
261
353
|
*
|
|
262
|
-
* @returns {DirectoryObject} Generator yielding parent DirectoryObject instances
|
|
354
|
+
* @returns {IterableIterator<DirectoryObject>} Generator yielding parent DirectoryObject instances
|
|
263
355
|
* @example
|
|
264
356
|
* const dir = new DirectoryObject('/path/to/deep/directory')
|
|
265
357
|
* for(const parent of dir.walkUp) {
|
|
@@ -271,7 +363,7 @@ export default class DirectoryObject extends FS {
|
|
|
271
363
|
* // /
|
|
272
364
|
* }
|
|
273
365
|
*/
|
|
274
|
-
get walkUp(): DirectoryObject
|
|
366
|
+
get walkUp(): IterableIterator<DirectoryObject>;
|
|
275
367
|
/**
|
|
276
368
|
* Deletes an empty directory from the filesystem.
|
|
277
369
|
*
|
|
@@ -356,70 +448,5 @@ export default class DirectoryObject extends FS {
|
|
|
356
448
|
* console.log(escaped.path) // "/projects/git/toolkit/foo/bar.js"
|
|
357
449
|
*/
|
|
358
450
|
getFile(filename: string): FileObject;
|
|
359
|
-
/**
|
|
360
|
-
* Returns the directory path as a primitive value, enabling natural use in
|
|
361
|
-
* string contexts. String and default hints return the directory path; number
|
|
362
|
-
* hint returns NaN.
|
|
363
|
-
*
|
|
364
|
-
* @param {"string"|"number"|"default"} hint - The coercion type hint
|
|
365
|
-
* @returns {string|number} The directory path, or NaN for numeric coercion
|
|
366
|
-
*/
|
|
367
|
-
[Symbol.toPrimitive](hint: "string" | "number" | "default"): string | number;
|
|
368
|
-
#private;
|
|
369
451
|
}
|
|
370
|
-
export type GeneratorType = {
|
|
371
|
-
next: () => {
|
|
372
|
-
value: DirectoryObject;
|
|
373
|
-
done: boolean;
|
|
374
|
-
};
|
|
375
|
-
iterator?: () => GeneratorType;
|
|
376
|
-
};
|
|
377
|
-
export type DirectoryMeta = {
|
|
378
|
-
/**
|
|
379
|
-
* - Always true for directories
|
|
380
|
-
*/
|
|
381
|
-
isDirectory: boolean;
|
|
382
|
-
/**
|
|
383
|
-
* - The directory extension (if any)
|
|
384
|
-
*/
|
|
385
|
-
extension: string | null;
|
|
386
|
-
/**
|
|
387
|
-
* - The directory name without extension
|
|
388
|
-
*/
|
|
389
|
-
module: string | null;
|
|
390
|
-
/**
|
|
391
|
-
* - The directory name
|
|
392
|
-
*/
|
|
393
|
-
name: string | null;
|
|
394
|
-
/**
|
|
395
|
-
* - The parent DirectoryObject
|
|
396
|
-
*/
|
|
397
|
-
parent: DirectoryObject | undefined;
|
|
398
|
-
/**
|
|
399
|
-
* - The parent directory path
|
|
400
|
-
*/
|
|
401
|
-
parentPath: string | null;
|
|
402
|
-
/**
|
|
403
|
-
* - The absolute directory path
|
|
404
|
-
*/
|
|
405
|
-
path: string | null;
|
|
406
|
-
/**
|
|
407
|
-
* - Path separator
|
|
408
|
-
*/
|
|
409
|
-
sep: string | null;
|
|
410
|
-
/**
|
|
411
|
-
* - User-supplied path
|
|
412
|
-
*/
|
|
413
|
-
supplied: string | null;
|
|
414
|
-
/**
|
|
415
|
-
* - Path segments
|
|
416
|
-
*/
|
|
417
|
-
trail: Array<string> | null;
|
|
418
|
-
/**
|
|
419
|
-
* - The directory URL
|
|
420
|
-
*/
|
|
421
|
-
url: URL | null;
|
|
422
|
-
};
|
|
423
|
-
import FS from "./FileSystem.js";
|
|
424
|
-
import FileObject from "./FileObject.js";
|
|
425
452
|
//# sourceMappingURL=DirectoryObject.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DirectoryObject.d.ts","sourceRoot":"","sources":["../../../src/node/lib/DirectoryObject.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DirectoryObject.d.ts","sourceRoot":"","sources":["../../../src/node/lib/DirectoryObject.js"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,EAAC,GAAG,EAAC,MAAM,UAAU,CAAA;AAC5B,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAA;AAGjC,OAAO,UAAU,MAAM,iBAAiB,CAAA;AACxC,OAAO,EAAE,MAAM,iBAAiB,CAAA;AAK7B,YAAkB,aAAa,GAE/B;;;;IAAoB,WAAW,EAApB,OAAO,CAClB;;;;IAAwB,SAAS,EAAtB,MAAM,GAAC,IAAI,CACtB;;;;IAAwB,MAAM,EAAnB,MAAM,GAAC,IAAI,CACtB;;;;IAAwB,IAAI,EAAjB,MAAM,GAAC,IAAI,CACtB;;;;IAAsC,MAAM,EAAjC,eAAe,GAAC,SAAS,CACpC;;;;IAAwB,UAAU,EAAvB,MAAM,GAAC,IAAI,CACtB;;;;IAAwB,IAAI,EAAjB,MAAM,GAAC,IAAI,CACtB;;;;IAAwB,GAAG,EAAhB,MAAM,GAAC,IAAI,CACtB;;;;IAAwB,QAAQ,EAArB,MAAM,GAAC,IAAI,CACtB;;;;IAA+B,KAAK,EAAzB,KAAK,CAAC,MAAM,CAAC,GAAC,IAAI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ACH,YAAY,CAAC,OAAO,EAbT,MAaS,GAZP,eAAe,CAgC3B;IAED;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACH,OAAO,CAAC,QAAQ,EAbL,MAaK,GAZH,UAAU,CAgCtB;CACF"}
|
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file FileObject.js
|
|
3
|
+
* @description Class representing a file and its metadata, including path
|
|
4
|
+
* resolution and existence checks.
|
|
5
|
+
*/
|
|
6
|
+
import { Buffer } from "node:buffer";
|
|
7
|
+
import { URL } from "node:url";
|
|
8
|
+
import { inspect } from "node:util";
|
|
9
|
+
import Cache from "./Cache.js";
|
|
10
|
+
import DirectoryObject from "./DirectoryObject.js";
|
|
11
|
+
import FS from "./FileSystem.js";
|
|
1
12
|
/**
|
|
2
13
|
* FileObject encapsulates metadata and operations for a file, including path
|
|
3
14
|
* resolution and existence checks.
|
|
@@ -14,20 +25,16 @@
|
|
|
14
25
|
* @property {Promise<("none"|"symbolic"|"broken"|"hard"|null)>} linkType - The link kind at this path (async)
|
|
15
26
|
*/
|
|
16
27
|
export default class FileObject extends FS {
|
|
17
|
-
|
|
28
|
+
#private;
|
|
18
29
|
/**
|
|
19
|
-
*
|
|
20
|
-
* that called this method). Parses the stack trace to determine the
|
|
21
|
-
* caller's file path.
|
|
30
|
+
* Custom Node.js inspect implementation for console.log output.
|
|
22
31
|
*
|
|
23
|
-
* @
|
|
24
|
-
* @
|
|
25
|
-
* @
|
|
26
|
-
*
|
|
27
|
-
* const thisFile = FileObject.fromCwf()
|
|
28
|
-
* console.log(thisFile.path) // /home/user/project/src/app.js
|
|
32
|
+
* @param {number} depth - Inspection depth
|
|
33
|
+
* @param {object} options - Inspect options
|
|
34
|
+
* @param {Function} ins - The inspect function
|
|
35
|
+
* @returns {string} Formatted string representation
|
|
29
36
|
*/
|
|
30
|
-
|
|
37
|
+
[inspect.custom]: (depth: number, options: object, ins: Function) => string;
|
|
31
38
|
/**
|
|
32
39
|
* Constructs a FileObject instance.
|
|
33
40
|
*
|
|
@@ -35,12 +42,27 @@ export default class FileObject extends FS {
|
|
|
35
42
|
* @param {DirectoryObject|string|null} [parent] - The parent directory (object or string)
|
|
36
43
|
*/
|
|
37
44
|
constructor(submitted: string, parent?: DirectoryObject | string | null);
|
|
45
|
+
/**
|
|
46
|
+
* Returns a string representation of the FileObject.
|
|
47
|
+
*
|
|
48
|
+
* @returns {string} String representation of the FileObject
|
|
49
|
+
*/
|
|
50
|
+
toString(): string;
|
|
38
51
|
/**
|
|
39
52
|
* Returns a JSON-serializable representation of the FileObject.
|
|
40
53
|
*
|
|
41
54
|
* @returns {object} Plain object with file metadata
|
|
42
55
|
*/
|
|
43
56
|
toJSON(): object;
|
|
57
|
+
/**
|
|
58
|
+
* Returns the file path as a primitive value, enabling natural use in
|
|
59
|
+
* string contexts. String and default hints return the file path; number
|
|
60
|
+
* hint returns NaN.
|
|
61
|
+
*
|
|
62
|
+
* @param {"string"|"number"|"default"} hint - The coercion type hint
|
|
63
|
+
* @returns {string|number} The file path, or NaN for numeric coercion
|
|
64
|
+
*/
|
|
65
|
+
[Symbol.toPrimitive](hint: "string" | "number" | "default"): string | number;
|
|
44
66
|
/**
|
|
45
67
|
* Returns the file path as a primitive string value.
|
|
46
68
|
*
|
|
@@ -144,6 +166,13 @@ export default class FileObject extends FS {
|
|
|
144
166
|
* @returns {Promise<boolean>} Whether the file can be written
|
|
145
167
|
*/
|
|
146
168
|
canWrite(): Promise<boolean>;
|
|
169
|
+
/**
|
|
170
|
+
* Resolves the link kind at this path.
|
|
171
|
+
*
|
|
172
|
+
* @private
|
|
173
|
+
* @returns {Promise<"none"|"symbolic"|"broken"|"hard"|null>} The link kind
|
|
174
|
+
*/
|
|
175
|
+
private #fileLinkType;
|
|
147
176
|
/**
|
|
148
177
|
* Determines the size of a file.
|
|
149
178
|
*
|
|
@@ -309,17 +338,17 @@ export default class FileObject extends FS {
|
|
|
309
338
|
*/
|
|
310
339
|
delete(): Promise<undefined>;
|
|
311
340
|
/**
|
|
312
|
-
*
|
|
313
|
-
*
|
|
314
|
-
*
|
|
341
|
+
* Creates a FileObject representing the current working file (the file
|
|
342
|
+
* that called this method). Parses the stack trace to determine the
|
|
343
|
+
* caller's file path.
|
|
315
344
|
*
|
|
316
|
-
* @
|
|
317
|
-
* @
|
|
345
|
+
* @returns {FileObject} A new FileObject instance for the calling file
|
|
346
|
+
* @throws {Sass} If unable to determine caller file from stack trace
|
|
347
|
+
* @example
|
|
348
|
+
* // In /home/user/project/src/app.js:
|
|
349
|
+
* const thisFile = FileObject.fromCwf()
|
|
350
|
+
* console.log(thisFile.path) // /home/user/project/src/app.js
|
|
318
351
|
*/
|
|
319
|
-
|
|
320
|
-
#private;
|
|
352
|
+
static fromCwf(): FileObject;
|
|
321
353
|
}
|
|
322
|
-
import FS from "./FileSystem.js";
|
|
323
|
-
import DirectoryObject from "./DirectoryObject.js";
|
|
324
|
-
import Cache from "./Cache.js";
|
|
325
354
|
//# sourceMappingURL=FileObject.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileObject.d.ts","sourceRoot":"","sources":["../../../src/node/lib/FileObject.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FileObject.d.ts","sourceRoot":"","sources":["../../../src/node/lib/FileObject.js"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAC,MAAM,EAAC,MAAM,aAAa,CAAA;AAElC,OAAO,EAAC,GAAG,EAAC,MAAM,UAAU,CAAA;AAC5B,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAA;AAEjC,OAAO,KAAK,MAAM,YAAY,CAAA;AAE9B,OAAO,eAAe,MAAM,sBAAsB,CAAA;AAClD,OAAO,EAAE,MAAM,iBAAiB,CAAA;AAIhC;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,EAAE;;IA2HxC;;;;;;;OAOG;IACH,CAAC,OAAO,CA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G;IACG,MAAM,IAFC,OAAO,CAAC,MAAM,CAAC,CAS3B;IAED;;;;;;;;;;;;OAYG;IACG,IAAI,CAAC,WAAW,EATX,MASW,GART,OAAO,CAAC,UAAU,CAAC,CAyB/B;IAED;;;;;;;;;;;;;OAaG;IACG,IAAI,CAAC,WAAW,EATX,MASW,GART,OAAO,CAAC,UAAU,CAAC,CA0C/B;IAED;;;;;;;;;OASG;IACG,MAAM,IAPC,OAAO,CAAC,SAAS,CAAC,CAc9B;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,OAAO,IAPD,UAAU,CAsCtB;CACF"}
|
|
@@ -1,10 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file FS.js
|
|
3
|
+
*
|
|
4
|
+
* File system utilities for path manipulation, file discovery, and path
|
|
5
|
+
* resolution.
|
|
6
|
+
*
|
|
7
|
+
* Provides glob-based file search, URI conversion, and intelligent path
|
|
8
|
+
* merging.
|
|
9
|
+
*/
|
|
10
|
+
export type PathParts = {
|
|
11
|
+
/**
|
|
12
|
+
* - The file name with extension
|
|
13
|
+
*/
|
|
14
|
+
base: string;
|
|
15
|
+
/**
|
|
16
|
+
* - The directory path
|
|
17
|
+
*/
|
|
18
|
+
dir: string;
|
|
19
|
+
/**
|
|
20
|
+
* - The file extension (including dot)
|
|
21
|
+
*/
|
|
22
|
+
ext: string;
|
|
23
|
+
/**
|
|
24
|
+
* - The root of the path
|
|
25
|
+
*/
|
|
26
|
+
root: string;
|
|
27
|
+
/**
|
|
28
|
+
* - The file name without extension
|
|
29
|
+
*/
|
|
30
|
+
name: string;
|
|
31
|
+
};
|
|
1
32
|
/**
|
|
2
33
|
* File system utility class for path operations and file discovery.
|
|
3
34
|
*/
|
|
4
35
|
export default class FileSystem {
|
|
36
|
+
#private;
|
|
5
37
|
static fdTypes: readonly string[];
|
|
6
38
|
static upperFdTypes: readonly string[];
|
|
7
|
-
static fdType:
|
|
39
|
+
static fdType: object;
|
|
40
|
+
/**
|
|
41
|
+
* Compute the relative path from another file or directory to this instance.
|
|
42
|
+
*
|
|
43
|
+
* If the target is outside the source (i.e., the relative path starts with ".."),
|
|
44
|
+
* returns the absolute path to this instance instead.
|
|
45
|
+
*
|
|
46
|
+
* @param {import("./FileObject.js").default|import("./DirectoryObject.js").default} fileOrDirectoryObject - The source file or directory object
|
|
47
|
+
* @returns {string} The relative path from the source to this instance, or the absolute path if not reachable
|
|
48
|
+
* @throws {Sass} If the parameter is not a FileObject or DirectoryObject
|
|
49
|
+
*/
|
|
50
|
+
relativeTo(fileOrDirectoryObject: import("./FileObject.js").default | import("./DirectoryObject.js").default): string;
|
|
51
|
+
/**
|
|
52
|
+
* Watch this file or directory for changes.
|
|
53
|
+
*
|
|
54
|
+
* @param {object} [options] - Watch options
|
|
55
|
+
* @param {Function} [options.onChange] - Callback invoked on change
|
|
56
|
+
* @param {number} [options.debounceMs] - Debounce interval in milliseconds
|
|
57
|
+
* @param {boolean} [options.persistent] - Keep the process alive while watching
|
|
58
|
+
* @returns {Promise<undefined>}
|
|
59
|
+
*/
|
|
60
|
+
watch(options?: {
|
|
61
|
+
onChange?: Function;
|
|
62
|
+
debounceMs?: number;
|
|
63
|
+
persistent?: boolean;
|
|
64
|
+
}): Promise<undefined>;
|
|
65
|
+
/**
|
|
66
|
+
* Stop watching this file or directory for changes.
|
|
67
|
+
*/
|
|
68
|
+
stopWatching(): void;
|
|
8
69
|
/**
|
|
9
70
|
* Fix slashes in a path
|
|
10
71
|
*
|
|
@@ -158,28 +219,7 @@ export default class FileSystem {
|
|
|
158
219
|
* @returns {PathParts} The filename parts
|
|
159
220
|
* @throws {Sass} If not a string of more than 1 character
|
|
160
221
|
*/
|
|
161
|
-
static pathParts(pathName: string):
|
|
162
|
-
/**
|
|
163
|
-
* - The file name with extension
|
|
164
|
-
*/
|
|
165
|
-
base: string;
|
|
166
|
-
/**
|
|
167
|
-
* - The directory path
|
|
168
|
-
*/
|
|
169
|
-
dir: string;
|
|
170
|
-
/**
|
|
171
|
-
* - The file extension (including dot)
|
|
172
|
-
*/
|
|
173
|
-
ext: string;
|
|
174
|
-
/**
|
|
175
|
-
* - The root of the path
|
|
176
|
-
*/
|
|
177
|
-
root: string;
|
|
178
|
-
/**
|
|
179
|
-
* - The file name without extension
|
|
180
|
-
*/
|
|
181
|
-
name: string;
|
|
182
|
-
};
|
|
222
|
+
static pathParts(pathName: string): PathParts;
|
|
183
223
|
/**
|
|
184
224
|
* Determine whether a string is safe to use as a filename on every common
|
|
185
225
|
* operating system.
|
|
@@ -257,35 +297,5 @@ export default class FileSystem {
|
|
|
257
297
|
* @returns {string} The current working directory
|
|
258
298
|
*/
|
|
259
299
|
static get cwd(): string;
|
|
260
|
-
/**
|
|
261
|
-
* Compute the relative path from another file or directory to this instance.
|
|
262
|
-
*
|
|
263
|
-
* If the target is outside the source (i.e., the relative path starts with ".."),
|
|
264
|
-
* returns the absolute path to this instance instead.
|
|
265
|
-
*
|
|
266
|
-
* @param {import("./FileObject.js").default|import("./DirectoryObject.js").default} fileOrDirectoryObject - The source file or directory object
|
|
267
|
-
* @returns {string} The relative path from the source to this instance, or the absolute path if not reachable
|
|
268
|
-
* @throws {Sass} If the parameter is not a FileObject or DirectoryObject
|
|
269
|
-
*/
|
|
270
|
-
relativeTo(fileOrDirectoryObject: import("./FileObject.js").default | import("./DirectoryObject.js").default): string;
|
|
271
|
-
/**
|
|
272
|
-
* Watch this file or directory for changes.
|
|
273
|
-
*
|
|
274
|
-
* @param {object} [options] - Watch options
|
|
275
|
-
* @param {Function} [options.onChange] - Callback invoked on change
|
|
276
|
-
* @param {number} [options.debounceMs] - Debounce interval in milliseconds
|
|
277
|
-
* @param {boolean} [options.persistent] - Keep the process alive while watching
|
|
278
|
-
* @returns {Promise<undefined>}
|
|
279
|
-
*/
|
|
280
|
-
watch(options?: {
|
|
281
|
-
onChange?: Function;
|
|
282
|
-
debounceMs?: number;
|
|
283
|
-
persistent?: boolean;
|
|
284
|
-
}): Promise<undefined>;
|
|
285
|
-
/**
|
|
286
|
-
* Stop watching this file or directory for changes.
|
|
287
|
-
*/
|
|
288
|
-
stopWatching(): void;
|
|
289
|
-
#private;
|
|
290
300
|
}
|
|
291
301
|
//# sourceMappingURL=FileSystem.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileSystem.d.ts","sourceRoot":"","sources":["../../../src/node/lib/FileSystem.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FileSystem.d.ts","sourceRoot":"","sources":["../../../src/node/lib/FileSystem.js"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAycE,YAAkB,SAAS,GAC3B;;;;IAAmB,IAAI,EAAZ,MAAM,CACjB;;;;IAAmB,GAAG,EAAX,MAAM,CACjB;;;;IAAmB,GAAG,EAAX,MAAM,CACjB;;;;IAAmB,IAAI,EAAZ,MAAM,CACjB;;;;IAAmB,IAAI,EAAZ,MAAM,CACnB;CAAA,CAAA;AAnXH;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,UAAU;;IAC7B,MAAM,CAAC,OAAO,oBAAU;IACxB,MAAM,CAAC,YAAY,oBAAe;IAClC,MAAM,CAAC,MAAM,SAAS;IAItB;;;;;;;;;OASG;IACH,UAAU,CAAC,qBAAqB,EAJrB,OAAO,iBAAiB,EAAE,OAAO,GAAC,OAAO,sBAAsB,EAAE,OAI5C,GAHnB,MAAM,CAWlB;IAED;;;;;;;;OAQG;IACG,KAAK,CAAC,OAAO,AANhB,CAIA,EAHA;QAA2B,QAAQ,AAAnC,CACA,WAAA;QAAyB,UAAU,AAAnC,CACA,EADQ,MAAM,CACd;QAA0B,UAAU,AAApC,CACA,EADQ,OAAO,CACf;KAEmB,GAFT,OAAO,CAAC,SAAS,CAAC,CAwB9B;IAED;;OAEG;IACH,YAAY,SAGX;IAED;;;;;;OAMG;IACH,MAAM,CAAC,UAAU,CAAC,QAAQ,EAHf,MAGe,GAFb,MAAM,CAIlB;IAED;;;;;;OAMG;IACH,MAAM,CAAC,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,EAXlB,MAWkB,EAAE,EAAE,EAVtB,MAUsB,EAAE,GAAG,AATnC,CACA,EADQ,MASoC,GARlC,MAAM,GAAC,IAAI,CA+BvB;IAED;;;;;;;OAOG;IAEH;;;;;;;OAOG;IACH,MAAM,CAAC,SAAS,CAAC,QAAQ,EAJd,MAIc,GAHZ,SAAS,CAOrB;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACH,MAAM,CAAC,IAAI,CAAC,GAAG,EAVJ,MAUI,GATF,OAAO,CAgBnB;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAuCG;IACH,MAAM,CAAC,QAAQ,CAAC,GAAG,EAZR,MAYQ,EAAE,WAAW,AAX7B,CACA,EADQ,MAWyB,GAVvB,MAAM,CA+DlB;IAED;;;;OAIG;IACH,MAAM,KAAK,GAAG,IAFD,MAAM,CAIlB;CACF"}
|
package/types/node/lib/Font.d.ts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Font.js
|
|
3
|
+
* @description Utility class for detecting Nerd Fonts installed on the system.
|
|
4
|
+
*/
|
|
1
5
|
/**
|
|
2
6
|
* Utility class for detecting and identifying Nerd Fonts installed on the system.
|
|
3
7
|
* Supports Windows, macOS, and Linux platforms.
|
|
@@ -15,7 +19,7 @@
|
|
|
15
19
|
* console.log(fonts) // ["FiraCode", "JetBrainsMono", ...]
|
|
16
20
|
*/
|
|
17
21
|
export default class Font {
|
|
18
|
-
|
|
22
|
+
#private;
|
|
19
23
|
/**
|
|
20
24
|
* Finds all Nerd Fonts installed on the system.
|
|
21
25
|
* Detects the current platform and uses platform-specific methods
|
|
@@ -85,10 +89,6 @@ export default class Font {
|
|
|
85
89
|
* @private
|
|
86
90
|
*/
|
|
87
91
|
private static #findNerdFontsLinux;
|
|
88
|
-
/** @type {Array<RegExp>} Patterns to identify Nerd Fonts by filename */
|
|
89
|
-
static #nerdTests: Array<RegExp>;
|
|
90
|
-
/** @type {Array<RegExp>} Patterns to identify Nerd Fonts in fc-list output */
|
|
91
|
-
static #nerdTestsLinux: Array<RegExp>;
|
|
92
92
|
/**
|
|
93
93
|
* Identifies Nerd Fonts from a list of font file objects.
|
|
94
94
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Font.d.ts","sourceRoot":"","sources":["../../../src/node/lib/Font.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Font.d.ts","sourceRoot":"","sources":["../../../src/node/lib/Font.js"],"names":[],"mappings":"AAAA;;;GAGG;AAeH;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,OAAO,OAAO,IAAI;;IAGvB;;;;;;;;;OASG;IACH,OAAa,aAAa,IALb,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAoBlC;IAED;;;;;;;;OAQG;IACH,OAAa,YAAY,IANZ,OAAO,CAAC,OAAO,CAAC,CAQ5B;IAED;;;;;;;;OAQG;IACH,OAAa,mBAAmB,IALnB,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAUlC;IAED;;;;;;OAMG;mBACI,YAAY;IAInB;;;;;;;OAOG;mBACI,eAAe;IAItB;;;;;OAKG;mBACU,qBAAqB;IAkClC;;;;;OAKG;mBACU,iBAAiB;IA2B9B;;;;;OAKG;mBACU,mBAAmB;IA4BhC;;;;;;OAMG;mBACI,kBAAkB;IAczB;;;;;;;;;;OAUG;IACH,MAAM,KAAK,UAAU,IANR,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAYlC;CACF"}
|