@types/picomatch
Advanced tools
Comparing version 2.2.4 to 2.2.5
@@ -1,2 +0,2 @@ | ||
declare function parse(input: string, options: { maxLength?: number }): parse.ParseState; | ||
declare function parse(input: string, options: { maxLength?: number | undefined }): parse.ParseState; | ||
@@ -20,3 +20,3 @@ declare namespace parse { | ||
negated: boolean; | ||
negatedExtglob?: boolean; | ||
negatedExtglob?: boolean | undefined; | ||
brackets: number; | ||
@@ -23,0 +23,0 @@ braces: number; |
@@ -57,27 +57,27 @@ import constantsImport = require('./constants'); | ||
*/ | ||
basename?: boolean; | ||
basename?: boolean | undefined; | ||
/** | ||
* Follow bash matching rules more strictly - disallows backslashes as escape characters, and treats single stars as globstars (`**`). | ||
*/ | ||
bash?: boolean; | ||
bash?: boolean | undefined; | ||
/** | ||
* Return regex matches in supporting methods. | ||
*/ | ||
capture?: boolean; | ||
capture?: boolean | undefined; | ||
/** | ||
* Allows glob to match any part of the given string(s). | ||
*/ | ||
contains?: boolean; | ||
contains?: boolean | undefined; | ||
/** | ||
* Current working directory. Used by `picomatch.split()` | ||
*/ | ||
cwd?: string; | ||
cwd?: string | undefined; | ||
/** | ||
* Debug regular expressions when an error is thrown. | ||
*/ | ||
debug?: boolean; | ||
debug?: boolean | undefined; | ||
/** | ||
* Enable dotfile matching. By default, dotfiles are ignored unless a `.` is explicitly defined in the pattern, or `options.dot` is true | ||
*/ | ||
dot?: boolean; | ||
dot?: boolean | undefined; | ||
/** | ||
@@ -88,55 +88,55 @@ * Custom function for expanding ranges in brace patterns, such as `{a..z}`. | ||
*/ | ||
expandRange?: (a: string, b: string) => string; | ||
expandRange?: ((a: string, b: string) => string) | undefined; | ||
/** | ||
* Throws an error if no matches are found. Based on the bash option of the same name. | ||
*/ | ||
failglob?: boolean; | ||
failglob?: boolean | undefined; | ||
/** | ||
* To speed up processing, full parsing is skipped for a handful common glob patterns. Disable this behavior by setting this option to `false`. | ||
*/ | ||
fastpaths?: boolean; | ||
fastpaths?: boolean | undefined; | ||
/** | ||
* Regex flags to use in the generated regex. If defined, the `nocase` option will be overridden. | ||
*/ | ||
flags?: boolean; | ||
flags?: boolean | undefined; | ||
/** | ||
* Custom function for formatting the returned string. This is useful for removing leading slashes, converting Windows paths to Posix paths, etc. | ||
*/ | ||
format?: (str: string) => string; | ||
format?: ((str: string) => string) | undefined; | ||
/** | ||
* One or more glob patterns for excluding strings that should not be matched from the result. | ||
*/ | ||
ignore?: Glob; | ||
ignore?: Glob | undefined; | ||
/** | ||
* Retain quotes in the generated regex, since quotes may also be used as an alternative to backslashes. | ||
*/ | ||
keepQuotes?: boolean; | ||
keepQuotes?: boolean | undefined; | ||
/** | ||
* When `true`, brackets in the glob pattern will be escaped so that only literal brackets will be matched. | ||
*/ | ||
literalBrackets?: boolean; | ||
literalBrackets?: boolean | undefined; | ||
/** | ||
* Support regex positive and negative lookbehinds. Note that you must be using Node 8.1.10 or higher to enable regex lookbehinds. | ||
*/ | ||
lookbehinds?: boolean; | ||
lookbehinds?: boolean | undefined; | ||
/** | ||
* Alias for `basename` | ||
*/ | ||
matchBase?: boolean; | ||
matchBase?: boolean | undefined; | ||
/** | ||
* Limit the max length of the input string. An error is thrown if the input string is longer than this value. | ||
*/ | ||
maxLength?: boolean; | ||
maxLength?: boolean | undefined; | ||
/** | ||
* Disable brace matching, so that `{a,b}` and `{1..3}` would be treated as literal characters. | ||
*/ | ||
nobrace?: boolean; | ||
nobrace?: boolean | undefined; | ||
/** | ||
* Disable brace matching, so that `{a,b}` and `{1..3}` would be treated as literal characters. | ||
*/ | ||
nobracket?: boolean; | ||
nobracket?: boolean | undefined; | ||
/** | ||
* Make matching case-insensitive. Equivalent to the regex `i` flag. Note that this option is overridden by the `flags` option. | ||
*/ | ||
nocase?: boolean; | ||
nocase?: boolean | undefined; | ||
/** | ||
@@ -147,67 +147,67 @@ * @deprecated use `nounique` instead. | ||
*/ | ||
nodupes?: boolean; | ||
nodupes?: boolean | undefined; | ||
/** | ||
* Alias for `noextglob` | ||
*/ | ||
noext?: boolean; | ||
noext?: boolean | undefined; | ||
/** | ||
* Disable support for matching with extglobs (like `+(a\|b)`) | ||
*/ | ||
noextglob?: boolean; | ||
noextglob?: boolean | undefined; | ||
/** | ||
* Disable support for matching nested directories with globstars (`**`) | ||
*/ | ||
noglobstar?: boolean; | ||
noglobstar?: boolean | undefined; | ||
/** | ||
* Disable support for negating with leading `!` | ||
*/ | ||
nonegate?: boolean; | ||
nonegate?: boolean | undefined; | ||
/** | ||
* Disable support for regex quantifiers (like `a{1,2}`) and treat them as brace patterns to be expanded. | ||
*/ | ||
noquantifiers?: boolean; | ||
noquantifiers?: boolean | undefined; | ||
/** | ||
* Function to be called on ignored items. | ||
*/ | ||
onIgnore?: (result: Result) => void; | ||
onIgnore?: ((result: Result) => void) | undefined; | ||
/** | ||
* Function to be called on matched items. | ||
*/ | ||
onMatch?: (result: Result) => void; | ||
onMatch?: ((result: Result) => void) | undefined; | ||
/** | ||
* Function to be called on all items, regardless of whether or not they are matched or ignored. | ||
*/ | ||
onResult?: (result: Result) => void; | ||
onResult?: ((result: Result) => void) | undefined; | ||
/** | ||
* Support POSIX character classes ("posix brackets"). | ||
*/ | ||
posix?: boolean; | ||
posix?: boolean | undefined; | ||
/** | ||
* Convert all slashes in file paths to forward slashes. This does not convert slashes in the glob pattern itself | ||
*/ | ||
posixSlashes?: boolean; | ||
posixSlashes?: boolean | undefined; | ||
/** | ||
* Convert all slashes in file paths to forward slashes. This does not convert slashes in the glob pattern itself | ||
*/ | ||
prepend?: boolean; | ||
prepend?: boolean | undefined; | ||
/** | ||
* Use regular expression rules for `+` (instead of matching literal `+`), and for stars that follow closing parentheses or brackets (as in `)*` and `]*`). | ||
*/ | ||
regex?: boolean; | ||
regex?: boolean | undefined; | ||
/** | ||
* Throw an error if brackets, braces, or parens are imbalanced. | ||
*/ | ||
strictBrackets?: boolean; | ||
strictBrackets?: boolean | undefined; | ||
/** | ||
* When true, picomatch won't match trailing slashes with single stars. | ||
*/ | ||
strictSlashes?: boolean; | ||
strictSlashes?: boolean | undefined; | ||
/** | ||
* Remove backslashes preceding escaped characters in the glob pattern. By default, backslashes are retained. | ||
*/ | ||
unescape?: boolean; | ||
unescape?: boolean | undefined; | ||
/** | ||
* Alias for `posixSlashes`, for backwards compatibility. | ||
*/ | ||
unixify?: boolean; | ||
unixify?: boolean | undefined; | ||
} | ||
@@ -220,3 +220,3 @@ | ||
test?: {}, | ||
): { isMatch: boolean; match?: boolean | RegExpExecArray | null; output: string }; | ||
): { isMatch: boolean; match?: boolean | RegExpExecArray | null | undefined; output: string }; | ||
@@ -227,7 +227,7 @@ function matchBase(input: string, glob: RegExp | string, options?: {}, posix?: any): boolean; | ||
function parse(pattern: string[], options?: { maxLength?: number }): parseImport.ParseState[]; | ||
function parse(pattern: string, options?: { maxLength?: number }): parseImport.ParseState; | ||
function parse(pattern: string[], options?: { maxLength?: number | undefined }): parseImport.ParseState[]; | ||
function parse(pattern: string, options?: { maxLength?: number | undefined }): parseImport.ParseState; | ||
function parse( | ||
pattern: Glob, | ||
options?: { maxLength?: number }, | ||
options?: { maxLength?: number | undefined }, | ||
): parseImport.ParseState | parseImport.ParseState[]; | ||
@@ -251,3 +251,3 @@ | ||
function toRegex(source: string | RegExp, options?: { flags?: string; nocase?: boolean; debug?: boolean }): RegExp; | ||
function toRegex(source: string | RegExp, options?: { flags?: string | undefined; nocase?: boolean | undefined; debug?: boolean | undefined }): RegExp; | ||
@@ -254,0 +254,0 @@ const constants: typeof constantsImport; |
@@ -9,8 +9,8 @@ declare function scan(input: string, options?: scan.Options): scan.State; | ||
*/ | ||
parts?: boolean; | ||
scanToEnd?: boolean; | ||
noext?: boolean; | ||
nonegate?: boolean; | ||
noparen?: boolean; | ||
unescape?: boolean; | ||
parts?: boolean | undefined; | ||
scanToEnd?: boolean | undefined; | ||
noext?: boolean | undefined; | ||
nonegate?: boolean | undefined; | ||
noparen?: boolean | undefined; | ||
unescape?: boolean | undefined; | ||
/** | ||
@@ -20,3 +20,3 @@ * When `true`, the returned object will include an array of tokens (objects), | ||
*/ | ||
tokens?: boolean; | ||
tokens?: boolean | undefined; | ||
} | ||
@@ -28,7 +28,7 @@ | ||
isGlob: boolean; | ||
backslashes?: boolean; | ||
isBrace?: boolean; | ||
isExtglob?: boolean; | ||
isGlobstar?: boolean; | ||
negated?: boolean; | ||
backslashes?: boolean | undefined; | ||
isBrace?: boolean | undefined; | ||
isExtglob?: boolean | undefined; | ||
isGlobstar?: boolean | undefined; | ||
negated?: boolean | undefined; | ||
} | ||
@@ -48,6 +48,6 @@ | ||
negated: boolean; | ||
maxDepth?: number; | ||
tokens?: Token[]; | ||
slashes?: number[]; | ||
parts?: string[]; | ||
maxDepth?: number | undefined; | ||
tokens?: Token[] | undefined; | ||
slashes?: number[] | undefined; | ||
parts?: string[] | undefined; | ||
} | ||
@@ -54,0 +54,0 @@ } |
{ | ||
"name": "@types/picomatch", | ||
"version": "2.2.4", | ||
"version": "2.2.5", | ||
"description": "TypeScript definitions for picomatch", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/picomatch", | ||
"license": "MIT", | ||
@@ -27,4 +28,4 @@ "contributors": [ | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "b01853048e9d01c8fe8ae64602c38ee56a552e5160b4859102ebdb295e9604e8", | ||
"typeScriptVersion": "3.5" | ||
"typesPublisherContentHash": "cfce478d97eeb63c030e14035d42c2d0c4a71ec8ffa04c9fef2bf34929ba46ca", | ||
"typeScriptVersion": "3.6" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Fri, 07 May 2021 10:01:23 GMT | ||
* Last updated: Wed, 07 Jul 2021 17:02:29 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: none |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
18132
0