@redocly/cli 0.0.0-snapshot.1785230554 → 0.0.0-snapshot.1785244667
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/lib/chunks/{MVYT2TYI.js → 6LUUJ5LR.js} +1 -1
- package/lib/chunks/{ZCF2YWSB.js → HFIKZEXG.js} +3 -3
- package/lib/chunks/{QCELG3VF.js → L5HQXVA6.js} +1 -1
- package/lib/chunks/{RMTDGHBP.js → LZNQHR3A.js} +17 -5
- package/lib/chunks/{HV6PGCEU.js → NSPKCBBA.js} +2 -2
- package/lib/chunks/{OX5JLHET.js → OFNDHNJR.js} +2 -2
- package/lib/chunks/{PAZIZVGW.js → PU67EGEM.js} +6 -2
- package/lib/chunks/{PALJTNKL.js → Q7LC24EZ.js} +2 -2
- package/lib/chunks/{R3N3E2X6.js → RMOZ27PP.js} +3 -3
- package/lib/chunks/{N55G56UJ.js → SEUM4EAD.js} +1 -1
- package/lib/chunks/{OEBTCJXO.js → Y7LKQTQ4.js} +1 -1
- package/lib/index.js +9 -8
- package/package.json +1 -1
|
@@ -2,17 +2,17 @@ import { createRequire as __createRequire } from 'node:module';
|
|
|
2
2
|
const require = __createRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
selectTrafficParser
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./Y7LKQTQ4.js";
|
|
6
6
|
import {
|
|
7
7
|
ValidationSession,
|
|
8
8
|
loadOpenApiIndex,
|
|
9
9
|
parseCsv,
|
|
10
10
|
renderReport
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./LZNQHR3A.js";
|
|
12
12
|
import {
|
|
13
13
|
listFilesRecursively,
|
|
14
14
|
normalizeFsPath
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./PU67EGEM.js";
|
|
16
16
|
import {
|
|
17
17
|
AbortFlowError,
|
|
18
18
|
exitWithError
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
resolvePathForServer,
|
|
14
14
|
shouldIgnoreHeaderAsUndocumented,
|
|
15
15
|
splitSetCookieHeader
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./PU67EGEM.js";
|
|
17
17
|
import {
|
|
18
18
|
BaseResolver,
|
|
19
19
|
blue,
|
|
@@ -1751,6 +1751,7 @@ function relaxRequiredForTarget(schema, target, ancestors = /* @__PURE__ */ new
|
|
|
1751
1751
|
}
|
|
1752
1752
|
var SchemaValidator = class {
|
|
1753
1753
|
ajv;
|
|
1754
|
+
fallbackAjv;
|
|
1754
1755
|
objectSchemaCaches = {
|
|
1755
1756
|
none: /* @__PURE__ */ new WeakMap(),
|
|
1756
1757
|
request: /* @__PURE__ */ new WeakMap(),
|
|
@@ -1758,10 +1759,11 @@ var SchemaValidator = class {
|
|
|
1758
1759
|
};
|
|
1759
1760
|
scalarSchemaCache = /* @__PURE__ */ new Map();
|
|
1760
1761
|
constructor(options) {
|
|
1761
|
-
|
|
1762
|
+
const ajvOptions = {
|
|
1762
1763
|
strict: false,
|
|
1763
1764
|
allErrors: true,
|
|
1764
1765
|
allowUnionTypes: true,
|
|
1766
|
+
discriminator: true,
|
|
1765
1767
|
coerceTypes: options?.coerceTypes ? "array" : false,
|
|
1766
1768
|
validateFormats: true,
|
|
1767
1769
|
verbose: true,
|
|
@@ -1770,8 +1772,11 @@ var SchemaValidator = class {
|
|
|
1770
1772
|
// Treat it as a no-op format to avoid noisy unknown-format warnings.
|
|
1771
1773
|
enum: true
|
|
1772
1774
|
}
|
|
1773
|
-
}
|
|
1775
|
+
};
|
|
1776
|
+
this.ajv = new AjvConstructor(ajvOptions);
|
|
1777
|
+
this.fallbackAjv = new AjvConstructor({ ...ajvOptions, discriminator: false });
|
|
1774
1778
|
applyFormats(this.ajv);
|
|
1779
|
+
applyFormats(this.fallbackAjv);
|
|
1775
1780
|
}
|
|
1776
1781
|
validate(schema, value, target) {
|
|
1777
1782
|
if (schema === void 0) {
|
|
@@ -1802,7 +1807,7 @@ var SchemaValidator = class {
|
|
|
1802
1807
|
return cached2;
|
|
1803
1808
|
}
|
|
1804
1809
|
const effectiveSchema = target ? relaxRequiredForTarget(schema, target) : schema;
|
|
1805
|
-
const compiled2 = this.
|
|
1810
|
+
const compiled2 = this.compileSchema(effectiveSchema);
|
|
1806
1811
|
cache.set(schema, compiled2);
|
|
1807
1812
|
return compiled2;
|
|
1808
1813
|
}
|
|
@@ -1811,10 +1816,17 @@ var SchemaValidator = class {
|
|
|
1811
1816
|
if (cached) {
|
|
1812
1817
|
return cached;
|
|
1813
1818
|
}
|
|
1814
|
-
const compiled = this.
|
|
1819
|
+
const compiled = this.compileSchema(schema);
|
|
1815
1820
|
this.scalarSchemaCache.set(cacheKey, compiled);
|
|
1816
1821
|
return compiled;
|
|
1817
1822
|
}
|
|
1823
|
+
compileSchema(schema) {
|
|
1824
|
+
try {
|
|
1825
|
+
return this.ajv.compile(schema);
|
|
1826
|
+
} catch {
|
|
1827
|
+
return this.fallbackAjv.compile(schema);
|
|
1828
|
+
}
|
|
1829
|
+
}
|
|
1818
1830
|
};
|
|
1819
1831
|
|
|
1820
1832
|
// src/commands/drift/engine/validation-session.ts
|
|
@@ -2,10 +2,10 @@ 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 "./6LUUJ5LR.js";
|
|
6
6
|
import "./Y6DTFCLS.js";
|
|
7
7
|
import "./4FB5ZIPP.js";
|
|
8
|
-
import "./
|
|
8
|
+
import "./RMOZ27PP.js";
|
|
9
9
|
import "./XB6C62FW.js";
|
|
10
10
|
import "./UUU33DK3.js";
|
|
11
11
|
import "./Z3EJWJEX.js";
|
|
@@ -2,7 +2,7 @@ import { createRequire as __createRequire } from 'node:module';
|
|
|
2
2
|
const require = __createRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
selectTrafficParser
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./Y7LKQTQ4.js";
|
|
6
6
|
import {
|
|
7
7
|
getPathWithoutTrailingSlash,
|
|
8
8
|
isJsonMime,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
normalizeFsPath,
|
|
13
13
|
normalizeServerPrefix,
|
|
14
14
|
resolvePathForServer
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./PU67EGEM.js";
|
|
16
16
|
import {
|
|
17
17
|
OPENAPI3_METHOD_NAMES,
|
|
18
18
|
Spinner
|
|
@@ -121,11 +121,12 @@ var IGNORED_UNDOCUMENTED_HEADERS = /* @__PURE__ */ new Set([
|
|
|
121
121
|
"upgrade-insecure-requests",
|
|
122
122
|
"user-agent",
|
|
123
123
|
"via",
|
|
124
|
-
"x-amzn-trace-id",
|
|
125
124
|
"x-client-trace-id",
|
|
126
125
|
"x-cloud-trace-context",
|
|
127
126
|
"x-correlation-id",
|
|
128
127
|
"x-http-method-override",
|
|
128
|
+
"x-hub-signature",
|
|
129
|
+
"x-hub-signature-256",
|
|
129
130
|
"x-method-override",
|
|
130
131
|
"x-real-ip",
|
|
131
132
|
"x-request-id",
|
|
@@ -138,9 +139,12 @@ var IGNORED_UNDOCUMENTED_HEADER_PREFIXES = [
|
|
|
138
139
|
"cf-",
|
|
139
140
|
"sec-ch-",
|
|
140
141
|
"sec-fetch-",
|
|
142
|
+
"x-amz-",
|
|
143
|
+
"x-amzn-",
|
|
141
144
|
"x-b3-",
|
|
142
145
|
"x-envoy-",
|
|
143
|
-
"x-forwarded-"
|
|
146
|
+
"x-forwarded-",
|
|
147
|
+
"x-github-"
|
|
144
148
|
];
|
|
145
149
|
var SET_COOKIE_SEPARATOR = "\n";
|
|
146
150
|
function splitSetCookieHeader(value) {
|
|
@@ -5,12 +5,12 @@ import {
|
|
|
5
5
|
loadOpenApiIndex,
|
|
6
6
|
parseCsv,
|
|
7
7
|
renderReport
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./LZNQHR3A.js";
|
|
9
9
|
import {
|
|
10
10
|
createNormalizedExchange,
|
|
11
11
|
isJsonMime,
|
|
12
12
|
normalizeFsPath
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./PU67EGEM.js";
|
|
14
14
|
import {
|
|
15
15
|
AbortFlowError,
|
|
16
16
|
exitWithError
|
|
@@ -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.1785244667",
|
|
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.4",
|
|
52
|
-
"@redocly/openapi-core": "0.0.0-snapshot.
|
|
53
|
-
"@redocly/respect-core": "0.0.0-snapshot.
|
|
52
|
+
"@redocly/openapi-core": "0.0.0-snapshot.1785244667",
|
|
53
|
+
"@redocly/respect-core": "0.0.0-snapshot.1785244667",
|
|
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",
|
package/lib/index.js
CHANGED
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
getProxyUrl,
|
|
48
48
|
getReuniteUrl,
|
|
49
49
|
shouldBypassProxy
|
|
50
|
-
} from "./chunks/
|
|
50
|
+
} from "./chunks/6LUUJ5LR.js";
|
|
51
51
|
import {
|
|
52
52
|
ANONYMOUS_ID_CACHE_FILE,
|
|
53
53
|
DEFAULT_FETCH_TIMEOUT,
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
engines,
|
|
59
59
|
name,
|
|
60
60
|
version
|
|
61
|
-
} from "./chunks/
|
|
61
|
+
} from "./chunks/RMOZ27PP.js";
|
|
62
62
|
import {
|
|
63
63
|
require_undici
|
|
64
64
|
} from "./chunks/XB6C62FW.js";
|
|
@@ -12643,7 +12643,7 @@ async function sendTelemetry({
|
|
|
12643
12643
|
$0: _,
|
|
12644
12644
|
...args
|
|
12645
12645
|
} = argv;
|
|
12646
|
-
const { RedoclyOAuthClient: RedoclyOAuthClient2 } = await import("./chunks/
|
|
12646
|
+
const { RedoclyOAuthClient: RedoclyOAuthClient2 } = await import("./chunks/NSPKCBBA.js");
|
|
12647
12647
|
const oauthClient = new RedoclyOAuthClient2();
|
|
12648
12648
|
const reuniteUrl = getReuniteUrl(config3, args.residency);
|
|
12649
12649
|
const logged_in = await oauthClient.isAuthorized(reuniteUrl);
|
|
@@ -12682,6 +12682,7 @@ async function sendTelemetry({
|
|
|
12682
12682
|
type: "com.redocly.command.ran",
|
|
12683
12683
|
source: "urn:redocly:cli",
|
|
12684
12684
|
origin: "redocly-cli",
|
|
12685
|
+
env: "production",
|
|
12685
12686
|
osPlatform: os.platform(),
|
|
12686
12687
|
actor: {
|
|
12687
12688
|
id: anonymous_id,
|
|
@@ -12691,7 +12692,7 @@ async function sendTelemetry({
|
|
|
12691
12692
|
category: "product",
|
|
12692
12693
|
data: eventData
|
|
12693
12694
|
});
|
|
12694
|
-
const { otelTelemetry } = await import("./chunks/
|
|
12695
|
+
const { otelTelemetry } = await import("./chunks/L5HQXVA6.js");
|
|
12695
12696
|
otelTelemetry.send(cloudEvent);
|
|
12696
12697
|
} catch (err) {
|
|
12697
12698
|
}
|
|
@@ -13525,7 +13526,7 @@ yargs_default(hideBin(process.argv)).version("version", "Show version number.",
|
|
|
13525
13526
|
return true;
|
|
13526
13527
|
}),
|
|
13527
13528
|
async (argv) => {
|
|
13528
|
-
const { handlerBuildCommand } = await import("./chunks/
|
|
13529
|
+
const { handlerBuildCommand } = await import("./chunks/SEUM4EAD.js");
|
|
13529
13530
|
commandWrapper(handlerBuildCommand)(argv);
|
|
13530
13531
|
}
|
|
13531
13532
|
).command(
|
|
@@ -13746,7 +13747,7 @@ yargs_default(hideBin(process.argv)).version("version", "Show version number.",
|
|
|
13746
13747
|
config: { describe: "Path to the config file.", type: "string" }
|
|
13747
13748
|
}),
|
|
13748
13749
|
async (argv) => {
|
|
13749
|
-
const { handleGenerateSpec } = await import("./chunks/
|
|
13750
|
+
const { handleGenerateSpec } = await import("./chunks/OFNDHNJR.js");
|
|
13750
13751
|
commandWrapper(handleGenerateSpec)(argv);
|
|
13751
13752
|
}
|
|
13752
13753
|
).command(
|
|
@@ -13861,7 +13862,7 @@ yargs_default(hideBin(process.argv)).version("version", "Show version number.",
|
|
|
13861
13862
|
}
|
|
13862
13863
|
}),
|
|
13863
13864
|
async (argv) => {
|
|
13864
|
-
const { handleDrift } = await import("./chunks/
|
|
13865
|
+
const { handleDrift } = await import("./chunks/HFIKZEXG.js");
|
|
13865
13866
|
commandWrapper(handleDrift)(argv);
|
|
13866
13867
|
}
|
|
13867
13868
|
).command(
|
|
@@ -13929,7 +13930,7 @@ yargs_default(hideBin(process.argv)).version("version", "Show version number.",
|
|
|
13929
13930
|
}
|
|
13930
13931
|
}),
|
|
13931
13932
|
async (argv) => {
|
|
13932
|
-
const { handleProxy } = await import("./chunks/
|
|
13933
|
+
const { handleProxy } = await import("./chunks/Q7LC24EZ.js");
|
|
13933
13934
|
commandWrapper(handleProxy)(argv);
|
|
13934
13935
|
}
|
|
13935
13936
|
).completion("completion", "Generate autocomplete script for `redocly` command.").demandCommand(1).middleware([notifyUpdateCliVersion]).strict().argv;
|