@cspell/cspell-types 9.0.1 → 9.1.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/index.js CHANGED
@@ -1,116 +1,96 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/index.ts
21
- var index_exports = {};
22
- __export(index_exports, {
23
- ConfigFields: () => ConfigFields,
24
- IssueType: () => IssueType,
25
- MessageTypes: () => MessageTypes,
26
- defaultCSpellSettings: () => defaultCSpellSettings,
27
- defineConfig: () => defineConfig
28
- });
29
- module.exports = __toCommonJS(index_exports);
30
1
 
31
- // src/configFields.ts
32
- var ConfigFields = {
33
- allowCompoundWords: "allowCompoundWords",
34
- cache: "cache",
35
- caseSensitive: "caseSensitive",
36
- description: "description",
37
- dictionaries: "dictionaries",
38
- dictionaryDefinitions: "dictionaryDefinitions",
39
- enabled: "enabled",
40
- enabledLanguageIds: "enabledLanguageIds",
41
- enableFiletypes: "enableFiletypes",
42
- enabledFileTypes: "enabledFileTypes",
43
- enableGlobDot: "enableGlobDot",
44
- failFast: "failFast",
45
- features: "features",
46
- files: "files",
47
- flagWords: "flagWords",
48
- gitignoreRoot: "gitignoreRoot",
49
- globRoot: "globRoot",
50
- ignorePaths: "ignorePaths",
51
- ignoreRegExpList: "ignoreRegExpList",
52
- ignoreWords: "ignoreWords",
53
- ignoreRandomStrings: "ignoreRandomStrings",
54
- import: "import",
55
- includeRegExpList: "includeRegExpList",
56
- language: "language",
57
- languageId: "languageId",
58
- languageSettings: "languageSettings",
59
- loadDefaultConfiguration: "loadDefaultConfiguration",
60
- maxDuplicateProblems: "maxDuplicateProblems",
61
- maxNumberOfProblems: "maxNumberOfProblems",
62
- minWordLength: "minWordLength",
63
- minRandomLength: "minRandomLength",
64
- name: "name",
65
- noConfigSearch: "noConfigSearch",
66
- noSuggestDictionaries: "noSuggestDictionaries",
67
- numSuggestions: "numSuggestions",
68
- overrides: "overrides",
69
- patterns: "patterns",
70
- pnpFiles: "pnpFiles",
71
- readonly: "readonly",
72
- reporters: "reporters",
73
- showStatus: "showStatus",
74
- spellCheckDelayMs: "spellCheckDelayMs",
75
- suggestionNumChanges: "suggestionNumChanges",
76
- suggestionsTimeout: "suggestionsTimeout",
77
- suggestWords: "suggestWords",
78
- useGitignore: "useGitignore",
79
- usePnP: "usePnP",
80
- userWords: "userWords",
81
- validateDirectives: "validateDirectives",
82
- words: "words",
83
- // Experimental
84
- parser: "parser"
2
+ //#region src/configFields.ts
3
+ const ConfigFields = {
4
+ allowCompoundWords: "allowCompoundWords",
5
+ cache: "cache",
6
+ caseSensitive: "caseSensitive",
7
+ description: "description",
8
+ dictionaries: "dictionaries",
9
+ dictionaryDefinitions: "dictionaryDefinitions",
10
+ enabled: "enabled",
11
+ enabledLanguageIds: "enabledLanguageIds",
12
+ enableFiletypes: "enableFiletypes",
13
+ enabledFileTypes: "enabledFileTypes",
14
+ enableGlobDot: "enableGlobDot",
15
+ failFast: "failFast",
16
+ features: "features",
17
+ files: "files",
18
+ flagWords: "flagWords",
19
+ gitignoreRoot: "gitignoreRoot",
20
+ globRoot: "globRoot",
21
+ ignorePaths: "ignorePaths",
22
+ ignoreRegExpList: "ignoreRegExpList",
23
+ ignoreWords: "ignoreWords",
24
+ ignoreRandomStrings: "ignoreRandomStrings",
25
+ import: "import",
26
+ includeRegExpList: "includeRegExpList",
27
+ language: "language",
28
+ languageId: "languageId",
29
+ languageSettings: "languageSettings",
30
+ loadDefaultConfiguration: "loadDefaultConfiguration",
31
+ maxDuplicateProblems: "maxDuplicateProblems",
32
+ maxNumberOfProblems: "maxNumberOfProblems",
33
+ minWordLength: "minWordLength",
34
+ minRandomLength: "minRandomLength",
35
+ name: "name",
36
+ noConfigSearch: "noConfigSearch",
37
+ noSuggestDictionaries: "noSuggestDictionaries",
38
+ numSuggestions: "numSuggestions",
39
+ overrides: "overrides",
40
+ patterns: "patterns",
41
+ pnpFiles: "pnpFiles",
42
+ readonly: "readonly",
43
+ reporters: "reporters",
44
+ showStatus: "showStatus",
45
+ spellCheckDelayMs: "spellCheckDelayMs",
46
+ suggestionNumChanges: "suggestionNumChanges",
47
+ suggestionsTimeout: "suggestionsTimeout",
48
+ suggestWords: "suggestWords",
49
+ unknownWords: "unknownWords",
50
+ useGitignore: "useGitignore",
51
+ usePnP: "usePnP",
52
+ userWords: "userWords",
53
+ validateDirectives: "validateDirectives",
54
+ words: "words",
55
+ parser: "parser"
85
56
  };
86
57
 
87
- // src/CSpellReporter.ts
88
- var IssueType = /* @__PURE__ */ ((IssueType2) => {
89
- IssueType2[IssueType2["spelling"] = 0] = "spelling";
90
- IssueType2[IssueType2["directive"] = 1] = "directive";
91
- return IssueType2;
92
- })(IssueType || {});
93
- var MessageTypes = {
94
- Debug: "Debug",
95
- Info: "Info",
96
- Warning: "Warning"
58
+ //#endregion
59
+ //#region src/CSpellReporter.ts
60
+ let IssueType = /* @__PURE__ */ function(IssueType$1) {
61
+ IssueType$1[IssueType$1["spelling"] = 0] = "spelling";
62
+ IssueType$1[IssueType$1["directive"] = 1] = "directive";
63
+ return IssueType$1;
64
+ }({});
65
+ const MessageTypes = {
66
+ Debug: "Debug",
67
+ Info: "Info",
68
+ Warning: "Warning"
69
+ };
70
+ const unknownWordsChoices = {
71
+ ReportAll: "report-all",
72
+ ReportSimple: "report-simple",
73
+ ReportCommonTypos: "report-common-typos",
74
+ ReportFlagged: "report-flagged"
97
75
  };
98
76
 
99
- // src/defaultConfigSettings.ts
100
- var defaultCSpellSettings = {
101
- ignoreRandomStrings: true,
102
- minRandomLength: 40
77
+ //#endregion
78
+ //#region src/defaultConfigSettings.ts
79
+ const defaultCSpellSettings = {
80
+ ignoreRandomStrings: true,
81
+ minRandomLength: 40
103
82
  };
104
83
 
105
- // src/defineConfig.ts
84
+ //#endregion
85
+ //#region src/defineConfig.ts
106
86
  function defineConfig(config) {
107
- return config;
87
+ return config;
108
88
  }
109
- // Annotate the CommonJS export names for ESM import in node:
110
- 0 && (module.exports = {
111
- ConfigFields,
112
- IssueType,
113
- MessageTypes,
114
- defaultCSpellSettings,
115
- defineConfig
116
- });
89
+
90
+ //#endregion
91
+ exports.ConfigFields = ConfigFields;
92
+ exports.IssueType = IssueType;
93
+ exports.MessageTypes = MessageTypes;
94
+ exports.defaultCSpellSettings = defaultCSpellSettings;
95
+ exports.defineConfig = defineConfig;
96
+ exports.unknownWordsChoices = unknownWordsChoices;
package/dist/index.mjs CHANGED
@@ -1,85 +1,91 @@
1
- // src/configFields.ts
2
- var ConfigFields = {
3
- allowCompoundWords: "allowCompoundWords",
4
- cache: "cache",
5
- caseSensitive: "caseSensitive",
6
- description: "description",
7
- dictionaries: "dictionaries",
8
- dictionaryDefinitions: "dictionaryDefinitions",
9
- enabled: "enabled",
10
- enabledLanguageIds: "enabledLanguageIds",
11
- enableFiletypes: "enableFiletypes",
12
- enabledFileTypes: "enabledFileTypes",
13
- enableGlobDot: "enableGlobDot",
14
- failFast: "failFast",
15
- features: "features",
16
- files: "files",
17
- flagWords: "flagWords",
18
- gitignoreRoot: "gitignoreRoot",
19
- globRoot: "globRoot",
20
- ignorePaths: "ignorePaths",
21
- ignoreRegExpList: "ignoreRegExpList",
22
- ignoreWords: "ignoreWords",
23
- ignoreRandomStrings: "ignoreRandomStrings",
24
- import: "import",
25
- includeRegExpList: "includeRegExpList",
26
- language: "language",
27
- languageId: "languageId",
28
- languageSettings: "languageSettings",
29
- loadDefaultConfiguration: "loadDefaultConfiguration",
30
- maxDuplicateProblems: "maxDuplicateProblems",
31
- maxNumberOfProblems: "maxNumberOfProblems",
32
- minWordLength: "minWordLength",
33
- minRandomLength: "minRandomLength",
34
- name: "name",
35
- noConfigSearch: "noConfigSearch",
36
- noSuggestDictionaries: "noSuggestDictionaries",
37
- numSuggestions: "numSuggestions",
38
- overrides: "overrides",
39
- patterns: "patterns",
40
- pnpFiles: "pnpFiles",
41
- readonly: "readonly",
42
- reporters: "reporters",
43
- showStatus: "showStatus",
44
- spellCheckDelayMs: "spellCheckDelayMs",
45
- suggestionNumChanges: "suggestionNumChanges",
46
- suggestionsTimeout: "suggestionsTimeout",
47
- suggestWords: "suggestWords",
48
- useGitignore: "useGitignore",
49
- usePnP: "usePnP",
50
- userWords: "userWords",
51
- validateDirectives: "validateDirectives",
52
- words: "words",
53
- // Experimental
54
- parser: "parser"
1
+ //#region src/configFields.ts
2
+ const ConfigFields = {
3
+ allowCompoundWords: "allowCompoundWords",
4
+ cache: "cache",
5
+ caseSensitive: "caseSensitive",
6
+ description: "description",
7
+ dictionaries: "dictionaries",
8
+ dictionaryDefinitions: "dictionaryDefinitions",
9
+ enabled: "enabled",
10
+ enabledLanguageIds: "enabledLanguageIds",
11
+ enableFiletypes: "enableFiletypes",
12
+ enabledFileTypes: "enabledFileTypes",
13
+ enableGlobDot: "enableGlobDot",
14
+ failFast: "failFast",
15
+ features: "features",
16
+ files: "files",
17
+ flagWords: "flagWords",
18
+ gitignoreRoot: "gitignoreRoot",
19
+ globRoot: "globRoot",
20
+ ignorePaths: "ignorePaths",
21
+ ignoreRegExpList: "ignoreRegExpList",
22
+ ignoreWords: "ignoreWords",
23
+ ignoreRandomStrings: "ignoreRandomStrings",
24
+ import: "import",
25
+ includeRegExpList: "includeRegExpList",
26
+ language: "language",
27
+ languageId: "languageId",
28
+ languageSettings: "languageSettings",
29
+ loadDefaultConfiguration: "loadDefaultConfiguration",
30
+ maxDuplicateProblems: "maxDuplicateProblems",
31
+ maxNumberOfProblems: "maxNumberOfProblems",
32
+ minWordLength: "minWordLength",
33
+ minRandomLength: "minRandomLength",
34
+ name: "name",
35
+ noConfigSearch: "noConfigSearch",
36
+ noSuggestDictionaries: "noSuggestDictionaries",
37
+ numSuggestions: "numSuggestions",
38
+ overrides: "overrides",
39
+ patterns: "patterns",
40
+ pnpFiles: "pnpFiles",
41
+ readonly: "readonly",
42
+ reporters: "reporters",
43
+ showStatus: "showStatus",
44
+ spellCheckDelayMs: "spellCheckDelayMs",
45
+ suggestionNumChanges: "suggestionNumChanges",
46
+ suggestionsTimeout: "suggestionsTimeout",
47
+ suggestWords: "suggestWords",
48
+ unknownWords: "unknownWords",
49
+ useGitignore: "useGitignore",
50
+ usePnP: "usePnP",
51
+ userWords: "userWords",
52
+ validateDirectives: "validateDirectives",
53
+ words: "words",
54
+ parser: "parser"
55
55
  };
56
56
 
57
- // src/CSpellReporter.ts
58
- var IssueType = /* @__PURE__ */ ((IssueType2) => {
59
- IssueType2[IssueType2["spelling"] = 0] = "spelling";
60
- IssueType2[IssueType2["directive"] = 1] = "directive";
61
- return IssueType2;
62
- })(IssueType || {});
63
- var MessageTypes = {
64
- Debug: "Debug",
65
- Info: "Info",
66
- Warning: "Warning"
57
+ //#endregion
58
+ //#region src/CSpellReporter.ts
59
+ let IssueType = /* @__PURE__ */ function(IssueType$1) {
60
+ IssueType$1[IssueType$1["spelling"] = 0] = "spelling";
61
+ IssueType$1[IssueType$1["directive"] = 1] = "directive";
62
+ return IssueType$1;
63
+ }({});
64
+ const MessageTypes = {
65
+ Debug: "Debug",
66
+ Info: "Info",
67
+ Warning: "Warning"
68
+ };
69
+ const unknownWordsChoices = {
70
+ ReportAll: "report-all",
71
+ ReportSimple: "report-simple",
72
+ ReportCommonTypos: "report-common-typos",
73
+ ReportFlagged: "report-flagged"
67
74
  };
68
75
 
69
- // src/defaultConfigSettings.ts
70
- var defaultCSpellSettings = {
71
- ignoreRandomStrings: true,
72
- minRandomLength: 40
76
+ //#endregion
77
+ //#region src/defaultConfigSettings.ts
78
+ const defaultCSpellSettings = {
79
+ ignoreRandomStrings: true,
80
+ minRandomLength: 40
73
81
  };
74
82
 
75
- // src/defineConfig.ts
83
+ //#endregion
84
+ //#region src/defineConfig.ts
76
85
  function defineConfig(config) {
77
- return config;
86
+ return config;
78
87
  }
79
- export {
80
- ConfigFields,
81
- IssueType,
82
- MessageTypes,
83
- defaultCSpellSettings,
84
- defineConfig
85
- };
88
+
89
+ //#endregion
90
+ export { ConfigFields, IssueType, MessageTypes, defaultCSpellSettings, defineConfig, unknownWordsChoices };
91
+ //# sourceMappingURL=index.mjs.map
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "access": "public",
5
5
  "provenance": true
6
6
  },
7
- "version": "9.0.1",
7
+ "version": "9.1.0",
8
8
  "description": "Types for cspell and cspell-lib",
9
9
  "type": "commonjs",
10
10
  "sideEffects": false,
@@ -22,9 +22,6 @@
22
22
  "./cspell.schema.json": {
23
23
  "import": "./cspell.schema.json",
24
24
  "require": "./cspell.schema.json"
25
- },
26
- "./ajv.config.js": {
27
- "require": "./ajv.config.js"
28
25
  }
29
26
  },
30
27
  "types": "index.d.ts",
@@ -53,9 +50,9 @@
53
50
  },
54
51
  "scripts": {
55
52
  "clean": "shx rm -rf dist temp coverage \"*.tsbuildInfo\"",
56
- "build": "pnpm build:tsc && pnpm build:tsup && pnpm run build-schema",
53
+ "build": "pnpm build:tsc && pnpm build:tsdown && pnpm run build-schema",
57
54
  "build:tsc": "tsc -p tsconfig.json",
58
- "build:tsup": "tsup-node --entry src/index.ts --entry src/Parser/index.ts --format cjs,esm --dts --out-dir dist",
55
+ "build:tsdown": "tsdown --entry src/index.ts --entry src/Parser/index.ts --format cjs,esm --dts --out-dir dist",
59
56
  "build-schema": "pnpm build-cspell-schema",
60
57
  "clean-build": "pnpm run clean && pnpm run build",
61
58
  "coverage": "vitest run --coverage",
@@ -89,5 +86,5 @@
89
86
  "node": ">=20"
90
87
  },
91
88
  "homepage": "https://github.com/streetsidesoftware/cspell/tree/main/packages/cspell-types#readme",
92
- "gitHead": "bdfabd3686aac9827f3af0ceb4aa74947b5f9d60"
89
+ "gitHead": "a7ed42a31debbc86faa4a4ac2c686bdffe5b26b6"
93
90
  }