@asyncapi/cli 1.1.2 → 1.1.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/assets/create-glee-app/templates/default/package-lock.json +7 -7
- package/assets/create-glee-app/templates/default/package.json +1 -1
- package/lib/flags.js +1 -1
- package/lib/globals.js +2 -1
- package/lib/hooks/command_not_found/myhook.js +1 -2
- package/lib/models/SpecificationFile.js +2 -1
- package/oclif.manifest.json +1 -1
- package/package.json +3 -3
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"version": "0.1.0",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@asyncapi/glee": "^0.31.
|
|
12
|
+
"@asyncapi/glee": "^0.31.1"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
15
|
"@types/node": "^20.5.9"
|
|
@@ -484,9 +484,9 @@
|
|
|
484
484
|
}
|
|
485
485
|
},
|
|
486
486
|
"node_modules/@asyncapi/glee": {
|
|
487
|
-
"version": "0.31.
|
|
488
|
-
"resolved": "https://registry.npmjs.org/@asyncapi/glee/-/glee-0.31.
|
|
489
|
-
"integrity": "sha512-
|
|
487
|
+
"version": "0.31.1",
|
|
488
|
+
"resolved": "https://registry.npmjs.org/@asyncapi/glee/-/glee-0.31.1.tgz",
|
|
489
|
+
"integrity": "sha512-lLfmKOOuV9RaXWAPm3RWu8bKkgywOSTvITzvcNIBz4EiRZcR0oLLKeHLboGLuMmz8TwHJUq9g2RQzcSACzDMrw==",
|
|
490
490
|
"dependencies": {
|
|
491
491
|
"@asyncapi/generator": "^1.15.0",
|
|
492
492
|
"@asyncapi/html-template": "^1.0.0",
|
|
@@ -13173,9 +13173,9 @@
|
|
|
13173
13173
|
}
|
|
13174
13174
|
},
|
|
13175
13175
|
"@asyncapi/glee": {
|
|
13176
|
-
"version": "0.31.
|
|
13177
|
-
"resolved": "https://registry.npmjs.org/@asyncapi/glee/-/glee-0.31.
|
|
13178
|
-
"integrity": "sha512-
|
|
13176
|
+
"version": "0.31.1",
|
|
13177
|
+
"resolved": "https://registry.npmjs.org/@asyncapi/glee/-/glee-0.31.1.tgz",
|
|
13178
|
+
"integrity": "sha512-lLfmKOOuV9RaXWAPm3RWu8bKkgywOSTvITzvcNIBz4EiRZcR0oLLKeHLboGLuMmz8TwHJUq9g2RQzcSACzDMrw==",
|
|
13179
13179
|
"requires": {
|
|
13180
13180
|
"@asyncapi/generator": "^1.15.0",
|
|
13181
13181
|
"@asyncapi/html-template": "^1.0.0",
|
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.4",
|
|
5
5
|
"author": "@asyncapi",
|
|
6
6
|
"bin": {
|
|
7
7
|
"asyncapi": "./bin/run"
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"@asyncapi/bundler": "^0.3.8",
|
|
13
13
|
"@asyncapi/converter": "^1.4.0",
|
|
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": {
|