cspell 5.13.3 → 5.13.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.
- package/dist/app.js +7 -2
- package/package.json +10 -8
package/dist/app.js
CHANGED
|
@@ -22,19 +22,24 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
22
22
|
exports.run = exports.CheckFailed = void 0;
|
|
23
23
|
const commander = __importStar(require("commander"));
|
|
24
24
|
const path = __importStar(require("path"));
|
|
25
|
+
const semver = __importStar(require("semver"));
|
|
25
26
|
const commandCheck_1 = require("./commandCheck");
|
|
26
27
|
const commandLink_1 = require("./commandLink");
|
|
27
28
|
const commandLint_1 = require("./commandLint");
|
|
28
29
|
const commandTrace_1 = require("./commandTrace");
|
|
30
|
+
const errors_1 = require("./util/errors");
|
|
29
31
|
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
30
32
|
const npmPackage = require(path.join(__dirname, '..', 'package.json'));
|
|
31
|
-
var
|
|
32
|
-
Object.defineProperty(exports, "CheckFailed", { enumerable: true, get: function () { return
|
|
33
|
+
var errors_2 = require("./util/errors");
|
|
34
|
+
Object.defineProperty(exports, "CheckFailed", { enumerable: true, get: function () { return errors_2.CheckFailed; } });
|
|
33
35
|
async function run(program, argv) {
|
|
34
36
|
const prog = program || commander.program;
|
|
35
37
|
const args = argv || process.argv;
|
|
36
38
|
prog.exitOverride();
|
|
37
39
|
prog.version(npmPackage.version).description('Spelling Checker for Code').name('cspell');
|
|
40
|
+
if (!semver.satisfies(process.versions.node, npmPackage.engines.node)) {
|
|
41
|
+
throw new errors_1.ApplicationError(`Unsupported NodeJS version (${process.versions.node}); ${npmPackage.engines.node} is required`);
|
|
42
|
+
}
|
|
38
43
|
(0, commandLint_1.commandLint)(prog);
|
|
39
44
|
(0, commandTrace_1.commandTrace)(prog);
|
|
40
45
|
(0, commandCheck_1.commandCheck)(prog);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cspell",
|
|
3
|
-
"version": "5.13.
|
|
3
|
+
"version": "5.13.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",
|
|
@@ -72,15 +72,16 @@
|
|
|
72
72
|
"chalk": "^4.1.2",
|
|
73
73
|
"commander": "^8.3.0",
|
|
74
74
|
"comment-json": "^4.1.1",
|
|
75
|
-
"cspell-gitignore": "^5.13.
|
|
76
|
-
"cspell-glob": "^5.13.
|
|
77
|
-
"cspell-lib": "^5.13.
|
|
75
|
+
"cspell-gitignore": "^5.13.4",
|
|
76
|
+
"cspell-glob": "^5.13.4",
|
|
77
|
+
"cspell-lib": "^5.13.4",
|
|
78
78
|
"fast-json-stable-stringify": "^2.1.0",
|
|
79
79
|
"file-entry-cache": "^6.0.1",
|
|
80
80
|
"fs-extra": "^10.0.0",
|
|
81
81
|
"get-stdin": "^8.0.0",
|
|
82
82
|
"glob": "^7.2.0",
|
|
83
83
|
"imurmurhash": "^0.1.4",
|
|
84
|
+
"semver": "^7.3.5",
|
|
84
85
|
"strip-ansi": "^6.0.1",
|
|
85
86
|
"vscode-uri": "^3.0.2"
|
|
86
87
|
},
|
|
@@ -88,18 +89,19 @@
|
|
|
88
89
|
"node": ">=12.13.0"
|
|
89
90
|
},
|
|
90
91
|
"devDependencies": {
|
|
91
|
-
"@cspell/cspell-json-reporter": "^5.13.
|
|
92
|
-
"@cspell/cspell-types": "^5.13.
|
|
92
|
+
"@cspell/cspell-json-reporter": "^5.13.4",
|
|
93
|
+
"@cspell/cspell-types": "^5.13.4",
|
|
93
94
|
"@types/file-entry-cache": "^5.0.2",
|
|
94
95
|
"@types/fs-extra": "^9.0.13",
|
|
95
96
|
"@types/glob": "^7.2.0",
|
|
96
97
|
"@types/imurmurhash": "^0.1.1",
|
|
97
98
|
"@types/micromatch": "^4.0.2",
|
|
98
99
|
"@types/minimatch": "^3.0.5",
|
|
99
|
-
"
|
|
100
|
+
"@types/semver": "^7.3.9",
|
|
101
|
+
"jest": "^27.4.5",
|
|
100
102
|
"micromatch": "^4.0.4",
|
|
101
103
|
"minimatch": "^3.0.4",
|
|
102
104
|
"rimraf": "^3.0.2"
|
|
103
105
|
},
|
|
104
|
-
"gitHead": "
|
|
106
|
+
"gitHead": "cf6ef9e6137af46d1a7ebd83600c05a4892c4814"
|
|
105
107
|
}
|