cspell-lib 10.2.1 → 10.2.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.
|
@@ -2,7 +2,8 @@ import { PairingHeap } from '../PairingHeap.js';
|
|
|
2
2
|
import { regExFirstUpper, regExNumericLiteral, regExWordsAndDigits } from '../textRegex.js';
|
|
3
3
|
import { generateWordBreaks, softHyphen } from './generateWordBreaks.js';
|
|
4
4
|
const ignoreBreak = Object.freeze([]);
|
|
5
|
-
const maxSkippedBreaks =
|
|
5
|
+
const maxSkippedBreaks = 16; // Maximum number of breaks that can be skipped during word splitting.
|
|
6
|
+
const maxAttempts = 64_000; // Maximum number of attempts to split words.
|
|
6
7
|
// Quote/backtick characters that `regExWordsAndDigits` treats as word characters, so a quoted
|
|
7
8
|
// or templated string literal in source code gets scanned with its delimiters attached.
|
|
8
9
|
const regExLeadingTrimCharacters = /^['’`\\-]+/;
|
|
@@ -132,7 +133,6 @@ function findNextWordText({ text, offset }) {
|
|
|
132
133
|
}
|
|
133
134
|
function splitIntoWords(lineSeg, breaks, checkTextRange) {
|
|
134
135
|
const maxIndex = lineSeg.relEnd;
|
|
135
|
-
const maxAttempts = 1000;
|
|
136
136
|
/**
|
|
137
137
|
* Map of known paths by their starting index in the text.
|
|
138
138
|
* This helps in quickly finding previously computed paths to avoid redundant calculations.
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public",
|
|
5
5
|
"provenance": true
|
|
6
6
|
},
|
|
7
|
-
"version": "10.2.
|
|
7
|
+
"version": "10.2.2",
|
|
8
8
|
"description": "A library of useful functions used across various cspell tools.",
|
|
9
9
|
"type": "module",
|
|
10
10
|
"sideEffects": false,
|
|
@@ -75,22 +75,22 @@
|
|
|
75
75
|
},
|
|
76
76
|
"homepage": "https://github.com/streetsidesoftware/cspell/tree/main/packages/cspell-lib#readme",
|
|
77
77
|
"dependencies": {
|
|
78
|
-
"@cspell/cspell-bundled-dicts": "10.2.
|
|
79
|
-
"@cspell/cspell-performance-monitor": "10.2.
|
|
80
|
-
"@cspell/cspell-pipe": "10.2.
|
|
81
|
-
"@cspell/cspell-resolver": "10.2.
|
|
82
|
-
"@cspell/cspell-types": "10.2.
|
|
83
|
-
"@cspell/dynamic-import": "10.2.
|
|
84
|
-
"@cspell/filetypes": "10.2.
|
|
85
|
-
"@cspell/rpc": "10.2.
|
|
86
|
-
"@cspell/strong-weak-map": "10.2.
|
|
87
|
-
"@cspell/url": "10.2.
|
|
88
|
-
"cspell-config-lib": "10.2.
|
|
89
|
-
"cspell-dictionary": "10.2.
|
|
90
|
-
"cspell-glob": "10.2.
|
|
91
|
-
"cspell-grammar": "10.2.
|
|
92
|
-
"cspell-io": "10.2.
|
|
93
|
-
"cspell-trie-lib": "10.2.
|
|
78
|
+
"@cspell/cspell-bundled-dicts": "10.2.2",
|
|
79
|
+
"@cspell/cspell-performance-monitor": "10.2.2",
|
|
80
|
+
"@cspell/cspell-pipe": "10.2.2",
|
|
81
|
+
"@cspell/cspell-resolver": "10.2.2",
|
|
82
|
+
"@cspell/cspell-types": "10.2.2",
|
|
83
|
+
"@cspell/dynamic-import": "10.2.2",
|
|
84
|
+
"@cspell/filetypes": "10.2.2",
|
|
85
|
+
"@cspell/rpc": "10.2.2",
|
|
86
|
+
"@cspell/strong-weak-map": "10.2.2",
|
|
87
|
+
"@cspell/url": "10.2.2",
|
|
88
|
+
"cspell-config-lib": "10.2.2",
|
|
89
|
+
"cspell-dictionary": "10.2.2",
|
|
90
|
+
"cspell-glob": "10.2.2",
|
|
91
|
+
"cspell-grammar": "10.2.2",
|
|
92
|
+
"cspell-io": "10.2.2",
|
|
93
|
+
"cspell-trie-lib": "10.2.2",
|
|
94
94
|
"env-paths": "^4.0.0",
|
|
95
95
|
"gensequence": "^8.0.8",
|
|
96
96
|
"import-fresh": "^4.0.0",
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
"node": ">=22.18.0"
|
|
104
104
|
},
|
|
105
105
|
"devDependencies": {
|
|
106
|
-
"@cspell/cspell-tools": "10.2.
|
|
106
|
+
"@cspell/cspell-tools": "10.2.2",
|
|
107
107
|
"@cspell/dict-cpp": "^7.1.0",
|
|
108
108
|
"@cspell/dict-csharp": "^4.0.8",
|
|
109
109
|
"@cspell/dict-css": "^4.1.2",
|
|
@@ -123,5 +123,5 @@
|
|
|
123
123
|
"lorem-ipsum": "^3.0.0",
|
|
124
124
|
"perf-insight": "^2.0.1"
|
|
125
125
|
},
|
|
126
|
-
"gitHead": "
|
|
126
|
+
"gitHead": "22fae7ac63d4330c52fe97eebee743e3541f2e36"
|
|
127
127
|
}
|