cspell-lib 10.3.4-alpha.0 → 10.3.4
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.
|
@@ -281,7 +281,13 @@ function resolveParser(settings) {
|
|
|
281
281
|
assert(typeof parserName === 'string');
|
|
282
282
|
const parsers = extractParsers(settings.plugins);
|
|
283
283
|
const parser = parsers.get(parserName);
|
|
284
|
-
|
|
284
|
+
try {
|
|
285
|
+
assert(parser);
|
|
286
|
+
}
|
|
287
|
+
catch {
|
|
288
|
+
// lazy assertion for better error message
|
|
289
|
+
assert(parser, `Parser "${parserName}" not found among available parsers: ${[...parsers.keys()].join(', ')}`);
|
|
290
|
+
}
|
|
285
291
|
return parser;
|
|
286
292
|
}
|
|
287
293
|
function* parsers(plugins) {
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public",
|
|
5
5
|
"provenance": true
|
|
6
6
|
},
|
|
7
|
-
"version": "10.3.4
|
|
7
|
+
"version": "10.3.4",
|
|
8
8
|
"description": "A library of useful functions used across various cspell tools.",
|
|
9
9
|
"type": "module",
|
|
10
10
|
"sideEffects": false,
|
|
@@ -75,22 +75,22 @@
|
|
|
75
75
|
},
|
|
76
76
|
"homepage": "https://github.com/streetsidesoftware/cspell/tree/main/packages/cspell-lib#readme",
|
|
77
77
|
"dependencies": {
|
|
78
|
-
"@cspell/cspell-bundled-dicts": "10.3.4
|
|
79
|
-
"@cspell/cspell-performance-monitor": "10.3.4
|
|
80
|
-
"@cspell/cspell-pipe": "10.3.4
|
|
81
|
-
"@cspell/cspell-resolver": "10.3.4
|
|
82
|
-
"@cspell/cspell-types": "10.3.4
|
|
83
|
-
"@cspell/dynamic-import": "10.3.4
|
|
84
|
-
"@cspell/filetypes": "10.3.4
|
|
85
|
-
"@cspell/rpc": "10.3.4
|
|
86
|
-
"@cspell/strong-weak-map": "10.3.4
|
|
87
|
-
"@cspell/url": "10.3.4
|
|
88
|
-
"cspell-config-lib": "10.3.4
|
|
89
|
-
"cspell-dictionary": "10.3.4
|
|
90
|
-
"cspell-glob": "10.3.4
|
|
91
|
-
"cspell-grammar": "10.3.4
|
|
92
|
-
"cspell-io": "10.3.4
|
|
93
|
-
"cspell-trie-lib": "10.3.4
|
|
78
|
+
"@cspell/cspell-bundled-dicts": "10.3.4",
|
|
79
|
+
"@cspell/cspell-performance-monitor": "10.3.4",
|
|
80
|
+
"@cspell/cspell-pipe": "10.3.4",
|
|
81
|
+
"@cspell/cspell-resolver": "10.3.4",
|
|
82
|
+
"@cspell/cspell-types": "10.3.4",
|
|
83
|
+
"@cspell/dynamic-import": "10.3.4",
|
|
84
|
+
"@cspell/filetypes": "10.3.4",
|
|
85
|
+
"@cspell/rpc": "10.3.4",
|
|
86
|
+
"@cspell/strong-weak-map": "10.3.4",
|
|
87
|
+
"@cspell/url": "10.3.4",
|
|
88
|
+
"cspell-config-lib": "10.3.4",
|
|
89
|
+
"cspell-dictionary": "10.3.4",
|
|
90
|
+
"cspell-glob": "10.3.4",
|
|
91
|
+
"cspell-grammar": "10.3.4",
|
|
92
|
+
"cspell-io": "10.3.4",
|
|
93
|
+
"cspell-trie-lib": "10.3.4",
|
|
94
94
|
"env-paths": "^4.0.0",
|
|
95
95
|
"gensequence": "^8.0.8",
|
|
96
96
|
"import-fresh": "^4.0.0",
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
"node": ">=22.18.0"
|
|
104
104
|
},
|
|
105
105
|
"devDependencies": {
|
|
106
|
-
"@cspell/cspell-tools": "10.3.4
|
|
106
|
+
"@cspell/cspell-tools": "10.3.4",
|
|
107
107
|
"@cspell/dict-cpp": "^7.1.0",
|
|
108
108
|
"@cspell/dict-csharp": "^4.0.8",
|
|
109
109
|
"@cspell/dict-css": "^4.1.2",
|
|
@@ -123,5 +123,5 @@
|
|
|
123
123
|
"lorem-ipsum": "^3.0.0",
|
|
124
124
|
"perf-insight": "^2.0.1"
|
|
125
125
|
},
|
|
126
|
-
"gitHead": "
|
|
126
|
+
"gitHead": "7bb5c4750ece7c732edbf920c0cea910d9b4d717"
|
|
127
127
|
}
|