@asyncapi/cli 1.14.0 → 1.14.2
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.
|
@@ -191,9 +191,17 @@ class Template extends base_1.default {
|
|
|
191
191
|
}
|
|
192
192
|
registryValidation(registryUrl, registryAuth, registryToken) {
|
|
193
193
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
194
|
+
if (!registryUrl) {
|
|
195
|
+
return;
|
|
196
|
+
}
|
|
197
|
+
try {
|
|
198
|
+
const response = yield (0, node_fetch_1.default)(registryUrl);
|
|
199
|
+
if (response.status === 401 && !registryAuth && !registryToken) {
|
|
200
|
+
this.error('You Need to pass either registryAuth in username:password encoded in Base64 or need to pass registryToken', { exit: 1 });
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
catch (error) {
|
|
204
|
+
this.error(`Can't fetch registryURL: ${registryUrl}`, { exit: 1 });
|
|
197
205
|
}
|
|
198
206
|
});
|
|
199
207
|
}
|
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.14.
|
|
4
|
+
"version": "1.14.2",
|
|
5
5
|
"author": "@asyncapi",
|
|
6
6
|
"bin": {
|
|
7
7
|
"asyncapi": "./bin/run_bin"
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"@asyncapi/converter": "^1.4.19",
|
|
14
14
|
"@asyncapi/diff": "^0.4.1",
|
|
15
15
|
"@asyncapi/generator": "^1.17.25",
|
|
16
|
-
"@asyncapi/modelina": "^3.5.
|
|
16
|
+
"@asyncapi/modelina": "^3.5.1",
|
|
17
17
|
"@asyncapi/openapi-schema-parser": "^3.0.22",
|
|
18
18
|
"@asyncapi/optimizer": "^1.0.2",
|
|
19
19
|
"@asyncapi/parser": "^3.0.14",
|