@gesslar/toolkit 3.13.0 → 3.14.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.
Files changed (105) hide show
  1. package/README.md +5 -4
  2. package/package.json +11 -10
  3. package/src/{index.js → node/index.js} +11 -10
  4. package/src/{lib → node/lib}/DirectoryObject.js +47 -56
  5. package/src/{lib → node/lib}/FileObject.js +76 -149
  6. package/src/{lib/FS.js → node/lib/FileSystem.js} +7 -7
  7. package/src/{lib → node/lib}/Glog.js +2 -2
  8. package/src/{lib → node/lib}/Logger.js +1 -1
  9. package/src/{lib → node/lib}/Sass.js +1 -1
  10. package/src/{lib → node/lib}/Tantrum.js +1 -1
  11. package/src/{lib → node/lib}/TempDirectoryObject.js +9 -9
  12. package/src/{lib → node/lib}/Util.js +1 -1
  13. package/src/{lib/CappedDirectoryObject.js → node/lib/VDirectoryObject.js} +37 -92
  14. package/src/node/lib/VFileObject.js +61 -0
  15. package/src/{lib → node/lib}/Valid.js +11 -5
  16. package/{src/types → types/browser}/index.d.ts.map +1 -1
  17. package/types/browser/lib/Collection.d.ts.map +1 -0
  18. package/types/browser/lib/Data.d.ts.map +1 -0
  19. package/types/browser/lib/Disposer.d.ts.map +1 -0
  20. package/types/browser/lib/HTML.d.ts.map +1 -0
  21. package/types/browser/lib/Notify.d.ts.map +1 -0
  22. package/types/browser/lib/Promised.d.ts.map +1 -0
  23. package/types/browser/lib/Sass.d.ts.map +1 -0
  24. package/types/browser/lib/Tantrum.d.ts.map +1 -0
  25. package/types/browser/lib/Time.d.ts.map +1 -0
  26. package/types/browser/lib/TypeSpec.d.ts.map +1 -0
  27. package/types/browser/lib/Util.d.ts.map +1 -0
  28. package/types/browser/lib/Valid.d.ts.map +1 -0
  29. package/types/browser/lib/vendor/dompurify.esm.d.ts.map +1 -0
  30. package/{src/types → types/node}/index.d.ts +10 -9
  31. package/{src/types/browser → types/node}/index.d.ts.map +1 -1
  32. package/types/node/lib/Cache.d.ts.map +1 -0
  33. package/{src/types → types/node}/lib/DirectoryObject.d.ts +15 -15
  34. package/types/node/lib/DirectoryObject.d.ts.map +1 -0
  35. package/{src/types → types/node}/lib/FileObject.d.ts +7 -36
  36. package/types/node/lib/FileObject.d.ts.map +1 -0
  37. package/{src/types/lib/FS.d.ts → types/node/lib/FileSystem.d.ts} +2 -2
  38. package/types/node/lib/FileSystem.d.ts.map +1 -0
  39. package/types/node/lib/Glog.d.ts.map +1 -0
  40. package/types/node/lib/Logger.d.ts.map +1 -0
  41. package/types/node/lib/Notify.d.ts.map +1 -0
  42. package/{src/types → types/node}/lib/Sass.d.ts +1 -1
  43. package/types/node/lib/Sass.d.ts.map +1 -0
  44. package/{src/types → types/node}/lib/Tantrum.d.ts +1 -1
  45. package/types/node/lib/Tantrum.d.ts.map +1 -0
  46. package/{src/types → types/node}/lib/TempDirectoryObject.d.ts +4 -4
  47. package/types/node/lib/TempDirectoryObject.d.ts.map +1 -0
  48. package/types/node/lib/Term.d.ts.map +1 -0
  49. package/{src/types → types/node}/lib/Util.d.ts +1 -1
  50. package/types/node/lib/Util.d.ts.map +1 -0
  51. package/{src/types/lib/CappedDirectoryObject.d.ts → types/node/lib/VDirectoryObject.d.ts} +36 -48
  52. package/types/node/lib/VDirectoryObject.d.ts.map +1 -0
  53. package/types/node/lib/VFileObject.d.ts +33 -0
  54. package/types/node/lib/VFileObject.d.ts.map +1 -0
  55. package/{src/types → types/node}/lib/Valid.d.ts +3 -1
  56. package/types/node/lib/Valid.d.ts.map +1 -0
  57. package/src/types/browser/lib/Collection.d.ts.map +0 -1
  58. package/src/types/browser/lib/Data.d.ts.map +0 -1
  59. package/src/types/browser/lib/Disposer.d.ts.map +0 -1
  60. package/src/types/browser/lib/HTML.d.ts.map +0 -1
  61. package/src/types/browser/lib/Notify.d.ts.map +0 -1
  62. package/src/types/browser/lib/Promised.d.ts.map +0 -1
  63. package/src/types/browser/lib/Sass.d.ts.map +0 -1
  64. package/src/types/browser/lib/Tantrum.d.ts.map +0 -1
  65. package/src/types/browser/lib/Time.d.ts.map +0 -1
  66. package/src/types/browser/lib/TypeSpec.d.ts.map +0 -1
  67. package/src/types/browser/lib/Util.d.ts.map +0 -1
  68. package/src/types/browser/lib/Valid.d.ts.map +0 -1
  69. package/src/types/browser/lib/vendor/dompurify.esm.d.ts.map +0 -1
  70. package/src/types/lib/Cache.d.ts.map +0 -1
  71. package/src/types/lib/CappedDirectoryObject.d.ts.map +0 -1
  72. package/src/types/lib/DirectoryObject.d.ts.map +0 -1
  73. package/src/types/lib/FS.d.ts.map +0 -1
  74. package/src/types/lib/FileObject.d.ts.map +0 -1
  75. package/src/types/lib/Glog.d.ts.map +0 -1
  76. package/src/types/lib/Logger.d.ts.map +0 -1
  77. package/src/types/lib/Notify.d.ts.map +0 -1
  78. package/src/types/lib/Sass.d.ts.map +0 -1
  79. package/src/types/lib/Tantrum.d.ts.map +0 -1
  80. package/src/types/lib/TempDirectoryObject.d.ts.map +0 -1
  81. package/src/types/lib/Term.d.ts.map +0 -1
  82. package/src/types/lib/Util.d.ts.map +0 -1
  83. package/src/types/lib/Valid.d.ts.map +0 -1
  84. /package/src/{lib → node/lib}/Cache.js +0 -0
  85. /package/src/{lib → node/lib}/Notify.js +0 -0
  86. /package/src/{lib → node/lib}/Term.js +0 -0
  87. /package/{src/types → types}/browser/index.d.ts +0 -0
  88. /package/{src/types → types}/browser/lib/Collection.d.ts +0 -0
  89. /package/{src/types → types}/browser/lib/Data.d.ts +0 -0
  90. /package/{src/types → types}/browser/lib/Disposer.d.ts +0 -0
  91. /package/{src/types → types}/browser/lib/HTML.d.ts +0 -0
  92. /package/{src/types → types}/browser/lib/Notify.d.ts +0 -0
  93. /package/{src/types → types}/browser/lib/Promised.d.ts +0 -0
  94. /package/{src/types → types}/browser/lib/Sass.d.ts +0 -0
  95. /package/{src/types → types}/browser/lib/Tantrum.d.ts +0 -0
  96. /package/{src/types → types}/browser/lib/Time.d.ts +0 -0
  97. /package/{src/types → types}/browser/lib/TypeSpec.d.ts +0 -0
  98. /package/{src/types → types}/browser/lib/Util.d.ts +0 -0
  99. /package/{src/types → types}/browser/lib/Valid.d.ts +0 -0
  100. /package/{src/types → types}/browser/lib/vendor/dompurify.esm.d.ts +0 -0
  101. /package/{src/types → types/node}/lib/Cache.d.ts +0 -0
  102. /package/{src/types → types/node}/lib/Glog.d.ts +0 -0
  103. /package/{src/types → types/node}/lib/Logger.d.ts +0 -0
  104. /package/{src/types → types/node}/lib/Notify.d.ts +0 -0
  105. /package/{src/types → types/node}/lib/Term.d.ts +0 -0
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @file CappedDirectoryObject.js
2
+ * @file VDirectoryObject.js
3
3
  * @description Abstract base class for directory objects that are constrained
4
4
  * to a specific directory tree (the "cap"). This provides security by ensuring
5
5
  * all operations remain within the capped directory hierarchy.
@@ -11,12 +11,11 @@
11
11
  import path from "node:path"
12
12
 
13
13
  import DirectoryObject from "./DirectoryObject.js"
14
- import FileObject from "./FileObject.js"
15
- import FS from "./FS.js"
14
+ import FileSystem from "./FileSystem.js"
16
15
  import Valid from "./Valid.js"
17
16
 
18
17
  /**
19
- * CappedDirectoryObject extends DirectoryObject with constraints that ensure
18
+ * VDirectoryObject extends DirectoryObject with constraints that ensure
20
19
  * all operations are restricted to a specific directory tree (the "cap").
21
20
  *
22
21
  * All path operations are validated to ensure they remain within the
@@ -24,45 +23,44 @@ import Valid from "./Valid.js"
24
23
  *
25
24
  * @augments DirectoryObject
26
25
  */
27
- export default class CappedDirectoryObject extends DirectoryObject {
26
+ export default class VDirectoryObject extends DirectoryObject {
28
27
  #real
29
28
  #cap
30
29
  #cappedParentPath
31
30
  #cappedParent
32
31
 
33
32
  /**
34
- * Constructs a CappedDirectoryObject instance.
33
+ * Constructs a VDirectoryObject instance.
35
34
  *
36
- * Without a parent, the path becomes both the directory location and the cap
37
- * (virtual root). With a parent, the path is resolved relative to the parent's
38
- * cap using virtual path semantics (absolute paths treated as cap-relative).
35
+ * Without a parent, creates a new cap at the specified real directory location
36
+ * with virtual path "/". With a parent, the path is resolved relative to the
37
+ * parent's virtual path (absolute paths treated as cap-relative).
39
38
  *
40
- * @param {string} [directory="."] - Directory path (becomes cap if no parent, else relative to parent's cap, defaults to current directory)
41
- * @param {CappedDirectoryObject?} [parent] - Optional parent capped directory
42
- * @throws {Sass} If parent is provided but not a CappedDirectoryObject
43
- * @throws {Sass} If the resulting path would escape the cap
39
+ * @param {string} [directory="."] - Real directory path when no parent (becomes cap), or relative/absolute virtual path when parent provided
40
+ * @param {VDirectoryObject?} [parent] - Optional parent capped directory
41
+ * @throws {Sass} If parent is provided but not a VDirectoryObject
44
42
  * @example
45
43
  * // Create new capped directory at current directory
46
- * const cwd = new CappedDirectoryObject()
47
- * // path: process.cwd(), cap: process.cwd()
44
+ * const cwd = new VDirectoryObject()
45
+ * // Virtual path: "/", Real path: process.cwd(), Cap: itself
48
46
  *
49
47
  * @example
50
48
  * // Create new capped directory
51
- * const cache = new CappedDirectoryObject("/home/user/.cache")
52
- * // path: /home/user/.cache, cap: /home/user/.cache
49
+ * const cache = new VDirectoryObject("/home/user/.cache")
50
+ * // Virtual path: "/", Real path: /home/user/.cache, Cap: itself
53
51
  *
54
52
  * @example
55
53
  * // Create subdirectory with parent
56
- * const data = new CappedDirectoryObject("data", cache)
57
- * // path: /home/user/.cache/data, cap: /home/user/.cache
54
+ * const data = new VDirectoryObject("data", cache)
55
+ * // Virtual path: /data, Real path: /home/user/.cache/data, Cap: cache
58
56
  *
59
57
  * @example
60
- * // Virtual absolute path with parent
61
- * const config = new CappedDirectoryObject("/etc/config", cache)
62
- * // path: /home/user/.cache/etc/config, cap: /home/user/.cache
58
+ * // Virtual absolute path with parent (treated as cap-relative)
59
+ * const config = new VDirectoryObject("/etc/config", cache)
60
+ * // Virtual path: /etc/config, Real path: /home/user/.cache/etc/config, Cap: cache
63
61
  */
64
62
  constructor(directory, source=null) {
65
- Valid.type(source, "Null|CappedDirectoryObject")
63
+ Valid.type(source, "Null|VDirectoryObject")
66
64
 
67
65
  directory ||= "."
68
66
 
@@ -73,9 +71,9 @@ export default class CappedDirectoryObject extends DirectoryObject {
73
71
  directory = directory.slice(1)
74
72
 
75
73
  // Find out what directory means to the basePath
76
- const realResolved = FS.resolvePath(baseRealPath, directory)
74
+ const realResolved = FileSystem.resolvePath(baseRealPath, directory)
77
75
  const localResolved = source
78
- ? FS.resolvePath(baseLocalPath, directory)
76
+ ? FileSystem.resolvePath(baseLocalPath, directory)
79
77
  : path.parse(path.resolve("")).root
80
78
 
81
79
  super(localResolved)
@@ -93,14 +91,14 @@ export default class CappedDirectoryObject extends DirectoryObject {
93
91
  }
94
92
 
95
93
  /**
96
- * Creates a CappedDirectoryObject from the current working directory.
94
+ * Creates a VDirectoryObject from the current working directory.
97
95
  * This is useful when working with pnpx or other tools where you need to
98
96
  * cap at the project's root directory determined at runtime.
99
97
  *
100
- * @returns {CappedDirectoryObject} A CappedDirectoryObject capped at the current working directory
98
+ * @returns {VDirectoryObject} A VDirectoryObject capped at the current working directory
101
99
  * @example
102
100
  * // When using pnpx or similar tools
103
- * const projectRoot = CappedDirectoryObject.fromCwd()
101
+ * const projectRoot = VDirectoryObject.fromCwd()
104
102
  * const srcDir = projectRoot.getDirectory("src")
105
103
  * // srcDir is capped at the project root
106
104
  */
@@ -110,26 +108,26 @@ export default class CappedDirectoryObject extends DirectoryObject {
110
108
 
111
109
  /**
112
110
  * Indicates whether this directory is capped (constrained to a specific tree).
113
- * Always returns true for CappedDirectoryObject instances.
111
+ * Always returns true for VDirectoryObject instances.
114
112
  *
115
- * @returns {boolean} True for all CappedDirectoryObject instances
113
+ * @returns {boolean} True for all VDirectoryObject instances
116
114
  * @example
117
115
  * const capped = new TempDirectoryObject("myapp")
118
- * console.log(capped.isCapped) // true
116
+ * console.log(capped.isVirtual) // true
119
117
  *
120
118
  * const regular = new DirectoryObject("/tmp")
121
- * console.log(regular.isCapped) // false
119
+ * console.log(regular.isVirtual) // false
122
120
  */
123
- get isCapped() {
121
+ get isVirtual() {
124
122
  return true
125
123
  }
126
124
 
127
125
  /**
128
126
  * Returns the cap (root) of the capped directory tree.
129
- * For root CappedDirectoryObject instances, returns itself.
127
+ * For root VDirectoryObject instances, returns itself.
130
128
  * For children, returns the inherited cap from the parent chain.
131
129
  *
132
- * @returns {CappedDirectoryObject} The cap directory object (root of the capped tree)
130
+ * @returns {VDirectoryObject} The cap directory object (root of the capped tree)
133
131
  * @example
134
132
  * const temp = new TempDirectoryObject("myapp")
135
133
  * console.log(temp.cap === temp) // true (root is its own cap)
@@ -167,14 +165,14 @@ export default class CappedDirectoryObject extends DirectoryObject {
167
165
  * Returns the parent directory of this capped directory.
168
166
  * Returns null only if this directory is at the cap (the "root" of the capped tree).
169
167
  *
170
- * Note: The returned parent is a CappedDirectoryObject with the same cap.
168
+ * Note: The returned parent is a VDirectoryObject with the same cap.
171
169
  * This maintains the capping behavior throughout the directory hierarchy.
172
170
  *
173
- * @returns {CappedDirectoryObject|null} Parent directory or null if at cap root
171
+ * @returns {VDirectoryObject|null} Parent directory or null if at cap root
174
172
  * @example
175
173
  * const capped = new TempDirectoryObject("myapp")
176
174
  * const subdir = capped.getDirectory("data")
177
- * console.log(subdir.parent.path) // Returns parent CappedDirectoryObject
175
+ * console.log(subdir.parent.path) // Returns parent VDirectoryObject
178
176
  * console.log(capped.parent) // null (at cap root)
179
177
  */
180
178
  get parent() {
@@ -191,63 +189,10 @@ export default class CappedDirectoryObject extends DirectoryObject {
191
189
  * console.log(temp.parentPath) // null (at cap root)
192
190
  *
193
191
  * const subdir = temp.getDirectory("data")
194
- * console.log(subdir.parentPath) // "/data" or similar (parent's virtual path)
192
+ * console.log(subdir.parentPath) // "/" (parent's virtual path)
195
193
  */
196
194
  get parentPath() {
197
195
  return this.#cappedParentPath
198
196
  }
199
197
 
200
- /**
201
- * Override exists to use real filesystem path.
202
- *
203
- * @returns {Promise<boolean>} Whether the directory exists
204
- */
205
- get exists() {
206
- return this.real.exists
207
- }
208
-
209
- /**
210
- * Override read to use real filesystem path and return capped objects.
211
- *
212
- * @param {string} [pat=""] - Optional glob pattern
213
- * @returns {Promise<{files: Array<FileObject>, directories: Array}>} Directory contents
214
- */
215
- async read(...arg) {
216
- const {files, directories} = await this.real.read(...arg)
217
-
218
- // we need to re-cast
219
- const recastDirs = directories.map(e => this.getDirectory(e.name))
220
- const recastFiles = files.map(f => new FileObject(f.name, this))
221
-
222
- return {files: recastFiles, directories: recastDirs}
223
- }
224
-
225
- /**
226
- * Override hasDirectory to use real filesystem path.
227
- *
228
- * @param {string} dirname - Directory name to check
229
- * @returns {Promise<boolean>} True if directory exists
230
- */
231
- async hasDirectory(dirname) {
232
- return await this.real.hasDirectory(dirname)
233
- }
234
-
235
- /**
236
- * Override assureExists to use real filesystem path.
237
- *
238
- * @param {object} [options] - Options for mkdir
239
- * @returns {Promise<void>}
240
- */
241
- async assureExists(options = {}) {
242
- return await this.real.assureExists(options)
243
- }
244
-
245
- /**
246
- * Override delete to use real filesystem path.
247
- *
248
- * @returns {Promise<void>}
249
- */
250
- async delete() {
251
- return await this.real.delete()
252
- }
253
198
  }
@@ -0,0 +1,61 @@
1
+ /**
2
+ * @file VFileObject.js
3
+ * @description Class representing a virtual file within a capped directory tree.
4
+ * Extends FileObject with virtual path support and real filesystem mapping.
5
+ */
6
+
7
+ import FileObject from "./FileObject.js"
8
+ import FS from "./FileSystem.js"
9
+ import Valid from "./Valid.js"
10
+
11
+ /**
12
+ * VFileObject extends FileObject with virtual path support, maintaining both
13
+ * a virtual path (relative to cap) and a real filesystem path.
14
+ *
15
+ * Virtual files must have a VDirectoryObject parent and cannot exist independently.
16
+ * All file operations use the real filesystem path while exposing clean virtual paths.
17
+ *
18
+ * @property {string} supplied - User-supplied path
19
+ * @property {string} path - The virtual file path (relative to cap)
20
+ * @property {URL} url - The file URL
21
+ * @property {string} name - The file name
22
+ * @property {string} module - The file name without extension
23
+ * @property {string} extension - The file extension
24
+ * @property {boolean} isFile - Always true for files
25
+ * @property {boolean} isVirtual - Always true for VFileObject instances
26
+ * @property {VDirectoryObject} parent - The parent virtual directory object
27
+ * @property {FileObject} real - The real filesystem FileObject
28
+ * @property {Promise<boolean>} exists - Whether the file exists (async)
29
+ */
30
+
31
+ export default class VFileObject extends FileObject {
32
+ #real
33
+
34
+ /**
35
+ * Constructs a VFileObject instance.
36
+ *
37
+ * @param {string} fileName - The file path
38
+ * @param {VDirectoryObject} parent - The parent virtual directory (required)
39
+ */
40
+ constructor(fileName, parent) {
41
+ Valid.type(fileName, "String", {allowEmpty: false})
42
+ Valid.type(parent, "VDirectoryObject")
43
+
44
+ super(fileName, parent)
45
+
46
+ const parentRealPath = this.parent.real.path
47
+ const relative = FS.absoluteToRelative(this.path, true)
48
+ const resolved = FS.resolvePath(parentRealPath, relative)
49
+ const {base, dir} = FS.pathParts(resolved)
50
+
51
+ this.#real = new FileObject(base, dir)
52
+ }
53
+
54
+ get isVirtual() {
55
+ return true
56
+ }
57
+
58
+ get real() {
59
+ return this.#real
60
+ }
61
+ }
@@ -6,8 +6,8 @@
6
6
  */
7
7
 
8
8
  import Sass from "./Sass.js"
9
- import Data from "../browser/lib/Data.js"
10
- import Collection from "../browser/lib/Collection.js"
9
+ import Data from "../../browser/lib/Data.js"
10
+ import Collection from "../../browser/lib/Collection.js"
11
11
 
12
12
  /**
13
13
  * Validation utility class providing type checking and assertion methods.
@@ -23,10 +23,14 @@ export default class Valid {
23
23
  * @param {object} [options] - Additional options for validation.
24
24
  */
25
25
  static type(value, type, options) {
26
+ const expected = [type]
27
+
28
+ if(options?.allowEmpty !== true)
29
+ expected.push("[no empty values]")
30
+
26
31
  Valid.assert(
27
32
  Data.isType(value, type, options),
28
- `Invalid type. Expected ${type}, got ${Data.typeOf(value)}`,
29
- 1,
33
+ `Invalid type. Expected ${expected.join(" ")}, got ${Data.typeOf(value)}`
30
34
  )
31
35
  }
32
36
 
@@ -57,7 +61,9 @@ export default class Valid {
57
61
  }
58
62
 
59
63
  /**
60
- * Protects against prototype pollution by checking keys for dangerous property names.
64
+ * Protects against prototype pollution by checking keys for dangerous
65
+ * property names.
66
+ *
61
67
  * Throws if any restricted prototype properties are found in the keys array.
62
68
  *
63
69
  * @param {Array<string>} keys - Array of property keys to validate
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.js"],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/browser/index.js"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Collection.d.ts","sourceRoot":"","sources":["../../../src/browser/lib/Collection.js"],"names":[],"mappings":"AAcA;;;GAGG;AACH;IACE;;;;;;;;;OASG;IACH,6BANW,KAAK,CAAC,OAAO,CAAC,aACd,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,KAAK,OAAO,YACjE,OAAO,GACL,OAAO,GAAC,SAAS,CAqB7B;IAED;;;;;;;;OAQG;IACH,8BALW,MAAM,aACN,CAAC,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,OAAO,GACtD,OAAO,GAAC,SAAS,CAmB7B;IAED;;;;;;;;OAQG;IACH,2BALW,GAAG,CAAC,OAAO,CAAC,aACZ,CAAC,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,CAAC,OAAO,CAAC,KAAK,OAAO,GAC5C,OAAO,GAAC,SAAS,CAmB7B;IAED;;;;;;;;;OASG;IACH,2BANW,GAAG,CAAC,OAAO,EAAE,OAAO,CAAC,aACrB,CAAC,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,CAAC,OAAO,EAAE,OAAO,CAAC,KAAK,OAAO,YACrE,OAAO,GACL,OAAO,GAAC,SAAS,CAqB7B;IAED;;;;;;;OAOG;IACH,mBAJW,KAAK,CAAC,OAAO,CAAC,U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C,CAAC,GAChC,MAAM,CAMlB;CACF"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Data.d.ts","sourceRoot":"","sources":["../../../src/browser/lib/Data.js"],"names":[],"mappings":"AAUA;IACA;;;;;OAKG;IACD,mBAFQ,KAAK,CAAC,MAAM,CAAC,CAgBnB;IAEF;;;;;OAKG;IACH,qBAFU,KAAK,CAAC,MAAM,CAAC,CAmBrB;IAEF;;;;;;;OAOG;IACH,kBAFU,KAAK,CAAC,MAAM,CAAC,CAKrB;IAEF;;;;;OAKG;IACH,uBAFU,KAAK,CAAC,MAAM,CAAC,CAE2D;IAElF;;;;;;OAMG;IACH,sBAJW,MAAM,UACN,MAAM,GACJ,MAAM,CAMlB;IAED;;;;;;OAMG;IACH,uBAJW,MAAM,WACN,MAAM,GACJ,MAAM,CAMlB;IAED;;;;;;;;;;;OAWG;IACH,yBATW,MAAM,UACN,MAAM,oBACN,OAAO,GACL,MAAM,CAWlB;IAED;;;;;;;;;;;OAWG;IACH,wBATW,MAAM,UACN,MAAM,oBACN,OAAO,GACL,MAAM,CAWlB;IAED;;;;;;;OAOG;IACH,yBALW,MAAM,UACN,MAAM,oBACN,OAAO,GACL,MAAM,CAWlB;IAED;;;;;;;OAOG;IACH,0BALW,MAAM,UACN,MAAM,oBACN,OAAO,GACL,MAAM,CAYlB;IAED;;;;;;;OAOG;IACH,2BAJW,MAAM,WACN,MAAM,GACJ,KAAK,CAAC,MAAM,CAAC,CAIzB;IAED;;;;;;;OAOG;IACH,qBALW,OAAO,QACP,MAAM,GAAC,QAAQ,YACf,MAAM,GACJ,OAAO,CAQnB;IAED;;;;;OAKG;IACH,yBAHW,MAAM,GACJ,OAAO,CASnB;IAED;;;;;;;;OAQG;IACH,yBAJW,OAAO,QACP,MAAM,GACJ,OAAO,CAwBnB;IAED;;;;;OAKG;IACH,qBAHW,OAAO,GACL,MAAM,CAclB;IAED;;;;;OAKG;IACH,wBAHW,OAAO,GACL,OAAO,CAInB;IAED;;;;;;;;OAQG;IACH,sBALW,OAAO,oBACP,OAAO,GAEL,OAAO,CA8BnB;IAED;;;;;OAKG;IACH,6BAHW,MAAM,GACJ,MAAM,CAmBlB;IAED;;;;;;;OAOG;IACH,6BAJW,MAAM,QACN,KAAK,CAAC,MAAM,CAAC,GACX,MAAM,CAiBlB;IAED;;;;;;;OAOG;IACH,2BAJW,MAAM,QACN,KAAK,CAAC,MAAM,CAAC,SACb,OAAO,QAMjB;IAED;;;;;OAKG;IACH,+BAHc,MAAM,EAAA,GACP,MAAM,CAqBlB;IAED;;;;;;;OAOG;IACH,wBAJW,KAAK,CAAC,OAAO,CAAC,aACd,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO,CAAC,OAAO,CAAC,GAClC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAMnC;IAED;;;;;;;OAOG;IACH,kBALW,MAAM,OACN,MAAM,OACN,MAAM,GACJ,MAAM,CAIlB;IAED;;;;;;;OAOG;IACH,oBALW,MAAM,OACN,MAAM,OACN,MAAM,GACJ,OAAO,CAInB;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH,4BAbW,OAAO,GACL,OAAO,CA+BnB;IAED;;;;;;;;;;;;;;;OAeG;IACH,uBAXW,OAAO,GACL,OAAO,CAgBnB;CACF;qBAhgBoB,eAAe"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Disposer.d.ts","sourceRoot":"","sources":["../../../src/browser/lib/Disposer.js"],"names":[],"mappings":"AAEA;;;GAGG;AACH;IAGE;;;;;;;;;OASG;IACH,uBAHW,CAAG,CAAC,MAAM,IAAI,CAAC,GAAC,KAAK,CAAC,MAAM,IAAI,CAAC,GAAA,GAC/B,CAAC,MAAM,IAAI,CAAC,GAAC,KAAK,CAAC,MAAM,IAAI,CAAC,CAS1C;IAWD;;;;OAIG;IACH,WAFa,IAAI,CAehB;IAcD;;;;OAIG;IACH,iBAFa,KAAK,CAAC,MAAM,IAAI,CAAC,CAI7B;;CAQF"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HTML.d.ts","sourceRoot":"","sources":["../../../src/browser/lib/HTML.js"],"names":[],"mappings":"AAGA;IAGE;;;;OAIG;IACH,wBAFW,MAAM,GAAC,CAAC,MAAM,OAAO,CAAC,EAIhC;IAED;;;;;;OAMG;IACH,cAJW,MAAM,sBACN,OAAO,GACL,OAAO,CAAC,MAAM,CAAC,CAmB3B;IAED;;;;;OAKG;IACH,gBAHW,MAAM,GACJ,MAAM,CAMlB;IAED;;;;;OAKG;IACH,wBAHW,OAAO,cACP,MAAM,QA+BhB;IAED;;;;OAIG;IACH,0BAFW,OAAO,QAmBjB;;CAwBF"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Notify.d.ts","sourceRoot":"","sources":["../../../src/browser/lib/Notify.js"],"names":[],"mappings":";IAaE,iDAAiD;UAAtC,MAAM;IAGjB;;;;;;;OAOG;eAJQ,MAAM,YACN,OAAO,YACP,OAAO,GAAG,kBAAkB,GAC1B,IAAI;IAOjB;;;;;;;OAOG;kBAJQ,MAAM,YACN,OAAO,YACP,OAAO,GAAG,kBAAkB,GAC1B,OAAO;IASpB;;;;;;;;;OASG;aALQ,MAAM,WACN,CAAC,GAAG,gBAAQ,KAAK,IAAI,YACrB,WAAW,GAAG,MAAM,YACpB,OAAO,GAAG,MAAM,GACd,MAAM,IAAI;IAcvB;;;;;;;;OAQG;cALQ,MAAM,WACN,CAAC,GAAG,gBAAQ,KAAK,IAAI,YACrB,WAAW,GAAG,MAAM,YACpB,OAAO,GAAG,MAAM,GACd,IAAI;;;;;;;;cAjEL,OAAO;;;;iBACP,OAAO;;;;eACP,OAAO"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Promised.d.ts","sourceRoot":"","sources":["../../../src/browser/lib/Promised.js"],"names":[],"mappings":"AAEA;;;GAGG;AACH;IACE;;;;;;OAMG;IACH,uBAHW,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,GACrB,OAAO,CAAC,KAAK,CAAC,OAAO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antrum.d.ts","sourceRoot":"","sources":["../../../src/browser/lib/Tantrum.js"],"names":[],"mappings":"AAaA;;;GAGG;AACH;IAwFE;;;;;;OAMG;IACH,sBAJW,MAAM,WACN,KAAK,CAAC,KAAK,GAAC,IAAI,CAAC,GACf,OAAO,CAOnB;IAhGD;;;;;;OAMG;IACH,qBAJW,MAAM,WACN,KAAK,CAAC,KAAK,GAAC,IAAI,CAAC,SACjB,IAAI,EAkBd;IAED;;;;;;OAMG;IACH,kBAJW,MAAM,WACN,KAAK,GAAC,IAAI,GACR,IAAI,CAShB;IAWD;;;;OAIG;IACH,mBAFW,MAAM,EAIhB;IAhBD;;;;OAIG;IACH,aAFa,KAAK,CAAC,MAAM,CAAC,CAIzB;IAWD;;;;;OAKG;IACH,kBAHW,OAAO,aACP,OAAO,QAmBjB;;CAeF;iBA3GgB,WAAW"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Time.d.ts","sourceRoot":"","sources":["../../../src/browser/lib/Time.js"],"names":[],"mappings":"AAEA;;;GAGG;AACH;IACE;;;;;;;;;;;;;;;;;;OAkBG;IACH,oBAfW,MAAM,UACN,OAAO,GACL,OAAO,CAAC,OAAO,CAAC,GAAG;QAAC,OAAO,EAAE,MAAM,CAAA;KAAC,CAwBhD;IAED;;;;;;;;;OASG;IACH,uBANW,OAAO,CAAC,OAAO,CAAC,GAAG;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAC,GACnC,IAAI,CAQhB;CACF"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TypeSpec.d.ts","sourceRoot":"","sources":["../../../src/browser/lib/TypeSpec.js"],"names":[],"mappings":"AAWA;;;GAGG;AACH;IAGE;;;;;OAKG;IACH,oBAHW,MAAM,WACN,OAAO,EAUjB;IAJC,aAAwB;IACxB,eAAgC;IAChC,6BAA2C;IAI7C;;;;OAIG;IACH,YAFa,MAAM,CAQlB;IAED;;;;OAIG;IACH,UAFa,OAAO,CASnB;IAED;;;;OAIG;IACH,kBAFW,CAAS,IAAO,EAAP,OAAO,KAAG,IAAI,QAIjC;IAED;;;;;OAKG;IACH,gBAHW,CAAS,IAAO,EAAP,OAAO,KAAG,OAAO,GACxB,OAAO,CAInB;IAED;;;;;OAKG;IACH,eAHW,CAAS,IAAO,EAAP,OAAO,KAAG,OAAO,GACxB,OAAO,CAInB;IAED;;;;;OAKG;IACH,iBAHW,CAAS,IAAO,EAAP,OAAO,KAAG,OAAO,GACxB,KAAK,CAAC,OAAO,CAAC,CAI1B;IAED;;;;;OAKG;IACH,cAHW,CAAS,IAAO,EAAP,OAAO,KAAG,OAAO,GACxB,KAAK,CAAC,OAAO,CAAC,CAI1B;IAED;;;;;;OAMG;IACH,iBAJW,CAAS,IAAO,EAAP,OAAO,EAAE,IAAO,EAAP,OAAO,KAAG,OAAO,gBACnC,OAAO,GACL,OAAO,CAInB;IAED;;;;;OAKG;IACH,eAHW,CAAS,IAAO,EAAP,OAAO,KAAG,OAAO,GACxB,MAAM,GAAC,SAAS,CAI5B;IAED;;;;;;;;OAQG;IACH,eALW,OAAO,WACP,OAAO,GAEL,OAAO,CAInB;IAED,2CA6DC;;CAmDF"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Util.d.ts","sourceRoot":"","sources":["../../../src/browser/lib/Util.js"],"names":[],"mappings":"AAGA;;;GAGG;AACH;IACE;;;;;OAKG;IACH,wBAHW,MAAM,GACJ,MAAM,CAYlB;IAED;;;;;;OAMG;IACH,YAJa,CAAC,MACH,MAAM,OAAO,CAAC,CAAC,CAAC,GACd,OAAO,CAAC;QAAC,MAAM,EAAE,CAAC,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAC,CAAC,CAQ9C;IAED;;;;;;;OAOG;IACH,4BAJW,MAAM,GAAC,MAAM,UACb,MAAM,GACJ,MAAM,CAWlB;IAED;;;;;;;OAOG;IACH,6BAJW,MAAM,GAAC,MAAM,UACb,MAAM,GACJ,MAAM,CAalB;IAED;;;;;;OAMG;IACH,8BAJW,MAAM,KACN,MAAM,GACJ,MAAM,CAsBlB;IAED;;;;;;;;OAQG;IACH,+BALW,MAAM,iBACN,KAAK,CAAC,MAAM,CAAC,cACb,MAAM,GACJ,MAAM,CAwBlB;IAED,mEAiBC;CACF"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Valid.d.ts","sourceRoot":"","sources":["../../../src/browser/lib/Valid.js"],"names":[],"mappings":"AAWA;;GAEG;AACH;IACE;;;;;;OAMG;IACH,mBAJW,OAAO,QACP,MAAM,YACN,MAAM,QAQhB;IAED;;;;;;;;OAQG;IACH,yBANW,OAAO,WACP,MAAM,QAEN,MAAM,QAkBhB;IAED,+CAAmE;IAEnE;;;;;;OAMG;IACH,0CAHW,KAAK,CAAC,MAAM,CAAC,QAYvB;CACF"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dompurify.esm.d.ts","sourceRoot":"","sources":["../../../../src/browser/lib/vendor/dompurify.esm.js"],"names":[],"mappings":";AA0UE;;;;;;;;;;;;;EAA+C;;;;;IA+9B/C,mDAiJC;IACD,yCAIC;IACD,6BAGC;IACD,oEAUC;IACD,2DAMC;IACD,6DAQC;IACD,4CAEC;IACD,gCAEC"}
@@ -1,20 +1,21 @@
1
- export { default as Collection } from "./browser/lib/Collection.js";
2
- export { default as Data } from "./browser/lib/Data.js";
3
- export { default as Promised } from "./browser/lib/Promised.js";
4
- export { default as Time } from "./browser/lib/Time.js";
5
- export { default as Type } from "./browser/lib/TypeSpec.js";
1
+ export { default as Collection } from "../browser/lib/Collection.js";
2
+ export { default as Data } from "../browser/lib/Data.js";
3
+ export { default as Promised } from "../browser/lib/Promised.js";
4
+ export { default as Time } from "../browser/lib/Time.js";
5
+ export { default as Type } from "../browser/lib/TypeSpec.js";
6
6
  export { default as Valid } from "./lib/Valid.js";
7
7
  export { default as Sass } from "./lib/Sass.js";
8
8
  export { default as Tantrum } from "./lib/Tantrum.js";
9
9
  export { default as Util } from "./lib/Util.js";
10
10
  export { default as Cache } from "./lib/Cache.js";
11
- export { default as CappedDirectoryObject } from "./lib/CappedDirectoryObject.js";
12
11
  export { default as DirectoryObject } from "./lib/DirectoryObject.js";
13
- export { default as TempDirectoryObject } from "./lib/TempDirectoryObject.js";
14
12
  export { default as FileObject } from "./lib/FileObject.js";
15
- export { default as FS } from "./lib/FS.js";
13
+ export { default as FS } from "./lib/FileSystem.js";
16
14
  export { default as Glog } from "./lib/Glog.js";
17
15
  export { default as Notify } from "./lib/Notify.js";
16
+ export { default as TempDirectoryObject } from "./lib/TempDirectoryObject.js";
18
17
  export { default as Term } from "./lib/Term.js";
19
- export { default as Disposer, Disposer as DisposerClass } from "./browser/lib/Disposer.js";
18
+ export { default as VFileObject } from "./lib/VFileObject.js";
19
+ export { default as VDirectoryObject } from "./lib/VDirectoryObject.js";
20
+ export { default as Disposer, Disposer as DisposerClass } from "../browser/lib/Disposer.js";
20
21
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../browser/index.js"],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/node/index.js"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Cache.d.ts","sourceRoot":"","sources":["../../../src/node/lib/Cache.js"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH;IAoBE;;;;;;;;;;;;OAYG;IACH,2BAJW,OAAO,iBAAiB,EAAE,UAAU,GAClC,OAAO,CAAC,OAAO,CAAC,CA6B5B;;CACF"}
@@ -17,7 +17,6 @@
17
17
  * @property {string} extension - The directory extension (typically empty string)
18
18
  * @property {string} sep - Platform-specific path separator ('/' or '\\')
19
19
  * @property {Array<string>} trail - Path segments split by separator
20
- * @property {boolean} isFile - Always false (this is a directory)
21
20
  * @property {boolean} isDirectory - Always true
22
21
  * @property {DirectoryObject|null} parent - The parent directory (null if root)
23
22
  * @property {Promise<boolean>} exists - Whether the directory exists (async getter)
@@ -60,9 +59,9 @@ export default class DirectoryObject extends FS {
60
59
  /**
61
60
  * Constructs a DirectoryObject instance.
62
61
  *
63
- * @param {string?} [directory="."] - The directory path or DirectoryObject (defaults to current directory)
62
+ * @param {string?} [supplied="."] - The directory path (defaults to current directory)
64
63
  */
65
- constructor(directory?: string | null);
64
+ constructor(supplied?: string | null);
66
65
  /**
67
66
  * Checks if the directory exists (async).
68
67
  *
@@ -134,12 +133,6 @@ export default class DirectoryObject extends FS {
134
133
  * console.log(root.parent) // null
135
134
  */
136
135
  get parent(): DirectoryObject | null;
137
- /**
138
- * Returns false. Because this is a directory.
139
- *
140
- * @returns {boolean} Always false
141
- */
142
- get isFile(): boolean;
143
136
  /**
144
137
  * We're a directory!
145
138
  *
@@ -149,9 +142,12 @@ export default class DirectoryObject extends FS {
149
142
  /**
150
143
  * Lists the contents of a directory, optionally filtered by a glob pattern.
151
144
  *
145
+ * Returns FileObject and DirectoryObject instances for regular directories.
146
+ * Returns VFileObject and VDirectoryObject instances when called on virtual directories.
147
+ *
152
148
  * @async
153
149
  * @param {string} [pat=""] - Optional glob pattern to filter results (e.g., "*.txt", "test-*")
154
- * @returns {Promise<{files: Array<FileObject>, directories: Array<DirectoryObject>}>} Object containing arrays of files and directories
150
+ * @returns {Promise<{files: Array<FileObject|VFileObject>, directories: Array<DirectoryObject|VDirectoryObject>}>} Object containing arrays of files and directories
155
151
  * @example
156
152
  * const dir = new DirectoryObject("./src")
157
153
  * const {files, directories} = await dir.read()
@@ -163,8 +159,8 @@ export default class DirectoryObject extends FS {
163
159
  * console.log(files) // Only .js files in ./src
164
160
  */
165
161
  read(pat?: string): Promise<{
166
- files: Array<FileObject>;
167
- directories: Array<DirectoryObject>;
162
+ files: Array<FileObject | VFileObject>;
163
+ directories: Array<DirectoryObject | VDirectoryObject>;
168
164
  }>;
169
165
  /**
170
166
  * Ensures a directory exists, creating it if necessary.
@@ -256,8 +252,11 @@ export default class DirectoryObject extends FS {
256
252
  * duplication. The resulting FileObject can be used for reading, writing,
257
253
  * and other file operations.
258
254
  *
255
+ * When called on a VDirectoryObject, returns a VFileObject to maintain
256
+ * virtual path semantics.
257
+ *
259
258
  * @param {string} file - The filename to append (can include subdirectories like "src/index.js")
260
- * @returns {FileObject} A new FileObject instance with the combined path
259
+ * @returns {FileObject|VFileObject} A new FileObject (or VFileObject if virtual)
261
260
  * @throws {Sass} If filename is not a string
262
261
  * @example
263
262
  * const dir = new DirectoryObject("/projects/git/toolkit")
@@ -269,9 +268,10 @@ export default class DirectoryObject extends FS {
269
268
  * const file = dir.getFile("src/index.js")
270
269
  * const data = await file.read()
271
270
  */
272
- getFile(file: string): FileObject;
271
+ getFile(file: string): FileObject | VFileObject;
273
272
  #private;
274
273
  }
275
- import FS from "./FS.js";
274
+ import FS from "./FileSystem.js";
276
275
  import FileObject from "./FileObject.js";
276
+ import VFileObject from "./VFileObject.js";
277
277
  //# sourceMappingURL=DirectoryObject.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DirectoryObject.d.ts","sourceRoot":"","sources":["../../../src/node/lib/DirectoryObject.js"],"names":[],"mappings":"AAiBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH;IA2DE;;;;;;;;;OASG;IACH,kBALa,eAAe,CAO3B;IA3CD;;;;OAIG;IACH,uBAFW,MAAM,OAAC,EA0BjB;IA2BD;;;;OAIG;IACH,cAFa,OAAO,CAAC,OAAO,CAAC,CAI5B;IAED;;;;OAIG;IACH,gBAFa,MAAM,CAIlB;IAED;;;;OAIG;IACH,YAFa,MAAM,CAIlB;IAED;;;;OAIG;IACH,WAFa,GAAG,CAIf;IAED;;;;OAIG;IACH,YAFa,MAAM,CAIlB;IAED;;;;OAIG;IACH,cAFa,MAAM,CAIlB;IAED;;;;OAIG;IACH,iBAFa,MAAM,CAIlB;IAED;;;;OAIG;IACH,WAFa,MAAM,CAIlB;IAED;;;;;;;OAOG;IACH,aALa,KAAK,CAAC,MAAM,CAAC,CAOzB;IAED;;;;;;;;;;;;OAYG;IACH,cARa,eAAe,GAAC,IAAI,CAsBhC;IAED;;;;OAIG;IACH,mBAFa,OAAO,CAInB;IAmBD;;;;;;;;;;;;;;;;;;OAkBG;IACH,WAZW,MAAM,GACJ,OAAO,CAAC;QAAC,KAAK,EAAE,KAAK,CAAC,UAAU,GAAC,WAAW,CAAC,CAAC;QAAC,WAAW,EAAE,KAAK,CAAC,eAAe,GAAC,gBAAgB,CAAC,CAAA;KAAC,CAAC,CAiDjH;IAED;;;;;;;;;;;;OAYG;IACH,uBARW,MAAM,GACJ,OAAO,CAAC,IAAI,CAAC,CAuBzB;IAyBD;;;;;;;;;;;;;;;OAeG;IACH,cAZa,eAAe,CAc3B;IAED;;;;;;;;;;;;;;OAcG;IACH,UARa,OAAO,CAAC,IAAI,CAAC,CAkBzB;IAED;;;;;OAKG;IACH,kBAHW,MAAM,GACJ,OAAO,CAAC,OAAO,CAAC,CAM5B;IAED;;;;;OAKG;IACH,sBAHW,MAAM,GACJ,OAAO,CAAC,OAAO,CAAC,CAO5B;IAUD;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,kBAdW,MAAM,GACJ,eAAe,CAqB3B;IAED;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,cAbW,MAAM,GACJ,UAAU,GAAC,WAAW,CAsBlC;;CACF;eArhBc,iBAAiB;uBACT,iBAAiB;wBAGhB,kBAAkB"}
@@ -9,7 +9,6 @@
9
9
  * @property {string} module - The file name without extension
10
10
  * @property {string} extension - The file extension
11
11
  * @property {boolean} isFile - Always true for files
12
- * @property {boolean} isDirectory - Always false for files
13
12
  * @property {DirectoryObject} parent - The parent directory object
14
13
  * @property {Promise<boolean>} exists - Whether the file exists (async)
15
14
  */
@@ -26,10 +25,10 @@ export default class FileObject extends FS {
26
25
  /**
27
26
  * Constructs a FileObject instance.
28
27
  *
29
- * @param {string} fileName - The file path
28
+ * @param {string} submitted - The file path
30
29
  * @param {DirectoryObject|string|null} [parent] - The parent directory (object or string)
31
30
  */
32
- constructor(fileName: string, parent?: DirectoryObject | string | null);
31
+ constructor(submitted: string, parent?: DirectoryObject | string | null);
33
32
  /**
34
33
  * Checks if the file exists (async).
35
34
  *
@@ -43,20 +42,15 @@ export default class FileObject extends FS {
43
42
  */
44
43
  get supplied(): string;
45
44
  /**
46
- * Returns the file path. If the parent is a capped directory, returns the
47
- * virtual path relative to the cap. Otherwise returns the real filesystem
48
- * path.
45
+ * Returns the file path.
49
46
  *
50
- * Use `.real.path` to always get the actual filesystem path.
51
- *
52
- * @returns {string} The file path (virtual if parent is capped, real otherwise)
47
+ * @returns {string} The file path
53
48
  */
54
49
  get path(): string;
55
50
  /**
56
- * Returns the URL of the current file. If the parent is a capped directory,
57
- * returns a virtual URL relative to the cap. Otherwise returns the real URL.
51
+ * Returns the URL of the current file.
58
52
  *
59
- * @returns {URL} The file URL (virtual if parent is capped, real otherwise)
53
+ * @returns {URL} The file URL
60
54
  */
61
55
  get url(): URL;
62
56
  /**
@@ -83,12 +77,6 @@ export default class FileObject extends FS {
83
77
  * @returns {boolean} Always true
84
78
  */
85
79
  get isFile(): boolean;
86
- /**
87
- * We're not masquerading as a directory! Nope.
88
- *
89
- * @returns {boolean} Always false
90
- */
91
- get isDirectory(): boolean;
92
80
  /**
93
81
  * Returns the directory containing this file. This does not necessarily
94
82
  * mean that the directory exists. It could be theoretical, you will need
@@ -106,23 +94,6 @@ export default class FileObject extends FS {
106
94
  */
107
95
  get parent(): DirectoryObject;
108
96
  get parentPath(): any;
109
- /**
110
- * Returns a plain FileObject representing the actual filesystem location.
111
- * This provides an "escape hatch" when working with capped directories,
112
- * allowing direct filesystem access when needed.
113
- *
114
- * @returns {FileObject} Uncapped file object at the real filesystem path
115
- * @example
116
- * const temp = new TempDirectoryObject("myapp")
117
- * const file = temp.getFile("/config/app.json")
118
- *
119
- * // file.path shows virtual path
120
- * console.log(file.path) // "/config/app.json"
121
- * // file.real.path shows actual filesystem path
122
- * console.log(file.real.path) // "/tmp/myapp-ABC123/config/app.json"
123
- * file.real.parent.parent // Can traverse outside the cap
124
- */
125
- get real(): FileObject;
126
97
  /**
127
98
  * Check if a file can be read. Returns true if the file can be read, false
128
99
  *
@@ -233,6 +204,6 @@ export default class FileObject extends FS {
233
204
  delete(): Promise<void>;
234
205
  #private;
235
206
  }
236
- import FS from "./FS.js";
207
+ import FS from "./FileSystem.js";
237
208
  import DirectoryObject from "./DirectoryObject.js";
238
209
  //# sourceMappingURL=FileObject.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FileObject.d.ts","sourceRoot":"","sources":["../../../src/node/lib/FileObject.js"],"names":[],"mappings":"AAkBA;;;;;;;;;;;;;GAaG;AAEH;IACE;;;;;OAKG;IACH,yBAFU;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,KAAK,CAAC,OAAO,KAAK,GAAG,OAAO,IAAI,CAAC,CAAA;KAAC,CAO1D;IA0BF;;;;;OAKG;IACH,uBAHW,MAAM,WACN,eAAe,GAAC,MAAM,GAAC,IAAI,EA4DrC;IAaD;;;;OAIG;IACH,cAFa,OAAO,CAAC,OAAO,CAAC,CAI5B;IAED;;;;OAIG;IACH,gBAFa,MAAM,CAIlB;IAED;;;;OAIG;IACH,YAFa,MAAM,CAIlB;IAED;;;;OAIG;IACH,WAFa,GAAG,CAIf;IAED;;;;OAIG;IACH,YAFa,MAAM,CAIlB;IAED;;;;OAIG;IACH,cAFa,MAAM,CAIlB;IAED;;;;OAIG;IACH,iBAFa,MAAM,CAIlB;IACD;;;;OAIG;IACH,cAFa,OAAO,CAInB;IAED;;;;;;;;;;;;;;OAcG;IACH,cAFa,eAAe,CAI3B;IAED,sBAEC;IAED;;;;OAIG;IACH,WAFa,OAAO,CAAC,OAAO,CAAC,CAU5B;IAED;;;;OAIG;IACH,YAFa,OAAO,CAAC,OAAO,CAAC,CAU5B;IAiBD;;;;OAIG;IACH,QAFa,OAAO,CAAC,MAAM,OAAC,CAAC,CAU5B;IAED;;;;;OAKG;IACH,YAFa,OAAO,CAAC,IAAI,OAAC,CAAC,CAU1B;IAED;;;;;OAKG;IACH,gBAHW,MAAM,GACJ,OAAO,CAAC,MAAM,CAAC,CAS3B;IAED;;;;;;;;;;;OAWG;IACH,cARa,OAAO,CAAC,MAAM,CAAC,CAe3B;IAED;;;;;;;;;;;OAWG;IACH,eARW,MAAM,aACN,MAAM,GACJ,OAAO,CAAC,IAAI,CAAC,CAiBzB;IAED;;;;;;;;;;;;;;;OAeG;IACH,kBAXW,WAAW,GAAC,IAAI,GAAC,MAAM,GACrB,OAAO,CAAC,IAAI,CAAC,CAwBzB;IAED;;;;;;;;;;;;;;OAcG;IACH,gBAXW,MAAM,aACN,MAAM,GACJ,OAAO,CAAC,OAAO,CAAC,CAkC5B;IAED;;;;OAIG;IACH,UAFa,OAAO,CAAC,MAAM,CAAC,CAS3B;IAED;;;;;;;;;OASG;IACH,UAPa,OAAO,CAAC,IAAI,CAAC,CAczB;;CACF;eAvdc,iBAAiB;4BADJ,sBAAsB"}
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * File system utility class for path operations and file discovery.
3
3
  */
4
- export default class FS {
4
+ export default class FileSystem {
5
5
  static fdTypes: readonly string[];
6
6
  static upperFdTypes: readonly string[];
7
7
  static fdType: any;
@@ -185,4 +185,4 @@ export default class FS {
185
185
  }
186
186
  export type FileObject = import("./FileObject.js").default;
187
187
  export type DirectoryObject = import("./DirectoryObject.js").default;
188
- //# sourceMappingURL=FS.d.ts.map
188
+ //# sourceMappingURL=FileSystem.d.ts.map