Skip to content

Commit ede7f5e

Browse files
committed
deps: glob@10.3.3
1 parent 4c9eb17 commit ede7f5e

File tree

16 files changed

+124
-43
lines changed

16 files changed

+124
-43
lines changed
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"version": "10.2.7",
2+
"version": "10.3.3",
33
"type": "commonjs"
44
}

node_modules/glob/dist/cjs/src/bin.js

+13-3
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
44
const foreground_child_1 = require("foreground-child");
55
const fs_1 = require("fs");
66
const jackspeak_1 = require("jackspeak");
7-
const index_js_1 = require("./index.js");
87
const package_json_1 = require("../package.json");
8+
const index_js_1 = require("./index.js");
99
const j = (0, jackspeak_1.jack)({
10-
usage: 'glob [options] [<pattern> [<pattern> ...]]'
10+
usage: 'glob [options] [<pattern> [<pattern> ...]]',
1111
})
1212
.description(`
1313
Glob v${package_json_1.version}
@@ -22,6 +22,14 @@ const j = (0, jackspeak_1.jack)({
2222
description: `Run the command provided, passing the glob expression
2323
matches as arguments.`,
2424
},
25+
})
26+
.opt({
27+
default: {
28+
short: 'p',
29+
hint: 'pattern',
30+
description: `If no positional arguments are provided, glob will use
31+
this pattern`,
32+
},
2533
})
2634
.flag({
2735
all: {
@@ -214,8 +222,10 @@ try {
214222
console.log(j.usage());
215223
process.exit(0);
216224
}
217-
if (positionals.length === 0)
225+
if (positionals.length === 0 && !values.default)
218226
throw 'No patterns provided';
227+
if (positionals.length === 0 && values.default)
228+
positionals.push(values.default);
219229
const patterns = values.all
220230
? positionals
221231
: positionals.filter(p => !(0, fs_1.existsSync)(p));

node_modules/glob/dist/cjs/src/glob.js

+4
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ class Glob {
6262
* again.
6363
*/
6464
constructor(pattern, opts) {
65+
/* c8 ignore start */
66+
if (!opts)
67+
throw new TypeError('glob options required');
68+
/* c8 ignore stop */
6569
this.withFileTypes = !!opts.withFileTypes;
6670
this.signal = opts.signal;
6771
this.follow = !!opts.follow;

node_modules/glob/dist/mjs/glob.js

+4
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ export class Glob {
5959
* again.
6060
*/
6161
constructor(pattern, opts) {
62+
/* c8 ignore start */
63+
if (!opts)
64+
throw new TypeError('glob options required');
65+
/* c8 ignore stop */
6266
this.withFileTypes = !!opts.withFileTypes;
6367
this.signal = opts.signal;
6468
this.follow = !!opts.follow;
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"version": "10.2.7",
2+
"version": "10.3.3",
33
"type": "module"
44
}

node_modules/glob/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"author": "Isaac Z. Schlueter <i@izs.me> (https://blog.izs.me/)",
33
"name": "glob",
44
"description": "the most correct and second fastest glob implementation in JavaScript",
5-
"version": "10.2.7",
5+
"version": "10.3.3",
66
"bin": "./dist/cjs/src/bin.js",
77
"repository": {
88
"type": "git",
@@ -62,11 +62,11 @@
6262
"foreground-child": "^3.1.0",
6363
"jackspeak": "^2.0.3",
6464
"minimatch": "^9.0.1",
65-
"minipass": "^5.0.0 || ^6.0.2",
66-
"path-scurry": "^1.7.0"
65+
"minipass": "^5.0.0 || ^6.0.2 || ^7.0.0",
66+
"path-scurry": "^1.10.1"
6767
},
6868
"devDependencies": {
69-
"@types/node": "^20.2.1",
69+
"@types/node": "^20.3.2",
7070
"@types/tap": "^15.0.7",
7171
"c8": "^7.12.0",
7272
"memfs": "^3.4.13",

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

+23
Original file line numberDiff line numberDiff line change
@@ -521,6 +521,29 @@ class PathBase {
521521
isUnknown() {
522522
return (this.#type & IFMT) === UNKNOWN;
523523
}
524+
isType(type) {
525+
return this[`is${type}`]();
526+
}
527+
getType() {
528+
return this.isUnknown()
529+
? 'Unknown'
530+
: this.isDirectory()
531+
? 'Directory'
532+
: this.isFile()
533+
? 'File'
534+
: this.isSymbolicLink()
535+
? 'SymbolicLink'
536+
: this.isFIFO()
537+
? 'FIFO'
538+
: this.isCharacterDevice()
539+
? 'CharacterDevice'
540+
: this.isBlockDevice()
541+
? 'BlockDevice'
542+
: /* c8 ignore start */ this.isSocket()
543+
? 'Socket'
544+
: 'Unknown';
545+
/* c8 ignore stop */
546+
}
524547
/**
525548
* Is the Path a regular file?
526549
*/

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

+23
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,29 @@ export class PathBase {
493493
isUnknown() {
494494
return (this.#type & IFMT) === UNKNOWN;
495495
}
496+
isType(type) {
497+
return this[`is${type}`]();
498+
}
499+
getType() {
500+
return this.isUnknown()
501+
? 'Unknown'
502+
: this.isDirectory()
503+
? 'Directory'
504+
: this.isFile()
505+
? 'File'
506+
: this.isSymbolicLink()
507+
? 'SymbolicLink'
508+
: this.isFIFO()
509+
? 'FIFO'
510+
: this.isCharacterDevice()
511+
? 'CharacterDevice'
512+
: this.isBlockDevice()
513+
? 'BlockDevice'
514+
: /* c8 ignore start */ this.isSocket()
515+
? 'Socket'
516+
: 'Unknown';
517+
/* c8 ignore stop */
518+
}
496519
/**
497520
* Is the Path a regular file?
498521
*/

node_modules/path-scurry/node_modules/lru-cache/dist/cjs/index.js

+11-2
Original file line numberDiff line numberDiff line change
@@ -837,6 +837,15 @@ class LRUCache {
837837
if (v !== oldVal) {
838838
if (this.#hasFetchMethod && this.#isBackgroundFetch(oldVal)) {
839839
oldVal.__abortController.abort(new Error('replaced'));
840+
const { __staleWhileFetching: s } = oldVal;
841+
if (s !== undefined && !noDisposeOnSet) {
842+
if (this.#hasDispose) {
843+
this.#dispose?.(s, k, 'set');
844+
}
845+
if (this.#hasDisposeAfter) {
846+
this.#disposed?.push([s, k, 'set']);
847+
}
848+
}
840849
}
841850
else if (!noDisposeOnSet) {
842851
if (this.#hasDispose) {
@@ -1090,15 +1099,15 @@ class LRUCache {
10901099
const pcall = (res, rej) => {
10911100
const fmp = this.#fetchMethod?.(k, v, fetchOpts);
10921101
if (fmp && fmp instanceof Promise) {
1093-
fmp.then(v => res(v), rej);
1102+
fmp.then(v => res(v === undefined ? undefined : v), rej);
10941103
}
10951104
// ignored, we go until we finish, regardless.
10961105
// defer check until we are actually aborting,
10971106
// so fetchMethod can override.
10981107
ac.signal.addEventListener('abort', () => {
10991108
if (!options.ignoreFetchAbort ||
11001109
options.allowStaleOnFetchAbort) {
1101-
res();
1110+
res(undefined);
11021111
// when it eventually resolves, update the cache.
11031112
if (options.allowStaleOnFetchAbort) {
11041113
res = v => cb(v, true);

0 commit comments

Comments
 (0)