@asyncapi/cli 1.5.14 → 1.5.16
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.
|
@@ -9141,11 +9141,12 @@
|
|
|
9141
9141
|
"license": "MIT"
|
|
9142
9142
|
},
|
|
9143
9143
|
"node_modules/parse-bmfont-xml": {
|
|
9144
|
-
"version": "1.1.
|
|
9145
|
-
"
|
|
9144
|
+
"version": "1.1.6",
|
|
9145
|
+
"resolved": "https://registry.npmjs.org/parse-bmfont-xml/-/parse-bmfont-xml-1.1.6.tgz",
|
|
9146
|
+
"integrity": "sha512-0cEliVMZEhrFDwMh4SxIyVJpqYoOWDJ9P895tFuS+XuNzI5UBmBk5U5O4KuJdTnZpSBI4LFA2+ZiJaiwfSwlMA==",
|
|
9146
9147
|
"dependencies": {
|
|
9147
9148
|
"xml-parse-from-string": "^1.0.0",
|
|
9148
|
-
"xml2js": "^0.
|
|
9149
|
+
"xml2js": "^0.5.0"
|
|
9149
9150
|
}
|
|
9150
9151
|
},
|
|
9151
9152
|
"node_modules/parse-conflict-json": {
|
|
@@ -10686,7 +10687,8 @@
|
|
|
10686
10687
|
},
|
|
10687
10688
|
"node_modules/sax": {
|
|
10688
10689
|
"version": "1.3.0",
|
|
10689
|
-
"
|
|
10690
|
+
"resolved": "https://registry.npmjs.org/sax/-/sax-1.3.0.tgz",
|
|
10691
|
+
"integrity": "sha512-0s+oAmw9zLl1V1cS9BtZN7JAd0cW5e0QH4W3LWEK6a4LaLEA2OTpGYWDY+6XasBLtz6wkm3u1xRw95mRuJ59WA=="
|
|
10690
10692
|
},
|
|
10691
10693
|
"node_modules/saxes": {
|
|
10692
10694
|
"version": "5.0.1",
|
|
@@ -12093,8 +12095,9 @@
|
|
|
12093
12095
|
"license": "MIT"
|
|
12094
12096
|
},
|
|
12095
12097
|
"node_modules/xml2js": {
|
|
12096
|
-
"version": "0.
|
|
12097
|
-
"
|
|
12098
|
+
"version": "0.5.0",
|
|
12099
|
+
"resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.5.0.tgz",
|
|
12100
|
+
"integrity": "sha512-drPFnkQJik/O+uPKpqSgr22mpuFHqKdbS835iAQrUC73L2F5WkboIRd63ai/2Yg6I1jzifPFKH2NTK+cfglkIA==",
|
|
12098
12101
|
"dependencies": {
|
|
12099
12102
|
"sax": ">=0.6.0",
|
|
12100
12103
|
"xmlbuilder": "~11.0.0"
|
|
@@ -12105,7 +12108,8 @@
|
|
|
12105
12108
|
},
|
|
12106
12109
|
"node_modules/xmlbuilder": {
|
|
12107
12110
|
"version": "11.0.1",
|
|
12108
|
-
"
|
|
12111
|
+
"resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-11.0.1.tgz",
|
|
12112
|
+
"integrity": "sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA==",
|
|
12109
12113
|
"engines": {
|
|
12110
12114
|
"node": ">=4.0"
|
|
12111
12115
|
}
|
package/lib/models/Studio.js
CHANGED
|
@@ -10,6 +10,7 @@ const ws_1 = require("ws");
|
|
|
10
10
|
const chokidar_1 = tslib_1.__importDefault(require("chokidar"));
|
|
11
11
|
const open_1 = tslib_1.__importDefault(require("open"));
|
|
12
12
|
const path_1 = tslib_1.__importDefault(require("path"));
|
|
13
|
+
const package_json_1 = require("@asyncapi/studio/package.json");
|
|
13
14
|
const { readFile, writeFile } = fs_1.promises;
|
|
14
15
|
const sockets = [];
|
|
15
16
|
const messageQueue = [];
|
|
@@ -44,7 +45,7 @@ function start(filePath, port = exports.DEFAULT_PORT) {
|
|
|
44
45
|
});
|
|
45
46
|
const server = (0, http_1.createServer)((request, response) => {
|
|
46
47
|
//not all CLI users use npm. Some package managers put dependencies in different weird places
|
|
47
|
-
//this is why we need to first figure out where exactly is the index.html located
|
|
48
|
+
//this is why we need to first figure out where exactly is the index.html located
|
|
48
49
|
//and then strip index.html from the path to point to directory with the rest of the studio
|
|
49
50
|
const indexLocation = require.resolve('@asyncapi/studio/build/index.html');
|
|
50
51
|
const hostFolder = indexLocation.substring(0, indexLocation.lastIndexOf(path_1.default.sep));
|
|
@@ -92,7 +93,7 @@ function start(filePath, port = exports.DEFAULT_PORT) {
|
|
|
92
93
|
sockets.splice(sockets.findIndex(s => s === socket));
|
|
93
94
|
});
|
|
94
95
|
server.listen(port, () => {
|
|
95
|
-
const url = `http://localhost:${port}?liveServer=${port}`;
|
|
96
|
+
const url = `http://localhost:${port}?liveServer=${port}&studio-version=${package_json_1.version}`;
|
|
96
97
|
console.log(`Studio is running at ${url}`);
|
|
97
98
|
console.log(`Watching changes on file ${filePath}`);
|
|
98
99
|
(0, open_1.default)(url);
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@asyncapi/cli",
|
|
3
3
|
"description": "All in one CLI for all AsyncAPI tools",
|
|
4
|
-
"version": "1.5.
|
|
4
|
+
"version": "1.5.16",
|
|
5
5
|
"author": "@asyncapi",
|
|
6
6
|
"bin": {
|
|
7
7
|
"asyncapi": "./bin/run"
|
|
8
8
|
},
|
|
9
9
|
"bugs": "https://github.com/asyncapi/cli/issues",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@asyncapi/avro-schema-parser": "^3.0.
|
|
11
|
+
"@asyncapi/avro-schema-parser": "^3.0.15",
|
|
12
12
|
"@asyncapi/bundler": "^0.4.0",
|
|
13
13
|
"@asyncapi/converter": "^1.4.11",
|
|
14
14
|
"@asyncapi/diff": "^0.4.1",
|