cspell 9.3.2 → 9.6.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/README.md +13 -7
- package/dist/cjs/commonJsApi.cjs +8 -0
- package/dist/cjs/commonJsApi.d.cts +2 -0
- package/dist/esm/app.d.ts +1 -1
- package/dist/esm/app.js +39 -335
- package/dist/esm/{application-CGIx5L0D.js → application-BJHh60xM.js} +886 -239
- package/dist/esm/{application-B84gvlDU.d.ts → application-Ce_s5c1d.d.ts} +2 -2
- package/dist/esm/application.d.ts +2 -2
- package/dist/esm/application.js +1 -1
- package/dist/esm/index.d.ts +3 -3
- package/dist/esm/index.js +1 -1
- package/dist/esm/{options-BeJCICDB.d.ts → options-D_PtlSKK.d.ts} +12 -1
- package/package.json +20 -17
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as SuggestionOptions, i as LinterCliOptions, n as DictionariesOptions, o as TraceOptions, r as LegacyOptions, t as BaseOptions } from "./options-
|
|
1
|
+
import { a as SuggestionOptions, i as LinterCliOptions, n as DictionariesOptions, o as TraceOptions, r as LegacyOptions, t as BaseOptions } from "./options-D_PtlSKK.js";
|
|
2
2
|
import { CheckTextInfo, FeatureFlags, IncludeExcludeFlag, SuggestionsForWordResult, TraceResult, TraceWordResult } from "cspell-lib";
|
|
3
3
|
import { CSpellReporter, RunResult } from "@cspell/cspell-types";
|
|
4
4
|
|
|
@@ -113,4 +113,4 @@ declare function createInit(options: InitOptions): Promise<void>;
|
|
|
113
113
|
declare function parseApplicationFeatureFlags(flags: string[] | undefined): FeatureFlags;
|
|
114
114
|
//#endregion
|
|
115
115
|
export { checkText as a, parseApplicationFeatureFlags as c, listDictionaries as d, TraceResult as i, suggestions as l, CheckTextResult as n, createInit as o, IncludeExcludeFlag as r, lint as s, AppError as t, trace as u };
|
|
116
|
-
//# sourceMappingURL=application-
|
|
116
|
+
//# sourceMappingURL=application-Ce_s5c1d.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "./options-
|
|
2
|
-
import { a as checkText, c as parseApplicationFeatureFlags, d as listDictionaries, i as TraceResult, l as suggestions, n as CheckTextResult, o as createInit, r as IncludeExcludeFlag, s as lint, t as AppError, u as trace } from "./application-
|
|
1
|
+
import "./options-D_PtlSKK.js";
|
|
2
|
+
import { a as checkText, c as parseApplicationFeatureFlags, d as listDictionaries, i as TraceResult, l as suggestions, n as CheckTextResult, o as createInit, r as IncludeExcludeFlag, s as lint, t as AppError, u as trace } from "./application-Ce_s5c1d.js";
|
|
3
3
|
export { AppError, CheckTextResult, IncludeExcludeFlag, TraceResult, checkText, createInit, lint, listDictionaries, parseApplicationFeatureFlags, suggestions, trace };
|
package/dist/esm/application.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as parseApplicationFeatureFlags, c as listDictionaries, i as lint, n as checkText, o as suggestions, r as createInit, s as trace, t as IncludeExcludeFlag } from "./application-
|
|
1
|
+
import { a as parseApplicationFeatureFlags, c as listDictionaries, i as lint, n as checkText, o as suggestions, r as createInit, s as trace, t as IncludeExcludeFlag } from "./application-BJHh60xM.js";
|
|
2
2
|
|
|
3
3
|
export { IncludeExcludeFlag, checkText, createInit, lint, listDictionaries, parseApplicationFeatureFlags, suggestions, trace };
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as LinterCliOptions, o as TraceOptions, t as BaseOptions } from "./options-
|
|
2
|
-
import { a as checkText, c as parseApplicationFeatureFlags, d as listDictionaries, i as TraceResult, l as suggestions, n as CheckTextResult, o as createInit, r as IncludeExcludeFlag, s as lint, t as AppError, u as trace } from "./application-
|
|
1
|
+
import { i as LinterCliOptions, o as TraceOptions, t as BaseOptions } from "./options-D_PtlSKK.js";
|
|
2
|
+
import { a as checkText, c as parseApplicationFeatureFlags, d as listDictionaries, i as TraceResult, l as suggestions, n as CheckTextResult, o as createInit, r as IncludeExcludeFlag, s as lint, t as AppError, u as trace } from "./application-Ce_s5c1d.js";
|
|
3
3
|
import "chalk";
|
|
4
4
|
import { CSpellReporter, CSpellSettings, ReporterConfiguration, RunResult } from "@cspell/cspell-types";
|
|
5
5
|
import { WriteStream } from "node:tty";
|
|
@@ -42,7 +42,7 @@ interface CSpellReporterModule {
|
|
|
42
42
|
type FinalizedReporter = Required<CSpellReporter>;
|
|
43
43
|
//#endregion
|
|
44
44
|
//#region src/cli-reporter.d.ts
|
|
45
|
-
interface ReporterOptions extends Pick<LinterCliOptions, "color" | "debug" | "issues" | "issuesSummaryReport" | "legacy" | "progress" | "relative" | "root" | "showContext" | "showPerfSummary" | "showSuggestions" | "silent" | "summary" | "verbose" | "wordsOnly"> {
|
|
45
|
+
interface ReporterOptions extends Pick<LinterCliOptions, "color" | "debug" | "issues" | "issuesSummaryReport" | "legacy" | "progress" | "relative" | "root" | "showContext" | "showPerfSummary" | "showSuggestions" | "silent" | "summary" | "verbose" | "verboseLevel" | "wordsOnly"> {
|
|
46
46
|
fileGlobs: string[];
|
|
47
47
|
}
|
|
48
48
|
declare function getReporter(options: ReporterOptions, config?: CSpellReporterConfiguration): FinalizedReporter;
|
package/dist/esm/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as parseApplicationFeatureFlags, c as listDictionaries,
|
|
1
|
+
import { a as parseApplicationFeatureFlags, c as listDictionaries, h as getReporter, i as lint, n as checkText, o as suggestions, r as createInit, s as trace, t as IncludeExcludeFlag } from "./application-BJHh60xM.js";
|
|
2
2
|
|
|
3
3
|
export * from "@cspell/cspell-types"
|
|
4
4
|
|
|
@@ -44,6 +44,10 @@ interface LinterOptions extends Omit<BaseOptions, "config">, Omit<CacheOptions,
|
|
|
44
44
|
*/
|
|
45
45
|
verbose?: boolean;
|
|
46
46
|
/**
|
|
47
|
+
* Level of verbosity (higher number = more verbose).
|
|
48
|
+
*/
|
|
49
|
+
verboseLevel?: number;
|
|
50
|
+
/**
|
|
47
51
|
* Show extensive output.
|
|
48
52
|
*/
|
|
49
53
|
debug?: boolean;
|
|
@@ -142,6 +146,13 @@ interface LinterOptions extends Omit<BaseOptions, "config">, Omit<CacheOptions,
|
|
|
142
146
|
* Path to configuration file.
|
|
143
147
|
*/
|
|
144
148
|
config?: string | CSpellConfigFile;
|
|
149
|
+
/**
|
|
150
|
+
* Specify the maximum file size to be checked.
|
|
151
|
+
* The value can include a units suffix: `KB`, `MB`, `B`, `GB`.
|
|
152
|
+
* The numeric value can include a decimal.
|
|
153
|
+
* Example: 1.5MB
|
|
154
|
+
*/
|
|
155
|
+
maxFileSize?: string | undefined;
|
|
145
156
|
}
|
|
146
157
|
interface TraceOptions extends BaseOptions {
|
|
147
158
|
/**
|
|
@@ -387,4 +398,4 @@ interface CSpellConfigFile {
|
|
|
387
398
|
}
|
|
388
399
|
//#endregion
|
|
389
400
|
export { SuggestionOptions as a, LinterCliOptions as i, DictionariesOptions as n, TraceOptions as o, LegacyOptions as r, BaseOptions as t };
|
|
390
|
-
//# sourceMappingURL=options-
|
|
401
|
+
//# sourceMappingURL=options-D_PtlSKK.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cspell",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.6.0",
|
|
4
4
|
"description": "A Spelling Checker for Code!",
|
|
5
5
|
"funding": "https://github.com/streetsidesoftware/cspell?sponsor=1",
|
|
6
6
|
"bin": {
|
|
@@ -9,11 +9,13 @@
|
|
|
9
9
|
},
|
|
10
10
|
"type": "module",
|
|
11
11
|
"sideEffects": false,
|
|
12
|
-
"types": "dist/
|
|
12
|
+
"types": "dist/cjs/commonJsApi.d.ts",
|
|
13
|
+
"main": "dist/cjs/commonJsApi.cjs",
|
|
13
14
|
"module": "dist/esm/index.js",
|
|
14
15
|
"exports": {
|
|
15
16
|
".": {
|
|
16
|
-
"import": "./dist/esm/index.js"
|
|
17
|
+
"import": "./dist/esm/index.js",
|
|
18
|
+
"require": "./dist/cjs/commonJsApi.cjs"
|
|
17
19
|
},
|
|
18
20
|
"./app": {
|
|
19
21
|
"import": "./dist/esm/app.js"
|
|
@@ -53,7 +55,8 @@
|
|
|
53
55
|
"coverage": "vitest run --coverage",
|
|
54
56
|
"test:watch": "vitest",
|
|
55
57
|
"test": "vitest run",
|
|
56
|
-
"watch": "
|
|
58
|
+
"watch": "tsdown -w",
|
|
59
|
+
"watch:tsc": "tsc -p . -w",
|
|
57
60
|
"compile": "tsc -p .",
|
|
58
61
|
"test-watch": "vitest",
|
|
59
62
|
"version": "node ./tools/patch-version.mjs && git add .",
|
|
@@ -83,20 +86,21 @@
|
|
|
83
86
|
},
|
|
84
87
|
"homepage": "https://cspell.org/",
|
|
85
88
|
"dependencies": {
|
|
86
|
-
"@cspell/cspell-json-reporter": "9.
|
|
87
|
-
"@cspell/cspell-pipe": "9.
|
|
88
|
-
"@cspell/cspell-types": "9.
|
|
89
|
-
"@cspell/dynamic-import": "9.
|
|
90
|
-
"@cspell/url": "9.
|
|
89
|
+
"@cspell/cspell-json-reporter": "9.6.0",
|
|
90
|
+
"@cspell/cspell-pipe": "9.6.0",
|
|
91
|
+
"@cspell/cspell-types": "9.6.0",
|
|
92
|
+
"@cspell/dynamic-import": "9.6.0",
|
|
93
|
+
"@cspell/url": "9.6.0",
|
|
94
|
+
"ansi-regex": "^6.2.2",
|
|
91
95
|
"chalk": "^5.6.2",
|
|
92
96
|
"chalk-template": "^1.1.2",
|
|
93
97
|
"commander": "^14.0.2",
|
|
94
|
-
"cspell-config-lib": "9.
|
|
95
|
-
"cspell-dictionary": "9.
|
|
96
|
-
"cspell-gitignore": "9.
|
|
97
|
-
"cspell-glob": "9.
|
|
98
|
-
"cspell-io": "9.
|
|
99
|
-
"cspell-lib": "9.
|
|
98
|
+
"cspell-config-lib": "9.6.0",
|
|
99
|
+
"cspell-dictionary": "9.6.0",
|
|
100
|
+
"cspell-gitignore": "9.6.0",
|
|
101
|
+
"cspell-glob": "9.6.0",
|
|
102
|
+
"cspell-io": "9.6.0",
|
|
103
|
+
"cspell-lib": "9.6.0",
|
|
100
104
|
"fast-json-stable-stringify": "^2.1.0",
|
|
101
105
|
"flatted": "^3.3.3",
|
|
102
106
|
"semver": "^7.7.3",
|
|
@@ -106,11 +110,10 @@
|
|
|
106
110
|
"node": ">=20"
|
|
107
111
|
},
|
|
108
112
|
"devDependencies": {
|
|
109
|
-
"@types/glob": "^8.1.0",
|
|
110
113
|
"@types/micromatch": "^4.0.10",
|
|
111
114
|
"@types/semver": "^7.7.1",
|
|
112
115
|
"micromatch": "^4.0.8",
|
|
113
116
|
"minimatch": "^9.0.5"
|
|
114
117
|
},
|
|
115
|
-
"gitHead": "
|
|
118
|
+
"gitHead": "163793ddf2a0ad90bc7c90351698a106003297af"
|
|
116
119
|
}
|