cspell-glob 6.14.1 → 6.14.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/GlobMatcher.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { PathInterface, GlobMatch, GlobPattern, GlobPatternWithRoot, GlobPatternNormalized } from './GlobMatcherTypes';
|
|
2
|
-
|
|
2
|
+
type Optional<T> = {
|
|
3
3
|
[P in keyof T]?: T[P] | undefined;
|
|
4
4
|
};
|
|
5
|
-
export
|
|
6
|
-
export
|
|
5
|
+
export type GlobMatchOptions = Optional<NormalizedGlobMatchOptions>;
|
|
6
|
+
export type MatcherMode = 'exclude' | 'include';
|
|
7
7
|
interface NormalizedGlobMatchOptions {
|
|
8
8
|
/**
|
|
9
9
|
* The matcher has two modes (`include` or `exclude`) that impact how globs behave.
|
|
@@ -6,7 +6,7 @@ export interface PathInterface {
|
|
|
6
6
|
isAbsolute(p: string): boolean;
|
|
7
7
|
sep: string;
|
|
8
8
|
}
|
|
9
|
-
export
|
|
9
|
+
export type GlobMatch = GlobMatchRule | GlobMatchNoRule;
|
|
10
10
|
export interface GlobMatchRule {
|
|
11
11
|
matched: boolean;
|
|
12
12
|
glob: string;
|
|
@@ -18,8 +18,8 @@ export interface GlobMatchRule {
|
|
|
18
18
|
export interface GlobMatchNoRule {
|
|
19
19
|
matched: false;
|
|
20
20
|
}
|
|
21
|
-
export
|
|
22
|
-
export
|
|
21
|
+
export type GlobPattern = SimpleGlobPattern | GlobPatternWithRoot | GlobPatternWithOptionalRoot;
|
|
22
|
+
export type SimpleGlobPattern = string;
|
|
23
23
|
export interface GlobPatternWithOptionalRoot {
|
|
24
24
|
/**
|
|
25
25
|
* a glob pattern
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cspell-glob",
|
|
3
|
-
"version": "6.14.
|
|
3
|
+
"version": "6.14.3",
|
|
4
4
|
"description": "Glob matcher for cspell",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cspell",
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@types/micromatch": "^4.0.2",
|
|
49
49
|
"@types/node": "^18.11.9",
|
|
50
|
-
"jest": "^29.
|
|
50
|
+
"jest": "^29.3.1",
|
|
51
51
|
"rimraf": "^3.0.2"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "df0efdbb0dc7b084579130ba5fe97441c0ab67ca"
|
|
54
54
|
}
|