Skip to content

Commit 2b6a71f

Browse files
committed
deps: path-scurry@2.0.1
1 parent 19096f2 commit 2b6a71f

File tree

4 files changed

+12
-6
lines changed

4 files changed

+12
-6
lines changed

node_modules/path-scurry/dist/commonjs/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ const entToType = (s) => s.isFile() ? IFREG
9999
: s.isFIFO() ? IFIFO
100100
: UNKNOWN;
101101
// normalize unicode path names
102-
const normalizeCache = new Map();
102+
const normalizeCache = new lru_cache_1.LRUCache({ max: 2 ** 12 });
103103
const normalize = (s) => {
104104
const c = normalizeCache.get(s);
105105
if (c)
@@ -108,7 +108,7 @@ const normalize = (s) => {
108108
normalizeCache.set(s, n);
109109
return n;
110110
};
111-
const normalizeNocaseCache = new Map();
111+
const normalizeNocaseCache = new lru_cache_1.LRUCache({ max: 2 ** 12 });
112112
const normalizeNocase = (s) => {
113113
const c = normalizeNocaseCache.get(s);
114114
if (c)
@@ -299,6 +299,7 @@ class PathBase {
299299
get parentPath() {
300300
return (this.parent || this).fullpath();
301301
}
302+
/* c8 ignore start */
302303
/**
303304
* Deprecated alias for Dirent['parentPath'] Somewhat counterintuitively,
304305
* this property refers to the *parent* path, not the path object itself.
@@ -308,6 +309,7 @@ class PathBase {
308309
get path() {
309310
return this.parentPath;
310311
}
312+
/* c8 ignore stop */
311313
/**
312314
* Do not create new Path objects directly. They should always be accessed
313315
* via the PathScurry class or other methods on the Path class.

node_modules/path-scurry/dist/esm/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ const entToType = (s) => s.isFile() ? IFREG
7373
: s.isFIFO() ? IFIFO
7474
: UNKNOWN;
7575
// normalize unicode path names
76-
const normalizeCache = new Map();
76+
const normalizeCache = new LRUCache({ max: 2 ** 12 });
7777
const normalize = (s) => {
7878
const c = normalizeCache.get(s);
7979
if (c)
@@ -82,7 +82,7 @@ const normalize = (s) => {
8282
normalizeCache.set(s, n);
8383
return n;
8484
};
85-
const normalizeNocaseCache = new Map();
85+
const normalizeNocaseCache = new LRUCache({ max: 2 ** 12 });
8686
const normalizeNocase = (s) => {
8787
const c = normalizeNocaseCache.get(s);
8888
if (c)
@@ -271,6 +271,7 @@ export class PathBase {
271271
get parentPath() {
272272
return (this.parent || this).fullpath();
273273
}
274+
/* c8 ignore start */
274275
/**
275276
* Deprecated alias for Dirent['parentPath'] Somewhat counterintuitively,
276277
* this property refers to the *parent* path, not the path object itself.
@@ -280,6 +281,7 @@ export class PathBase {
280281
get path() {
281282
return this.parentPath;
282283
}
284+
/* c8 ignore stop */
283285
/**
284286
* Do not create new Path objects directly. They should always be accessed
285287
* via the PathScurry class or other methods on the Path class.

node_modules/path-scurry/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "path-scurry",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"description": "walk paths fast and efficiently",
55
"author": "Isaac Z. Schlueter <i@izs.me> (https://blog.izs.me)",
66
"main": "./dist/commonjs/index.js",

package-lock.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9160,7 +9160,9 @@
91609160
"license": "MIT"
91619161
},
91629162
"node_modules/path-scurry": {
9163-
"version": "2.0.0",
9163+
"version": "2.0.1",
9164+
"resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-2.0.1.tgz",
9165+
"integrity": "sha512-oWyT4gICAu+kaA7QWk/jvCHWarMKNs6pXOGWKDTr7cw4IGcUbW+PeTfbaQiLGheFRpjo6O9J0PmyMfQPjH71oA==",
91649166
"inBundle": true,
91659167
"license": "BlueOak-1.0.0",
91669168
"dependencies": {

0 commit comments

Comments
 (0)