Regenerate vendors (#12386)
This commit is contained in:
1 parent
199a1bb389
commit
9b599ccaad
2 files changed
+25
-28
No files matched your search
Vendored
+1
-1
@@ -1239,7 +1239,7 @@
|
||||
{
|
||||
"name": "minimatch",
|
||||
"maintainers": [],
|
||||
"version": "3.0.5",
|
||||
"version": "3.1.2",
|
||||
"description": "a glob matcher in javascript",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
||||
Vendored
+24
-27
@@ -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 === "**")
|
||||
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,7 +7597,6 @@ var require_minimatch = __commonJS({
|
||||
escaping = false;
|
||||
continue;
|
||||
}
|
||||
if (inClass) {
|
||||
var cs = pattern.substring(classStart + 1, i);
|
||||
try {
|
||||
RegExp("[" + cs + "]");
|
||||
@@ -7606,7 +7607,6 @@ var require_minimatch = __commonJS({
|
||||
inClass = false;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
hasMagic = true;
|
||||
inClass = false;
|
||||
re += c;
|
||||
@@ -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;
|
||||
}
|
||||
this.debug("string match", p, f, hit);
|
||||
} else {
|
||||
hit = f.match(p);
|
||||
|
||||
Reference in new issue
Block a user