cspell-dictionary 6.24.0 → 6.25.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/SpellingDictionary/SuggestDictionary.d.ts +20 -0
- package/dist/SpellingDictionary/SuggestDictionary.js +120 -0
- package/dist/SpellingDictionary/Typos/typosParser.d.ts +17 -0
- package/dist/SpellingDictionary/Typos/typosParser.js +17 -0
- package/dist/SpellingDictionary/Typos/util.d.ts +8 -0
- package/dist/SpellingDictionary/Typos/util.js +46 -6
- package/dist/SpellingDictionary/createInlineSpellingDictionary.js +3 -1
- package/dist/SpellingDictionary/index.d.ts +1 -0
- package/dist/SpellingDictionary/index.js +3 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -1
- package/package.json +5 -5
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { IgnoreCaseOption, SpellingDictionary } from './SpellingDictionary';
|
|
2
|
+
import { type TypoEntry, type TyposDef } from './Typos';
|
|
3
|
+
export interface SuggestDictionary extends SpellingDictionary {
|
|
4
|
+
/**
|
|
5
|
+
* Determine if the word can appear in a list of suggestions.
|
|
6
|
+
* @param word - word
|
|
7
|
+
* @param ignoreCaseAndAccents - ignore case.
|
|
8
|
+
* @returns true if a word is suggested, otherwise false.
|
|
9
|
+
*/
|
|
10
|
+
isSuggestedWord(word: string, ignoreCaseAndAccents?: IgnoreCaseOption): boolean;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Create a dictionary where all words are to be forbidden.
|
|
14
|
+
* @param entries - list of Typos Entries
|
|
15
|
+
* @param name - name of dictionary
|
|
16
|
+
* @param source - source
|
|
17
|
+
* @returns
|
|
18
|
+
*/
|
|
19
|
+
export declare function createSuggestDictionary(entries: readonly string[] | TyposDef | Iterable<TypoEntry>, name: string, source: string): SuggestDictionary;
|
|
20
|
+
//# sourceMappingURL=SuggestDictionary.d.ts.map
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.createSuggestDictionary = void 0;
|
|
27
|
+
const sync_1 = require("@cspell/cspell-pipe/sync");
|
|
28
|
+
const textMappers_1 = require("../util/textMappers");
|
|
29
|
+
const defaults = __importStar(require("./defaults"));
|
|
30
|
+
const Typos_1 = require("./Typos");
|
|
31
|
+
const util_1 = require("./Typos/util");
|
|
32
|
+
class SuggestDictionaryImpl {
|
|
33
|
+
constructor(name, source, typosDef) {
|
|
34
|
+
this.name = name;
|
|
35
|
+
this.source = source;
|
|
36
|
+
this.typosDef = typosDef;
|
|
37
|
+
this.containsNoSuggestWords = false;
|
|
38
|
+
this.options = {};
|
|
39
|
+
this.type = 'suggest';
|
|
40
|
+
this.isDictionaryCaseSensitive = true;
|
|
41
|
+
this.size = Object.keys(typosDef).length;
|
|
42
|
+
this.suggestions = (0, util_1.extractAllSuggestions)(typosDef);
|
|
43
|
+
this.suggestionsLower = new Set((0, sync_1.pipe)(this.suggestions, textMappers_1.mapperRemoveCaseAndAccents));
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* A Forbidden word list does not "have" valid words.
|
|
47
|
+
* Therefore it always returns false.
|
|
48
|
+
* @param _word - the word
|
|
49
|
+
* @param _options - options
|
|
50
|
+
* @returns always false
|
|
51
|
+
*/
|
|
52
|
+
has(_word, _options) {
|
|
53
|
+
return false;
|
|
54
|
+
}
|
|
55
|
+
/** A more detailed search for a word, might take longer than `has` */
|
|
56
|
+
find(_word, _options) {
|
|
57
|
+
return undefined;
|
|
58
|
+
}
|
|
59
|
+
isForbidden(_word, _ignoreCaseAndAccents) {
|
|
60
|
+
return false;
|
|
61
|
+
}
|
|
62
|
+
isNoSuggestWord(_word, _options) {
|
|
63
|
+
return false;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Determine if the word can appear in a list of suggestions.
|
|
67
|
+
* @param word - word
|
|
68
|
+
* @param ignoreCaseAndAccents - ignore case.
|
|
69
|
+
* @returns true if a word is suggested, otherwise false.
|
|
70
|
+
*/
|
|
71
|
+
isSuggestedWord(word, ignoreCaseAndAccents = defaults.isForbiddenIgnoreCaseAndAccents) {
|
|
72
|
+
if (this.suggestions.has(word))
|
|
73
|
+
return true;
|
|
74
|
+
const lcWord = word.toLowerCase();
|
|
75
|
+
return ignoreCaseAndAccents && (this.suggestions.has(lcWord) || this.suggestionsLower.has(lcWord));
|
|
76
|
+
}
|
|
77
|
+
suggest(word) {
|
|
78
|
+
return this._suggest(word) || this._suggest(word.toLowerCase()) || [];
|
|
79
|
+
}
|
|
80
|
+
_suggest(word) {
|
|
81
|
+
if (!(word in this.typosDef))
|
|
82
|
+
return undefined;
|
|
83
|
+
const sug = this.typosDef[word];
|
|
84
|
+
if (!sug)
|
|
85
|
+
return [];
|
|
86
|
+
if (typeof sug === 'string') {
|
|
87
|
+
return [
|
|
88
|
+
{
|
|
89
|
+
word: sug,
|
|
90
|
+
cost: 1,
|
|
91
|
+
isPreferred: true,
|
|
92
|
+
},
|
|
93
|
+
];
|
|
94
|
+
}
|
|
95
|
+
return sug.map((word, index) => ({ word, cost: index + 1 }));
|
|
96
|
+
}
|
|
97
|
+
genSuggestions(collector) {
|
|
98
|
+
const sugs = this.suggest(collector.word);
|
|
99
|
+
sugs.forEach((result) => collector.add(result));
|
|
100
|
+
}
|
|
101
|
+
mapWord(word) {
|
|
102
|
+
return word;
|
|
103
|
+
}
|
|
104
|
+
getErrors() {
|
|
105
|
+
return [];
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Create a dictionary where all words are to be forbidden.
|
|
110
|
+
* @param entries - list of Typos Entries
|
|
111
|
+
* @param name - name of dictionary
|
|
112
|
+
* @param source - source
|
|
113
|
+
* @returns
|
|
114
|
+
*/
|
|
115
|
+
function createSuggestDictionary(entries, name, source) {
|
|
116
|
+
const def = (0, Typos_1.processEntriesToTyposDef)(entries);
|
|
117
|
+
return new SuggestDictionaryImpl(name, source, def);
|
|
118
|
+
}
|
|
119
|
+
exports.createSuggestDictionary = createSuggestDictionary;
|
|
120
|
+
//# sourceMappingURL=SuggestDictionary.js.map
|
|
@@ -2,6 +2,23 @@ import type { TypoEntry, TyposDef } from './typos';
|
|
|
2
2
|
export declare function createTyposDefFromEntries(entries: Iterable<TypoEntry>): TyposDef;
|
|
3
3
|
export declare function sanitizeIntoTypoDef(dirtyDef: TyposDef | Record<string, unknown> | unknown): TyposDef | undefined;
|
|
4
4
|
/**
|
|
5
|
+
* Parse Typos Entries
|
|
6
|
+
*
|
|
7
|
+
* Format:
|
|
8
|
+
* - `word:suggestion`
|
|
9
|
+
* - `word->suggestion`
|
|
10
|
+
* - `word: first, second, third suggestions`
|
|
11
|
+
*
|
|
12
|
+
* Note:
|
|
13
|
+
* ```plaintext
|
|
14
|
+
* yellow:blue, green
|
|
15
|
+
* ```
|
|
16
|
+
* Is the same as multiple entries with the same key and different suggestions.
|
|
17
|
+
* ```plaintext
|
|
18
|
+
* yellow:blue
|
|
19
|
+
* yellow:green
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
5
22
|
* Used to process entries found in a `cspell.json` file.
|
|
6
23
|
* @param entries - entries to process
|
|
7
24
|
* @returns a TyposDef
|
|
@@ -62,6 +62,23 @@ function sanitizeIntoTypoDef(dirtyDef) {
|
|
|
62
62
|
}
|
|
63
63
|
exports.sanitizeIntoTypoDef = sanitizeIntoTypoDef;
|
|
64
64
|
/**
|
|
65
|
+
* Parse Typos Entries
|
|
66
|
+
*
|
|
67
|
+
* Format:
|
|
68
|
+
* - `word:suggestion`
|
|
69
|
+
* - `word->suggestion`
|
|
70
|
+
* - `word: first, second, third suggestions`
|
|
71
|
+
*
|
|
72
|
+
* Note:
|
|
73
|
+
* ```plaintext
|
|
74
|
+
* yellow:blue, green
|
|
75
|
+
* ```
|
|
76
|
+
* Is the same as multiple entries with the same key and different suggestions.
|
|
77
|
+
* ```plaintext
|
|
78
|
+
* yellow:blue
|
|
79
|
+
* yellow:green
|
|
80
|
+
* ```
|
|
81
|
+
*
|
|
65
82
|
* Used to process entries found in a `cspell.json` file.
|
|
66
83
|
* @param entries - entries to process
|
|
67
84
|
* @returns a TyposDef
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
import type { TypoEntry, TyposDef, TyposDefKey, TyposDefValue } from './typos';
|
|
2
|
+
export declare function mergeDefEntry(targetDef: TyposDef, key: string, value: TyposDefValue): TyposDef;
|
|
3
|
+
/**
|
|
4
|
+
* Merge in place the entries `fromDef` into `targetDef`
|
|
5
|
+
* @param targetDef - the target
|
|
6
|
+
* @param fromDef - the source
|
|
7
|
+
* @returns the target
|
|
8
|
+
*/
|
|
9
|
+
export declare function mergeDef(targetDef: TyposDef, fromDef: TyposDef): TyposDef;
|
|
2
10
|
/**
|
|
3
11
|
* Append an entry to a TyposDef.
|
|
4
12
|
* @param def - modified in place
|
|
@@ -1,7 +1,47 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.extractIgnoreValues = exports.extractAllSuggestions = exports.createTyposDef = exports.appendToDef = void 0;
|
|
3
|
+
exports.extractIgnoreValues = exports.extractAllSuggestions = exports.createTyposDef = exports.appendToDef = exports.mergeDef = exports.mergeDefEntry = void 0;
|
|
4
4
|
const sync_1 = require("@cspell/cspell-pipe/sync");
|
|
5
|
+
function normalizeTyposDefValue(value) {
|
|
6
|
+
if (!value)
|
|
7
|
+
return false;
|
|
8
|
+
if (typeof value === 'string')
|
|
9
|
+
return value;
|
|
10
|
+
const unique = [...new Set(value)];
|
|
11
|
+
return unique.length > 1 ? unique : unique.length === 1 ? unique[0] : false;
|
|
12
|
+
}
|
|
13
|
+
function mergeDefEntry(targetDef, key, value) {
|
|
14
|
+
const curValue = targetDef[key];
|
|
15
|
+
if (!curValue) {
|
|
16
|
+
targetDef[key] = normalizeTyposDefValue(value);
|
|
17
|
+
return targetDef;
|
|
18
|
+
}
|
|
19
|
+
if (!value)
|
|
20
|
+
return targetDef;
|
|
21
|
+
const newValue = Array.isArray(curValue) ? curValue : [curValue];
|
|
22
|
+
if (Array.isArray(value)) {
|
|
23
|
+
newValue.push(...value);
|
|
24
|
+
}
|
|
25
|
+
else {
|
|
26
|
+
newValue.push(value);
|
|
27
|
+
}
|
|
28
|
+
targetDef[key] = normalizeTyposDefValue(newValue);
|
|
29
|
+
return targetDef;
|
|
30
|
+
}
|
|
31
|
+
exports.mergeDefEntry = mergeDefEntry;
|
|
32
|
+
/**
|
|
33
|
+
* Merge in place the entries `fromDef` into `targetDef`
|
|
34
|
+
* @param targetDef - the target
|
|
35
|
+
* @param fromDef - the source
|
|
36
|
+
* @returns the target
|
|
37
|
+
*/
|
|
38
|
+
function mergeDef(targetDef, fromDef) {
|
|
39
|
+
for (const key of Object.keys(fromDef)) {
|
|
40
|
+
mergeDefEntry(targetDef, key, fromDef[key]);
|
|
41
|
+
}
|
|
42
|
+
return targetDef;
|
|
43
|
+
}
|
|
44
|
+
exports.mergeDef = mergeDef;
|
|
5
45
|
/**
|
|
6
46
|
* Append an entry to a TyposDef.
|
|
7
47
|
* @param def - modified in place
|
|
@@ -12,7 +52,9 @@ function appendToDef(def, entry) {
|
|
|
12
52
|
if (!entry)
|
|
13
53
|
return def;
|
|
14
54
|
if (typeof entry === 'string') {
|
|
15
|
-
def[entry]
|
|
55
|
+
if (!def[entry]) {
|
|
56
|
+
def[entry] = false;
|
|
57
|
+
}
|
|
16
58
|
return def;
|
|
17
59
|
}
|
|
18
60
|
if (Array.isArray(entry)) {
|
|
@@ -20,11 +62,9 @@ function appendToDef(def, entry) {
|
|
|
20
62
|
if (!key)
|
|
21
63
|
return def;
|
|
22
64
|
const s = sugs.map((s) => s.trim()).filter((s) => !!s);
|
|
23
|
-
def
|
|
24
|
-
return def;
|
|
65
|
+
return mergeDefEntry(def, key, s);
|
|
25
66
|
}
|
|
26
|
-
|
|
27
|
-
return def;
|
|
67
|
+
return mergeDef(def, entry);
|
|
28
68
|
}
|
|
29
69
|
exports.appendToDef = appendToDef;
|
|
30
70
|
function createTyposDef(entries) {
|
|
@@ -6,12 +6,14 @@ const createSpellingDictionary_1 = require("./createSpellingDictionary");
|
|
|
6
6
|
const FlagWordsDictionary_1 = require("./FlagWordsDictionary");
|
|
7
7
|
const IgnoreWordsDictionary_1 = require("./IgnoreWordsDictionary");
|
|
8
8
|
const SpellingDictionaryCollection_1 = require("./SpellingDictionaryCollection");
|
|
9
|
+
const SuggestDictionary_1 = require("./SuggestDictionary");
|
|
9
10
|
function createInlineSpellingDictionary(inlineDict, source) {
|
|
10
|
-
const { words, flagWords, ignoreWords, name } = inlineDict;
|
|
11
|
+
const { words, flagWords, ignoreWords, suggestWords, name } = inlineDict;
|
|
11
12
|
const dictSources = [
|
|
12
13
|
words && (0, createSpellingDictionary_1.createSpellingDictionary)(words, name + '-words', source, inlineDict),
|
|
13
14
|
flagWords && (0, FlagWordsDictionary_1.createFlagWordsDictionary)(flagWords, name + '-flag-words', source),
|
|
14
15
|
ignoreWords && (0, IgnoreWordsDictionary_1.createIgnoreWordsDictionary)(ignoreWords, name + '-ignore-words', source),
|
|
16
|
+
suggestWords && (0, SuggestDictionary_1.createSuggestDictionary)(suggestWords, name + '-suggest', source),
|
|
15
17
|
].filter(util_1.isDefined);
|
|
16
18
|
return (0, SpellingDictionaryCollection_1.createCollection)(dictSources, name);
|
|
17
19
|
}
|
|
@@ -6,5 +6,6 @@ export { createIgnoreWordsDictionary } from './IgnoreWordsDictionary';
|
|
|
6
6
|
export type { DictionaryDefinitionInline, FindOptions, FindResult, HasOptions, SearchOptions, SpellingDictionary, SpellingDictionaryOptions, SuggestionCollector, SuggestionResult, SuggestOptions, } from './SpellingDictionary';
|
|
7
7
|
export { createCollection, SpellingDictionaryCollection } from './SpellingDictionaryCollection';
|
|
8
8
|
export { createSpellingDictionaryFromTrieFile } from './SpellingDictionaryFromTrie';
|
|
9
|
+
export { createSuggestDictionary } from './SuggestDictionary';
|
|
9
10
|
export { createTyposDictionary } from './TyposDictionary';
|
|
10
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createTyposDictionary = exports.createSpellingDictionaryFromTrieFile = exports.createCollection = exports.createIgnoreWordsDictionary = exports.createForbiddenWordsDictionary = exports.createFlagWordsDictionary = exports.createSpellingDictionary = exports.createFailedToLoadDictionary = exports.createInlineSpellingDictionary = exports.createCachingDictionary = void 0;
|
|
3
|
+
exports.createTyposDictionary = exports.createSuggestDictionary = exports.createSpellingDictionaryFromTrieFile = exports.createCollection = exports.createIgnoreWordsDictionary = exports.createForbiddenWordsDictionary = exports.createFlagWordsDictionary = exports.createSpellingDictionary = exports.createFailedToLoadDictionary = exports.createInlineSpellingDictionary = exports.createCachingDictionary = void 0;
|
|
4
4
|
var CachingDictionary_1 = require("./CachingDictionary");
|
|
5
5
|
Object.defineProperty(exports, "createCachingDictionary", { enumerable: true, get: function () { return CachingDictionary_1.createCachingDictionary; } });
|
|
6
6
|
var createInlineSpellingDictionary_1 = require("./createInlineSpellingDictionary");
|
|
@@ -17,6 +17,8 @@ var SpellingDictionaryCollection_1 = require("./SpellingDictionaryCollection");
|
|
|
17
17
|
Object.defineProperty(exports, "createCollection", { enumerable: true, get: function () { return SpellingDictionaryCollection_1.createCollection; } });
|
|
18
18
|
var SpellingDictionaryFromTrie_1 = require("./SpellingDictionaryFromTrie");
|
|
19
19
|
Object.defineProperty(exports, "createSpellingDictionaryFromTrieFile", { enumerable: true, get: function () { return SpellingDictionaryFromTrie_1.createSpellingDictionaryFromTrieFile; } });
|
|
20
|
+
var SuggestDictionary_1 = require("./SuggestDictionary");
|
|
21
|
+
Object.defineProperty(exports, "createSuggestDictionary", { enumerable: true, get: function () { return SuggestDictionary_1.createSuggestDictionary; } });
|
|
20
22
|
var TyposDictionary_1 = require("./TyposDictionary");
|
|
21
23
|
Object.defineProperty(exports, "createTyposDictionary", { enumerable: true, get: function () { return TyposDictionary_1.createTyposDictionary; } });
|
|
22
24
|
//# sourceMappingURL=index.js.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export type { CachingDictionary, FindOptions, FindResult, HasOptions, SearchOptions, SpellingDictionary, SpellingDictionaryCollection, SpellingDictionaryOptions, SuggestionCollector, SuggestionResult, SuggestOptions, } from './SpellingDictionary';
|
|
2
|
-
export { createCachingDictionary, createCollection, createFailedToLoadDictionary, createFlagWordsDictionary, createForbiddenWordsDictionary, createIgnoreWordsDictionary, createInlineSpellingDictionary, createSpellingDictionary, createSpellingDictionaryFromTrieFile, } from './SpellingDictionary';
|
|
2
|
+
export { createCachingDictionary, createCollection, createFailedToLoadDictionary, createFlagWordsDictionary, createForbiddenWordsDictionary, createIgnoreWordsDictionary, createInlineSpellingDictionary, createSpellingDictionary, createSpellingDictionaryFromTrieFile, createSuggestDictionary, } from './SpellingDictionary';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createSpellingDictionaryFromTrieFile = exports.createSpellingDictionary = exports.createInlineSpellingDictionary = exports.createIgnoreWordsDictionary = exports.createForbiddenWordsDictionary = exports.createFlagWordsDictionary = exports.createFailedToLoadDictionary = exports.createCollection = exports.createCachingDictionary = void 0;
|
|
3
|
+
exports.createSuggestDictionary = exports.createSpellingDictionaryFromTrieFile = exports.createSpellingDictionary = exports.createInlineSpellingDictionary = exports.createIgnoreWordsDictionary = exports.createForbiddenWordsDictionary = exports.createFlagWordsDictionary = exports.createFailedToLoadDictionary = exports.createCollection = exports.createCachingDictionary = void 0;
|
|
4
4
|
var SpellingDictionary_1 = require("./SpellingDictionary");
|
|
5
5
|
Object.defineProperty(exports, "createCachingDictionary", { enumerable: true, get: function () { return SpellingDictionary_1.createCachingDictionary; } });
|
|
6
6
|
Object.defineProperty(exports, "createCollection", { enumerable: true, get: function () { return SpellingDictionary_1.createCollection; } });
|
|
@@ -11,4 +11,5 @@ Object.defineProperty(exports, "createIgnoreWordsDictionary", { enumerable: true
|
|
|
11
11
|
Object.defineProperty(exports, "createInlineSpellingDictionary", { enumerable: true, get: function () { return SpellingDictionary_1.createInlineSpellingDictionary; } });
|
|
12
12
|
Object.defineProperty(exports, "createSpellingDictionary", { enumerable: true, get: function () { return SpellingDictionary_1.createSpellingDictionary; } });
|
|
13
13
|
Object.defineProperty(exports, "createSpellingDictionaryFromTrieFile", { enumerable: true, get: function () { return SpellingDictionary_1.createSpellingDictionaryFromTrieFile; } });
|
|
14
|
+
Object.defineProperty(exports, "createSuggestDictionary", { enumerable: true, get: function () { return SpellingDictionary_1.createSuggestDictionary; } });
|
|
14
15
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cspell-dictionary",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.25.0",
|
|
4
4
|
"description": "A spelling dictionary library useful for checking words and getting suggestions.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
"ts-jest": "^29.0.5"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@cspell/cspell-pipe": "6.
|
|
47
|
-
"@cspell/cspell-types": "6.
|
|
48
|
-
"cspell-trie-lib": "6.
|
|
46
|
+
"@cspell/cspell-pipe": "6.25.0",
|
|
47
|
+
"@cspell/cspell-types": "6.25.0",
|
|
48
|
+
"cspell-trie-lib": "6.25.0",
|
|
49
49
|
"fast-equals": "^4.0.3",
|
|
50
50
|
"gensequence": "^4.0.3"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "fd7541605e07c43887191097d58ab58d87fac8fd"
|
|
53
53
|
}
|