@redocly/cli 0.0.0-snapshot.1740152436 → 0.0.0-snapshot.1740488474
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.
|
@@ -49,9 +49,7 @@ const reference_docs_config_schema_1 = require("@redocly/config/lib/reference-do
|
|
|
49
49
|
const types_1 = require("../types");
|
|
50
50
|
const update_version_notifier_1 = require("./update-version-notifier");
|
|
51
51
|
const push_1 = require("../commands/push");
|
|
52
|
-
const oauth_client_1 = require("../auth/oauth-client");
|
|
53
52
|
const api_1 = require("../reunite/api");
|
|
54
|
-
const otel_1 = require("../otel");
|
|
55
53
|
async function getFallbackApisOrExit(argsApis, config) {
|
|
56
54
|
const { apis } = config;
|
|
57
55
|
const shouldFallbackToAllDefinitions = !(0, utils_1.isNotEmptyArray)(argsApis) && (0, utils_1.isNotEmptyObject)(apis);
|
|
@@ -443,7 +441,6 @@ function cleanColors(input) {
|
|
|
443
441
|
// eslint-disable-next-line no-control-regex
|
|
444
442
|
return input.replace(/\x1b\[\d+m/g, '');
|
|
445
443
|
}
|
|
446
|
-
otel_1.otelTelemetry.init();
|
|
447
444
|
async function sendTelemetry(argv, exit_code, has_config, spec_version, spec_keyword, spec_full_version) {
|
|
448
445
|
try {
|
|
449
446
|
if (!argv) {
|
|
@@ -452,7 +449,8 @@ async function sendTelemetry(argv, exit_code, has_config, spec_version, spec_key
|
|
|
452
449
|
const { _: [command], $0: _, ...args } = argv;
|
|
453
450
|
const event_time = new Date().toISOString();
|
|
454
451
|
const redoclyClient = new openapi_core_1.RedoclyClient();
|
|
455
|
-
const
|
|
452
|
+
const { RedoclyOAuthClient } = await Promise.resolve().then(() => require('../auth/oauth-client'));
|
|
453
|
+
const oauthClient = new RedoclyOAuthClient('redocly-cli', update_version_notifier_1.version);
|
|
456
454
|
const reuniteUrl = (0, api_1.getReuniteUrl)(argv.residency);
|
|
457
455
|
const logged_in = redoclyClient.hasTokens() || (await oauthClient.isAuthorized(reuniteUrl));
|
|
458
456
|
const data = {
|
|
@@ -474,7 +472,9 @@ async function sendTelemetry(argv, exit_code, has_config, spec_version, spec_key
|
|
|
474
472
|
spec_keyword,
|
|
475
473
|
spec_full_version,
|
|
476
474
|
};
|
|
477
|
-
|
|
475
|
+
const { otelTelemetry } = await Promise.resolve().then(() => require('../otel'));
|
|
476
|
+
otelTelemetry.init();
|
|
477
|
+
otelTelemetry.send(data.command, data);
|
|
478
478
|
}
|
|
479
479
|
catch (err) {
|
|
480
480
|
// Do nothing.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redocly/cli",
|
|
3
|
-
"version": "0.0.0-snapshot.
|
|
3
|
+
"version": "0.0.0-snapshot.1740488474",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"bin": {
|
|
@@ -30,13 +30,14 @@
|
|
|
30
30
|
"OpenAPI linter",
|
|
31
31
|
"Swagger linter",
|
|
32
32
|
"AsyncAPI linter",
|
|
33
|
+
"Arazzo linter",
|
|
33
34
|
"oas"
|
|
34
35
|
],
|
|
35
36
|
"contributors": [
|
|
36
37
|
"Roman Hotsiy <roman@redocly.com> (https://redocly.com/)"
|
|
37
38
|
],
|
|
38
39
|
"dependencies": {
|
|
39
|
-
"@redocly/openapi-core": "0.0.0-snapshot.
|
|
40
|
+
"@redocly/openapi-core": "0.0.0-snapshot.1740488474",
|
|
40
41
|
"abort-controller": "^3.0.0",
|
|
41
42
|
"chokidar": "^3.5.1",
|
|
42
43
|
"colorette": "^1.2.0",
|
|
@@ -60,7 +61,7 @@
|
|
|
60
61
|
"simple-websocket": "^9.0.0",
|
|
61
62
|
"styled-components": "^6.0.7",
|
|
62
63
|
"yargs": "17.0.1",
|
|
63
|
-
"@redocly/respect-core": "0.0.0-snapshot.
|
|
64
|
+
"@redocly/respect-core": "0.0.0-snapshot.1740488474"
|
|
64
65
|
},
|
|
65
66
|
"devDependencies": {
|
|
66
67
|
"@types/configstore": "^5.0.1",
|