Merge pull request #140 from richardrigutins/dependabot/npm_and_yarn/glob-10.3.15
chore(deps): bump glob from 10.3.12 to 10.3.15
This commit is contained in:
commit
605c0c9c7a
|
|
@ -3,13 +3,13 @@ updates:
|
||||||
- package-ecosystem: github-actions
|
- package-ecosystem: github-actions
|
||||||
directory: /
|
directory: /
|
||||||
commit-message:
|
commit-message:
|
||||||
prefix: "chore(deps): "
|
prefix: "[chore] "
|
||||||
schedule:
|
schedule:
|
||||||
interval: weekly
|
interval: weekly
|
||||||
|
|
||||||
- package-ecosystem: npm
|
- package-ecosystem: npm
|
||||||
directory: /
|
directory: /
|
||||||
commit-message:
|
commit-message:
|
||||||
prefix: "chore(deps): "
|
prefix: "[chore] "
|
||||||
schedule:
|
schedule:
|
||||||
interval: weekly
|
interval: weekly
|
||||||
|
|
|
||||||
|
|
@ -3125,14 +3125,6 @@ module.exports = require("fs");
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
/***/ 3292:
|
|
||||||
/***/ ((module) => {
|
|
||||||
|
|
||||||
"use strict";
|
|
||||||
module.exports = require("fs/promises");
|
|
||||||
|
|
||||||
/***/ }),
|
|
||||||
|
|
||||||
/***/ 3685:
|
/***/ 3685:
|
||||||
/***/ ((module) => {
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
|
@ -3157,6 +3149,62 @@ module.exports = require("net");
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 5673:
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
module.exports = require("node:events");
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 7561:
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
module.exports = require("node:fs");
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 3977:
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
module.exports = require("node:fs/promises");
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 9411:
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
module.exports = require("node:path");
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 4492:
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
module.exports = require("node:stream");
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 6915:
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
module.exports = require("node:string_decoder");
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 1041:
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
module.exports = require("node:url");
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
/***/ 2037:
|
/***/ 2037:
|
||||||
/***/ ((module) => {
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
|
@ -3173,22 +3221,6 @@ module.exports = require("path");
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
/***/ 2781:
|
|
||||||
/***/ ((module) => {
|
|
||||||
|
|
||||||
"use strict";
|
|
||||||
module.exports = require("stream");
|
|
||||||
|
|
||||||
/***/ }),
|
|
||||||
|
|
||||||
/***/ 1576:
|
|
||||||
/***/ ((module) => {
|
|
||||||
|
|
||||||
"use strict";
|
|
||||||
module.exports = require("string_decoder");
|
|
||||||
|
|
||||||
/***/ }),
|
|
||||||
|
|
||||||
/***/ 4404:
|
/***/ 4404:
|
||||||
/***/ ((module) => {
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
|
@ -3197,14 +3229,6 @@ module.exports = require("tls");
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
/***/ 7310:
|
|
||||||
/***/ ((module) => {
|
|
||||||
|
|
||||||
"use strict";
|
|
||||||
module.exports = require("url");
|
|
||||||
|
|
||||||
/***/ }),
|
|
||||||
|
|
||||||
/***/ 3837:
|
/***/ 3837:
|
||||||
/***/ ((module) => {
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
|
@ -3222,7 +3246,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
exports.Glob = void 0;
|
exports.Glob = void 0;
|
||||||
const minimatch_1 = __nccwpck_require__(266);
|
const minimatch_1 = __nccwpck_require__(266);
|
||||||
const path_scurry_1 = __nccwpck_require__(1081);
|
const path_scurry_1 = __nccwpck_require__(1081);
|
||||||
const url_1 = __nccwpck_require__(7310);
|
const node_url_1 = __nccwpck_require__(1041);
|
||||||
const pattern_js_1 = __nccwpck_require__(6866);
|
const pattern_js_1 = __nccwpck_require__(6866);
|
||||||
const walker_js_1 = __nccwpck_require__(153);
|
const walker_js_1 = __nccwpck_require__(153);
|
||||||
// if no process global, just call it linux.
|
// if no process global, just call it linux.
|
||||||
|
|
@ -3296,7 +3320,7 @@ class Glob {
|
||||||
this.cwd = '';
|
this.cwd = '';
|
||||||
}
|
}
|
||||||
else if (opts.cwd instanceof URL || opts.cwd.startsWith('file://')) {
|
else if (opts.cwd instanceof URL || opts.cwd.startsWith('file://')) {
|
||||||
opts.cwd = (0, url_1.fileURLToPath)(opts.cwd);
|
opts.cwd = (0, node_url_1.fileURLToPath)(opts.cwd);
|
||||||
}
|
}
|
||||||
this.cwd = opts.cwd || '';
|
this.cwd = opts.cwd || '';
|
||||||
this.root = opts.root;
|
this.root = opts.root;
|
||||||
|
|
@ -6460,9 +6484,9 @@ const proc = typeof process === 'object' && process
|
||||||
stdout: null,
|
stdout: null,
|
||||||
stderr: null,
|
stderr: null,
|
||||||
};
|
};
|
||||||
const events_1 = __nccwpck_require__(2361);
|
const node_events_1 = __nccwpck_require__(5673);
|
||||||
const stream_1 = __importDefault(__nccwpck_require__(2781));
|
const node_stream_1 = __importDefault(__nccwpck_require__(4492));
|
||||||
const string_decoder_1 = __nccwpck_require__(1576);
|
const node_string_decoder_1 = __nccwpck_require__(6915);
|
||||||
/**
|
/**
|
||||||
* Return true if the argument is a Minipass stream, Node stream, or something
|
* Return true if the argument is a Minipass stream, Node stream, or something
|
||||||
* else that Minipass can interact with.
|
* else that Minipass can interact with.
|
||||||
|
|
@ -6470,7 +6494,7 @@ const string_decoder_1 = __nccwpck_require__(1576);
|
||||||
const isStream = (s) => !!s &&
|
const isStream = (s) => !!s &&
|
||||||
typeof s === 'object' &&
|
typeof s === 'object' &&
|
||||||
(s instanceof Minipass ||
|
(s instanceof Minipass ||
|
||||||
s instanceof stream_1.default ||
|
s instanceof node_stream_1.default ||
|
||||||
(0, exports.isReadable)(s) ||
|
(0, exports.isReadable)(s) ||
|
||||||
(0, exports.isWritable)(s));
|
(0, exports.isWritable)(s));
|
||||||
exports.isStream = isStream;
|
exports.isStream = isStream;
|
||||||
|
|
@ -6479,17 +6503,17 @@ exports.isStream = isStream;
|
||||||
*/
|
*/
|
||||||
const isReadable = (s) => !!s &&
|
const isReadable = (s) => !!s &&
|
||||||
typeof s === 'object' &&
|
typeof s === 'object' &&
|
||||||
s instanceof events_1.EventEmitter &&
|
s instanceof node_events_1.EventEmitter &&
|
||||||
typeof s.pipe === 'function' &&
|
typeof s.pipe === 'function' &&
|
||||||
// node core Writable streams have a pipe() method, but it throws
|
// node core Writable streams have a pipe() method, but it throws
|
||||||
s.pipe !== stream_1.default.Writable.prototype.pipe;
|
s.pipe !== node_stream_1.default.Writable.prototype.pipe;
|
||||||
exports.isReadable = isReadable;
|
exports.isReadable = isReadable;
|
||||||
/**
|
/**
|
||||||
* Return true if the argument is a valid {@link Minipass.Writable}
|
* Return true if the argument is a valid {@link Minipass.Writable}
|
||||||
*/
|
*/
|
||||||
const isWritable = (s) => !!s &&
|
const isWritable = (s) => !!s &&
|
||||||
typeof s === 'object' &&
|
typeof s === 'object' &&
|
||||||
s instanceof events_1.EventEmitter &&
|
s instanceof node_events_1.EventEmitter &&
|
||||||
typeof s.write === 'function' &&
|
typeof s.write === 'function' &&
|
||||||
typeof s.end === 'function';
|
typeof s.end === 'function';
|
||||||
exports.isWritable = isWritable;
|
exports.isWritable = isWritable;
|
||||||
|
|
@ -6596,7 +6620,7 @@ const isEncodingOptions = (o) => !o.objectMode && !!o.encoding && o.encoding !==
|
||||||
* `Events` is the set of event handler signatures that this object
|
* `Events` is the set of event handler signatures that this object
|
||||||
* will emit, see {@link Minipass.Events}
|
* will emit, see {@link Minipass.Events}
|
||||||
*/
|
*/
|
||||||
class Minipass extends events_1.EventEmitter {
|
class Minipass extends node_events_1.EventEmitter {
|
||||||
[FLOWING] = false;
|
[FLOWING] = false;
|
||||||
[PAUSED] = false;
|
[PAUSED] = false;
|
||||||
[PIPES] = [];
|
[PIPES] = [];
|
||||||
|
|
@ -6651,7 +6675,7 @@ class Minipass extends events_1.EventEmitter {
|
||||||
}
|
}
|
||||||
this[ASYNC] = !!options.async;
|
this[ASYNC] = !!options.async;
|
||||||
this[DECODER] = this[ENCODING]
|
this[DECODER] = this[ENCODING]
|
||||||
? new string_decoder_1.StringDecoder(this[ENCODING])
|
? new node_string_decoder_1.StringDecoder(this[ENCODING])
|
||||||
: null;
|
: null;
|
||||||
//@ts-ignore - private option for debugging and testing
|
//@ts-ignore - private option for debugging and testing
|
||||||
if (options && options.debugExposeBuffer === true) {
|
if (options && options.debugExposeBuffer === true) {
|
||||||
|
|
@ -7510,14 +7534,14 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
exports.PathScurry = exports.Path = exports.PathScurryDarwin = exports.PathScurryPosix = exports.PathScurryWin32 = exports.PathScurryBase = exports.PathPosix = exports.PathWin32 = exports.PathBase = exports.ChildrenCache = exports.ResolveCache = void 0;
|
exports.PathScurry = exports.Path = exports.PathScurryDarwin = exports.PathScurryPosix = exports.PathScurryWin32 = exports.PathScurryBase = exports.PathPosix = exports.PathWin32 = exports.PathBase = exports.ChildrenCache = exports.ResolveCache = void 0;
|
||||||
const lru_cache_1 = __nccwpck_require__(6091);
|
const lru_cache_1 = __nccwpck_require__(6091);
|
||||||
const path_1 = __nccwpck_require__(1017);
|
const node_path_1 = __nccwpck_require__(9411);
|
||||||
const url_1 = __nccwpck_require__(7310);
|
const node_url_1 = __nccwpck_require__(1041);
|
||||||
const actualFS = __importStar(__nccwpck_require__(7147));
|
|
||||||
const fs_1 = __nccwpck_require__(7147);
|
const fs_1 = __nccwpck_require__(7147);
|
||||||
|
const actualFS = __importStar(__nccwpck_require__(7561));
|
||||||
const realpathSync = fs_1.realpathSync.native;
|
const realpathSync = fs_1.realpathSync.native;
|
||||||
// TODO: test perf of fs/promises realpath vs realpathCB,
|
// TODO: test perf of fs/promises realpath vs realpathCB,
|
||||||
// since the promises one uses realpath.native
|
// since the promises one uses realpath.native
|
||||||
const promises_1 = __nccwpck_require__(3292);
|
const promises_1 = __nccwpck_require__(3977);
|
||||||
const minipass_1 = __nccwpck_require__(4968);
|
const minipass_1 = __nccwpck_require__(4968);
|
||||||
const defaultFS = {
|
const defaultFS = {
|
||||||
lstatSync: fs_1.lstatSync,
|
lstatSync: fs_1.lstatSync,
|
||||||
|
|
@ -7533,8 +7557,8 @@ const defaultFS = {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
// if they just gave us require('fs') then use our default
|
// if they just gave us require('fs') then use our default
|
||||||
const fsFromOption = (fsOption) => !fsOption || fsOption === defaultFS || fsOption === actualFS
|
const fsFromOption = (fsOption) => !fsOption || fsOption === defaultFS || fsOption === actualFS ?
|
||||||
? defaultFS
|
defaultFS
|
||||||
: {
|
: {
|
||||||
...defaultFS,
|
...defaultFS,
|
||||||
...fsOption,
|
...fsOption,
|
||||||
|
|
@ -7575,20 +7599,13 @@ const ENOREADLINK = 0b0001_0000_0000;
|
||||||
const ENOREALPATH = 0b0010_0000_0000;
|
const ENOREALPATH = 0b0010_0000_0000;
|
||||||
const ENOCHILD = ENOTDIR | ENOENT | ENOREALPATH;
|
const ENOCHILD = ENOTDIR | ENOENT | ENOREALPATH;
|
||||||
const TYPEMASK = 0b0011_1111_1111;
|
const TYPEMASK = 0b0011_1111_1111;
|
||||||
const entToType = (s) => s.isFile()
|
const entToType = (s) => s.isFile() ? IFREG
|
||||||
? IFREG
|
: s.isDirectory() ? IFDIR
|
||||||
: s.isDirectory()
|
: s.isSymbolicLink() ? IFLNK
|
||||||
? IFDIR
|
: s.isCharacterDevice() ? IFCHR
|
||||||
: s.isSymbolicLink()
|
: s.isBlockDevice() ? IFBLK
|
||||||
? IFLNK
|
: s.isSocket() ? IFSOCK
|
||||||
: s.isCharacterDevice()
|
: s.isFIFO() ? IFIFO
|
||||||
? IFCHR
|
|
||||||
: s.isBlockDevice()
|
|
||||||
? IFBLK
|
|
||||||
: s.isSocket()
|
|
||||||
? IFSOCK
|
|
||||||
: s.isFIFO()
|
|
||||||
? IFIFO
|
|
||||||
: UNKNOWN;
|
: UNKNOWN;
|
||||||
// normalize unicode path names
|
// normalize unicode path names
|
||||||
const normalizeCache = new Map();
|
const normalizeCache = new Map();
|
||||||
|
|
@ -7692,6 +7709,11 @@ class PathBase {
|
||||||
* @internal
|
* @internal
|
||||||
*/
|
*/
|
||||||
nocase;
|
nocase;
|
||||||
|
/**
|
||||||
|
* boolean indicating that this path is the current working directory
|
||||||
|
* of the PathScurry collection that contains it.
|
||||||
|
*/
|
||||||
|
isCWD = false;
|
||||||
// potential default fs override
|
// potential default fs override
|
||||||
#fs;
|
#fs;
|
||||||
// Stats fields
|
// Stats fields
|
||||||
|
|
@ -7779,13 +7801,19 @@ class PathBase {
|
||||||
#realpath;
|
#realpath;
|
||||||
/**
|
/**
|
||||||
* This property is for compatibility with the Dirent class as of
|
* This property is for compatibility with the Dirent class as of
|
||||||
* Node v20, where Dirent['path'] refers to the path of the directory
|
* Node v20, where Dirent['parentPath'] refers to the path of the
|
||||||
* that was passed to readdir. So, somewhat counterintuitively, this
|
* directory that was passed to readdir. For root entries, it's the path
|
||||||
* property refers to the *parent* path, not the path object itself.
|
* to the entry itself.
|
||||||
* For root entries, it's the path to the entry itself.
|
*/
|
||||||
|
get parentPath() {
|
||||||
|
return (this.parent || this).fullpath();
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Deprecated alias for Dirent['parentPath'] Somewhat counterintuitively,
|
||||||
|
* this property refers to the *parent* path, not the path object itself.
|
||||||
*/
|
*/
|
||||||
get path() {
|
get path() {
|
||||||
return (this.parent || this).fullpath();
|
return this.parentPath;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Do not create new Path objects directly. They should always be accessed
|
* Do not create new Path objects directly. They should always be accessed
|
||||||
|
|
@ -7840,8 +7868,8 @@ class PathBase {
|
||||||
const rootPath = this.getRootString(path);
|
const rootPath = this.getRootString(path);
|
||||||
const dir = path.substring(rootPath.length);
|
const dir = path.substring(rootPath.length);
|
||||||
const dirParts = dir.split(this.splitSep);
|
const dirParts = dir.split(this.splitSep);
|
||||||
const result = rootPath
|
const result = rootPath ?
|
||||||
? this.getRoot(rootPath).#resolveParts(dirParts)
|
this.getRoot(rootPath).#resolveParts(dirParts)
|
||||||
: this.#resolveParts(dirParts);
|
: this.#resolveParts(dirParts);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
@ -7892,9 +7920,7 @@ class PathBase {
|
||||||
}
|
}
|
||||||
// find the child
|
// find the child
|
||||||
const children = this.children();
|
const children = this.children();
|
||||||
const name = this.nocase
|
const name = this.nocase ? normalizeNocase(pathPart) : normalize(pathPart);
|
||||||
? normalizeNocase(pathPart)
|
|
||||||
: normalize(pathPart);
|
|
||||||
for (const p of children) {
|
for (const p of children) {
|
||||||
if (p.#matchName === name) {
|
if (p.#matchName === name) {
|
||||||
return p;
|
return p;
|
||||||
|
|
@ -7904,9 +7930,7 @@ class PathBase {
|
||||||
// actually exist. If we know the parent isn't a dir, then
|
// actually exist. If we know the parent isn't a dir, then
|
||||||
// in fact it CAN'T exist.
|
// in fact it CAN'T exist.
|
||||||
const s = this.parent ? this.sep : '';
|
const s = this.parent ? this.sep : '';
|
||||||
const fullpath = this.#fullpath
|
const fullpath = this.#fullpath ? this.#fullpath + s + pathPart : undefined;
|
||||||
? this.#fullpath + s + pathPart
|
|
||||||
: undefined;
|
|
||||||
const pchild = this.newChild(pathPart, UNKNOWN, {
|
const pchild = this.newChild(pathPart, UNKNOWN, {
|
||||||
...opts,
|
...opts,
|
||||||
parent: this,
|
parent: this,
|
||||||
|
|
@ -7925,6 +7949,8 @@ class PathBase {
|
||||||
* the cwd, then this ends up being equivalent to the fullpath()
|
* the cwd, then this ends up being equivalent to the fullpath()
|
||||||
*/
|
*/
|
||||||
relative() {
|
relative() {
|
||||||
|
if (this.isCWD)
|
||||||
|
return '';
|
||||||
if (this.#relative !== undefined) {
|
if (this.#relative !== undefined) {
|
||||||
return this.#relative;
|
return this.#relative;
|
||||||
}
|
}
|
||||||
|
|
@ -7945,6 +7971,8 @@ class PathBase {
|
||||||
relativePosix() {
|
relativePosix() {
|
||||||
if (this.sep === '/')
|
if (this.sep === '/')
|
||||||
return this.relative();
|
return this.relative();
|
||||||
|
if (this.isCWD)
|
||||||
|
return '';
|
||||||
if (this.#relativePosix !== undefined)
|
if (this.#relativePosix !== undefined)
|
||||||
return this.#relativePosix;
|
return this.#relativePosix;
|
||||||
const name = this.name;
|
const name = this.name;
|
||||||
|
|
@ -8010,23 +8038,15 @@ class PathBase {
|
||||||
return this[`is${type}`]();
|
return this[`is${type}`]();
|
||||||
}
|
}
|
||||||
getType() {
|
getType() {
|
||||||
return this.isUnknown()
|
return (this.isUnknown() ? 'Unknown'
|
||||||
? 'Unknown'
|
: this.isDirectory() ? 'Directory'
|
||||||
: this.isDirectory()
|
: this.isFile() ? 'File'
|
||||||
? 'Directory'
|
: this.isSymbolicLink() ? 'SymbolicLink'
|
||||||
: this.isFile()
|
: this.isFIFO() ? 'FIFO'
|
||||||
? 'File'
|
: this.isCharacterDevice() ? 'CharacterDevice'
|
||||||
: this.isSymbolicLink()
|
: this.isBlockDevice() ? 'BlockDevice'
|
||||||
? 'SymbolicLink'
|
: /* c8 ignore start */ this.isSocket() ? 'Socket'
|
||||||
: this.isFIFO()
|
: 'Unknown');
|
||||||
? 'FIFO'
|
|
||||||
: this.isCharacterDevice()
|
|
||||||
? 'CharacterDevice'
|
|
||||||
: this.isBlockDevice()
|
|
||||||
? 'BlockDevice'
|
|
||||||
: /* c8 ignore start */ this.isSocket()
|
|
||||||
? 'Socket'
|
|
||||||
: 'Unknown';
|
|
||||||
/* c8 ignore stop */
|
/* c8 ignore stop */
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
|
@ -8160,8 +8180,8 @@ class PathBase {
|
||||||
* directly.
|
* directly.
|
||||||
*/
|
*/
|
||||||
isNamed(n) {
|
isNamed(n) {
|
||||||
return !this.nocase
|
return !this.nocase ?
|
||||||
? this.#matchName === normalize(n)
|
this.#matchName === normalize(n)
|
||||||
: this.#matchName === normalizeNocase(n);
|
: this.#matchName === normalizeNocase(n);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
|
@ -8217,7 +8237,7 @@ class PathBase {
|
||||||
/* c8 ignore stop */
|
/* c8 ignore stop */
|
||||||
try {
|
try {
|
||||||
const read = this.#fs.readlinkSync(this.fullpath());
|
const read = this.#fs.readlinkSync(this.fullpath());
|
||||||
const linkTarget = (this.parent.realpathSync())?.resolve(read);
|
const linkTarget = this.parent.realpathSync()?.resolve(read);
|
||||||
if (linkTarget) {
|
if (linkTarget) {
|
||||||
return (this.#linkTarget = linkTarget);
|
return (this.#linkTarget = linkTarget);
|
||||||
}
|
}
|
||||||
|
|
@ -8338,9 +8358,7 @@ class PathBase {
|
||||||
#readdirMaybePromoteChild(e, c) {
|
#readdirMaybePromoteChild(e, c) {
|
||||||
for (let p = c.provisional; p < c.length; p++) {
|
for (let p = c.provisional; p < c.length; p++) {
|
||||||
const pchild = c[p];
|
const pchild = c[p];
|
||||||
const name = this.nocase
|
const name = this.nocase ? normalizeNocase(e.name) : normalize(e.name);
|
||||||
? normalizeNocase(e.name)
|
|
||||||
: normalize(e.name);
|
|
||||||
if (name !== pchild.#matchName) {
|
if (name !== pchild.#matchName) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
@ -8639,6 +8657,8 @@ class PathBase {
|
||||||
[setAsCwd](oldCwd) {
|
[setAsCwd](oldCwd) {
|
||||||
if (oldCwd === this)
|
if (oldCwd === this)
|
||||||
return;
|
return;
|
||||||
|
oldCwd.isCWD = false;
|
||||||
|
this.isCWD = true;
|
||||||
const changed = new Set([]);
|
const changed = new Set([]);
|
||||||
let rp = [];
|
let rp = [];
|
||||||
let p = this;
|
let p = this;
|
||||||
|
|
@ -8693,7 +8713,7 @@ class PathWin32 extends PathBase {
|
||||||
* @internal
|
* @internal
|
||||||
*/
|
*/
|
||||||
getRootString(path) {
|
getRootString(path) {
|
||||||
return path_1.win32.parse(path).root;
|
return node_path_1.win32.parse(path).root;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @internal
|
* @internal
|
||||||
|
|
@ -8815,7 +8835,7 @@ class PathScurryBase {
|
||||||
constructor(cwd = process.cwd(), pathImpl, sep, { nocase, childrenCacheSize = 16 * 1024, fs = defaultFS, } = {}) {
|
constructor(cwd = process.cwd(), pathImpl, sep, { nocase, childrenCacheSize = 16 * 1024, fs = defaultFS, } = {}) {
|
||||||
this.#fs = fsFromOption(fs);
|
this.#fs = fsFromOption(fs);
|
||||||
if (cwd instanceof URL || cwd.startsWith('file://')) {
|
if (cwd instanceof URL || cwd.startsWith('file://')) {
|
||||||
cwd = (0, url_1.fileURLToPath)(cwd);
|
cwd = (0, node_url_1.fileURLToPath)(cwd);
|
||||||
}
|
}
|
||||||
// resolve and split root, and then add to the store.
|
// resolve and split root, and then add to the store.
|
||||||
// this is the only time we call path.resolve()
|
// this is the only time we call path.resolve()
|
||||||
|
|
@ -9404,7 +9424,7 @@ class PathScurryWin32 extends PathScurryBase {
|
||||||
sep = '\\';
|
sep = '\\';
|
||||||
constructor(cwd = process.cwd(), opts = {}) {
|
constructor(cwd = process.cwd(), opts = {}) {
|
||||||
const { nocase = true } = opts;
|
const { nocase = true } = opts;
|
||||||
super(cwd, path_1.win32, '\\', { ...opts, nocase });
|
super(cwd, node_path_1.win32, '\\', { ...opts, nocase });
|
||||||
this.nocase = nocase;
|
this.nocase = nocase;
|
||||||
for (let p = this.cwd; p; p = p.parent) {
|
for (let p = this.cwd; p; p = p.parent) {
|
||||||
p.nocase = this.nocase;
|
p.nocase = this.nocase;
|
||||||
|
|
@ -9417,7 +9437,7 @@ class PathScurryWin32 extends PathScurryBase {
|
||||||
// if the path starts with a single separator, it's not a UNC, and we'll
|
// if the path starts with a single separator, it's not a UNC, and we'll
|
||||||
// just get separator as the root, and driveFromUNC will return \
|
// just get separator as the root, and driveFromUNC will return \
|
||||||
// In that case, mount \ on the root from the cwd.
|
// In that case, mount \ on the root from the cwd.
|
||||||
return path_1.win32.parse(dir).root.toUpperCase();
|
return node_path_1.win32.parse(dir).root.toUpperCase();
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @internal
|
* @internal
|
||||||
|
|
@ -9447,7 +9467,7 @@ class PathScurryPosix extends PathScurryBase {
|
||||||
sep = '/';
|
sep = '/';
|
||||||
constructor(cwd = process.cwd(), opts = {}) {
|
constructor(cwd = process.cwd(), opts = {}) {
|
||||||
const { nocase = false } = opts;
|
const { nocase = false } = opts;
|
||||||
super(cwd, path_1.posix, '/', { ...opts, nocase });
|
super(cwd, node_path_1.posix, '/', { ...opts, nocase });
|
||||||
this.nocase = nocase;
|
this.nocase = nocase;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
|
@ -9497,10 +9517,8 @@ exports.Path = process.platform === 'win32' ? PathWin32 : PathPosix;
|
||||||
* {@link PathScurryWin32} on Windows systems, {@link PathScurryDarwin} on
|
* {@link PathScurryWin32} on Windows systems, {@link PathScurryDarwin} on
|
||||||
* Darwin (macOS) systems, {@link PathScurryPosix} on all others.
|
* Darwin (macOS) systems, {@link PathScurryPosix} on all others.
|
||||||
*/
|
*/
|
||||||
exports.PathScurry = process.platform === 'win32'
|
exports.PathScurry = process.platform === 'win32' ? PathScurryWin32
|
||||||
? PathScurryWin32
|
: process.platform === 'darwin' ? PathScurryDarwin
|
||||||
: process.platform === 'darwin'
|
|
||||||
? PathScurryDarwin
|
|
||||||
: PathScurryPosix;
|
: PathScurryPosix;
|
||||||
//# sourceMappingURL=index.js.map
|
//# sourceMappingURL=index.js.map
|
||||||
|
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -10,7 +10,7 @@
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/core": "^1.10.1",
|
"@actions/core": "^1.10.1",
|
||||||
"glob": "^10.3.12"
|
"glob": "^10.3.15"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/jest": "^29.5.12",
|
"@types/jest": "^29.5.12",
|
||||||
|
|
@ -4370,21 +4370,21 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/glob": {
|
"node_modules/glob": {
|
||||||
"version": "10.3.12",
|
"version": "10.3.15",
|
||||||
"resolved": "https://registry.npmjs.org/glob/-/glob-10.3.12.tgz",
|
"resolved": "https://registry.npmjs.org/glob/-/glob-10.3.15.tgz",
|
||||||
"integrity": "sha512-TCNv8vJ+xz4QiqTpfOJA7HvYv+tNIRHKfUWw/q+v2jdgN4ebz+KY9tGx5J4rHP0o84mNP+ApH66HRX8us3Khqg==",
|
"integrity": "sha512-0c6RlJt1TICLyvJYIApxb8GsXoai0KUP7AxKKAtsYXdgJR1mGEUa7DgwShbdk1nly0PYoZj01xd4hzbq3fsjpw==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"foreground-child": "^3.1.0",
|
"foreground-child": "^3.1.0",
|
||||||
"jackspeak": "^2.3.6",
|
"jackspeak": "^2.3.6",
|
||||||
"minimatch": "^9.0.1",
|
"minimatch": "^9.0.1",
|
||||||
"minipass": "^7.0.4",
|
"minipass": "^7.0.4",
|
||||||
"path-scurry": "^1.10.2"
|
"path-scurry": "^1.11.0"
|
||||||
},
|
},
|
||||||
"bin": {
|
"bin": {
|
||||||
"glob": "dist/esm/bin.mjs"
|
"glob": "dist/esm/bin.mjs"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=16 || 14 >=14.17"
|
"node": ">=16 || 14 >=14.18"
|
||||||
},
|
},
|
||||||
"funding": {
|
"funding": {
|
||||||
"url": "https://github.com/sponsors/isaacs"
|
"url": "https://github.com/sponsors/isaacs"
|
||||||
|
|
@ -6193,9 +6193,9 @@
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/minipass": {
|
"node_modules/minipass": {
|
||||||
"version": "7.0.4",
|
"version": "7.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/minipass/-/minipass-7.0.4.tgz",
|
"resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.1.tgz",
|
||||||
"integrity": "sha512-jYofLM5Dam9279rdkWzqHozUo4ybjdZmCsDHePy5V/PbBcVMiSZR97gmAy45aqi8CK1lG2ECd356FU86avfwUQ==",
|
"integrity": "sha512-UZ7eQ+h8ywIRAW1hIEl2AqdwzJucU/Kp59+8kkZeSvafXhZjul247BvIJjEVFVeON6d7lM46XX1HXCduKAS8VA==",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=16 || 14 >=14.17"
|
"node": ">=16 || 14 >=14.17"
|
||||||
}
|
}
|
||||||
|
|
@ -6508,24 +6508,24 @@
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/path-scurry": {
|
"node_modules/path-scurry": {
|
||||||
"version": "1.10.2",
|
"version": "1.11.1",
|
||||||
"resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.10.2.tgz",
|
"resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz",
|
||||||
"integrity": "sha512-7xTavNy5RQXnsjANvVvMkEjvloOinkAjv/Z6Ildz9v2RinZ4SBKTWFOVRbaF8p0vpHnyjV/UwNDdKuUv6M5qcA==",
|
"integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"lru-cache": "^10.2.0",
|
"lru-cache": "^10.2.0",
|
||||||
"minipass": "^5.0.0 || ^6.0.2 || ^7.0.0"
|
"minipass": "^5.0.0 || ^6.0.2 || ^7.0.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=16 || 14 >=14.17"
|
"node": ">=16 || 14 >=14.18"
|
||||||
},
|
},
|
||||||
"funding": {
|
"funding": {
|
||||||
"url": "https://github.com/sponsors/isaacs"
|
"url": "https://github.com/sponsors/isaacs"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/path-scurry/node_modules/lru-cache": {
|
"node_modules/path-scurry/node_modules/lru-cache": {
|
||||||
"version": "10.2.0",
|
"version": "10.2.2",
|
||||||
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.2.2.tgz",
|
||||||
"integrity": "sha512-2bIM8x+VAf6JT4bKAljS1qUWgMsqZRPGJS6FSahIMPVvctcNhyVp7AJu7quxOW9jwkryBReKZY5tY5JYv2n/7Q==",
|
"integrity": "sha512-9hp3Vp2/hFQUiIwKo8XCeFVnrg8Pk3TYNPIR7tJADKi5YfcF7vEaK7avFHTlSy3kOKYaJQaalfEo6YuXdceBOQ==",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "14 || >=16.14"
|
"node": "14 || >=16.14"
|
||||||
}
|
}
|
||||||
|
|
@ -10861,15 +10861,15 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"glob": {
|
"glob": {
|
||||||
"version": "10.3.12",
|
"version": "10.3.15",
|
||||||
"resolved": "https://registry.npmjs.org/glob/-/glob-10.3.12.tgz",
|
"resolved": "https://registry.npmjs.org/glob/-/glob-10.3.15.tgz",
|
||||||
"integrity": "sha512-TCNv8vJ+xz4QiqTpfOJA7HvYv+tNIRHKfUWw/q+v2jdgN4ebz+KY9tGx5J4rHP0o84mNP+ApH66HRX8us3Khqg==",
|
"integrity": "sha512-0c6RlJt1TICLyvJYIApxb8GsXoai0KUP7AxKKAtsYXdgJR1mGEUa7DgwShbdk1nly0PYoZj01xd4hzbq3fsjpw==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"foreground-child": "^3.1.0",
|
"foreground-child": "^3.1.0",
|
||||||
"jackspeak": "^2.3.6",
|
"jackspeak": "^2.3.6",
|
||||||
"minimatch": "^9.0.1",
|
"minimatch": "^9.0.1",
|
||||||
"minipass": "^7.0.4",
|
"minipass": "^7.0.4",
|
||||||
"path-scurry": "^1.10.2"
|
"path-scurry": "^1.11.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"brace-expansion": {
|
"brace-expansion": {
|
||||||
|
|
@ -12198,9 +12198,9 @@
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"minipass": {
|
"minipass": {
|
||||||
"version": "7.0.4",
|
"version": "7.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/minipass/-/minipass-7.0.4.tgz",
|
"resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.1.tgz",
|
||||||
"integrity": "sha512-jYofLM5Dam9279rdkWzqHozUo4ybjdZmCsDHePy5V/PbBcVMiSZR97gmAy45aqi8CK1lG2ECd356FU86avfwUQ=="
|
"integrity": "sha512-UZ7eQ+h8ywIRAW1hIEl2AqdwzJucU/Kp59+8kkZeSvafXhZjul247BvIJjEVFVeON6d7lM46XX1HXCduKAS8VA=="
|
||||||
},
|
},
|
||||||
"ms": {
|
"ms": {
|
||||||
"version": "2.1.2",
|
"version": "2.1.2",
|
||||||
|
|
@ -12429,18 +12429,18 @@
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"path-scurry": {
|
"path-scurry": {
|
||||||
"version": "1.10.2",
|
"version": "1.11.1",
|
||||||
"resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.10.2.tgz",
|
"resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz",
|
||||||
"integrity": "sha512-7xTavNy5RQXnsjANvVvMkEjvloOinkAjv/Z6Ildz9v2RinZ4SBKTWFOVRbaF8p0vpHnyjV/UwNDdKuUv6M5qcA==",
|
"integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"lru-cache": "^10.2.0",
|
"lru-cache": "^10.2.0",
|
||||||
"minipass": "^5.0.0 || ^6.0.2 || ^7.0.0"
|
"minipass": "^5.0.0 || ^6.0.2 || ^7.0.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"lru-cache": {
|
"lru-cache": {
|
||||||
"version": "10.2.0",
|
"version": "10.2.2",
|
||||||
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.2.2.tgz",
|
||||||
"integrity": "sha512-2bIM8x+VAf6JT4bKAljS1qUWgMsqZRPGJS6FSahIMPVvctcNhyVp7AJu7quxOW9jwkryBReKZY5tY5JYv2n/7Q=="
|
"integrity": "sha512-9hp3Vp2/hFQUiIwKo8XCeFVnrg8Pk3TYNPIR7tJADKi5YfcF7vEaK7avFHTlSy3kOKYaJQaalfEo6YuXdceBOQ=="
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/core": "^1.10.1",
|
"@actions/core": "^1.10.1",
|
||||||
"glob": "^10.3.12"
|
"glob": "^10.3.15"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/jest": "^29.5.12",
|
"@types/jest": "^29.5.12",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue