@cspell/cspell-types 9.3.2 → 9.4.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/cspell.schema.json +18 -0
- package/dist/Parser/index.d.mts +1 -1
- package/dist/Parser/index.d.ts +1 -1
- package/dist/{index-DwYzcMHK.d.ts → index-BtvDF-9G.d.ts} +1 -1
- package/dist/{index-BUF_NEXq.d.mts → index-TAd2zi6U.d.mts} +1 -1
- package/dist/index.d.mts +35 -2
- package/dist/index.d.ts +35 -2
- package/dist/index.js +3 -1
- package/dist/index.mjs +1 -0
- package/package.json +3 -3
package/cspell.schema.json
CHANGED
|
@@ -1408,6 +1408,15 @@
|
|
|
1408
1408
|
"markdownDescription": "The maximum number of times the same word can be flagged as an error in a file.",
|
|
1409
1409
|
"type": "number"
|
|
1410
1410
|
},
|
|
1411
|
+
"maxFileSize": {
|
|
1412
|
+
"description": "The Maximum size of a file to spell check. This is used to prevent spell checking very large files.\n\nThe value can be number or a string formatted `<number>[units]`, number with optional units.\n\nSupported units:\n\n- K, KB - value * 1024\n- M, MB - value * 2^20\n- G, GB - value * 2^30\n\nSpecial values:\n- `0` - has the effect of removing the limit.\n\nExamples:\n- `1000000` - 1 million bytes\n- `1000K` or `1000KB` - 1 thousand kilobytes\n- `0.5M` or `0.5MB` - 0.5 megabytes\n\ndefault: no limit",
|
|
1413
|
+
"markdownDescription": "The Maximum size of a file to spell check. This is used to prevent spell checking very large files.\n\nThe value can be number or a string formatted `<number>[units]`, number with optional units.\n\nSupported units:\n\n- K, KB - value * 1024\n- M, MB - value * 2^20\n- G, GB - value * 2^30\n\nSpecial values:\n- `0` - has the effect of removing the limit.\n\nExamples:\n- `1000000` - 1 million bytes\n- `1000K` or `1000KB` - 1 thousand kilobytes\n- `0.5M` or `0.5MB` - 0.5 megabytes\n\ndefault: no limit",
|
|
1414
|
+
"since": "9.4.0",
|
|
1415
|
+
"type": [
|
|
1416
|
+
"number",
|
|
1417
|
+
"string"
|
|
1418
|
+
]
|
|
1419
|
+
},
|
|
1411
1420
|
"maxNumberOfProblems": {
|
|
1412
1421
|
"default": 10000,
|
|
1413
1422
|
"description": "The maximum number of problems to report in a file.",
|
|
@@ -1994,6 +2003,15 @@
|
|
|
1994
2003
|
"markdownDescription": "The maximum number of times the same word can be flagged as an error in a file.",
|
|
1995
2004
|
"type": "number"
|
|
1996
2005
|
},
|
|
2006
|
+
"maxFileSize": {
|
|
2007
|
+
"description": "The Maximum size of a file to spell check. This is used to prevent spell checking very large files.\n\nThe value can be number or a string formatted `<number>[units]`, number with optional units.\n\nSupported units:\n\n- K, KB - value * 1024\n- M, MB - value * 2^20\n- G, GB - value * 2^30\n\nSpecial values:\n- `0` - has the effect of removing the limit.\n\nExamples:\n- `1000000` - 1 million bytes\n- `1000K` or `1000KB` - 1 thousand kilobytes\n- `0.5M` or `0.5MB` - 0.5 megabytes\n\ndefault: no limit",
|
|
2008
|
+
"markdownDescription": "The Maximum size of a file to spell check. This is used to prevent spell checking very large files.\n\nThe value can be number or a string formatted `<number>[units]`, number with optional units.\n\nSupported units:\n\n- K, KB - value * 1024\n- M, MB - value * 2^20\n- G, GB - value * 2^30\n\nSpecial values:\n- `0` - has the effect of removing the limit.\n\nExamples:\n- `1000000` - 1 million bytes\n- `1000K` or `1000KB` - 1 thousand kilobytes\n- `0.5M` or `0.5MB` - 0.5 megabytes\n\ndefault: no limit",
|
|
2009
|
+
"since": "9.4.0",
|
|
2010
|
+
"type": [
|
|
2011
|
+
"number",
|
|
2012
|
+
"string"
|
|
2013
|
+
]
|
|
2014
|
+
},
|
|
1997
2015
|
"maxNumberOfProblems": {
|
|
1998
2016
|
"default": 10000,
|
|
1999
2017
|
"description": "The maximum number of problems to report in a file.",
|
package/dist/Parser/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ParserName, c as Scope, d as SourceMap, i as Parser, l as ScopeChain, n as ParseResult, o as ParserOptions, r as ParsedText, s as Range, t as DelegateInfo, u as ScopeString } from "../index-
|
|
1
|
+
import { a as ParserName, c as Scope, d as SourceMap, i as Parser, l as ScopeChain, n as ParseResult, o as ParserOptions, r as ParsedText, s as Range, t as DelegateInfo, u as ScopeString } from "../index-TAd2zi6U.mjs";
|
|
2
2
|
export { DelegateInfo, ParseResult, ParsedText, Parser, ParserName, ParserOptions, Range, Scope, ScopeChain, ScopeString, SourceMap };
|
package/dist/Parser/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ParserName, c as Scope, d as SourceMap, i as Parser, l as ScopeChain, n as ParseResult, o as ParserOptions, r as ParsedText, s as Range, t as DelegateInfo, u as ScopeString } from "../index-
|
|
1
|
+
import { a as ParserName, c as Scope, d as SourceMap, i as Parser, l as ScopeChain, n as ParseResult, o as ParserOptions, r as ParsedText, s as Range, t as DelegateInfo, u as ScopeString } from "../index-BtvDF-9G.js";
|
|
2
2
|
export { DelegateInfo, ParseResult, ParsedText, Parser, ParserName, ParserOptions, Range, Scope, ScopeChain, ScopeString, SourceMap };
|
|
@@ -126,4 +126,4 @@ type ScopeString = string;
|
|
|
126
126
|
type Scope = ScopeChain | ScopeString;
|
|
127
127
|
//#endregion
|
|
128
128
|
export { ParserName as a, Scope as c, SourceMap as d, Parser as i, ScopeChain as l, ParseResult as n, ParserOptions as o, ParsedText as r, Range as s, DelegateInfo as t, ScopeString as u };
|
|
129
|
-
//# sourceMappingURL=index-
|
|
129
|
+
//# sourceMappingURL=index-BtvDF-9G.d.ts.map
|
|
@@ -126,4 +126,4 @@ type ScopeString = string;
|
|
|
126
126
|
type Scope = ScopeChain | ScopeString;
|
|
127
127
|
//#endregion
|
|
128
128
|
export { ParserName as a, Scope as c, SourceMap as d, Parser as i, ScopeChain as l, ParseResult as n, ParserOptions as o, ParsedText as r, Range as s, DelegateInfo as t, ScopeString as u };
|
|
129
|
-
//# sourceMappingURL=index-
|
|
129
|
+
//# sourceMappingURL=index-TAd2zi6U.d.mts.map
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as ParserName, i as Parser, n as ParseResult, o as ParserOptions, r as ParsedText } from "./index-
|
|
1
|
+
import { a as ParserName, i as Parser, n as ParseResult, o as ParserOptions, r as ParsedText } from "./index-TAd2zi6U.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/SuggestionsConfiguration.d.ts
|
|
4
4
|
interface SuggestionsConfiguration {
|
|
@@ -155,6 +155,10 @@ interface ProgressFileComplete extends ProgressFileBase {
|
|
|
155
155
|
*/
|
|
156
156
|
processed: boolean | undefined;
|
|
157
157
|
/**
|
|
158
|
+
* Optional reason for skipping the file.
|
|
159
|
+
*/
|
|
160
|
+
skippedReason?: string | undefined;
|
|
161
|
+
/**
|
|
158
162
|
* Number of errors and issues found in the file.
|
|
159
163
|
*/
|
|
160
164
|
numErrors: number | undefined;
|
|
@@ -188,8 +192,10 @@ interface RunResult {
|
|
|
188
192
|
issues: number;
|
|
189
193
|
/** Number of processing errors. */
|
|
190
194
|
errors: number;
|
|
191
|
-
/** Number files that used results from the cache. */
|
|
195
|
+
/** Number of files that used results from the cache. */
|
|
192
196
|
cachedFiles?: number;
|
|
197
|
+
/** Number of files that were skipped (not processed). */
|
|
198
|
+
skippedFiles?: number;
|
|
193
199
|
}
|
|
194
200
|
type ResultEmitter = (result: RunResult) => void | Promise<void>;
|
|
195
201
|
interface CSpellReporterEmitters {
|
|
@@ -245,6 +251,10 @@ interface ReporterCommandLineOptions {
|
|
|
245
251
|
*/
|
|
246
252
|
verbose?: boolean;
|
|
247
253
|
/**
|
|
254
|
+
* Level of verbosity (higher number = more verbose).
|
|
255
|
+
*/
|
|
256
|
+
verboseLevel?: number;
|
|
257
|
+
/**
|
|
248
258
|
* Show extensive output.
|
|
249
259
|
*/
|
|
250
260
|
debug?: boolean;
|
|
@@ -1266,6 +1276,29 @@ interface Settings extends ReportingConfiguration, BaseSetting, PnPSettings, Spe
|
|
|
1266
1276
|
* @default true
|
|
1267
1277
|
*/
|
|
1268
1278
|
loadDefaultConfiguration?: boolean;
|
|
1279
|
+
/**
|
|
1280
|
+
* The Maximum size of a file to spell check. This is used to prevent spell checking very large files.
|
|
1281
|
+
*
|
|
1282
|
+
* The value can be number or a string formatted `<number>[units]`, number with optional units.
|
|
1283
|
+
*
|
|
1284
|
+
* Supported units:
|
|
1285
|
+
*
|
|
1286
|
+
* - K, KB - value * 1024
|
|
1287
|
+
* - M, MB - value * 2^20
|
|
1288
|
+
* - G, GB - value * 2^30
|
|
1289
|
+
*
|
|
1290
|
+
* Special values:
|
|
1291
|
+
* - `0` - has the effect of removing the limit.
|
|
1292
|
+
*
|
|
1293
|
+
* Examples:
|
|
1294
|
+
* - `1000000` - 1 million bytes
|
|
1295
|
+
* - `1000K` or `1000KB` - 1 thousand kilobytes
|
|
1296
|
+
* - `0.5M` or `0.5MB` - 0.5 megabytes
|
|
1297
|
+
*
|
|
1298
|
+
* default: no limit
|
|
1299
|
+
* @since 9.4.0
|
|
1300
|
+
*/
|
|
1301
|
+
maxFileSize?: number | string | undefined;
|
|
1269
1302
|
}
|
|
1270
1303
|
/**
|
|
1271
1304
|
* Plug N Play settings to support package systems like Yarn 2.
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as ParserName, i as Parser, n as ParseResult, o as ParserOptions, r as ParsedText } from "./index-
|
|
1
|
+
import { a as ParserName, i as Parser, n as ParseResult, o as ParserOptions, r as ParsedText } from "./index-BtvDF-9G.js";
|
|
2
2
|
|
|
3
3
|
//#region src/SuggestionsConfiguration.d.ts
|
|
4
4
|
interface SuggestionsConfiguration {
|
|
@@ -155,6 +155,10 @@ interface ProgressFileComplete extends ProgressFileBase {
|
|
|
155
155
|
*/
|
|
156
156
|
processed: boolean | undefined;
|
|
157
157
|
/**
|
|
158
|
+
* Optional reason for skipping the file.
|
|
159
|
+
*/
|
|
160
|
+
skippedReason?: string | undefined;
|
|
161
|
+
/**
|
|
158
162
|
* Number of errors and issues found in the file.
|
|
159
163
|
*/
|
|
160
164
|
numErrors: number | undefined;
|
|
@@ -188,8 +192,10 @@ interface RunResult {
|
|
|
188
192
|
issues: number;
|
|
189
193
|
/** Number of processing errors. */
|
|
190
194
|
errors: number;
|
|
191
|
-
/** Number files that used results from the cache. */
|
|
195
|
+
/** Number of files that used results from the cache. */
|
|
192
196
|
cachedFiles?: number;
|
|
197
|
+
/** Number of files that were skipped (not processed). */
|
|
198
|
+
skippedFiles?: number;
|
|
193
199
|
}
|
|
194
200
|
type ResultEmitter = (result: RunResult) => void | Promise<void>;
|
|
195
201
|
interface CSpellReporterEmitters {
|
|
@@ -245,6 +251,10 @@ interface ReporterCommandLineOptions {
|
|
|
245
251
|
*/
|
|
246
252
|
verbose?: boolean;
|
|
247
253
|
/**
|
|
254
|
+
* Level of verbosity (higher number = more verbose).
|
|
255
|
+
*/
|
|
256
|
+
verboseLevel?: number;
|
|
257
|
+
/**
|
|
248
258
|
* Show extensive output.
|
|
249
259
|
*/
|
|
250
260
|
debug?: boolean;
|
|
@@ -1266,6 +1276,29 @@ interface Settings extends ReportingConfiguration, BaseSetting, PnPSettings, Spe
|
|
|
1266
1276
|
* @default true
|
|
1267
1277
|
*/
|
|
1268
1278
|
loadDefaultConfiguration?: boolean;
|
|
1279
|
+
/**
|
|
1280
|
+
* The Maximum size of a file to spell check. This is used to prevent spell checking very large files.
|
|
1281
|
+
*
|
|
1282
|
+
* The value can be number or a string formatted `<number>[units]`, number with optional units.
|
|
1283
|
+
*
|
|
1284
|
+
* Supported units:
|
|
1285
|
+
*
|
|
1286
|
+
* - K, KB - value * 1024
|
|
1287
|
+
* - M, MB - value * 2^20
|
|
1288
|
+
* - G, GB - value * 2^30
|
|
1289
|
+
*
|
|
1290
|
+
* Special values:
|
|
1291
|
+
* - `0` - has the effect of removing the limit.
|
|
1292
|
+
*
|
|
1293
|
+
* Examples:
|
|
1294
|
+
* - `1000000` - 1 million bytes
|
|
1295
|
+
* - `1000K` or `1000KB` - 1 thousand kilobytes
|
|
1296
|
+
* - `0.5M` or `0.5MB` - 0.5 megabytes
|
|
1297
|
+
*
|
|
1298
|
+
* default: no limit
|
|
1299
|
+
* @since 9.4.0
|
|
1300
|
+
*/
|
|
1301
|
+
maxFileSize?: number | string | undefined;
|
|
1269
1302
|
}
|
|
1270
1303
|
/**
|
|
1271
1304
|
* Plug N Play settings to support package systems like Yarn 2.
|
package/dist/index.js
CHANGED
|
@@ -29,6 +29,7 @@ const ConfigFields = {
|
|
|
29
29
|
languageSettings: "languageSettings",
|
|
30
30
|
loadDefaultConfiguration: "loadDefaultConfiguration",
|
|
31
31
|
maxDuplicateProblems: "maxDuplicateProblems",
|
|
32
|
+
maxFileSize: "maxFileSize",
|
|
32
33
|
maxNumberOfProblems: "maxNumberOfProblems",
|
|
33
34
|
minWordLength: "minWordLength",
|
|
34
35
|
minRandomLength: "minRandomLength",
|
|
@@ -93,4 +94,5 @@ exports.IssueType = IssueType;
|
|
|
93
94
|
exports.MessageTypes = MessageTypes;
|
|
94
95
|
exports.defaultCSpellSettings = defaultCSpellSettings;
|
|
95
96
|
exports.defineConfig = defineConfig;
|
|
96
|
-
exports.unknownWordsChoices = unknownWordsChoices;
|
|
97
|
+
exports.unknownWordsChoices = unknownWordsChoices;
|
|
98
|
+
//# sourceMappingURL=index.js.map
|
package/dist/index.mjs
CHANGED
|
@@ -28,6 +28,7 @@ const ConfigFields = {
|
|
|
28
28
|
languageSettings: "languageSettings",
|
|
29
29
|
loadDefaultConfiguration: "loadDefaultConfiguration",
|
|
30
30
|
maxDuplicateProblems: "maxDuplicateProblems",
|
|
31
|
+
maxFileSize: "maxFileSize",
|
|
31
32
|
maxNumberOfProblems: "maxNumberOfProblems",
|
|
32
33
|
minWordLength: "minWordLength",
|
|
33
34
|
minRandomLength: "minRandomLength",
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public",
|
|
5
5
|
"provenance": true
|
|
6
6
|
},
|
|
7
|
-
"version": "9.
|
|
7
|
+
"version": "9.4.0",
|
|
8
8
|
"description": "Types for cspell and cspell-lib",
|
|
9
9
|
"type": "commonjs",
|
|
10
10
|
"sideEffects": false,
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"clean": "shx rm -rf dist temp coverage \"*.tsbuildInfo\"",
|
|
53
53
|
"build": "pnpm build:tsc && pnpm build:tsdown && pnpm run build-schema",
|
|
54
54
|
"build:tsc": "tsc -p tsconfig.json",
|
|
55
|
-
"build:tsdown": "tsdown
|
|
55
|
+
"build:tsdown": "tsdown",
|
|
56
56
|
"build-schema": "pnpm build-cspell-schema",
|
|
57
57
|
"clean-build": "pnpm run clean && pnpm run build",
|
|
58
58
|
"coverage": "vitest run --coverage",
|
|
@@ -86,5 +86,5 @@
|
|
|
86
86
|
"node": ">=20"
|
|
87
87
|
},
|
|
88
88
|
"homepage": "https://github.com/streetsidesoftware/cspell/tree/main/packages/cspell-types#readme",
|
|
89
|
-
"gitHead": "
|
|
89
|
+
"gitHead": "12dba3d8b880384d1401c765cb2186647f5a266f"
|
|
90
90
|
}
|