@redocly/cli 2.40.0 → 2.41.0
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 +4 -4
- package/lib/chunks/{BFQ3EROY.js → 5YSNZVUA.js} +1 -1
- package/lib/chunks/{RD4BYLLT.js → 6ABF7ZRJ.js} +17 -1
- package/lib/chunks/{73MCRGNI.js → 7H6CC6CT.js} +89 -23
- package/lib/chunks/{4BR7G6JO.js → DT4UM7U4.js} +1 -1
- package/lib/chunks/{TYUOO44G.js → ER45DAHG.js} +1 -1
- package/lib/chunks/{JBIFNX5C.js → GBUMU6BX.js} +2 -2
- package/lib/chunks/{3E6EHT7M.js → GOFLD5MJ.js} +4 -4
- package/lib/chunks/{4GKD2B4N.js → HQDT5XFP.js} +5 -5
- package/lib/chunks/{OYO2D2IL.js → LCWGF7G6.js} +1 -1
- package/lib/chunks/{NRZEGU6G.js → PFPGSTSG.js} +10 -8
- package/lib/chunks/{PVILCIEK.js → Q3KTKRJH.js} +2 -2
- package/lib/chunks/{QCV6V37L.js → SZLWDHZK.js} +3 -3
- package/lib/chunks/{ILH7YVRM.js → VMHXZFTB.js} +2 -2
- package/lib/chunks/{325TP2UK.js → XDNYWH7V.js} +2 -2
- package/lib/chunks/{HT6ZGKQQ.js → YK6T7IHG.js} +171 -5
- package/lib/chunks/{6DYZ77KC.js → Z5H4OEIW.js} +3 -3
- package/lib/chunks/{V2UTD4F3.js → ZBZADNJT.js} +2 -2
- package/lib/index.js +15 -15
- package/package.json +1 -1
package/THIRD_PARTY_NOTICES
CHANGED
|
@@ -4,7 +4,7 @@ Third-party software bundled in @redocly/cli
|
|
|
4
4
|
(MPL-2.0 OR Apache-2.0)
|
|
5
5
|
|
|
6
6
|
Packages:
|
|
7
|
-
dompurify@3.4.
|
|
7
|
+
dompurify@3.4.12 — copyright owner or entity authorized by
|
|
8
8
|
|
|
9
9
|
License text:
|
|
10
10
|
|
|
@@ -573,7 +573,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
573
573
|
BSD-3-Clause
|
|
574
574
|
|
|
575
575
|
Packages:
|
|
576
|
-
fast-uri@3.1.
|
|
576
|
+
fast-uri@3.1.4 — Copyright (c) 2011-2021, Gary Court until https://github.com/garycourt/uri-js/commit/a1acf730b4bba3f1097c9f52e7d9d3aba8cdcaae
|
|
577
577
|
source-map@0.6.1 — Copyright (c) 2009-2011, Mozilla Foundation and contributors
|
|
578
578
|
|
|
579
579
|
License text:
|
|
@@ -649,13 +649,13 @@ Packages:
|
|
|
649
649
|
@redocly/cli-otel@0.3.4 — Copyright 2025 Redocly Inc, all rights reserved.
|
|
650
650
|
@redocly/config@0.22.0 — Copyright 2024 Redocly Inc.
|
|
651
651
|
@redocly/config@0.52.0 — Copyright 2024 Redocly Inc.
|
|
652
|
-
@redocly/openapi-core@1.34.
|
|
652
|
+
@redocly/openapi-core@1.34.17
|
|
653
653
|
agent-base@7.1.4 — Copyright (c) 2013 Nathan Rajlich <nathan@tootallnate.net>
|
|
654
654
|
ajv-formats@3.0.1 — Copyright (c) 2020 Evgeny Poberezkin
|
|
655
655
|
ajv@8.20.0 — Copyright (c) 2015-2021 Evgeny Poberezkin
|
|
656
656
|
ansi-styles@4.3.0
|
|
657
657
|
balanced-match@1.0.2 — Copyright (c) 2013 Julian Gruber <julian@juliangruber.com>
|
|
658
|
-
brace-expansion@2.1.
|
|
658
|
+
brace-expansion@2.1.2 — Copyright (c) 2013 Julian Gruber <julian@juliangruber.com>
|
|
659
659
|
call-me-maybe@1.0.2 — Copyright (c) 2015 Eric McCarthy
|
|
660
660
|
chalk@4.1.2
|
|
661
661
|
classnames@2.5.1 — Copyright (c) 2018 Jed Watson
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
lint,
|
|
18
18
|
pluralize,
|
|
19
19
|
require__
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./YK6T7IHG.js";
|
|
21
21
|
import {
|
|
22
22
|
__commonJS,
|
|
23
23
|
__toESM
|
|
@@ -17311,6 +17311,22 @@ async function runStep({ step, ctx, workflowId, retriesLeft, executedStepsCount
|
|
|
17311
17311
|
};
|
|
17312
17312
|
}
|
|
17313
17313
|
}
|
|
17314
|
+
const childWorkflowFailed = calculateTotals([stepWorkflowResult]).steps.failed > 0;
|
|
17315
|
+
if (childWorkflowFailed) {
|
|
17316
|
+
const result = await runActions(failureActionsToRun, "failure", executedStepsCount);
|
|
17317
|
+
if (result?.retriesLeft && result.retriesLeft > 0) {
|
|
17318
|
+
return result.stepResult;
|
|
17319
|
+
}
|
|
17320
|
+
if (result?.shouldEnd) {
|
|
17321
|
+
return { shouldEnd: true };
|
|
17322
|
+
}
|
|
17323
|
+
}
|
|
17324
|
+
if (successActionsToRun.length && !childWorkflowFailed) {
|
|
17325
|
+
const result = await runActions(successActionsToRun, "success", executedStepsCount);
|
|
17326
|
+
if (result?.shouldEnd) {
|
|
17327
|
+
return { shouldEnd: true };
|
|
17328
|
+
}
|
|
17329
|
+
}
|
|
17314
17330
|
return { shouldEnd: false };
|
|
17315
17331
|
}
|
|
17316
17332
|
ctx.executedSteps.push(step);
|
|
@@ -3,17 +3,17 @@ const require = __createRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
getExecutionTime,
|
|
5
5
|
getFallbackApisOrExit
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./XDNYWH7V.js";
|
|
7
7
|
import {
|
|
8
8
|
exitWithError
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./DT4UM7U4.js";
|
|
10
10
|
import {
|
|
11
11
|
require_dist
|
|
12
12
|
} from "./4FB5ZIPP.js";
|
|
13
13
|
import {
|
|
14
14
|
redocStandaloneSri,
|
|
15
15
|
redocVersion
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./Z5H4OEIW.js";
|
|
17
17
|
import {
|
|
18
18
|
require_json_pointer,
|
|
19
19
|
require_openapi_sampler
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
require_fast_deep_equal,
|
|
26
26
|
require_json_schema_traverse,
|
|
27
27
|
require_pluralize
|
|
28
|
-
} from "./
|
|
28
|
+
} from "./YK6T7IHG.js";
|
|
29
29
|
import "./Z2I5YXYN.js";
|
|
30
30
|
import {
|
|
31
31
|
__commonJS,
|
|
@@ -23179,16 +23179,18 @@ var require_brace_expansion = __commonJS({
|
|
|
23179
23179
|
}
|
|
23180
23180
|
function expand(str, max, isTop) {
|
|
23181
23181
|
var expansions = [];
|
|
23182
|
-
|
|
23183
|
-
|
|
23184
|
-
|
|
23185
|
-
|
|
23186
|
-
|
|
23187
|
-
|
|
23188
|
-
|
|
23189
|
-
|
|
23182
|
+
for (; ; ) {
|
|
23183
|
+
const m = balanced("{", "}", str);
|
|
23184
|
+
if (!m) return [str];
|
|
23185
|
+
const pre = m.pre;
|
|
23186
|
+
if (/\$$/.test(m.pre)) {
|
|
23187
|
+
const post2 = m.post.length ? expand(m.post, max, false) : [""];
|
|
23188
|
+
for (let k2 = 0; k2 < post2.length && k2 < max; k2++) {
|
|
23189
|
+
const expansion2 = pre + "{" + m.body + "}" + post2[k2];
|
|
23190
|
+
expansions.push(expansion2);
|
|
23191
|
+
}
|
|
23192
|
+
return expansions;
|
|
23190
23193
|
}
|
|
23191
|
-
} else {
|
|
23192
23194
|
var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);
|
|
23193
23195
|
var isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);
|
|
23194
23196
|
var isSequence = isNumericSequence || isAlphaSequence;
|
|
@@ -23196,10 +23198,12 @@ var require_brace_expansion = __commonJS({
|
|
|
23196
23198
|
if (!isSequence && !isOptions) {
|
|
23197
23199
|
if (m.post.match(/,(?!,).*\}/)) {
|
|
23198
23200
|
str = m.pre + "{" + m.body + escClose + m.post;
|
|
23199
|
-
|
|
23201
|
+
isTop = true;
|
|
23202
|
+
continue;
|
|
23200
23203
|
}
|
|
23201
23204
|
return [str];
|
|
23202
23205
|
}
|
|
23206
|
+
const post = m.post.length ? expand(m.post, max, false) : [""];
|
|
23203
23207
|
var n;
|
|
23204
23208
|
if (isSequence) {
|
|
23205
23209
|
n = m.body.split(/\.\./);
|
|
@@ -23262,8 +23266,8 @@ var require_brace_expansion = __commonJS({
|
|
|
23262
23266
|
expansions.push(expansion);
|
|
23263
23267
|
}
|
|
23264
23268
|
}
|
|
23269
|
+
return expansions;
|
|
23265
23270
|
}
|
|
23266
|
-
return expansions;
|
|
23267
23271
|
}
|
|
23268
23272
|
}
|
|
23269
23273
|
});
|
|
@@ -50025,7 +50029,7 @@ var require_purify_cjs = __commonJS({
|
|
|
50025
50029
|
var mathMlDisallowed = freeze(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]);
|
|
50026
50030
|
var text = freeze(["#text"]);
|
|
50027
50031
|
var html = freeze(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "command", "commandfor", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns"]);
|
|
50028
|
-
var svg = freeze(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "mask-type", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]);
|
|
50032
|
+
var svg = freeze(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dominant-baseline", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "mask-type", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-orientation", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]);
|
|
50029
50033
|
var mathMl = freeze(["accent", "accentunder", "align", "bevelled", "close", "columnalign", "columnlines", "columnspacing", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lquote", "lspace", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]);
|
|
50030
50034
|
var xml = freeze(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]);
|
|
50031
50035
|
var MUSTACHE_EXPR = seal(/{{[\w\W]*|^[\w\W]*}}/g);
|
|
@@ -50111,7 +50115,7 @@ var require_purify_cjs = __commonJS({
|
|
|
50111
50115
|
function createDOMPurify() {
|
|
50112
50116
|
let window2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : getGlobal();
|
|
50113
50117
|
const DOMPurify = (root) => createDOMPurify(root);
|
|
50114
|
-
DOMPurify.version = "3.4.
|
|
50118
|
+
DOMPurify.version = "3.4.12";
|
|
50115
50119
|
DOMPurify.removed = [];
|
|
50116
50120
|
if (!window2 || !window2.document || window2.document.nodeType !== NODE_TYPE.document || !window2.Element) {
|
|
50117
50121
|
DOMPurify.isSupported = false;
|
|
@@ -50552,6 +50556,7 @@ var require_purify_cjs = __commonJS({
|
|
|
50552
50556
|
}
|
|
50553
50557
|
};
|
|
50554
50558
|
const _neutralizeRoot = function _neutralizeRoot2(root) {
|
|
50559
|
+
_neutralizeSubtree(root);
|
|
50555
50560
|
const childNodes = getChildNodes(root);
|
|
50556
50561
|
if (childNodes) {
|
|
50557
50562
|
const snapshot = [];
|
|
@@ -50639,6 +50644,42 @@ var require_purify_cjs = __commonJS({
|
|
|
50639
50644
|
}
|
|
50640
50645
|
}
|
|
50641
50646
|
};
|
|
50647
|
+
const _neutralizePatchLinkage = function _neutralizePatchLinkage2(root) {
|
|
50648
|
+
if (!SAFE_FOR_XML) {
|
|
50649
|
+
return;
|
|
50650
|
+
}
|
|
50651
|
+
const stack = [root];
|
|
50652
|
+
while (stack.length > 0) {
|
|
50653
|
+
const node = stack.pop();
|
|
50654
|
+
const nodeType = getNodeType ? getNodeType(node) : node.nodeType;
|
|
50655
|
+
if (nodeType === NODE_TYPE.processingInstruction || nodeType === NODE_TYPE.comment && regExpTest(COMMENT_MARKUP_PROBE, node.data)) {
|
|
50656
|
+
try {
|
|
50657
|
+
remove(node);
|
|
50658
|
+
} catch (_) {
|
|
50659
|
+
}
|
|
50660
|
+
continue;
|
|
50661
|
+
}
|
|
50662
|
+
if (nodeType === NODE_TYPE.element) {
|
|
50663
|
+
const element = node;
|
|
50664
|
+
const lcTag = transformCaseFunc(getNodeName ? getNodeName(node) : node.nodeName);
|
|
50665
|
+
try {
|
|
50666
|
+
if (element.hasAttribute && element.hasAttribute("patchsrc")) {
|
|
50667
|
+
element.removeAttribute("patchsrc");
|
|
50668
|
+
}
|
|
50669
|
+
if (element.hasAttribute && element.hasAttribute("for") && lcTag !== "label" && lcTag !== "output") {
|
|
50670
|
+
element.removeAttribute("for");
|
|
50671
|
+
}
|
|
50672
|
+
} catch (_) {
|
|
50673
|
+
}
|
|
50674
|
+
}
|
|
50675
|
+
const childNodes = getChildNodes(node);
|
|
50676
|
+
if (childNodes) {
|
|
50677
|
+
for (let i = childNodes.length - 1; i >= 0; --i) {
|
|
50678
|
+
stack.push(childNodes[i]);
|
|
50679
|
+
}
|
|
50680
|
+
}
|
|
50681
|
+
}
|
|
50682
|
+
};
|
|
50642
50683
|
const _initDocument = function _initDocument2(dirty) {
|
|
50643
50684
|
let doc = null;
|
|
50644
50685
|
let leadingWhitespace = null;
|
|
@@ -50812,8 +50853,11 @@ var require_purify_cjs = __commonJS({
|
|
|
50812
50853
|
_forceRemove(currentNode);
|
|
50813
50854
|
return true;
|
|
50814
50855
|
};
|
|
50815
|
-
const _sanitizeElements = function _sanitizeElements2(currentNode) {
|
|
50856
|
+
const _sanitizeElements = function _sanitizeElements2(currentNode, root) {
|
|
50816
50857
|
_executeHooks(hooks.beforeSanitizeElements, currentNode, null);
|
|
50858
|
+
if (currentNode !== root && getParentNode(currentNode) === null) {
|
|
50859
|
+
return true;
|
|
50860
|
+
}
|
|
50817
50861
|
if (_isClobbered(currentNode)) {
|
|
50818
50862
|
_forceRemove(currentNode);
|
|
50819
50863
|
return true;
|
|
@@ -50823,12 +50867,19 @@ var require_purify_cjs = __commonJS({
|
|
|
50823
50867
|
tagName,
|
|
50824
50868
|
allowedTags: ALLOWED_TAGS
|
|
50825
50869
|
});
|
|
50870
|
+
if (currentNode !== root && getParentNode(currentNode) === null) {
|
|
50871
|
+
return true;
|
|
50872
|
+
}
|
|
50826
50873
|
if (_isUnsafeNode(currentNode, tagName)) {
|
|
50827
50874
|
_forceRemove(currentNode);
|
|
50828
50875
|
return true;
|
|
50829
50876
|
}
|
|
50830
50877
|
if (FORBID_TAGS[tagName] || !(EXTRA_ELEMENT_HANDLING.tagCheck instanceof Function && EXTRA_ELEMENT_HANDLING.tagCheck(tagName)) && !ALLOWED_TAGS[tagName]) {
|
|
50831
|
-
|
|
50878
|
+
const removed = _sanitizeDisallowedNode(currentNode, tagName);
|
|
50879
|
+
if (removed === false) {
|
|
50880
|
+
_executeHooks(hooks.afterSanitizeElements, currentNode, null);
|
|
50881
|
+
}
|
|
50882
|
+
return removed;
|
|
50832
50883
|
}
|
|
50833
50884
|
const nt = getNodeType ? getNodeType(currentNode) : currentNode.nodeType;
|
|
50834
50885
|
if (nt === NODE_TYPE.element && !_checkValidNamespace(currentNode)) {
|
|
@@ -50855,6 +50906,12 @@ var require_purify_cjs = __commonJS({
|
|
|
50855
50906
|
if (FORBID_ATTR[lcName]) {
|
|
50856
50907
|
return false;
|
|
50857
50908
|
}
|
|
50909
|
+
if (SAFE_FOR_XML && lcName === "patchsrc") {
|
|
50910
|
+
return false;
|
|
50911
|
+
}
|
|
50912
|
+
if (SAFE_FOR_XML && lcName === "for" && lcTag !== "label" && lcTag !== "output") {
|
|
50913
|
+
return false;
|
|
50914
|
+
}
|
|
50858
50915
|
if (SANITIZE_DOM && (lcName === "id" || lcName === "name") && (value in document2 || value in formElement)) {
|
|
50859
50916
|
return false;
|
|
50860
50917
|
}
|
|
@@ -50985,7 +51042,7 @@ var require_purify_cjs = __commonJS({
|
|
|
50985
51042
|
_executeHooks(hooks.beforeSanitizeShadowDOM, fragment, null);
|
|
50986
51043
|
while (shadowNode = shadowIterator.nextNode()) {
|
|
50987
51044
|
_executeHooks(hooks.uponSanitizeShadowNode, shadowNode, null);
|
|
50988
|
-
_sanitizeElements(shadowNode);
|
|
51045
|
+
_sanitizeElements(shadowNode, fragment);
|
|
50989
51046
|
_sanitizeAttributes(shadowNode);
|
|
50990
51047
|
if (_isDocumentFragment(shadowNode.content)) {
|
|
50991
51048
|
_sanitizeShadowDOM2(shadowNode.content);
|
|
@@ -51084,14 +51141,17 @@ var require_purify_cjs = __commonJS({
|
|
|
51084
51141
|
DOMPurify.removed = [];
|
|
51085
51142
|
const inPlace = IN_PLACE && typeof dirty !== "string" && _isNode(dirty);
|
|
51086
51143
|
if (inPlace) {
|
|
51144
|
+
_neutralizePatchLinkage(dirty);
|
|
51087
51145
|
const nn = getNodeName ? getNodeName(dirty) : dirty.nodeName;
|
|
51088
51146
|
if (typeof nn === "string") {
|
|
51089
51147
|
const tagName = transformCaseFunc(nn);
|
|
51090
51148
|
if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {
|
|
51149
|
+
_neutralizeRoot(dirty);
|
|
51091
51150
|
throw typeErrorCreate("root node is forbidden and cannot be sanitized in-place");
|
|
51092
51151
|
}
|
|
51093
51152
|
}
|
|
51094
51153
|
if (_isClobbered(dirty)) {
|
|
51154
|
+
_neutralizeRoot(dirty);
|
|
51095
51155
|
throw typeErrorCreate("root node is clobbered and cannot be sanitized in-place");
|
|
51096
51156
|
}
|
|
51097
51157
|
try {
|
|
@@ -51124,10 +51184,11 @@ var require_purify_cjs = __commonJS({
|
|
|
51124
51184
|
if (body && FORCE_BODY) {
|
|
51125
51185
|
_forceRemove(body.firstChild);
|
|
51126
51186
|
}
|
|
51127
|
-
const
|
|
51187
|
+
const walkRoot = inPlace ? dirty : body;
|
|
51188
|
+
const nodeIterator = _createNodeIterator(walkRoot);
|
|
51128
51189
|
try {
|
|
51129
51190
|
while (currentNode = nodeIterator.nextNode()) {
|
|
51130
|
-
_sanitizeElements(currentNode);
|
|
51191
|
+
_sanitizeElements(currentNode, walkRoot);
|
|
51131
51192
|
_sanitizeAttributes(currentNode);
|
|
51132
51193
|
if (_isDocumentFragment(currentNode.content)) {
|
|
51133
51194
|
_sanitizeShadowDOM2(currentNode.content);
|
|
@@ -51136,6 +51197,11 @@ var require_purify_cjs = __commonJS({
|
|
|
51136
51197
|
} catch (error) {
|
|
51137
51198
|
if (inPlace) {
|
|
51138
51199
|
_neutralizeRoot(dirty);
|
|
51200
|
+
arrayForEach(DOMPurify.removed, (entry) => {
|
|
51201
|
+
if (entry.element) {
|
|
51202
|
+
_neutralizeSubtree(entry.element);
|
|
51203
|
+
}
|
|
51204
|
+
});
|
|
51139
51205
|
}
|
|
51140
51206
|
throw error;
|
|
51141
51207
|
}
|
|
@@ -92423,7 +92489,7 @@ perfect-scrollbar/dist/perfect-scrollbar.common.js:
|
|
|
92423
92489
|
*)
|
|
92424
92490
|
|
|
92425
92491
|
dompurify/dist/purify.cjs.js:
|
|
92426
|
-
(*! @license DOMPurify 3.4.
|
|
92492
|
+
(*! @license DOMPurify 3.4.12 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.12/LICENSE *)
|
|
92427
92493
|
|
|
92428
92494
|
react-dom/cjs/react-dom.production.js:
|
|
92429
92495
|
(**
|
|
@@ -2,7 +2,7 @@ import { createRequire as __createRequire } from 'node:module';
|
|
|
2
2
|
const require = __createRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
isPlainObject
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./YK6T7IHG.js";
|
|
6
6
|
|
|
7
7
|
// src/commands/drift/utils/files.ts
|
|
8
8
|
import { open, readdir, stat } from "node:fs/promises";
|
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
pickHeaderContentType,
|
|
11
11
|
readProbe,
|
|
12
12
|
streamNdjsonObjects
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./ER45DAHG.js";
|
|
14
14
|
import {
|
|
15
15
|
isPlainObject
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./YK6T7IHG.js";
|
|
17
17
|
|
|
18
18
|
// src/commands/drift/log-formats/har.ts
|
|
19
19
|
import path from "node:path";
|
|
@@ -5,23 +5,23 @@ import {
|
|
|
5
5
|
loadOpenApiIndex,
|
|
6
6
|
parseCsv,
|
|
7
7
|
renderReport
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./ZBZADNJT.js";
|
|
9
9
|
import {
|
|
10
10
|
createNormalizedExchange,
|
|
11
11
|
isJsonMime,
|
|
12
12
|
normalizeFsPath
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./ER45DAHG.js";
|
|
14
14
|
import {
|
|
15
15
|
AbortFlowError,
|
|
16
16
|
exitWithError
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./DT4UM7U4.js";
|
|
18
18
|
import {
|
|
19
19
|
require_undici
|
|
20
20
|
} from "./XB6C62FW.js";
|
|
21
21
|
import {
|
|
22
22
|
isPlainObject,
|
|
23
23
|
logger
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./YK6T7IHG.js";
|
|
25
25
|
import "./Z2I5YXYN.js";
|
|
26
26
|
import {
|
|
27
27
|
__toESM
|
|
@@ -2,24 +2,24 @@ 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 "./GBUMU6BX.js";
|
|
6
6
|
import {
|
|
7
7
|
ValidationSession,
|
|
8
8
|
loadOpenApiIndex,
|
|
9
9
|
parseCsv,
|
|
10
10
|
renderReport
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./ZBZADNJT.js";
|
|
12
12
|
import {
|
|
13
13
|
listFilesRecursively,
|
|
14
14
|
normalizeFsPath
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./ER45DAHG.js";
|
|
16
16
|
import {
|
|
17
17
|
AbortFlowError,
|
|
18
18
|
exitWithError
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./DT4UM7U4.js";
|
|
20
20
|
import {
|
|
21
21
|
logger
|
|
22
|
-
} from "./
|
|
22
|
+
} from "./YK6T7IHG.js";
|
|
23
23
|
import "./Z2I5YXYN.js";
|
|
24
24
|
import "./5ILQMFXK.js";
|
|
25
25
|
|
|
@@ -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 "./GBUMU6BX.js";
|
|
6
6
|
import {
|
|
7
7
|
getPathWithoutTrailingSlash,
|
|
8
8
|
isJsonMime,
|
|
@@ -12,14 +12,14 @@ import {
|
|
|
12
12
|
normalizeFsPath,
|
|
13
13
|
normalizeServerPrefix,
|
|
14
14
|
resolvePathForServer
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./ER45DAHG.js";
|
|
16
16
|
import {
|
|
17
17
|
OPENAPI3_METHOD_NAMES,
|
|
18
18
|
Spinner
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./LCWGF7G6.js";
|
|
20
20
|
import {
|
|
21
21
|
exitWithError
|
|
22
|
-
} from "./
|
|
22
|
+
} from "./DT4UM7U4.js";
|
|
23
23
|
import {
|
|
24
24
|
createConfig,
|
|
25
25
|
isPlainObject,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
parseYaml,
|
|
29
29
|
pluralize,
|
|
30
30
|
stringifyYaml
|
|
31
|
-
} from "./
|
|
31
|
+
} from "./YK6T7IHG.js";
|
|
32
32
|
import "./Z2I5YXYN.js";
|
|
33
33
|
import "./5ILQMFXK.js";
|
|
34
34
|
|
|
@@ -1032,16 +1032,18 @@ async function runCursor(request) {
|
|
|
1032
1032
|
if (request.model) {
|
|
1033
1033
|
args.push("--model", request.model);
|
|
1034
1034
|
}
|
|
1035
|
-
|
|
1035
|
+
const prompt = `${request.system}
|
|
1036
|
+
|
|
1037
|
+
${request.user}`;
|
|
1036
1038
|
let result;
|
|
1037
1039
|
try {
|
|
1038
|
-
result = await runCommand("cursor-agent", args,
|
|
1040
|
+
result = await runCommand("cursor-agent", args, prompt);
|
|
1039
1041
|
} catch (error) {
|
|
1040
1042
|
if (!(error instanceof CliNotFoundError)) {
|
|
1041
1043
|
throw error;
|
|
1042
1044
|
}
|
|
1043
1045
|
try {
|
|
1044
|
-
result = await runCommand("agent", args,
|
|
1046
|
+
result = await runCommand("agent", args, prompt);
|
|
1045
1047
|
} catch (fallbackError) {
|
|
1046
1048
|
if (fallbackError instanceof CliNotFoundError) {
|
|
1047
1049
|
throw new CliNotFoundError(
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
} from "./4FB5ZIPP.js";
|
|
9
9
|
import {
|
|
10
10
|
version
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./Z5H4OEIW.js";
|
|
12
12
|
import {
|
|
13
13
|
require_undici
|
|
14
14
|
} from "./XB6C62FW.js";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
blue,
|
|
17
17
|
green,
|
|
18
18
|
logger
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./YK6T7IHG.js";
|
|
20
20
|
import {
|
|
21
21
|
__toESM
|
|
22
22
|
} from "./5ILQMFXK.js";
|
|
@@ -2,13 +2,13 @@ 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 "./Q3KTKRJH.js";
|
|
6
6
|
import "./Y6DTFCLS.js";
|
|
7
7
|
import "./4FB5ZIPP.js";
|
|
8
|
-
import "./
|
|
8
|
+
import "./Z5H4OEIW.js";
|
|
9
9
|
import "./XB6C62FW.js";
|
|
10
10
|
import "./UUU33DK3.js";
|
|
11
|
-
import "./
|
|
11
|
+
import "./YK6T7IHG.js";
|
|
12
12
|
import "./Z2I5YXYN.js";
|
|
13
13
|
import "./5ILQMFXK.js";
|
|
14
14
|
export {
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
maskSecrets,
|
|
9
9
|
parseRuntimeExpression,
|
|
10
10
|
run
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./6ABF7ZRJ.js";
|
|
12
12
|
import "./VXIQEZPR.js";
|
|
13
13
|
import "./UUU33DK3.js";
|
|
14
|
-
import "./
|
|
14
|
+
import "./YK6T7IHG.js";
|
|
15
15
|
import "./Z2I5YXYN.js";
|
|
16
16
|
import "./5ILQMFXK.js";
|
|
17
17
|
export {
|
|
@@ -3,7 +3,7 @@ const require = __createRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
AbortFlowError,
|
|
5
5
|
exitWithError
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./DT4UM7U4.js";
|
|
7
7
|
import {
|
|
8
8
|
ConfigValidationError,
|
|
9
9
|
HandledError,
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
red,
|
|
28
28
|
stringifyYaml,
|
|
29
29
|
yellow
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./YK6T7IHG.js";
|
|
31
31
|
|
|
32
32
|
// src/commands/lint.ts
|
|
33
33
|
import { performance as performance3 } from "perf_hooks";
|
|
@@ -5907,6 +5907,7 @@ var require_fast_uri = __commonJS({
|
|
|
5907
5907
|
return uriTokens.join("");
|
|
5908
5908
|
}
|
|
5909
5909
|
var URI_PARSE = /^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;
|
|
5910
|
+
var AUTHORITY_PREFIX = /^(?:[^#/:?]+:)?\/\/([^/?#]*)/;
|
|
5910
5911
|
function getParseError(parsed, matches) {
|
|
5911
5912
|
if (matches[2] !== void 0 && parsed.path && parsed.path[0] !== "/") {
|
|
5912
5913
|
return 'URI path must start with "/" when authority is present.';
|
|
@@ -5936,6 +5937,11 @@ var require_fast_uri = __commonJS({
|
|
|
5936
5937
|
uri = "//" + uri;
|
|
5937
5938
|
}
|
|
5938
5939
|
}
|
|
5940
|
+
const authorityMatch = uri.match(AUTHORITY_PREFIX);
|
|
5941
|
+
if (authorityMatch !== null && authorityMatch[1].indexOf("\\") !== -1) {
|
|
5942
|
+
parsed.error = "URI authority must not contain a literal backslash.";
|
|
5943
|
+
malformedAuthorityOrPort = true;
|
|
5944
|
+
}
|
|
5939
5945
|
const matches = uri.match(URI_PARSE);
|
|
5940
5946
|
if (matches) {
|
|
5941
5947
|
parsed.scheme = matches[1];
|
|
@@ -5979,7 +5985,7 @@ var require_fast_uri = __commonJS({
|
|
|
5979
5985
|
if (!options2.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport)) {
|
|
5980
5986
|
if (parsed.host && (options2.domainHost || schemeHandler && schemeHandler.domainHost) && isIP === false && nonSimpleDomain(parsed.host)) {
|
|
5981
5987
|
try {
|
|
5982
|
-
parsed.host = URL
|
|
5988
|
+
parsed.host = new URL("http://" + parsed.host).hostname;
|
|
5983
5989
|
} catch (e2) {
|
|
5984
5990
|
parsed.error = parsed.error || "Host's domain name can not be converted to ASCII: " + e2;
|
|
5985
5991
|
}
|
|
@@ -28139,6 +28145,7 @@ var builtInOAS2Rules = [
|
|
|
28139
28145
|
"response-contains-header",
|
|
28140
28146
|
"scalar-property-missing-example",
|
|
28141
28147
|
"security-defined",
|
|
28148
|
+
"security-scopes-defined",
|
|
28142
28149
|
"spec-strict-refs",
|
|
28143
28150
|
"no-required-schema-properties-undefined",
|
|
28144
28151
|
"no-schema-type-mismatch",
|
|
@@ -28183,6 +28190,7 @@ var builtInOAS3Rules = [
|
|
|
28183
28190
|
"response-contains-header",
|
|
28184
28191
|
"scalar-property-missing-example",
|
|
28185
28192
|
"security-defined",
|
|
28193
|
+
"security-scopes-defined",
|
|
28186
28194
|
"spec-strict-refs",
|
|
28187
28195
|
"no-required-schema-properties-undefined",
|
|
28188
28196
|
"no-schema-type-mismatch",
|
|
@@ -28223,7 +28231,8 @@ var builtInAsync2Rules = [
|
|
|
28223
28231
|
"no-required-schema-properties-undefined",
|
|
28224
28232
|
"no-enum-type-mismatch",
|
|
28225
28233
|
"no-mixed-number-range-constraints",
|
|
28226
|
-
"no-schema-type-mismatch"
|
|
28234
|
+
"no-schema-type-mismatch",
|
|
28235
|
+
"security-scopes-defined"
|
|
28227
28236
|
];
|
|
28228
28237
|
var builtInAsync3Rules = [
|
|
28229
28238
|
"info-contact",
|
|
@@ -28237,7 +28246,8 @@ var builtInAsync3Rules = [
|
|
|
28237
28246
|
"no-required-schema-properties-undefined",
|
|
28238
28247
|
"no-enum-type-mismatch",
|
|
28239
28248
|
"no-mixed-number-range-constraints",
|
|
28240
|
-
"no-schema-type-mismatch"
|
|
28249
|
+
"no-schema-type-mismatch",
|
|
28250
|
+
"security-scopes-defined"
|
|
28241
28251
|
];
|
|
28242
28252
|
var builtInArazzo1Rules = [
|
|
28243
28253
|
"sourceDescription-type",
|
|
@@ -31978,6 +31988,69 @@ var OperationOperationId = () => {
|
|
|
31978
31988
|
};
|
|
31979
31989
|
};
|
|
31980
31990
|
|
|
31991
|
+
// ../core/lib/rules/common/security-scopes-defined.js
|
|
31992
|
+
function getDefinedScopes(scheme, resolve7, schemeLocation) {
|
|
31993
|
+
if ("flows" in scheme && scheme.flows) {
|
|
31994
|
+
const { node: flows, location: flowsLocation } = isRef(scheme.flows) ? resolve7(scheme.flows, schemeLocation.source.absoluteRef) : { node: scheme.flows, location: schemeLocation };
|
|
31995
|
+
const flowsSource = (flowsLocation ?? schemeLocation).source.absoluteRef;
|
|
31996
|
+
const scopes = Object.values(flows ?? {}).flatMap((flow) => {
|
|
31997
|
+
const resolvedFlow = isRef(flow) ? resolve7(flow, flowsSource).node : flow;
|
|
31998
|
+
return Object.keys(resolvedFlow?.scopes || {});
|
|
31999
|
+
});
|
|
32000
|
+
return [...new Set(scopes)];
|
|
32001
|
+
}
|
|
32002
|
+
return Object.keys(scheme.scopes || {});
|
|
32003
|
+
}
|
|
32004
|
+
var SecurityScopesDefined = (opts) => {
|
|
32005
|
+
const definedSchemes = /* @__PURE__ */ new Map();
|
|
32006
|
+
const usedScopes = [];
|
|
32007
|
+
return {
|
|
32008
|
+
Root: {
|
|
32009
|
+
leave(_root, { report }) {
|
|
32010
|
+
for (const { schemeName, scopes, location } of usedScopes) {
|
|
32011
|
+
const scheme = definedSchemes.get(schemeName);
|
|
32012
|
+
if (scheme?.type !== "oauth2")
|
|
32013
|
+
continue;
|
|
32014
|
+
if (opts.requireScopes && scopes.length === 0) {
|
|
32015
|
+
report({
|
|
32016
|
+
message: `The "${schemeName}" security requirement must list at least one scope.`,
|
|
32017
|
+
location: location.key(),
|
|
32018
|
+
reference: "https://redocly.com/docs/cli/rules/common/security-scopes-defined"
|
|
32019
|
+
});
|
|
32020
|
+
continue;
|
|
32021
|
+
}
|
|
32022
|
+
for (let scopeIndex = 0; scopeIndex < scopes.length; scopeIndex++) {
|
|
32023
|
+
const scope = scopes[scopeIndex];
|
|
32024
|
+
if (!scheme.definedScopes.includes(scope)) {
|
|
32025
|
+
report({
|
|
32026
|
+
message: `The "${scope}" scope is not defined in the "${schemeName}" security scheme.`,
|
|
32027
|
+
location: location.child([scopeIndex]),
|
|
32028
|
+
suggest: getSuggest(scope, scheme.definedScopes),
|
|
32029
|
+
reference: "https://redocly.com/docs/cli/rules/common/security-scopes-defined"
|
|
32030
|
+
});
|
|
32031
|
+
}
|
|
32032
|
+
}
|
|
32033
|
+
}
|
|
32034
|
+
}
|
|
32035
|
+
},
|
|
32036
|
+
SecurityScheme(scheme, { key, resolve: resolve7, location }) {
|
|
32037
|
+
definedSchemes.set(key.toString(), {
|
|
32038
|
+
type: scheme.type,
|
|
32039
|
+
definedScopes: scheme.type === "oauth2" ? getDefinedScopes(scheme, resolve7, location) : []
|
|
32040
|
+
});
|
|
32041
|
+
},
|
|
32042
|
+
SecurityRequirement(requirement, { location }) {
|
|
32043
|
+
for (const [schemeName, scopes] of Object.entries(requirement)) {
|
|
32044
|
+
usedScopes.push({
|
|
32045
|
+
schemeName,
|
|
32046
|
+
scopes: scopes || [],
|
|
32047
|
+
location: location.child([schemeName])
|
|
32048
|
+
});
|
|
32049
|
+
}
|
|
32050
|
+
}
|
|
32051
|
+
};
|
|
32052
|
+
};
|
|
32053
|
+
|
|
31981
32054
|
// ../core/lib/rules/common/tag-description.js
|
|
31982
32055
|
var TagDescription = () => {
|
|
31983
32056
|
return {
|
|
@@ -32058,7 +32131,8 @@ var rules2 = {
|
|
|
32058
32131
|
"no-required-schema-properties-undefined": NoRequiredSchemaPropertiesUndefined,
|
|
32059
32132
|
"no-enum-type-mismatch": NoEnumTypeMismatch,
|
|
32060
32133
|
"no-mixed-number-range-constraints": NoMixedNumberRangeConstraints,
|
|
32061
|
-
"no-schema-type-mismatch": NoSchemaTypeMismatch
|
|
32134
|
+
"no-schema-type-mismatch": NoSchemaTypeMismatch,
|
|
32135
|
+
"security-scopes-defined": SecurityScopesDefined
|
|
32062
32136
|
};
|
|
32063
32137
|
var preprocessors2 = {};
|
|
32064
32138
|
|
|
@@ -32093,6 +32167,65 @@ var NoChannelTrailingSlash2 = () => {
|
|
|
32093
32167
|
};
|
|
32094
32168
|
};
|
|
32095
32169
|
|
|
32170
|
+
// ../core/lib/rules/async3/security-scopes-defined.js
|
|
32171
|
+
function getAvailableScopes(scheme, resolve7, schemeLocation) {
|
|
32172
|
+
if (!scheme.flows)
|
|
32173
|
+
return [];
|
|
32174
|
+
const { node: flows, location: flowsLocation } = isRef(scheme.flows) ? resolve7(scheme.flows, schemeLocation.source.absoluteRef) : { node: scheme.flows, location: schemeLocation };
|
|
32175
|
+
const flowsSource = (flowsLocation ?? schemeLocation).source.absoluteRef;
|
|
32176
|
+
const scopeNames = Object.values(flows ?? {}).flatMap((flow) => {
|
|
32177
|
+
const resolvedFlow = isRef(flow) ? resolve7(flow, flowsSource).node : flow;
|
|
32178
|
+
return Object.keys(resolvedFlow?.availableScopes || {});
|
|
32179
|
+
});
|
|
32180
|
+
return [...new Set(scopeNames)];
|
|
32181
|
+
}
|
|
32182
|
+
var SecurityScopesDefined2 = (opts) => {
|
|
32183
|
+
const usedSchemes = /* @__PURE__ */ new Map();
|
|
32184
|
+
return {
|
|
32185
|
+
SecuritySchemeList(schemeList, { resolve: resolve7, location }) {
|
|
32186
|
+
for (let itemIndex = 0; itemIndex < schemeList.length; itemIndex++) {
|
|
32187
|
+
const item = schemeList[itemIndex];
|
|
32188
|
+
const resolved = isRef(item) ? resolve7(item) : { node: item, location: location.child([itemIndex]) };
|
|
32189
|
+
if (!resolved.node || !resolved.location)
|
|
32190
|
+
continue;
|
|
32191
|
+
usedSchemes.set(resolved.location.absolutePointer, {
|
|
32192
|
+
scheme: resolved.node,
|
|
32193
|
+
location: resolved.location,
|
|
32194
|
+
availableScopes: resolved.node.type === "oauth2" ? getAvailableScopes(resolved.node, resolve7, resolved.location) : []
|
|
32195
|
+
});
|
|
32196
|
+
}
|
|
32197
|
+
},
|
|
32198
|
+
Root: {
|
|
32199
|
+
leave(_root, { report }) {
|
|
32200
|
+
for (const { scheme, location, availableScopes } of usedSchemes.values()) {
|
|
32201
|
+
if (scheme.type !== "oauth2")
|
|
32202
|
+
continue;
|
|
32203
|
+
if (opts.requireScopes && !scheme.scopes?.length) {
|
|
32204
|
+
report({
|
|
32205
|
+
message: `The security scheme must list at least one scope.`,
|
|
32206
|
+
location: location.key(),
|
|
32207
|
+
reference: "https://redocly.com/docs/cli/rules/common/security-scopes-defined"
|
|
32208
|
+
});
|
|
32209
|
+
continue;
|
|
32210
|
+
}
|
|
32211
|
+
const usedScopes = scheme.scopes || [];
|
|
32212
|
+
for (let scopeIndex = 0; scopeIndex < usedScopes.length; scopeIndex++) {
|
|
32213
|
+
const scope = usedScopes[scopeIndex];
|
|
32214
|
+
if (!availableScopes.includes(scope)) {
|
|
32215
|
+
report({
|
|
32216
|
+
message: `The "${scope}" scope is not defined in the available scopes of the security scheme flows.`,
|
|
32217
|
+
location: location.child(["scopes", scopeIndex]),
|
|
32218
|
+
suggest: getSuggest(scope, availableScopes),
|
|
32219
|
+
reference: "https://redocly.com/docs/cli/rules/common/security-scopes-defined"
|
|
32220
|
+
});
|
|
32221
|
+
}
|
|
32222
|
+
}
|
|
32223
|
+
}
|
|
32224
|
+
}
|
|
32225
|
+
}
|
|
32226
|
+
};
|
|
32227
|
+
};
|
|
32228
|
+
|
|
32096
32229
|
// ../core/lib/rules/async3/index.js
|
|
32097
32230
|
var rules3 = {
|
|
32098
32231
|
struct: Struct,
|
|
@@ -32109,7 +32242,8 @@ var rules3 = {
|
|
|
32109
32242
|
"no-required-schema-properties-undefined": NoRequiredSchemaPropertiesUndefined,
|
|
32110
32243
|
"no-enum-type-mismatch": NoEnumTypeMismatch,
|
|
32111
32244
|
"no-mixed-number-range-constraints": NoMixedNumberRangeConstraints,
|
|
32112
|
-
"no-schema-type-mismatch": NoSchemaTypeMismatch
|
|
32245
|
+
"no-schema-type-mismatch": NoSchemaTypeMismatch,
|
|
32246
|
+
"security-scopes-defined": SecurityScopesDefined2
|
|
32113
32247
|
};
|
|
32114
32248
|
var preprocessors3 = {};
|
|
32115
32249
|
|
|
@@ -33581,6 +33715,7 @@ var rules5 = {
|
|
|
33581
33715
|
"parameter-description": ParameterDescription,
|
|
33582
33716
|
"operation-singular-tag": OperationSingularTag,
|
|
33583
33717
|
"security-defined": SecurityDefined,
|
|
33718
|
+
"security-scopes-defined": SecurityScopesDefined,
|
|
33584
33719
|
"no-unresolved-refs": NoUnresolvedRefs,
|
|
33585
33720
|
"no-identical-paths": NoIdenticalPaths,
|
|
33586
33721
|
"no-ambiguous-paths": NoAmbiguousPaths,
|
|
@@ -34610,6 +34745,7 @@ var rules6 = {
|
|
|
34610
34745
|
"parameter-description": ParameterDescription,
|
|
34611
34746
|
"operation-singular-tag": OperationSingularTag,
|
|
34612
34747
|
"security-defined": SecurityDefined,
|
|
34748
|
+
"security-scopes-defined": SecurityScopesDefined,
|
|
34613
34749
|
"no-unresolved-refs": NoUnresolvedRefs,
|
|
34614
34750
|
"paths-kebab-case": PathsKebabCase,
|
|
34615
34751
|
"boolean-parameter-prefixes": BooleanParameterPrefixes2,
|
|
@@ -34861,6 +34997,7 @@ var all = {
|
|
|
34861
34997
|
},
|
|
34862
34998
|
"response-contains-property": "error",
|
|
34863
34999
|
"security-defined": "error",
|
|
35000
|
+
"security-scopes-defined": "error",
|
|
34864
35001
|
"spec-strict-refs": "error",
|
|
34865
35002
|
"scalar-property-missing-example": "error",
|
|
34866
35003
|
"tag-description": "error",
|
|
@@ -34923,6 +35060,7 @@ var all = {
|
|
|
34923
35060
|
},
|
|
34924
35061
|
"response-contains-property": "error",
|
|
34925
35062
|
"security-defined": "error",
|
|
35063
|
+
"security-scopes-defined": "error",
|
|
34926
35064
|
"spec-strict-refs": "error",
|
|
34927
35065
|
"scalar-property-missing-example": "error",
|
|
34928
35066
|
"spec-components-invalid-map-name": "error",
|
|
@@ -34987,6 +35125,7 @@ var all = {
|
|
|
34987
35125
|
},
|
|
34988
35126
|
"response-contains-property": "error",
|
|
34989
35127
|
"security-defined": "error",
|
|
35128
|
+
"security-scopes-defined": "error",
|
|
34990
35129
|
"spec-strict-refs": "error",
|
|
34991
35130
|
"scalar-property-missing-example": "error",
|
|
34992
35131
|
"spec-components-invalid-map-name": "error",
|
|
@@ -35050,6 +35189,7 @@ var all = {
|
|
|
35050
35189
|
},
|
|
35051
35190
|
"response-contains-property": "error",
|
|
35052
35191
|
"security-defined": "error",
|
|
35192
|
+
"security-scopes-defined": "error",
|
|
35053
35193
|
"spec-strict-refs": "error",
|
|
35054
35194
|
"scalar-property-missing-example": "error",
|
|
35055
35195
|
"spec-components-invalid-map-name": "error",
|
|
@@ -35068,6 +35208,7 @@ var all = {
|
|
|
35068
35208
|
"info-license-strict": "error",
|
|
35069
35209
|
"no-channel-trailing-slash": "error",
|
|
35070
35210
|
"operation-operationId": "error",
|
|
35211
|
+
"security-scopes-defined": "error",
|
|
35071
35212
|
"tag-description": "error",
|
|
35072
35213
|
"tags-alphabetical": "error",
|
|
35073
35214
|
"no-duplicated-tag-names": "error",
|
|
@@ -35082,6 +35223,7 @@ var all = {
|
|
|
35082
35223
|
"info-license-strict": "error",
|
|
35083
35224
|
"no-channel-trailing-slash": "error",
|
|
35084
35225
|
"operation-operationId": "error",
|
|
35226
|
+
"security-scopes-defined": "error",
|
|
35085
35227
|
"tag-description": "error",
|
|
35086
35228
|
"tags-alphabetical": "error",
|
|
35087
35229
|
"no-duplicated-tag-names": "error",
|
|
@@ -35201,6 +35343,7 @@ var minimal = {
|
|
|
35201
35343
|
"response-mime-type": "off",
|
|
35202
35344
|
"scalar-property-missing-example": "off",
|
|
35203
35345
|
"security-defined": "warn",
|
|
35346
|
+
"security-scopes-defined": "off",
|
|
35204
35347
|
"spec-strict-refs": "off",
|
|
35205
35348
|
"tag-description": "warn",
|
|
35206
35349
|
"tags-alphabetical": "off"
|
|
@@ -35260,6 +35403,7 @@ var minimal = {
|
|
|
35260
35403
|
"response-mime-type": "off",
|
|
35261
35404
|
"scalar-property-missing-example": "off",
|
|
35262
35405
|
"security-defined": "warn",
|
|
35406
|
+
"security-scopes-defined": "off",
|
|
35263
35407
|
"spec-components-invalid-map-name": "warn",
|
|
35264
35408
|
"spec-example-values": "off",
|
|
35265
35409
|
"spec-strict-refs": "off",
|
|
@@ -35318,6 +35462,7 @@ var minimal = {
|
|
|
35318
35462
|
"response-mime-type": "off",
|
|
35319
35463
|
"scalar-property-missing-example": "off",
|
|
35320
35464
|
"security-defined": "warn",
|
|
35465
|
+
"security-scopes-defined": "off",
|
|
35321
35466
|
"spec-components-invalid-map-name": "warn",
|
|
35322
35467
|
"spec-example-values": "off",
|
|
35323
35468
|
"spec-strict-refs": "off",
|
|
@@ -35375,6 +35520,7 @@ var minimal = {
|
|
|
35375
35520
|
"response-mime-type": "off",
|
|
35376
35521
|
"scalar-property-missing-example": "off",
|
|
35377
35522
|
"security-defined": "warn",
|
|
35523
|
+
"security-scopes-defined": "off",
|
|
35378
35524
|
"spec-components-invalid-map-name": "warn",
|
|
35379
35525
|
"spec-discriminator-defaultMapping": "off",
|
|
35380
35526
|
"spec-example-values": "off",
|
|
@@ -35396,6 +35542,7 @@ var minimal = {
|
|
|
35396
35542
|
"no-required-schema-properties-undefined": "warn",
|
|
35397
35543
|
"no-schema-type-mismatch": "warn",
|
|
35398
35544
|
"operation-operationId": "warn",
|
|
35545
|
+
"security-scopes-defined": "off",
|
|
35399
35546
|
"tag-description": "warn",
|
|
35400
35547
|
"tags-alphabetical": "off"
|
|
35401
35548
|
},
|
|
@@ -35410,6 +35557,7 @@ var minimal = {
|
|
|
35410
35557
|
"no-required-schema-properties-undefined": "warn",
|
|
35411
35558
|
"no-schema-type-mismatch": "warn",
|
|
35412
35559
|
"operation-operationId": "warn",
|
|
35560
|
+
"security-scopes-defined": "off",
|
|
35413
35561
|
"tag-description": "warn",
|
|
35414
35562
|
"tags-alphabetical": "off"
|
|
35415
35563
|
},
|
|
@@ -35524,6 +35672,7 @@ var recommendedStrict = {
|
|
|
35524
35672
|
"response-mime-type": "off",
|
|
35525
35673
|
"scalar-property-missing-example": "off",
|
|
35526
35674
|
"security-defined": "error",
|
|
35675
|
+
"security-scopes-defined": "error",
|
|
35527
35676
|
"spec-strict-refs": "off",
|
|
35528
35677
|
"tag-description": "error",
|
|
35529
35678
|
"tags-alphabetical": "off"
|
|
@@ -35583,6 +35732,7 @@ var recommendedStrict = {
|
|
|
35583
35732
|
"response-mime-type": "off",
|
|
35584
35733
|
"scalar-property-missing-example": "off",
|
|
35585
35734
|
"security-defined": "error",
|
|
35735
|
+
"security-scopes-defined": "error",
|
|
35586
35736
|
"spec-components-invalid-map-name": "error",
|
|
35587
35737
|
"spec-example-values": "off",
|
|
35588
35738
|
"spec-strict-refs": "off",
|
|
@@ -35641,6 +35791,7 @@ var recommendedStrict = {
|
|
|
35641
35791
|
"response-mime-type": "off",
|
|
35642
35792
|
"scalar-property-missing-example": "off",
|
|
35643
35793
|
"security-defined": "error",
|
|
35794
|
+
"security-scopes-defined": "error",
|
|
35644
35795
|
"spec-components-invalid-map-name": "error",
|
|
35645
35796
|
"spec-example-values": "off",
|
|
35646
35797
|
"spec-strict-refs": "off",
|
|
@@ -35698,6 +35849,7 @@ var recommendedStrict = {
|
|
|
35698
35849
|
"response-mime-type": "off",
|
|
35699
35850
|
"scalar-property-missing-example": "off",
|
|
35700
35851
|
"security-defined": "error",
|
|
35852
|
+
"security-scopes-defined": "error",
|
|
35701
35853
|
"spec-components-invalid-map-name": "error",
|
|
35702
35854
|
"spec-discriminator-defaultMapping": "error",
|
|
35703
35855
|
"spec-example-values": "error",
|
|
@@ -35719,6 +35871,7 @@ var recommendedStrict = {
|
|
|
35719
35871
|
"no-required-schema-properties-undefined": "error",
|
|
35720
35872
|
"no-schema-type-mismatch": "error",
|
|
35721
35873
|
"operation-operationId": "error",
|
|
35874
|
+
"security-scopes-defined": "error",
|
|
35722
35875
|
"tag-description": "error",
|
|
35723
35876
|
"tags-alphabetical": "off"
|
|
35724
35877
|
},
|
|
@@ -35733,6 +35886,7 @@ var recommendedStrict = {
|
|
|
35733
35886
|
"no-required-schema-properties-undefined": "error",
|
|
35734
35887
|
"no-schema-type-mismatch": "error",
|
|
35735
35888
|
"operation-operationId": "error",
|
|
35889
|
+
"security-scopes-defined": "error",
|
|
35736
35890
|
"tag-description": "error",
|
|
35737
35891
|
"tags-alphabetical": "off"
|
|
35738
35892
|
},
|
|
@@ -35847,6 +36001,7 @@ var recommended = {
|
|
|
35847
36001
|
"response-mime-type": "off",
|
|
35848
36002
|
"scalar-property-missing-example": "off",
|
|
35849
36003
|
"security-defined": "error",
|
|
36004
|
+
"security-scopes-defined": "warn",
|
|
35850
36005
|
"spec-strict-refs": "off",
|
|
35851
36006
|
"tag-description": "warn",
|
|
35852
36007
|
"tags-alphabetical": "off"
|
|
@@ -35906,6 +36061,7 @@ var recommended = {
|
|
|
35906
36061
|
"response-mime-type": "off",
|
|
35907
36062
|
"scalar-property-missing-example": "off",
|
|
35908
36063
|
"security-defined": "error",
|
|
36064
|
+
"security-scopes-defined": "warn",
|
|
35909
36065
|
"spec-components-invalid-map-name": "error",
|
|
35910
36066
|
"spec-example-values": "off",
|
|
35911
36067
|
"spec-strict-refs": "off",
|
|
@@ -35964,6 +36120,7 @@ var recommended = {
|
|
|
35964
36120
|
"response-mime-type": "off",
|
|
35965
36121
|
"scalar-property-missing-example": "off",
|
|
35966
36122
|
"security-defined": "error",
|
|
36123
|
+
"security-scopes-defined": "warn",
|
|
35967
36124
|
"spec-components-invalid-map-name": "error",
|
|
35968
36125
|
"spec-example-values": "off",
|
|
35969
36126
|
"spec-strict-refs": "off",
|
|
@@ -36021,6 +36178,7 @@ var recommended = {
|
|
|
36021
36178
|
"response-mime-type": "off",
|
|
36022
36179
|
"scalar-property-missing-example": "off",
|
|
36023
36180
|
"security-defined": "error",
|
|
36181
|
+
"security-scopes-defined": "warn",
|
|
36024
36182
|
"spec-components-invalid-map-name": "error",
|
|
36025
36183
|
"spec-discriminator-defaultMapping": "warn",
|
|
36026
36184
|
"spec-example-values": "error",
|
|
@@ -36042,6 +36200,7 @@ var recommended = {
|
|
|
36042
36200
|
"no-required-schema-properties-undefined": "warn",
|
|
36043
36201
|
"no-schema-type-mismatch": "error",
|
|
36044
36202
|
"operation-operationId": "warn",
|
|
36203
|
+
"security-scopes-defined": "warn",
|
|
36045
36204
|
"tag-description": "warn",
|
|
36046
36205
|
"tags-alphabetical": "off"
|
|
36047
36206
|
},
|
|
@@ -36056,6 +36215,7 @@ var recommended = {
|
|
|
36056
36215
|
"no-required-schema-properties-undefined": "warn",
|
|
36057
36216
|
"no-schema-type-mismatch": "error",
|
|
36058
36217
|
"operation-operationId": "warn",
|
|
36218
|
+
"security-scopes-defined": "warn",
|
|
36059
36219
|
"tag-description": "warn",
|
|
36060
36220
|
"tags-alphabetical": "off"
|
|
36061
36221
|
},
|
|
@@ -36170,6 +36330,7 @@ var spec = {
|
|
|
36170
36330
|
"response-mime-type": "off",
|
|
36171
36331
|
"scalar-property-missing-example": "off",
|
|
36172
36332
|
"security-defined": "off",
|
|
36333
|
+
"security-scopes-defined": "off",
|
|
36173
36334
|
"spec-strict-refs": "error",
|
|
36174
36335
|
"tag-description": "off",
|
|
36175
36336
|
"tags-alphabetical": "off"
|
|
@@ -36229,6 +36390,7 @@ var spec = {
|
|
|
36229
36390
|
"response-mime-type": "off",
|
|
36230
36391
|
"scalar-property-missing-example": "off",
|
|
36231
36392
|
"security-defined": "off",
|
|
36393
|
+
"security-scopes-defined": "off",
|
|
36232
36394
|
"spec-components-invalid-map-name": "error",
|
|
36233
36395
|
"spec-example-values": "off",
|
|
36234
36396
|
"spec-strict-refs": "error",
|
|
@@ -36287,6 +36449,7 @@ var spec = {
|
|
|
36287
36449
|
"response-mime-type": "off",
|
|
36288
36450
|
"scalar-property-missing-example": "off",
|
|
36289
36451
|
"security-defined": "off",
|
|
36452
|
+
"security-scopes-defined": "off",
|
|
36290
36453
|
"spec-components-invalid-map-name": "error",
|
|
36291
36454
|
"spec-example-values": "off",
|
|
36292
36455
|
"spec-strict-refs": "error",
|
|
@@ -36344,6 +36507,7 @@ var spec = {
|
|
|
36344
36507
|
"response-mime-type": "off",
|
|
36345
36508
|
"scalar-property-missing-example": "off",
|
|
36346
36509
|
"security-defined": "off",
|
|
36510
|
+
"security-scopes-defined": "off",
|
|
36347
36511
|
"spec-components-invalid-map-name": "error",
|
|
36348
36512
|
"spec-discriminator-defaultMapping": "error",
|
|
36349
36513
|
"spec-example-values": "error",
|
|
@@ -36365,6 +36529,7 @@ var spec = {
|
|
|
36365
36529
|
"no-required-schema-properties-undefined": "off",
|
|
36366
36530
|
"no-schema-type-mismatch": "off",
|
|
36367
36531
|
"operation-operationId": "off",
|
|
36532
|
+
"security-scopes-defined": "off",
|
|
36368
36533
|
"tag-description": "off",
|
|
36369
36534
|
"tags-alphabetical": "off"
|
|
36370
36535
|
},
|
|
@@ -36379,6 +36544,7 @@ var spec = {
|
|
|
36379
36544
|
"no-required-schema-properties-undefined": "off",
|
|
36380
36545
|
"no-schema-type-mismatch": "off",
|
|
36381
36546
|
"operation-operationId": "off",
|
|
36547
|
+
"security-scopes-defined": "off",
|
|
36382
36548
|
"tag-description": "off",
|
|
36383
36549
|
"tags-alphabetical": "off"
|
|
36384
36550
|
},
|
|
@@ -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: "2.
|
|
7
|
+
version: "2.41.0",
|
|
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": "2.
|
|
53
|
-
"@redocly/respect-core": "2.
|
|
52
|
+
"@redocly/openapi-core": "2.41.0",
|
|
53
|
+
"@redocly/respect-core": "2.41.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",
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
resolvePathForServer,
|
|
14
14
|
shouldIgnoreHeaderAsUndocumented,
|
|
15
15
|
splitSetCookieHeader
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./ER45DAHG.js";
|
|
17
17
|
import {
|
|
18
18
|
BaseResolver,
|
|
19
19
|
blue,
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
require_dist,
|
|
36
36
|
walkDocument,
|
|
37
37
|
yellow
|
|
38
|
-
} from "./
|
|
38
|
+
} from "./YK6T7IHG.js";
|
|
39
39
|
import {
|
|
40
40
|
__toESM
|
|
41
41
|
} from "./5ILQMFXK.js";
|
package/lib/index.js
CHANGED
|
@@ -28,16 +28,16 @@ import {
|
|
|
28
28
|
saveBundle,
|
|
29
29
|
sortTopLevelKeys,
|
|
30
30
|
writeToFileByExtension
|
|
31
|
-
} from "./chunks/
|
|
31
|
+
} from "./chunks/XDNYWH7V.js";
|
|
32
32
|
import {
|
|
33
33
|
OPENAPI3_COMPONENT_NAMES,
|
|
34
34
|
OPENAPI3_METHOD_NAMES,
|
|
35
35
|
Spinner
|
|
36
|
-
} from "./chunks/
|
|
36
|
+
} from "./chunks/LCWGF7G6.js";
|
|
37
37
|
import {
|
|
38
38
|
AbortFlowError,
|
|
39
39
|
exitWithError
|
|
40
|
-
} from "./chunks/
|
|
40
|
+
} from "./chunks/DT4UM7U4.js";
|
|
41
41
|
import {
|
|
42
42
|
RedoclyOAuthClient,
|
|
43
43
|
ReuniteApi,
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
getProxyUrl,
|
|
48
48
|
getReuniteUrl,
|
|
49
49
|
shouldBypassProxy
|
|
50
|
-
} from "./chunks/
|
|
50
|
+
} from "./chunks/Q3KTKRJH.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/Z5H4OEIW.js";
|
|
62
62
|
import {
|
|
63
63
|
require_undici
|
|
64
64
|
} from "./chunks/XB6C62FW.js";
|
|
@@ -66,7 +66,7 @@ import {
|
|
|
66
66
|
RESET_ESCAPE_CODE,
|
|
67
67
|
calculateTotals,
|
|
68
68
|
conditionallyMaskSecrets
|
|
69
|
-
} from "./chunks/
|
|
69
|
+
} from "./chunks/6ABF7ZRJ.js";
|
|
70
70
|
import "./chunks/VXIQEZPR.js";
|
|
71
71
|
import "./chunks/UUU33DK3.js";
|
|
72
72
|
import {
|
|
@@ -119,7 +119,7 @@ import {
|
|
|
119
119
|
white,
|
|
120
120
|
xmlEscape,
|
|
121
121
|
yellow
|
|
122
|
-
} from "./chunks/
|
|
122
|
+
} from "./chunks/YK6T7IHG.js";
|
|
123
123
|
import "./chunks/Z2I5YXYN.js";
|
|
124
124
|
import {
|
|
125
125
|
__commonJS,
|
|
@@ -7714,7 +7714,7 @@ async function handleGenerateArazzo({
|
|
|
7714
7714
|
config: config3
|
|
7715
7715
|
};
|
|
7716
7716
|
try {
|
|
7717
|
-
const { generate } = await import("./chunks/
|
|
7717
|
+
const { generate } = await import("./chunks/VMHXZFTB.js");
|
|
7718
7718
|
logger.info(gray("\n Generating Arazzo description... \n"));
|
|
7719
7719
|
const generatedArazzo = await generate(options);
|
|
7720
7720
|
writeFileSync2(outputFile, stringifyYaml(generatedArazzo));
|
|
@@ -9166,7 +9166,7 @@ async function handleRespect({
|
|
|
9166
9166
|
let mtlsCerts;
|
|
9167
9167
|
let harLogs;
|
|
9168
9168
|
try {
|
|
9169
|
-
const { run, conditionallyMaskSecrets: conditionallyMaskSecrets2 } = await import("./chunks/
|
|
9169
|
+
const { run, conditionallyMaskSecrets: conditionallyMaskSecrets2 } = await import("./chunks/VMHXZFTB.js");
|
|
9170
9170
|
const workingDir = config3.configPath ? dirname4(config3.configPath) : process.cwd();
|
|
9171
9171
|
if (argv.mtls) {
|
|
9172
9172
|
mtlsCerts = resolveMtlsCertificates(argv.mtls, workingDir);
|
|
@@ -12642,7 +12642,7 @@ async function sendTelemetry({
|
|
|
12642
12642
|
$0: _,
|
|
12643
12643
|
...args
|
|
12644
12644
|
} = argv;
|
|
12645
|
-
const { RedoclyOAuthClient: RedoclyOAuthClient2 } = await import("./chunks/
|
|
12645
|
+
const { RedoclyOAuthClient: RedoclyOAuthClient2 } = await import("./chunks/SZLWDHZK.js");
|
|
12646
12646
|
const oauthClient = new RedoclyOAuthClient2();
|
|
12647
12647
|
const reuniteUrl = getReuniteUrl(config3, args.residency);
|
|
12648
12648
|
const logged_in = await oauthClient.isAuthorized(reuniteUrl);
|
|
@@ -12690,7 +12690,7 @@ async function sendTelemetry({
|
|
|
12690
12690
|
category: "product",
|
|
12691
12691
|
data: eventData
|
|
12692
12692
|
});
|
|
12693
|
-
const { otelTelemetry } = await import("./chunks/
|
|
12693
|
+
const { otelTelemetry } = await import("./chunks/5YSNZVUA.js");
|
|
12694
12694
|
otelTelemetry.send(cloudEvent);
|
|
12695
12695
|
} catch (err) {
|
|
12696
12696
|
}
|
|
@@ -13520,7 +13520,7 @@ yargs_default(hideBin(process.argv)).version("version", "Show version number.",
|
|
|
13520
13520
|
return true;
|
|
13521
13521
|
}),
|
|
13522
13522
|
async (argv) => {
|
|
13523
|
-
const { handlerBuildCommand } = await import("./chunks/
|
|
13523
|
+
const { handlerBuildCommand } = await import("./chunks/7H6CC6CT.js");
|
|
13524
13524
|
commandWrapper(handlerBuildCommand)(argv);
|
|
13525
13525
|
}
|
|
13526
13526
|
).command(
|
|
@@ -13741,7 +13741,7 @@ yargs_default(hideBin(process.argv)).version("version", "Show version number.",
|
|
|
13741
13741
|
config: { describe: "Path to the config file.", type: "string" }
|
|
13742
13742
|
}),
|
|
13743
13743
|
async (argv) => {
|
|
13744
|
-
const { handleGenerateSpec } = await import("./chunks/
|
|
13744
|
+
const { handleGenerateSpec } = await import("./chunks/PFPGSTSG.js");
|
|
13745
13745
|
commandWrapper(handleGenerateSpec)(argv);
|
|
13746
13746
|
}
|
|
13747
13747
|
).command(
|
|
@@ -13856,7 +13856,7 @@ yargs_default(hideBin(process.argv)).version("version", "Show version number.",
|
|
|
13856
13856
|
}
|
|
13857
13857
|
}),
|
|
13858
13858
|
async (argv) => {
|
|
13859
|
-
const { handleDrift } = await import("./chunks/
|
|
13859
|
+
const { handleDrift } = await import("./chunks/HQDT5XFP.js");
|
|
13860
13860
|
commandWrapper(handleDrift)(argv);
|
|
13861
13861
|
}
|
|
13862
13862
|
).command(
|
|
@@ -13924,7 +13924,7 @@ yargs_default(hideBin(process.argv)).version("version", "Show version number.",
|
|
|
13924
13924
|
}
|
|
13925
13925
|
}),
|
|
13926
13926
|
async (argv) => {
|
|
13927
|
-
const { handleProxy } = await import("./chunks/
|
|
13927
|
+
const { handleProxy } = await import("./chunks/GOFLD5MJ.js");
|
|
13928
13928
|
commandWrapper(handleProxy)(argv);
|
|
13929
13929
|
}
|
|
13930
13930
|
).completion("completion", "Generate autocomplete script for `redocly` command.").demandCommand(1).middleware([notifyUpdateCliVersion]).strict().argv;
|