Cleanup
This commit is contained in:
1
node_modules/anymatch/index.d.ts
generated
vendored
1
node_modules/anymatch/index.d.ts
generated
vendored
@@ -10,6 +10,7 @@ type PicomatchOptions = {dot: boolean};
|
||||
|
||||
declare const anymatch: {
|
||||
(matchers: AnymatchMatcher): AnymatchTester;
|
||||
(matchers: AnymatchMatcher, testString: null, returnIndex: true | PicomatchOptions): AnymatchTester;
|
||||
(matchers: AnymatchMatcher, testString: string|any[], returnIndex: true | PicomatchOptions): number;
|
||||
(matchers: AnymatchMatcher, testString: string|any[]): boolean;
|
||||
}
|
||||
|
||||
6
node_modules/anymatch/index.js
generated
vendored
6
node_modules/anymatch/index.js
generated
vendored
@@ -47,7 +47,7 @@ const matchPatterns = (patterns, negPatterns, args, returnIndex) => {
|
||||
throw new TypeError('anymatch: second argument must be a string: got ' +
|
||||
Object.prototype.toString.call(_path))
|
||||
}
|
||||
const path = normalizePath(_path);
|
||||
const path = normalizePath(_path, false);
|
||||
|
||||
for (let index = 0; index < negPatterns.length; index++) {
|
||||
const nglob = negPatterns[index];
|
||||
@@ -86,7 +86,9 @@ const anymatch = (matchers, testString, options = DEFAULT_OPTIONS) => {
|
||||
.filter(item => typeof item === 'string' && item.charAt(0) === BANG)
|
||||
.map(item => item.slice(1))
|
||||
.map(item => picomatch(item, opts));
|
||||
const patterns = mtchers.map(matcher => createPattern(matcher, opts));
|
||||
const patterns = mtchers
|
||||
.filter(item => typeof item !== 'string' || (typeof item === 'string' && item.charAt(0) !== BANG))
|
||||
.map(matcher => createPattern(matcher, opts));
|
||||
|
||||
if (testString == null) {
|
||||
return (testString, ri = false) => {
|
||||
|
||||
8
node_modules/anymatch/package.json
generated
vendored
8
node_modules/anymatch/package.json
generated
vendored
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "anymatch",
|
||||
"version": "3.1.1",
|
||||
"version": "3.1.3",
|
||||
"description": "Matches strings against configurable strings, globs, regular expressions, and/or functions",
|
||||
"files": [
|
||||
"index.js",
|
||||
@@ -45,8 +45,4 @@
|
||||
"engines": {
|
||||
"node": ">= 8"
|
||||
}
|
||||
|
||||
,"_resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.1.tgz"
|
||||
,"_integrity": "sha512-mM8522psRCqzV+6LhomX5wgp25YVibjh8Wj23I5RPkPppSVSjyKD2A2mBJmWGa+KN7f2D6LNh9jkBCeyLktzjg=="
|
||||
,"_from": "anymatch@3.1.1"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user