cspell-dictionary 6.31.0 → 6.31.3

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.
@@ -161,8 +161,8 @@ class SpellingDictionaryFromTrie {
161
161
  return [];
162
162
  }
163
163
  }
164
- SpellingDictionaryFromTrie.cachedWordsLimit = 50000;
165
164
  exports.SpellingDictionaryFromTrie = SpellingDictionaryFromTrie;
165
+ SpellingDictionaryFromTrie.cachedWordsLimit = 50000;
166
166
  /**
167
167
  * Create a dictionary from a trie file.
168
168
  * @param data - contents of a trie file.
@@ -7,7 +7,7 @@ import * as Defaults from './defaults.mjs';
7
7
  import { createWeightMapFromDictionaryInformation, defaultNumSuggestions, hasOptionToSearchOption, impersonateCollector, suggestArgsToSuggestOptions, wordSearchForms, wordSuggestFormsArray, } from './SpellingDictionaryMethods.mjs';
8
8
  const findWordOptionsCaseSensitive = Object.freeze({ caseSensitive: true });
9
9
  const findWordOptionsNotCaseSensitive = Object.freeze({ caseSensitive: false });
10
- class SpellingDictionaryFromTrie {
10
+ export class SpellingDictionaryFromTrie {
11
11
  constructor(trie, name, options, source = 'from trie', size) {
12
12
  this.trie = trie;
13
13
  this.name = name;
@@ -136,7 +136,6 @@ class SpellingDictionaryFromTrie {
136
136
  }
137
137
  }
138
138
  SpellingDictionaryFromTrie.cachedWordsLimit = 50000;
139
- export { SpellingDictionaryFromTrie };
140
139
  /**
141
140
  * Create a dictionary from a trie file.
142
141
  * @param data - contents of a trie file.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cspell-dictionary",
3
- "version": "6.31.0",
3
+ "version": "6.31.3",
4
4
  "description": "A spelling dictionary library useful for checking words and getting suggestions.",
5
5
  "type": "commonjs",
6
6
  "main": "dist/cjs/index.js",
@@ -52,11 +52,11 @@
52
52
  "node": ">=14"
53
53
  },
54
54
  "dependencies": {
55
- "@cspell/cspell-pipe": "6.31.0",
56
- "@cspell/cspell-types": "6.31.0",
57
- "cspell-trie-lib": "6.31.0",
55
+ "@cspell/cspell-pipe": "6.31.3",
56
+ "@cspell/cspell-types": "6.31.3",
57
+ "cspell-trie-lib": "6.31.3",
58
58
  "fast-equals": "^4.0.3",
59
59
  "gensequence": "^5.0.2"
60
60
  },
61
- "gitHead": "1c0c3eb875bc1aab334bd56d952c0d0964468b7a"
61
+ "gitHead": "0e8ca7b32f21aea40ade645172ef93017e6a143d"
62
62
  }