cspell-lib 8.18.0 → 8.19.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.
@@ -1,7 +1,14 @@
1
1
  import type { DocumentUri } from '../util/IUri.js';
2
2
  export { documentUriToURL } from '../util/Uri.js';
3
3
  export interface Position {
4
+ /**
5
+ * The line number (zero-based).
6
+ */
4
7
  line: number;
8
+ /**
9
+ * The zero based offset from the beginning of the line.
10
+ * Note: surrogate pairs are counted as two characters.
11
+ */
5
12
  character: number;
6
13
  }
7
14
  /**
@@ -94,6 +94,7 @@ class _DictionaryDefinitionInternalWithSource {
94
94
  repMap;
95
95
  useCompounds;
96
96
  noSuggest;
97
+ ignoreForbiddenWords;
97
98
  scope;
98
99
  __source;
99
100
  ddi;
@@ -102,7 +103,7 @@ class _DictionaryDefinitionInternalWithSource {
102
103
  this.__source = sourceURL.href;
103
104
  // this bit of assignment is to have the compiler help use if any new fields are added.
104
105
  const defAll = def;
105
- const { path: relPath = '', file = '', addWords, description, dictionaryInformation, type, repMap, noSuggest, scope, useCompounds, } = defAll;
106
+ const { path: relPath = '', file = '', addWords, description, dictionaryInformation, type, repMap, noSuggest, ignoreForbiddenWords, scope, useCompounds, } = defAll;
106
107
  const defaultPath = sourceURL;
107
108
  const filePath = fixDicPath(relPath, file);
108
109
  const name = determineName(filePath, def);
@@ -117,6 +118,7 @@ class _DictionaryDefinitionInternalWithSource {
117
118
  type,
118
119
  repMap,
119
120
  noSuggest,
121
+ ignoreForbiddenWords,
120
122
  scope,
121
123
  useCompounds,
122
124
  };
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "access": "public",
5
5
  "provenance": true
6
6
  },
7
- "version": "8.18.0",
7
+ "version": "8.19.0",
8
8
  "description": "A library of useful functions used across various cspell tools.",
9
9
  "type": "module",
10
10
  "sideEffects": false,
@@ -64,22 +64,22 @@
64
64
  },
65
65
  "homepage": "https://github.com/streetsidesoftware/cspell/tree/main/packages/cspell-lib#readme",
66
66
  "dependencies": {
67
- "@cspell/cspell-bundled-dicts": "8.18.0",
68
- "@cspell/cspell-pipe": "8.18.0",
69
- "@cspell/cspell-resolver": "8.18.0",
70
- "@cspell/cspell-types": "8.18.0",
71
- "@cspell/dynamic-import": "8.18.0",
72
- "@cspell/filetypes": "8.18.0",
73
- "@cspell/strong-weak-map": "8.18.0",
74
- "@cspell/url": "8.18.0",
67
+ "@cspell/cspell-bundled-dicts": "8.19.0",
68
+ "@cspell/cspell-pipe": "8.19.0",
69
+ "@cspell/cspell-resolver": "8.19.0",
70
+ "@cspell/cspell-types": "8.19.0",
71
+ "@cspell/dynamic-import": "8.19.0",
72
+ "@cspell/filetypes": "8.19.0",
73
+ "@cspell/strong-weak-map": "8.19.0",
74
+ "@cspell/url": "8.19.0",
75
75
  "clear-module": "^4.1.2",
76
76
  "comment-json": "^4.2.5",
77
- "cspell-config-lib": "8.18.0",
78
- "cspell-dictionary": "8.18.0",
79
- "cspell-glob": "8.18.0",
80
- "cspell-grammar": "8.18.0",
81
- "cspell-io": "8.18.0",
82
- "cspell-trie-lib": "8.18.0",
77
+ "cspell-config-lib": "8.19.0",
78
+ "cspell-dictionary": "8.19.0",
79
+ "cspell-glob": "8.19.0",
80
+ "cspell-grammar": "8.19.0",
81
+ "cspell-io": "8.19.0",
82
+ "cspell-trie-lib": "8.19.0",
83
83
  "env-paths": "^3.0.0",
84
84
  "fast-equals": "^5.2.2",
85
85
  "gensequence": "^7.0.0",
@@ -93,14 +93,14 @@
93
93
  "node": ">=18"
94
94
  },
95
95
  "devDependencies": {
96
- "@cspell/dict-cpp": "^6.0.6",
96
+ "@cspell/dict-cpp": "^6.0.8",
97
97
  "@cspell/dict-csharp": "^4.0.6",
98
98
  "@cspell/dict-css": "^4.0.17",
99
99
  "@cspell/dict-fa-ir": "^4.0.3",
100
100
  "@cspell/dict-fr-fr": "^2.2.5",
101
101
  "@cspell/dict-html": "^4.0.11",
102
102
  "@cspell/dict-nl-nl": "^2.3.3",
103
- "@cspell/dict-python": "^4.2.16",
103
+ "@cspell/dict-python": "^4.2.17",
104
104
  "@types/configstore": "^6.0.2",
105
105
  "configstore": "^7.0.0",
106
106
  "cspell-dict-nl-nl": "^1.1.2",
@@ -108,5 +108,5 @@
108
108
  "lorem-ipsum": "^2.0.8",
109
109
  "perf-insight": "^1.2.0"
110
110
  },
111
- "gitHead": "6c7297918e9ff4f1c4fa1501d119d58bf4ce2237"
111
+ "gitHead": "ebfecabea342ba34ee368178f3864a7a194936d5"
112
112
  }