Bump glob to 10.3.10

This commit is contained in:
Riccardo Rigutini 2023-09-29 19:36:20 +00:00
parent 56bc8d9078
commit e6089b8946
3 changed files with 44 additions and 34 deletions

48
dist/index.js generated vendored
View File

@ -81,7 +81,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.replaceTextInFile = exports.getFiles = exports.isValidEncoding = void 0;
const fs_1 = __importDefault(__nccwpck_require__(7147));
const glob_1 = __nccwpck_require__(3277);
const glob_1 = __nccwpck_require__(8211);
const encodings = [
'ascii',
'utf8',
@ -3269,7 +3269,7 @@ module.exports = require("util");
/***/ }),
/***/ 6463:
/***/ 2487:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@ -3279,8 +3279,8 @@ exports.Glob = void 0;
const minimatch_1 = __nccwpck_require__(266);
const path_scurry_1 = __nccwpck_require__(9569);
const url_1 = __nccwpck_require__(7310);
const pattern_js_1 = __nccwpck_require__(6722);
const walker_js_1 = __nccwpck_require__(9173);
const pattern_js_1 = __nccwpck_require__(6866);
const walker_js_1 = __nccwpck_require__(153);
// if no process global, just call it linux.
// so we default to case-sensitive, / separators
const defaultPlatform = typeof process === 'object' &&
@ -3437,7 +3437,12 @@ class Glob {
return set;
}, [[], []]);
this.patterns = matchSet.map((set, i) => {
return new pattern_js_1.Pattern(set, globParts[i], 0, this.platform);
const g = globParts[i];
/* c8 ignore start */
if (!g)
throw new Error('invalid pattern object');
/* c8 ignore stop */
return new pattern_js_1.Pattern(set, g, 0, this.platform);
});
}
async walk() {
@ -3514,7 +3519,7 @@ exports.Glob = Glob;
/***/ }),
/***/ 4131:
/***/ 3133:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@ -3548,7 +3553,7 @@ exports.hasMagic = hasMagic;
/***/ }),
/***/ 7639:
/***/ 9703:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@ -3560,7 +3565,7 @@ exports.hasMagic = hasMagic;
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.Ignore = void 0;
const minimatch_1 = __nccwpck_require__(266);
const pattern_js_1 = __nccwpck_require__(6722);
const pattern_js_1 = __nccwpck_require__(6866);
const defaultPlatform = typeof process === 'object' &&
process &&
typeof process.platform === 'string'
@ -3607,6 +3612,11 @@ class Ignore {
for (let i = 0; i < mm.set.length; i++) {
const parsed = mm.set[i];
const globParts = mm.globParts[i];
/* c8 ignore start */
if (!parsed || !globParts) {
throw new Error('invalid pattern object');
}
/* c8 ignore stop */
const p = new pattern_js_1.Pattern(parsed, globParts, 0, platform);
const m = new minimatch_1.Minimatch(p.globString(), mmopts);
const children = globParts[globParts.length - 1] === '**';
@ -3648,7 +3658,7 @@ class Ignore {
}
for (const m of this.absoluteChildren) {
if (m.match(fullpath))
true;
return true;
}
return false;
}
@ -3658,7 +3668,7 @@ exports.Ignore = Ignore;
/***/ }),
/***/ 3277:
/***/ 8211:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@ -3666,8 +3676,8 @@ exports.Ignore = Ignore;
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.glob = exports.hasMagic = exports.Glob = exports.unescape = exports.escape = exports.sync = exports.iterate = exports.iterateSync = exports.stream = exports.streamSync = exports.globIterate = exports.globIterateSync = exports.globSync = exports.globStream = exports.globStreamSync = void 0;
const minimatch_1 = __nccwpck_require__(266);
const glob_js_1 = __nccwpck_require__(6463);
const has_magic_js_1 = __nccwpck_require__(4131);
const glob_js_1 = __nccwpck_require__(2487);
const has_magic_js_1 = __nccwpck_require__(3133);
function globStreamSync(pattern, options = {}) {
return new glob_js_1.Glob(pattern, options).streamSync();
}
@ -3706,9 +3716,9 @@ exports.sync = Object.assign(globSync, {
var minimatch_2 = __nccwpck_require__(266);
Object.defineProperty(exports, "escape", ({ enumerable: true, get: function () { return minimatch_2.escape; } }));
Object.defineProperty(exports, "unescape", ({ enumerable: true, get: function () { return minimatch_2.unescape; } }));
var glob_js_2 = __nccwpck_require__(6463);
var glob_js_2 = __nccwpck_require__(2487);
Object.defineProperty(exports, "Glob", ({ enumerable: true, get: function () { return glob_js_2.Glob; } }));
var has_magic_js_2 = __nccwpck_require__(4131);
var has_magic_js_2 = __nccwpck_require__(3133);
Object.defineProperty(exports, "hasMagic", ({ enumerable: true, get: function () { return has_magic_js_2.hasMagic; } }));
/* c8 ignore stop */
exports.glob = Object.assign(glob_, {
@ -3733,7 +3743,7 @@ exports.glob.glob = exports.glob;
/***/ }),
/***/ 6722:
/***/ 6866:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@ -3959,7 +3969,7 @@ exports.Pattern = Pattern;
/***/ }),
/***/ 4601:
/***/ 4628:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@ -4268,7 +4278,7 @@ exports.Processor = Processor;
/***/ }),
/***/ 9173:
/***/ 153:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@ -4282,8 +4292,8 @@ exports.GlobStream = exports.GlobWalker = exports.GlobUtil = void 0;
* @module
*/
const minipass_1 = __nccwpck_require__(8865);
const ignore_js_1 = __nccwpck_require__(7639);
const processor_js_1 = __nccwpck_require__(4601);
const ignore_js_1 = __nccwpck_require__(9703);
const processor_js_1 = __nccwpck_require__(4628);
const makeIgnore = (ignore, opts) => typeof ignore === 'string'
? new ignore_js_1.Ignore([ignore], opts)
: Array.isArray(ignore)

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

28
package-lock.json generated
View File

@ -4272,12 +4272,12 @@
}
},
"node_modules/glob": {
"version": "10.3.7",
"resolved": "https://registry.npmjs.org/glob/-/glob-10.3.7.tgz",
"integrity": "sha512-wCMbE1m9Nx5yD9LYtgsVWq5VhHlk5WzJirw594qZR6AIvQYuHrdDtIktUVjQItalD53y7dqoedu9xP0u0WaxIQ==",
"version": "10.3.10",
"resolved": "https://registry.npmjs.org/glob/-/glob-10.3.10.tgz",
"integrity": "sha512-fa46+tv1Ak0UPK1TOy/pZrIybNNt4HCv7SDzwyfiOZkvZLEbjsZkJBPtDHVshZjbecAoAGSC20MjLDG/qr679g==",
"dependencies": {
"foreground-child": "^3.1.0",
"jackspeak": "^2.0.3",
"jackspeak": "^2.3.5",
"minimatch": "^9.0.1",
"minipass": "^5.0.0 || ^6.0.2 || ^7.0.0",
"path-scurry": "^1.10.1"
@ -5128,9 +5128,9 @@
}
},
"node_modules/jackspeak": {
"version": "2.2.1",
"resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-2.2.1.tgz",
"integrity": "sha512-MXbxovZ/Pm42f6cDIDkl3xpwv1AGwObKwfmjs2nQePiy85tP3fatofl3FC1aBsOtP/6fq5SbtgHwWcMsLP+bDw==",
"version": "2.3.6",
"resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-2.3.6.tgz",
"integrity": "sha512-N3yCS/NegsOBokc8GAdM8UcmfsKiSS8cipheD/nivzr700H+nsMOxJjQnvwOcRYVuFkdH0wGUvW2WbXGmrZGbQ==",
"dependencies": {
"@isaacs/cliui": "^8.0.2"
},
@ -10674,12 +10674,12 @@
}
},
"glob": {
"version": "10.3.7",
"resolved": "https://registry.npmjs.org/glob/-/glob-10.3.7.tgz",
"integrity": "sha512-wCMbE1m9Nx5yD9LYtgsVWq5VhHlk5WzJirw594qZR6AIvQYuHrdDtIktUVjQItalD53y7dqoedu9xP0u0WaxIQ==",
"version": "10.3.10",
"resolved": "https://registry.npmjs.org/glob/-/glob-10.3.10.tgz",
"integrity": "sha512-fa46+tv1Ak0UPK1TOy/pZrIybNNt4HCv7SDzwyfiOZkvZLEbjsZkJBPtDHVshZjbecAoAGSC20MjLDG/qr679g==",
"requires": {
"foreground-child": "^3.1.0",
"jackspeak": "^2.0.3",
"jackspeak": "^2.3.5",
"minimatch": "^9.0.1",
"minipass": "^5.0.0 || ^6.0.2 || ^7.0.0",
"path-scurry": "^1.10.1"
@ -11263,9 +11263,9 @@
}
},
"jackspeak": {
"version": "2.2.1",
"resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-2.2.1.tgz",
"integrity": "sha512-MXbxovZ/Pm42f6cDIDkl3xpwv1AGwObKwfmjs2nQePiy85tP3fatofl3FC1aBsOtP/6fq5SbtgHwWcMsLP+bDw==",
"version": "2.3.6",
"resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-2.3.6.tgz",
"integrity": "sha512-N3yCS/NegsOBokc8GAdM8UcmfsKiSS8cipheD/nivzr700H+nsMOxJjQnvwOcRYVuFkdH0wGUvW2WbXGmrZGbQ==",
"requires": {
"@isaacs/cliui": "^8.0.2",
"@pkgjs/parseargs": "^0.11.0"