cspell-dictionary 9.6.4 → 9.8.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.
@@ -46,6 +46,7 @@ export class SpellingDictionaryFromTrie {
46
46
  if (!this._size) {
47
47
  // walk the trie and get the approximate size.
48
48
  const i = this.trie.iterate();
49
+ // eslint-disable-next-line no-useless-assignment
49
50
  let deeper = true;
50
51
  let size = 0;
51
52
  for (let r = i.next(); !r.done; r = i.next(deeper)) {
@@ -1,6 +1,6 @@
1
1
  import type { SuggestionResult } from 'cspell-trie-lib';
2
2
  import type { SuggestDictionary } from './SpellingDictionary.js';
3
- import { type TypoEntry, type TyposDef } from './Typos/index.js';
3
+ import type { TypoEntry, TyposDef } from './Typos/index.js';
4
4
  export interface PreferredSuggestionResult extends SuggestionResult {
5
5
  isPreferred: true;
6
6
  }
@@ -1,5 +1,5 @@
1
1
  import type { IgnoreCaseOption, PreferredSuggestion, SpellingDictionary } from './SpellingDictionary.js';
2
- import { type TypoEntry, type TyposDef } from './Typos/index.js';
2
+ import type { TypoEntry, TyposDef } from './Typos/index.js';
3
3
  export interface TyposDictionary extends SpellingDictionary {
4
4
  getPreferredSuggestions: (word: string) => PreferredSuggestion[];
5
5
  isForbidden(word: string, ignoreCaseAndAccents?: IgnoreCaseOption): boolean;
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "access": "public",
5
5
  "provenance": true
6
6
  },
7
- "version": "9.6.4",
7
+ "version": "9.8.0",
8
8
  "description": "A spelling dictionary library useful for checking words and getting suggestions.",
9
9
  "type": "module",
10
10
  "sideEffects": false,
@@ -54,10 +54,10 @@
54
54
  "node": ">=20"
55
55
  },
56
56
  "dependencies": {
57
- "@cspell/cspell-performance-monitor": "9.6.4",
58
- "@cspell/cspell-pipe": "9.6.4",
59
- "@cspell/cspell-types": "9.6.4",
60
- "cspell-trie-lib": "9.6.4",
57
+ "@cspell/cspell-performance-monitor": "9.8.0",
58
+ "@cspell/cspell-pipe": "9.8.0",
59
+ "@cspell/cspell-types": "9.8.0",
60
+ "cspell-trie-lib": "9.8.0",
61
61
  "fast-equals": "^6.0.0"
62
62
  },
63
63
  "devDependencies": {
@@ -65,5 +65,5 @@
65
65
  "gensequence": "^8.0.8",
66
66
  "lorem-ipsum": "^2.0.8"
67
67
  },
68
- "gitHead": "e126c7f5708d4258ada35ba1d29d18952d7f0886"
68
+ "gitHead": "c822013ce676dffb5fa5544567c25a3ae666718f"
69
69
  }