cspell-dictionary 6.30.1 → 6.30.2

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
- exports.SpellingDictionaryFromTrie = SpellingDictionaryFromTrie;
165
164
  SpellingDictionaryFromTrie.cachedWordsLimit = 50000;
165
+ exports.SpellingDictionaryFromTrie = SpellingDictionaryFromTrie;
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
- export class SpellingDictionaryFromTrie {
10
+ class SpellingDictionaryFromTrie {
11
11
  constructor(trie, name, options, source = 'from trie', size) {
12
12
  this.trie = trie;
13
13
  this.name = name;
@@ -136,6 +136,7 @@ export class SpellingDictionaryFromTrie {
136
136
  }
137
137
  }
138
138
  SpellingDictionaryFromTrie.cachedWordsLimit = 50000;
139
+ export { SpellingDictionaryFromTrie };
139
140
  /**
140
141
  * Create a dictionary from a trie file.
141
142
  * @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.30.1",
3
+ "version": "6.30.2",
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.30.1",
56
- "@cspell/cspell-types": "6.30.1",
57
- "cspell-trie-lib": "6.30.1",
55
+ "@cspell/cspell-pipe": "6.30.2",
56
+ "@cspell/cspell-types": "6.30.2",
57
+ "cspell-trie-lib": "6.30.2",
58
58
  "fast-equals": "^4.0.3",
59
59
  "gensequence": "^5.0.2"
60
60
  },
61
- "gitHead": "3352b82591cd0cb27e5cd04dea93773e98a606df"
61
+ "gitHead": "4da6895c680084f3b741ad24a73c5bb011a57b35"
62
62
  }