v1.0 with SW PWA enabled
This commit is contained in:
8
frontend/node_modules/path-scurry/dist/commonjs/index.js
generated
vendored
8
frontend/node_modules/path-scurry/dist/commonjs/index.js
generated
vendored
@ -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.
|
||||
|
||||
Reference in New Issue
Block a user