cspell-glob 7.3.8 → 8.0.0
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/esm/GlobMatcher.js +11 -0
- package/package.json +4 -4
package/dist/esm/GlobMatcher.js
CHANGED
|
@@ -2,6 +2,17 @@ import mm from 'micromatch';
|
|
|
2
2
|
import * as Path from 'path';
|
|
3
3
|
import { doesRootContainPath, normalizeGlobPatterns, normalizeGlobToRoot } from './globHelper.js';
|
|
4
4
|
export class GlobMatcher {
|
|
5
|
+
/**
|
|
6
|
+
* @param filename full path of file to match against.
|
|
7
|
+
* @returns a GlobMatch - information about the match.
|
|
8
|
+
*/
|
|
9
|
+
matchEx;
|
|
10
|
+
path;
|
|
11
|
+
patterns;
|
|
12
|
+
patternsNormalizedToRoot;
|
|
13
|
+
root;
|
|
14
|
+
dot;
|
|
15
|
+
options;
|
|
5
16
|
constructor(patterns, rootOrOptions, _nodePath) {
|
|
6
17
|
_nodePath = _nodePath ?? Path;
|
|
7
18
|
const options = typeof rootOrOptions === 'string' ? { root: rootOrOptions } : rootOrOptions ?? {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cspell-glob",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.0",
|
|
4
4
|
"description": "Glob matcher for cspell",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cspell",
|
|
@@ -45,13 +45,13 @@
|
|
|
45
45
|
"url": "https://github.com/streetsidesoftware/cspell/labels/cspell-glob"
|
|
46
46
|
},
|
|
47
47
|
"engines": {
|
|
48
|
-
"node": ">=
|
|
48
|
+
"node": ">=18"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"micromatch": "^4.0.5"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@types/micromatch": "^4.0.
|
|
54
|
+
"@types/micromatch": "^4.0.4"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "67c22bf98baed1c17bbc658fba8656262d17e370"
|
|
57
57
|
}
|