cspell 5.19.3 → 5.19.4

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.
Files changed (2) hide show
  1. package/dist/lint/lint.js +6 -4
  2. package/package.json +9 -10
package/dist/lint/lint.js CHANGED
@@ -24,15 +24,14 @@ var __importStar = (this && this.__importStar) || function (mod) {
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.runLint = void 0;
27
+ const cspell_pipe_1 = require("@cspell/cspell-pipe");
27
28
  const cspell_types_1 = require("@cspell/cspell-types");
28
- const commentJson = __importStar(require("comment-json"));
29
29
  const cspell_gitignore_1 = require("cspell-gitignore");
30
30
  const cspell_glob_1 = require("cspell-glob");
31
31
  const cspell = __importStar(require("cspell-lib"));
32
32
  const path = __importStar(require("path"));
33
33
  const util_1 = require("util");
34
34
  const vscode_uri_1 = require("vscode-uri");
35
- const cspell_pipe_1 = require("@cspell/cspell-pipe");
36
35
  const cache_1 = require("../util/cache");
37
36
  const errors_1 = require("../util/errors");
38
37
  const fileHelper_1 = require("../util/fileHelper");
@@ -98,8 +97,11 @@ async function runLint(cfg) {
98
97
  result.elapsedTimeMs = getElapsedTimeMs();
99
98
  const config = (_d = spellResult.settingsUsed) !== null && _d !== void 0 ? _d : {};
100
99
  result.configErrors += await reportConfigurationErrors(config);
101
- const debugCfg = { config: { ...config, source: null }, source: spellResult.localConfigFilepath };
102
- reporter.debug(commentJson.stringify(debugCfg, undefined, 2));
100
+ if (cfg.options.debug) {
101
+ const { id: _id, name: _name, ...cfg } = config;
102
+ const debugCfg = { config: { ...cfg, source: null }, source: spellResult.localConfigFilepath };
103
+ reporter.debug(JSON.stringify(debugCfg, undefined, 2));
104
+ }
103
105
  const elapsed = result.elapsedTimeMs / 1000.0;
104
106
  const dictionaries = config.dictionaries || [];
105
107
  reporter.info(`Checked: ${filename}, File type: ${config.languageId}, Language: ${config.language} ... Issues: ${result.issues.length} ${elapsed}S`, cspell_types_1.MessageTypes.Info);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cspell",
3
- "version": "5.19.3",
3
+ "version": "5.19.4",
4
4
  "description": "A Spelling Checker for Code!",
5
5
  "funding": "https://github.com/streetsidesoftware/cspell?sponsor=1",
6
6
  "main": "dist/index.js",
@@ -70,13 +70,12 @@
70
70
  },
71
71
  "homepage": "https://streetsidesoftware.github.io/cspell/",
72
72
  "dependencies": {
73
- "@cspell/cspell-pipe": "^5.19.3",
73
+ "@cspell/cspell-pipe": "^5.19.4",
74
74
  "chalk": "^4.1.2",
75
75
  "commander": "^9.1.0",
76
- "comment-json": "^4.2.2",
77
- "cspell-gitignore": "^5.19.3",
78
- "cspell-glob": "^5.19.3",
79
- "cspell-lib": "^5.19.3",
76
+ "cspell-gitignore": "^5.19.4",
77
+ "cspell-glob": "^5.19.4",
78
+ "cspell-lib": "^5.19.4",
80
79
  "fast-json-stable-stringify": "^2.1.0",
81
80
  "file-entry-cache": "^6.0.1",
82
81
  "fs-extra": "^10.0.1",
@@ -91,8 +90,8 @@
91
90
  "node": ">=12.13.0"
92
91
  },
93
92
  "devDependencies": {
94
- "@cspell/cspell-json-reporter": "^5.19.3",
95
- "@cspell/cspell-types": "^5.19.3",
93
+ "@cspell/cspell-json-reporter": "^5.19.4",
94
+ "@cspell/cspell-types": "^5.19.4",
96
95
  "@types/file-entry-cache": "^5.0.2",
97
96
  "@types/fs-extra": "^9.0.13",
98
97
  "@types/glob": "^7.2.0",
@@ -101,11 +100,11 @@
101
100
  "@types/minimatch": "^3.0.5",
102
101
  "@types/semver": "^7.3.9",
103
102
  "jest": "^27.5.1",
104
- "micromatch": "^4.0.4",
103
+ "micromatch": "^4.0.5",
105
104
  "minimatch": "^5.0.1",
106
105
  "rimraf": "^3.0.2",
107
106
  "rollup": "^2.70.1",
108
107
  "rollup-plugin-dts": "^4.2.0"
109
108
  },
110
- "gitHead": "df43735d8f85fddbbd0befca7d98956f50474ce7"
109
+ "gitHead": "9f7e77c95eb1e8fabf53c5b74b7418b2d114ef02"
111
110
  }