v1.0 with SW PWA enabled

This commit is contained in:
Blomios
2026-01-01 17:40:53 +01:00
parent 1c0e22aac1
commit 3c8bebb2ad
29775 changed files with 2197201 additions and 119080 deletions

View File

@ -99,7 +99,7 @@ const entToType = (s) => s.isFile() ? IFREG
: s.isFIFO() ? IFIFO
: UNKNOWN;
// normalize unicode path names
const normalizeCache = new Map();
const normalizeCache = new lru_cache_1.LRUCache({ max: 2 ** 12 });
const normalize = (s) => {
const c = normalizeCache.get(s);
if (c)
@ -108,7 +108,7 @@ const normalize = (s) => {
normalizeCache.set(s, n);
return n;
};
const normalizeNocaseCache = new Map();
const normalizeNocaseCache = new lru_cache_1.LRUCache({ max: 2 ** 12 });
const normalizeNocase = (s) => {
const c = normalizeNocaseCache.get(s);
if (c)
@ -299,13 +299,17 @@ class PathBase {
get parentPath() {
return (this.parent || this).fullpath();
}
/* c8 ignore start */
/**
* Deprecated alias for Dirent['parentPath'] Somewhat counterintuitively,
* this property refers to the *parent* path, not the path object itself.
*
* @deprecated
*/
get path() {
return this.parentPath;
}
/* c8 ignore stop */
/**
* Do not create new Path objects directly. They should always be accessed
* via the PathScurry class or other methods on the Path class.