cspell-dictionary 7.1.1 → 7.2.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.
Files changed (33) hide show
  1. package/dist/SpellingDictionary/CachingDictionary.js +1 -0
  2. package/dist/SpellingDictionary/FlagWordsDictionary.js +1 -0
  3. package/dist/SpellingDictionary/IgnoreWordsDictionary.js +1 -0
  4. package/dist/SpellingDictionary/SpellingDictionary.js +1 -0
  5. package/dist/SpellingDictionary/SpellingDictionaryCollection.js +1 -0
  6. package/dist/SpellingDictionary/SpellingDictionaryFromTrie.js +1 -0
  7. package/dist/SpellingDictionary/SpellingDictionaryMethods.js +1 -0
  8. package/dist/SpellingDictionary/SuggestDictionary.js +1 -0
  9. package/dist/SpellingDictionary/SuggestOptions.js +1 -0
  10. package/dist/SpellingDictionary/Terms/index.js +1 -0
  11. package/dist/SpellingDictionary/Terms/terms.js +1 -0
  12. package/dist/SpellingDictionary/Typos/index.js +1 -0
  13. package/dist/SpellingDictionary/Typos/typos.js +1 -0
  14. package/dist/SpellingDictionary/Typos/typosParser.js +1 -0
  15. package/dist/SpellingDictionary/Typos/util.js +1 -0
  16. package/dist/SpellingDictionary/TyposDictionary.js +1 -0
  17. package/dist/SpellingDictionary/createInlineSpellingDictionary.js +1 -0
  18. package/dist/SpellingDictionary/createSpellingDictionary.js +1 -0
  19. package/dist/SpellingDictionary/defaults.js +1 -0
  20. package/dist/SpellingDictionary/index.js +1 -0
  21. package/dist/index.js +1 -0
  22. package/dist/util/AutoCache.js +1 -0
  23. package/dist/util/AutoResolve.js +1 -0
  24. package/dist/util/IterableLike.js +1 -0
  25. package/dist/util/clean.js +1 -0
  26. package/dist/util/regexHelper.js +1 -0
  27. package/dist/util/repMap.js +1 -0
  28. package/dist/util/simpleCache.js +1 -0
  29. package/dist/util/text.js +1 -0
  30. package/dist/util/textMappers.js +1 -0
  31. package/dist/util/types.js +1 -0
  32. package/dist/util/util.js +1 -0
  33. package/package.json +5 -5
@@ -46,3 +46,4 @@ export function createCachingDictionary(dict, options) {
46
46
  knownOptions.set(dict, cached);
47
47
  return cached;
48
48
  }
49
+ //# sourceMappingURL=CachingDictionary.js.map
@@ -132,3 +132,4 @@ function bisect(values, predicate) {
132
132
  }
133
133
  return { t, f };
134
134
  }
135
+ //# sourceMappingURL=FlagWordsDictionary.js.map
@@ -94,3 +94,4 @@ export function createIgnoreWordsDictionary(wordList, name, source) {
94
94
  return new IgnoreWordsDictionary(name, source, words);
95
95
  });
96
96
  }
97
+ //# sourceMappingURL=IgnoreWordsDictionary.js.map
@@ -1,3 +1,4 @@
1
1
  export const defaultOptions = Object.freeze({
2
2
  weightMap: undefined,
3
3
  });
4
+ //# sourceMappingURL=SpellingDictionary.js.map
@@ -118,3 +118,4 @@ export const __testing__ = {
118
118
  isWordInAnyDictionary,
119
119
  isWordForbiddenInAnyDictionary,
120
120
  };
121
+ //# sourceMappingURL=SpellingDictionaryCollection.js.map
@@ -166,3 +166,4 @@ function outerWordForms(word, mapWord) {
166
166
  return new Set(forms);
167
167
  }
168
168
  export const __testing__ = { outerWordForms };
169
+ //# sourceMappingURL=SpellingDictionaryFromTrie.js.map
@@ -82,3 +82,4 @@ export const __testMethods__ = {
82
82
  wordSearchForms,
83
83
  wordSearchFormsArray,
84
84
  };
85
+ //# sourceMappingURL=SpellingDictionaryMethods.js.map
@@ -98,3 +98,4 @@ export function createSuggestDictionary(entries, name, source) {
98
98
  return new SuggestDictionaryImpl(name, source, def);
99
99
  });
100
100
  }
101
+ //# sourceMappingURL=SuggestDictionary.js.map
@@ -6,3 +6,4 @@ export function createSuggestOptions(numSuggestions, compoundMethod, numChanges,
6
6
  ignoreCase,
7
7
  };
8
8
  }
9
+ //# sourceMappingURL=SuggestOptions.js.map
@@ -1 +1,2 @@
1
1
  export {};
2
+ //# sourceMappingURL=index.js.map
@@ -1 +1,2 @@
1
1
  export {};
2
+ //# sourceMappingURL=terms.js.map
@@ -1,2 +1,3 @@
1
1
  export { parseTyposFile, parseTyposLine, processEntriesToTyposDef } from './typosParser.js';
2
2
  export { createTyposDef, extractAllSuggestions } from './util.js';
3
+ //# sourceMappingURL=index.js.map
@@ -1 +1,2 @@
1
1
  export {};
2
+ //# sourceMappingURL=typos.js.map
@@ -129,3 +129,4 @@ export function parseTyposFile(content) {
129
129
  function isIterable(v) {
130
130
  return Symbol.iterator in v;
131
131
  }
132
+ //# sourceMappingURL=typosParser.js.map
@@ -103,3 +103,4 @@ function isArray(v) {
103
103
  function hasSuggestions(v) {
104
104
  return isString(v) || isArray(v);
105
105
  }
106
+ //# sourceMappingURL=util.js.map
@@ -130,3 +130,4 @@ export function createTyposDictionary(entries, name, source) {
130
130
  return new TyposDictionaryImpl(name, source, def);
131
131
  });
132
132
  }
133
+ //# sourceMappingURL=TyposDictionary.js.map
@@ -18,3 +18,4 @@ export function createInlineSpellingDictionary(inlineDict, source) {
18
18
  return createCollection(dictSources, name, source);
19
19
  });
20
20
  }
21
+ //# sourceMappingURL=createInlineSpellingDictionary.js.map
@@ -66,3 +66,4 @@ export function createFailedToLoadDictionary(name, source, error, options) {
66
66
  getErrors: () => [error],
67
67
  };
68
68
  }
69
+ //# sourceMappingURL=createSpellingDictionary.js.map
@@ -1,2 +1,3 @@
1
1
  export const ignoreCase = true;
2
2
  export const isForbiddenIgnoreCaseAndAccents = false;
3
+ //# sourceMappingURL=defaults.js.map
@@ -9,3 +9,4 @@ export { createSuggestDictionary } from './SuggestDictionary.js';
9
9
  export { createSuggestOptions } from './SuggestOptions.js';
10
10
  export { createTyposDictionary } from './TyposDictionary.js';
11
11
  export { CompoundWordsMethod } from 'cspell-trie-lib';
12
+ //# sourceMappingURL=index.js.map
package/dist/index.js CHANGED
@@ -1 +1,2 @@
1
1
  export { createCachingDictionary, createCollection, createFailedToLoadDictionary, createFlagWordsDictionary, createForbiddenWordsDictionary, createIgnoreWordsDictionary, createInlineSpellingDictionary, createSpellingDictionary, createSpellingDictionaryFromTrieFile, createSuggestDictionary, createSuggestOptions, } from './SpellingDictionary/index.js';
2
+ //# sourceMappingURL=index.js.map
@@ -65,3 +65,4 @@ export function extractStats(ac) {
65
65
  const { hits, misses, swaps } = ac;
66
66
  return { hits, misses, swaps };
67
67
  }
68
+ //# sourceMappingURL=AutoCache.js.map
@@ -50,3 +50,4 @@ export class AutoResolveWeakCache {
50
50
  export function createAutoResolveWeakCache() {
51
51
  return new AutoResolveWeakCache();
52
52
  }
53
+ //# sourceMappingURL=AutoResolve.js.map
@@ -1 +1,2 @@
1
1
  export {};
2
+ //# sourceMappingURL=IterableLike.js.map
@@ -11,3 +11,4 @@ export function clean(src) {
11
11
  }
12
12
  return r;
13
13
  }
14
+ //# sourceMappingURL=clean.js.map
@@ -6,3 +6,4 @@
6
6
  export function escapeRegEx(s) {
7
7
  return s.replace(/[|\\{}()[\]^$+*?.]/g, '\\$&').replace(/-/g, '\\x2d');
8
8
  }
9
+ //# sourceMappingURL=regexHelper.js.map
@@ -150,3 +150,4 @@ export const __testing__ = {
150
150
  calcAllEdits,
151
151
  applyEdits,
152
152
  };
153
+ //# sourceMappingURL=repMap.js.map
@@ -133,3 +133,4 @@ export class AutoCache extends SimpleCache {
133
133
  return val;
134
134
  }
135
135
  }
136
+ //# sourceMappingURL=simpleCache.js.map
package/dist/util/text.js CHANGED
@@ -44,3 +44,4 @@ export function removeAccents(text) {
44
44
  export function removeUnboundAccents(text) {
45
45
  return text.replace(regExAccents, '');
46
46
  }
47
+ //# sourceMappingURL=text.js.map
@@ -13,3 +13,4 @@ export function* mapperRemoveCaseAndAccents(words) {
13
13
  yield woAccents;
14
14
  }
15
15
  }
16
+ //# sourceMappingURL=textMappers.js.map
@@ -1 +1,2 @@
1
1
  export {};
2
+ //# sourceMappingURL=types.js.map
package/dist/util/util.js CHANGED
@@ -1,3 +1,4 @@
1
1
  export function isDefined(v) {
2
2
  return v !== undefined;
3
3
  }
4
+ //# sourceMappingURL=util.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cspell-dictionary",
3
- "version": "7.1.1",
3
+ "version": "7.2.0",
4
4
  "description": "A spelling dictionary library useful for checking words and getting suggestions.",
5
5
  "type": "module",
6
6
  "types": "dist/index.d.ts",
@@ -45,11 +45,11 @@
45
45
  "node": ">=16"
46
46
  },
47
47
  "dependencies": {
48
- "@cspell/cspell-pipe": "7.1.1",
49
- "@cspell/cspell-types": "7.1.1",
50
- "cspell-trie-lib": "7.1.1",
48
+ "@cspell/cspell-pipe": "7.2.0",
49
+ "@cspell/cspell-types": "7.2.0",
50
+ "cspell-trie-lib": "7.2.0",
51
51
  "fast-equals": "^4.0.3",
52
52
  "gensequence": "^5.0.2"
53
53
  },
54
- "gitHead": "2dafa5386c58637614034c7a6d0fa13c03b16e41"
54
+ "gitHead": "b08f7ddc3a4aa22cc80c69ca6638b2a943659a31"
55
55
  }