@cspell/eslint-plugin 7.3.9 → 8.1.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.
- package/dist/common/logger.cjs +7 -4
- package/dist/worker/spellCheck.mjs +1 -1
- package/package.json +14 -14
package/dist/common/logger.cjs
CHANGED
|
@@ -9,12 +9,14 @@ const path_1 = __importDefault(require("path"));
|
|
|
9
9
|
const util_1 = require("util");
|
|
10
10
|
const debugMode = false;
|
|
11
11
|
class Logger {
|
|
12
|
+
options;
|
|
13
|
+
logFile;
|
|
14
|
+
cwd;
|
|
15
|
+
logToFile = true;
|
|
16
|
+
enabled = true;
|
|
17
|
+
useAsync = false;
|
|
12
18
|
constructor(options) {
|
|
13
19
|
this.options = options;
|
|
14
|
-
this.logToFile = true;
|
|
15
|
-
this.enabled = true;
|
|
16
|
-
this.useAsync = false;
|
|
17
|
-
this.log = this._log.bind(this);
|
|
18
20
|
this.cwd = path_1.default.resolve(options.cwd || '.');
|
|
19
21
|
const logFileBasename = options.logFile || '.cspell-eslint-plugin.log';
|
|
20
22
|
this.logFile = path_1.default.resolve(this.cwd, logFileBasename);
|
|
@@ -33,6 +35,7 @@ class Logger {
|
|
|
33
35
|
: fs_1.default.appendFileSync(this.logFile, message);
|
|
34
36
|
return;
|
|
35
37
|
}
|
|
38
|
+
log = this._log.bind(this);
|
|
36
39
|
}
|
|
37
40
|
exports.Logger = Logger;
|
|
38
41
|
let logger;
|
|
@@ -295,7 +295,7 @@ function getDocValidator(filename, text, options) {
|
|
|
295
295
|
const cachedValidator = docValCache.get(doc);
|
|
296
296
|
if (cachedValidator && deepEqual(cachedValidator.settings, settings)) {
|
|
297
297
|
refreshDictionaryCache(0);
|
|
298
|
-
cachedValidator.updateDocumentText(text);
|
|
298
|
+
cachedValidator.updateDocumentText(text).catch(() => undefined);
|
|
299
299
|
return cachedValidator;
|
|
300
300
|
}
|
|
301
301
|
const validator = new DocumentValidator(doc, options, settings);
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "
|
|
6
|
+
"version": "8.1.0",
|
|
7
7
|
"description": "CSpell ESLint plugin",
|
|
8
8
|
"keywords": [
|
|
9
9
|
"cspell",
|
|
@@ -56,27 +56,27 @@
|
|
|
56
56
|
"url": "https://github.com/streetsidesoftware/cspell/labels/cspell-gitignore"
|
|
57
57
|
},
|
|
58
58
|
"engines": {
|
|
59
|
-
"node": ">=
|
|
59
|
+
"node": ">=18"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@types/eslint": "^8.44.
|
|
62
|
+
"@types/eslint": "^8.44.8",
|
|
63
63
|
"@types/estree": "^1.0.5",
|
|
64
|
-
"@types/mocha": "^10.0.
|
|
65
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
66
|
-
"@typescript-eslint/parser": "^6.
|
|
67
|
-
"@typescript-eslint/types": "^6.
|
|
68
|
-
"@typescript-eslint/typescript-estree": "^6.
|
|
69
|
-
"eslint": "^8.
|
|
64
|
+
"@types/mocha": "^10.0.6",
|
|
65
|
+
"@typescript-eslint/eslint-plugin": "^6.13.1",
|
|
66
|
+
"@typescript-eslint/parser": "^6.13.1",
|
|
67
|
+
"@typescript-eslint/types": "^6.13.1",
|
|
68
|
+
"@typescript-eslint/typescript-estree": "^6.13.1",
|
|
69
|
+
"eslint": "^8.54.0",
|
|
70
70
|
"eslint-plugin-react": "^7.33.2",
|
|
71
71
|
"mocha": "^10.2.0",
|
|
72
|
-
"ts-json-schema-generator": "^1.4.
|
|
73
|
-
"typescript": "^5.
|
|
72
|
+
"ts-json-schema-generator": "^1.4.1",
|
|
73
|
+
"typescript": "^5.3.2"
|
|
74
74
|
},
|
|
75
75
|
"dependencies": {
|
|
76
|
-
"@cspell/cspell-types": "
|
|
77
|
-
"cspell-lib": "
|
|
76
|
+
"@cspell/cspell-types": "8.1.0",
|
|
77
|
+
"cspell-lib": "8.1.0",
|
|
78
78
|
"estree-walker": "^3.0.3",
|
|
79
79
|
"synckit": "^0.8.5"
|
|
80
80
|
},
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "28568808deaf39b9ffa71fd0f722441ff1b8c794"
|
|
82
82
|
}
|