@redocly/cli 0.0.0-snapshot.1781617847 → 0.0.0-snapshot.1782145354
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/THIRD_PARTY_NOTICES +2 -2
- package/lib/chunks/{ISBMOVQC.js → 6NT6X35T.js} +3 -3
- package/lib/chunks/{66OGXJIO.js → AIO2RJZJ.js} +1 -1
- package/lib/chunks/{NYFRZGRF.js → C4SG2WPV.js} +1 -1
- package/lib/chunks/{Q36VJZZB.js → EMH4R3WD.js} +3 -3
- package/lib/chunks/{HIGXOJIT.js → GGA7PAQ6.js} +1 -1
- package/lib/chunks/{67EQ2GUI.js → GSHKQMMA.js} +8 -3
- package/lib/chunks/{EZDONZRY.js → K5JRO4WH.js} +1 -1
- package/lib/chunks/{NRFN72LN.js → KQLP3V5K.js} +4 -4
- package/lib/chunks/{6IACNET6.js → PCM3NI45.js} +4 -4
- package/lib/chunks/{B5R3NVU5.js → PHUZ23OM.js} +2 -2
- package/lib/index.js +12 -18
- package/package.json +1 -1
package/THIRD_PARTY_NOTICES
CHANGED
|
@@ -650,8 +650,8 @@ Packages:
|
|
|
650
650
|
@redocly/config@0.22.0 — Copyright 2024 Redocly Inc.
|
|
651
651
|
@redocly/config@0.49.0 — Copyright 2024 Redocly Inc.
|
|
652
652
|
@redocly/openapi-core@1.34.15
|
|
653
|
-
@redocly/openapi-core@2.
|
|
654
|
-
@redocly/respect-core@2.
|
|
653
|
+
@redocly/openapi-core@2.34.0
|
|
654
|
+
@redocly/respect-core@2.34.0
|
|
655
655
|
agent-base@7.1.4 — Copyright (c) 2013 Nathan Rajlich <nathan@tootallnate.net>
|
|
656
656
|
ajv-formats@3.0.1 — Copyright (c) 2020 Evgeny Poberezkin
|
|
657
657
|
ajv@8.18.0 — Copyright (c) 2015-2021 Evgeny Poberezkin
|
|
@@ -4,7 +4,7 @@ const require = __createRequire(import.meta.url);
|
|
|
4
4
|
// package.json
|
|
5
5
|
var package_default = {
|
|
6
6
|
name: "@redocly/cli",
|
|
7
|
-
version: "0.0.0-snapshot.
|
|
7
|
+
version: "0.0.0-snapshot.1782145354",
|
|
8
8
|
description: "",
|
|
9
9
|
license: "MIT",
|
|
10
10
|
bin: {
|
|
@@ -49,8 +49,8 @@ var package_default = {
|
|
|
49
49
|
"@opentelemetry/sdk-trace-node": "2.8.0",
|
|
50
50
|
"@opentelemetry/semantic-conventions": "1.41.1",
|
|
51
51
|
"@redocly/cli-otel": "0.3.1",
|
|
52
|
-
"@redocly/openapi-core": "2.
|
|
53
|
-
"@redocly/respect-core": "2.
|
|
52
|
+
"@redocly/openapi-core": "2.34.0",
|
|
53
|
+
"@redocly/respect-core": "2.34.0",
|
|
54
54
|
"@types/cookie": "0.6.0",
|
|
55
55
|
"@types/har-format": "^1.2.16",
|
|
56
56
|
"@types/react": "^17.0.0 || ^18.2.21 || ^19.2.16",
|
|
@@ -5,15 +5,15 @@ import {
|
|
|
5
5
|
} from "./Y6DTFCLS.js";
|
|
6
6
|
import {
|
|
7
7
|
require_dist
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./C4SG2WPV.js";
|
|
9
9
|
import {
|
|
10
10
|
version
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./6NT6X35T.js";
|
|
12
12
|
import {
|
|
13
13
|
blue,
|
|
14
14
|
green,
|
|
15
15
|
logger
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./GSHKQMMA.js";
|
|
17
17
|
import {
|
|
18
18
|
__commonJS,
|
|
19
19
|
__require,
|
|
@@ -32199,6 +32199,11 @@ var BooleanParameterPrefixes2 = (options2) => {
|
|
|
32199
32199
|
};
|
|
32200
32200
|
};
|
|
32201
32201
|
|
|
32202
|
+
// node_modules/@redocly/openapi-core/lib/utils/is-supported-extension.js
|
|
32203
|
+
function isSupportedExtension(filename) {
|
|
32204
|
+
return filename.endsWith(".yaml") || filename.endsWith(".yml") || filename.endsWith(".json");
|
|
32205
|
+
}
|
|
32206
|
+
|
|
32202
32207
|
// node_modules/@redocly/openapi-core/lib/rules/oas3/component-name-unique.js
|
|
32203
32208
|
var TYPE_NAME_SCHEMA = "Schema";
|
|
32204
32209
|
var TYPE_NAME_PARAMETER = "Parameter";
|
|
@@ -32293,7 +32298,7 @@ ${definitions}`,
|
|
|
32293
32298
|
return rule;
|
|
32294
32299
|
function getComponentNameFromAbsoluteLocation(absoluteLocation) {
|
|
32295
32300
|
const componentName = absoluteLocation.split("/").slice(-1)[0];
|
|
32296
|
-
if (
|
|
32301
|
+
if (isSupportedExtension(componentName)) {
|
|
32297
32302
|
return componentName.slice(0, componentName.lastIndexOf("."));
|
|
32298
32303
|
}
|
|
32299
32304
|
return componentName;
|
|
@@ -34998,8 +35003,7 @@ var BaseResolver = class {
|
|
|
34998
35003
|
}
|
|
34999
35004
|
}
|
|
35000
35005
|
parseDocument(source, isRoot = false) {
|
|
35001
|
-
|
|
35002
|
-
if (![".json", ".json", ".yml", ".yaml"].includes(ext) && !source.mimeType?.match(/(json|yaml|openapi)/) && !isRoot) {
|
|
35006
|
+
if (!isSupportedExtension(source.absoluteRef) && !source.mimeType?.match(/(json|yaml|openapi)/) && !isRoot) {
|
|
35003
35007
|
return { source, parsed: source.body };
|
|
35004
35008
|
}
|
|
35005
35009
|
try {
|
|
@@ -37501,6 +37505,7 @@ export {
|
|
|
37501
37505
|
colorette_exports,
|
|
37502
37506
|
logger,
|
|
37503
37507
|
YamlParseError,
|
|
37508
|
+
isSupportedExtension,
|
|
37504
37509
|
ResolveError,
|
|
37505
37510
|
BaseResolver,
|
|
37506
37511
|
resolveDocument,
|
|
@@ -2,11 +2,11 @@ import { createRequire as __createRequire } from 'node:module';
|
|
|
2
2
|
const require = __createRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
RedoclyOAuthClient
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./EMH4R3WD.js";
|
|
6
6
|
import "./Y6DTFCLS.js";
|
|
7
|
-
import "./
|
|
8
|
-
import "./
|
|
9
|
-
import "./
|
|
7
|
+
import "./C4SG2WPV.js";
|
|
8
|
+
import "./6NT6X35T.js";
|
|
9
|
+
import "./GSHKQMMA.js";
|
|
10
10
|
import "./5ILQMFXK.js";
|
|
11
11
|
export {
|
|
12
12
|
RedoclyOAuthClient
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
exitWithError,
|
|
5
5
|
getExecutionTime,
|
|
6
6
|
getFallbackApisOrExit
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./GGA7PAQ6.js";
|
|
8
8
|
import {
|
|
9
9
|
require_dist
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./C4SG2WPV.js";
|
|
11
11
|
import {
|
|
12
12
|
redocVersion
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./6NT6X35T.js";
|
|
14
14
|
import {
|
|
15
15
|
require_json_pointer,
|
|
16
16
|
require_openapi_sampler
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
require_fast_deep_equal,
|
|
22
22
|
require_json_schema_traverse,
|
|
23
23
|
require_pluralize
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./GSHKQMMA.js";
|
|
25
25
|
import {
|
|
26
26
|
__commonJS,
|
|
27
27
|
__esm,
|
package/lib/index.js
CHANGED
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
saveBundle,
|
|
31
31
|
sortTopLevelKeys,
|
|
32
32
|
writeToFileByExtension
|
|
33
|
-
} from "./chunks/
|
|
33
|
+
} from "./chunks/GGA7PAQ6.js";
|
|
34
34
|
import {
|
|
35
35
|
RedoclyOAuthClient,
|
|
36
36
|
ReuniteApi,
|
|
@@ -41,23 +41,23 @@ import {
|
|
|
41
41
|
getReuniteUrl,
|
|
42
42
|
require_undici,
|
|
43
43
|
shouldBypassProxy
|
|
44
|
-
} from "./chunks/
|
|
44
|
+
} from "./chunks/EMH4R3WD.js";
|
|
45
45
|
import {
|
|
46
46
|
ANONYMOUS_ID_CACHE_FILE,
|
|
47
47
|
DEFAULT_FETCH_TIMEOUT,
|
|
48
48
|
OTEL_URL
|
|
49
49
|
} from "./chunks/Y6DTFCLS.js";
|
|
50
|
-
import "./chunks/
|
|
50
|
+
import "./chunks/C4SG2WPV.js";
|
|
51
51
|
import {
|
|
52
52
|
engines,
|
|
53
53
|
name,
|
|
54
54
|
version
|
|
55
|
-
} from "./chunks/
|
|
55
|
+
} from "./chunks/6NT6X35T.js";
|
|
56
56
|
import {
|
|
57
57
|
RESET_ESCAPE_CODE,
|
|
58
58
|
calculateTotals,
|
|
59
59
|
conditionallyMaskSecrets
|
|
60
|
-
} from "./chunks/
|
|
60
|
+
} from "./chunks/AIO2RJZJ.js";
|
|
61
61
|
import "./chunks/VXIQEZPR.js";
|
|
62
62
|
import {
|
|
63
63
|
BaseResolver,
|
|
@@ -89,6 +89,7 @@ import {
|
|
|
89
89
|
isPlainObject,
|
|
90
90
|
isRef,
|
|
91
91
|
isString,
|
|
92
|
+
isSupportedExtension,
|
|
92
93
|
isTruthy,
|
|
93
94
|
keysOf,
|
|
94
95
|
lintDocument,
|
|
@@ -108,7 +109,7 @@ import {
|
|
|
108
109
|
white,
|
|
109
110
|
xmlEscape,
|
|
110
111
|
yellow
|
|
111
|
-
} from "./chunks/
|
|
112
|
+
} from "./chunks/GSHKQMMA.js";
|
|
112
113
|
import {
|
|
113
114
|
__commonJS,
|
|
114
115
|
__require,
|
|
@@ -7638,7 +7639,7 @@ async function handleGenerateArazzo({
|
|
|
7638
7639
|
config: config3
|
|
7639
7640
|
};
|
|
7640
7641
|
try {
|
|
7641
|
-
const { generate } = await import("./chunks/
|
|
7642
|
+
const { generate } = await import("./chunks/PHUZ23OM.js");
|
|
7642
7643
|
logger.info(gray("\n Generating Arazzo description... \n"));
|
|
7643
7644
|
const generatedArazzo = await generate(options);
|
|
7644
7645
|
writeFileSync2(outputFile, stringifyYaml(generatedArazzo));
|
|
@@ -9114,7 +9115,7 @@ async function handleRespect({
|
|
|
9114
9115
|
let mtlsCerts;
|
|
9115
9116
|
let harLogs;
|
|
9116
9117
|
try {
|
|
9117
|
-
const { run, conditionallyMaskSecrets: conditionallyMaskSecrets2 } = await import("./chunks/
|
|
9118
|
+
const { run, conditionallyMaskSecrets: conditionallyMaskSecrets2 } = await import("./chunks/PHUZ23OM.js");
|
|
9118
9119
|
const workingDir = config3.configPath ? dirname4(config3.configPath) : process.cwd();
|
|
9119
9120
|
if (argv.mtls) {
|
|
9120
9121
|
mtlsCerts = resolveMtlsCertificates(argv.mtls, workingDir);
|
|
@@ -11373,13 +11374,6 @@ function assertWithinDir(baseDir, targetPath, subject) {
|
|
|
11373
11374
|
// src/commands/split/utils/traverse-directory-deep.ts
|
|
11374
11375
|
import * as fs3 from "node:fs";
|
|
11375
11376
|
import * as path15 from "node:path";
|
|
11376
|
-
|
|
11377
|
-
// src/commands/split/utils/is-supported-extension.ts
|
|
11378
|
-
function isSupportedExtension(filename) {
|
|
11379
|
-
return filename.endsWith(".yaml") || filename.endsWith(".yml") || filename.endsWith(".json");
|
|
11380
|
-
}
|
|
11381
|
-
|
|
11382
|
-
// src/commands/split/utils/traverse-directory-deep.ts
|
|
11383
11377
|
function traverseDirectoryDeep(directory, callback, componentsFiles) {
|
|
11384
11378
|
if (!fs3.existsSync(directory) || !fs3.statSync(directory).isDirectory()) return;
|
|
11385
11379
|
const files = fs3.readdirSync(directory);
|
|
@@ -12641,7 +12635,7 @@ async function sendTelemetry({
|
|
|
12641
12635
|
$0: _,
|
|
12642
12636
|
...args
|
|
12643
12637
|
} = argv;
|
|
12644
|
-
const { RedoclyOAuthClient: RedoclyOAuthClient2 } = await import("./chunks/
|
|
12638
|
+
const { RedoclyOAuthClient: RedoclyOAuthClient2 } = await import("./chunks/KQLP3V5K.js");
|
|
12645
12639
|
const oauthClient = new RedoclyOAuthClient2();
|
|
12646
12640
|
const reuniteUrl = getReuniteUrl(config3, args.residency);
|
|
12647
12641
|
const logged_in = await oauthClient.isAuthorized(reuniteUrl);
|
|
@@ -12688,7 +12682,7 @@ async function sendTelemetry({
|
|
|
12688
12682
|
category: "product",
|
|
12689
12683
|
data: eventData
|
|
12690
12684
|
});
|
|
12691
|
-
const { otelTelemetry } = await import("./chunks/
|
|
12685
|
+
const { otelTelemetry } = await import("./chunks/K5JRO4WH.js");
|
|
12692
12686
|
otelTelemetry.send(cloudEvent);
|
|
12693
12687
|
} catch (err) {
|
|
12694
12688
|
}
|
|
@@ -13518,7 +13512,7 @@ yargs_default(hideBin(process.argv)).version("version", "Show version number.",
|
|
|
13518
13512
|
return true;
|
|
13519
13513
|
}),
|
|
13520
13514
|
async (argv) => {
|
|
13521
|
-
const { handlerBuildCommand } = await import("./chunks/
|
|
13515
|
+
const { handlerBuildCommand } = await import("./chunks/PCM3NI45.js");
|
|
13522
13516
|
commandWrapper(handlerBuildCommand)(argv);
|
|
13523
13517
|
}
|
|
13524
13518
|
).command(
|