cspell-lib 8.8.2 → 8.8.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.
|
@@ -40,11 +40,13 @@ export declare function normalizeLanguageSettings(languageSettings: LanguageSett
|
|
|
40
40
|
type NormalizeGitignoreRoot = Pick<CSpellUserSettings, 'gitignoreRoot'>;
|
|
41
41
|
export declare function normalizeGitignoreRoot(settings: NormalizeGitignoreRoot, pathToSettingsFile: URL): NormalizeGitignoreRoot;
|
|
42
42
|
interface NormalizeSettingsGlobs {
|
|
43
|
+
files?: CSpellUserSettings['files'];
|
|
43
44
|
globRoot?: CSpellUserSettings['globRoot'];
|
|
44
45
|
ignorePaths?: CSpellUserSettings['ignorePaths'];
|
|
45
46
|
}
|
|
46
47
|
interface NormalizeSettingsGlobsResult {
|
|
47
48
|
ignorePaths?: GlobDef[];
|
|
49
|
+
files?: GlobDef[];
|
|
48
50
|
}
|
|
49
51
|
export declare function normalizeSettingsGlobs(settings: NormalizeSettingsGlobs, pathToSettingsFile: URL): NormalizeSettingsGlobsResult;
|
|
50
52
|
export declare function normalizeCacheSettings(settings: Pick<CSpellUserSettings, 'cache'>, pathToSettingsFile: URL): Pick<CSpellUserSettings, 'cache'>;
|
|
@@ -85,12 +85,14 @@ export function normalizeGitignoreRoot(settings, pathToSettingsFile) {
|
|
|
85
85
|
}
|
|
86
86
|
export function normalizeSettingsGlobs(settings, pathToSettingsFile) {
|
|
87
87
|
const { globRoot } = settings;
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
88
|
+
const normalized = {};
|
|
89
|
+
if (settings.ignorePaths) {
|
|
90
|
+
normalized.ignorePaths = toGlobDef(settings.ignorePaths, globRoot, toFilePathOrHref(pathToSettingsFile));
|
|
91
|
+
}
|
|
92
|
+
if (settings.files) {
|
|
93
|
+
normalized.files = toGlobDef(settings.files, globRoot, toFilePathOrHref(pathToSettingsFile));
|
|
94
|
+
}
|
|
95
|
+
return normalized;
|
|
94
96
|
}
|
|
95
97
|
export function normalizeCacheSettings(settings, pathToSettingsFile) {
|
|
96
98
|
const { cache } = settings;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cspell-lib",
|
|
3
|
-
"version": "8.8.
|
|
3
|
+
"version": "8.8.3",
|
|
4
4
|
"description": "A library of useful functions used across various cspell tools.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -59,20 +59,20 @@
|
|
|
59
59
|
},
|
|
60
60
|
"homepage": "https://github.com/streetsidesoftware/cspell#readme",
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@cspell/cspell-bundled-dicts": "8.8.
|
|
63
|
-
"@cspell/cspell-pipe": "8.8.
|
|
64
|
-
"@cspell/cspell-resolver": "8.8.
|
|
65
|
-
"@cspell/cspell-types": "8.8.
|
|
66
|
-
"@cspell/dynamic-import": "8.8.
|
|
67
|
-
"@cspell/strong-weak-map": "8.8.
|
|
62
|
+
"@cspell/cspell-bundled-dicts": "8.8.3",
|
|
63
|
+
"@cspell/cspell-pipe": "8.8.3",
|
|
64
|
+
"@cspell/cspell-resolver": "8.8.3",
|
|
65
|
+
"@cspell/cspell-types": "8.8.3",
|
|
66
|
+
"@cspell/dynamic-import": "8.8.3",
|
|
67
|
+
"@cspell/strong-weak-map": "8.8.3",
|
|
68
68
|
"clear-module": "^4.1.2",
|
|
69
69
|
"comment-json": "^4.2.3",
|
|
70
|
-
"cspell-config-lib": "8.8.
|
|
71
|
-
"cspell-dictionary": "8.8.
|
|
72
|
-
"cspell-glob": "8.8.
|
|
73
|
-
"cspell-grammar": "8.8.
|
|
74
|
-
"cspell-io": "8.8.
|
|
75
|
-
"cspell-trie-lib": "8.8.
|
|
70
|
+
"cspell-config-lib": "8.8.3",
|
|
71
|
+
"cspell-dictionary": "8.8.3",
|
|
72
|
+
"cspell-glob": "8.8.3",
|
|
73
|
+
"cspell-grammar": "8.8.3",
|
|
74
|
+
"cspell-io": "8.8.3",
|
|
75
|
+
"cspell-trie-lib": "8.8.3",
|
|
76
76
|
"env-paths": "^3.0.0",
|
|
77
77
|
"fast-equals": "^5.0.1",
|
|
78
78
|
"gensequence": "^7.0.0",
|
|
@@ -100,5 +100,5 @@
|
|
|
100
100
|
"leaked-handles": "^5.2.0",
|
|
101
101
|
"lorem-ipsum": "^2.0.8"
|
|
102
102
|
},
|
|
103
|
-
"gitHead": "
|
|
103
|
+
"gitHead": "485fa7eb0587b1261ad169711e7251746c9721d5"
|
|
104
104
|
}
|