Regenerate vendors (#12386)

This commit is contained in:
fisker Cheung authored and GitHub committed 2022-03-02 22:00:41 +08:00
1 parent 199a1bb389
commit 9b599ccaad
2 files changed
+36 -39

No files matched your search

+35 -38
View File
@@ -7269,12 +7269,12 @@ var require_minimatch = __commonJS({
"node_modules/minimatch/minimatch.js"(exports, module2) {
module2.exports = minimatch;
minimatch.Minimatch = Minimatch;
var path2 = (() => {
var path2 = function() {
try {
return require("path");
} catch (e) {
}
})() || {
}() || {
sep: "/"
};
minimatch.sep = path2.sep;
@@ -7307,9 +7307,8 @@ var require_minimatch = __commonJS({
};
}
function ext(a, b) {
a = a || {};
b = b || {};
const t = {};
var t = {};
Object.keys(a).forEach(function(k) {
t[k] = a[k];
});
@@ -7322,14 +7321,14 @@ var require_minimatch = __commonJS({
if (!def || typeof def !== "object" || !Object.keys(def).length) {
return minimatch;
}
const orig = minimatch;
const m = function minimatch2(p, pattern, options) {
var orig = minimatch;
var m = function minimatch2(p, pattern, options) {
return orig(p, pattern, ext(def, options));
};
m.Minimatch = function Minimatch2(pattern, options) {
return new orig.Minimatch(pattern, ext(def, options));
};
m.Minimatch.defaults = (options) => {
m.Minimatch.defaults = function defaults(options) {
return orig.defaults(ext(def, options)).Minimatch;
};
m.filter = function filter2(pattern, options) {
@@ -7359,8 +7358,6 @@ var require_minimatch = __commonJS({
if (!options.nocomment && pattern.charAt(0) === "#") {
return false;
}
if (pattern.trim() === "")
return p === "";
return new Minimatch(pattern, options).match(p);
}
function Minimatch(pattern, options) {
@@ -7371,7 +7368,7 @@ var require_minimatch = __commonJS({
if (!options)
options = {};
pattern = pattern.trim();
if (path2.sep !== "/") {
if (!options.allowWindowsEscape && path2.sep !== "/") {
pattern = pattern.split(path2.sep).join("/");
}
this.options = options;
@@ -7381,14 +7378,13 @@ var require_minimatch = __commonJS({
this.negate = false;
this.comment = false;
this.empty = false;
this.partial = !!options.partial;
this.make();
}
Minimatch.prototype.debug = function() {
};
Minimatch.prototype.make = make;
function make() {
if (this._made)
return;
var pattern = this.pattern;
var options = this.options;
if (!options.nocomment && pattern.charAt(0) === "#") {
@@ -7402,7 +7398,9 @@ var require_minimatch = __commonJS({
this.parseNegate();
var set = this.globSet = this.braceExpand();
if (options.debug)
this.debug = console.error;
this.debug = function debug() {
console.error.apply(console, arguments);
};
this.debug(this.pattern, set);
set = this.globParts = set.map(function(s) {
return s.split(slashSplit);
@@ -7454,7 +7452,7 @@ var require_minimatch = __commonJS({
return expand(pattern);
}
var MAX_PATTERN_LENGTH = 1024 * 64;
var assertValidPattern = (pattern) => {
var assertValidPattern = function(pattern) {
if (typeof pattern !== "string") {
throw new TypeError("invalid pattern");
}
@@ -7467,12 +7465,16 @@ var require_minimatch = __commonJS({
function parse(pattern, isSub) {
assertValidPattern(pattern);
var options = this.options;
if (!options.noglobstar && pattern === "**")
return GLOBSTAR;
if (pattern === "**") {
if (!options.noglobstar)
return GLOBSTAR;
else
pattern = "*";
}
if (pattern === "")
return "";
var re = "";
var hasMagic = false;
var hasMagic = !!options.nocase;
var escaping = false;
var patternListStack = [];
var negativeLists = [];
@@ -7595,17 +7597,15 @@ var require_minimatch = __commonJS({
escaping = false;
continue;
}
if (inClass) {
var cs = pattern.substring(classStart + 1, i);
try {
RegExp("[" + cs + "]");
} catch (er) {
var sp = this.parse(cs, SUBPARSE);
re = re.substr(0, reClassStart) + "\\[" + sp[0] + "\\]";
hasMagic = hasMagic || sp[1];
inClass = false;
continue;
}
var cs = pattern.substring(classStart + 1, i);
try {
RegExp("[" + cs + "]");
} catch (er) {
var sp = this.parse(cs, SUBPARSE);
re = re.substr(0, reClassStart) + "\\[" + sp[0] + "\\]";
hasMagic = hasMagic || sp[1];
inClass = false;
continue;
}
hasMagic = true;
inClass = false;
@@ -7647,8 +7647,8 @@ var require_minimatch = __commonJS({
}
var addPatternStart = false;
switch (re.charAt(0)) {
case ".":
case "[":
case ".":
case "(":
addPatternStart = true;
}
@@ -7726,7 +7726,7 @@ var require_minimatch = __commonJS({
}
minimatch.match = function(list, pattern, options) {
options = options || {};
const mm = new Minimatch(pattern, options);
var mm = new Minimatch(pattern, options);
list = list.filter(function(f) {
return mm.match(f);
});
@@ -7735,8 +7735,9 @@ var require_minimatch = __commonJS({
}
return list;
};
Minimatch.prototype.match = match;
function match(f, partial) {
Minimatch.prototype.match = function match(f, partial) {
if (typeof partial === "undefined")
partial = this.partial;
this.debug("match", f, this.pattern);
if (this.comment)
return false;
@@ -7775,7 +7776,7 @@ var require_minimatch = __commonJS({
if (options.flipNegate)
return false;
return this.negate;
}
};
Minimatch.prototype.matchOne = function(file, pattern, partial) {
var options = this.options;
this.debug("matchOne", { "this": this, file, pattern });
@@ -7823,11 +7824,7 @@ var require_minimatch = __commonJS({
}
var hit;
if (typeof p === "string") {
if (options.nocase) {
hit = f.toLowerCase() === p.toLowerCase();
} else {
hit = f === p;
}
hit = f === p;
this.debug("string match", p, f, hit);
} else {
hit = f.match(p);