@asyncapi/cli 1.1.3 → 1.1.5
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/lib/flags.js
CHANGED
|
@@ -6,7 +6,7 @@ const watchFlag = (description) => {
|
|
|
6
6
|
return core_1.Flags.boolean({
|
|
7
7
|
default: false,
|
|
8
8
|
char: 'w',
|
|
9
|
-
description: description
|
|
9
|
+
description: description !== null && description !== void 0 ? description : 'Enable watch mode',
|
|
10
10
|
});
|
|
11
11
|
};
|
|
12
12
|
exports.watchFlag = watchFlag;
|
package/lib/globals.js
CHANGED
|
@@ -16,10 +16,11 @@ const WATCH_MESSAGES = {
|
|
|
16
16
|
};
|
|
17
17
|
const CHOKIDAR_INSTANCE_STORE = new Map();
|
|
18
18
|
const specWatcher = (params) => {
|
|
19
|
+
var _a;
|
|
19
20
|
if (!params.spec.getFilePath()) {
|
|
20
21
|
return WATCH_MESSAGES.logOnAutoDisable(params.docVersion);
|
|
21
22
|
}
|
|
22
|
-
if (CHOKIDAR_INSTANCE_STORE.get(params.label
|
|
23
|
+
if (CHOKIDAR_INSTANCE_STORE.get((_a = params.label) !== null && _a !== void 0 ? _a : '_default')) {
|
|
23
24
|
return;
|
|
24
25
|
}
|
|
25
26
|
const filePath = params.spec.getFilePath();
|
|
@@ -5,7 +5,6 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const core_1 = require("@oclif/core");
|
|
6
6
|
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
7
7
|
const fast_levenshtein_1 = tslib_1.__importDefault(require("fast-levenshtein"));
|
|
8
|
-
const core_2 = require("@oclif/core");
|
|
9
8
|
const closest = (target, possibilities) => {
|
|
10
9
|
var _a, _b;
|
|
11
10
|
return (_b = (_a = possibilities
|
|
@@ -17,7 +16,7 @@ const hook = function (opts) {
|
|
|
17
16
|
var _a;
|
|
18
17
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
19
18
|
if (opts.id === '--help') {
|
|
20
|
-
const help = new
|
|
19
|
+
const help = new core_1.Help(this.config);
|
|
21
20
|
help.showHelp(['--help']);
|
|
22
21
|
return;
|
|
23
22
|
}
|
|
@@ -56,7 +56,8 @@ class Specification {
|
|
|
56
56
|
return this.kind;
|
|
57
57
|
}
|
|
58
58
|
getSource() {
|
|
59
|
-
|
|
59
|
+
var _a;
|
|
60
|
+
return (_a = this.getFilePath()) !== null && _a !== void 0 ? _a : this.getFileURL();
|
|
60
61
|
}
|
|
61
62
|
toSourceString() {
|
|
62
63
|
if (this.kind === 'file') {
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@asyncapi/cli",
|
|
3
3
|
"description": "All in one CLI for all AsyncAPI tools",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.5",
|
|
5
5
|
"author": "@asyncapi",
|
|
6
6
|
"bin": {
|
|
7
7
|
"asyncapi": "./bin/run"
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@asyncapi/avro-schema-parser": "^3.0.5",
|
|
12
12
|
"@asyncapi/bundler": "^0.3.8",
|
|
13
|
-
"@asyncapi/converter": "^1.4.
|
|
13
|
+
"@asyncapi/converter": "^1.4.2",
|
|
14
14
|
"@asyncapi/diff": "^0.4.1",
|
|
15
|
-
"@asyncapi/generator": "^1.
|
|
15
|
+
"@asyncapi/generator": "^1.15.0",
|
|
16
16
|
"@asyncapi/modelina": "^2.0.2",
|
|
17
17
|
"@asyncapi/openapi-schema-parser": "^3.0.5",
|
|
18
18
|
"@asyncapi/optimizer": "^0.2.3",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"serve-handler": "^6.1.3",
|
|
43
43
|
"strip-ansi": "^6.0.0",
|
|
44
44
|
"unzipper": "^0.10.11",
|
|
45
|
-
"wrap-ansi": "^
|
|
45
|
+
"wrap-ansi": "^9.0.0",
|
|
46
46
|
"ws": "^8.2.3"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|