@redocly/cli 2.39.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 +7 -6
- package/lib/chunks/{C3PXBQU5.js → 5YSNZVUA.js} +4 -4
- package/lib/chunks/{OVY6O6WL.js → 6ABF7ZRJ.js} +17 -1
- package/lib/chunks/{V74PIVJZ.js → 7H6CC6CT.js} +89 -23
- package/lib/chunks/{U4V3W7MN.js → DT4UM7U4.js} +1 -1
- package/lib/chunks/ER45DAHG.js +492 -0
- package/lib/chunks/{C5HID4LT.js → GBUMU6BX.js} +8 -165
- package/lib/chunks/{BNHQNMUG.js → GOFLD5MJ.js} +9 -6
- package/lib/chunks/HQDT5XFP.js +175 -0
- package/lib/chunks/{ICAVAH7N.js → ICPYP2LP.js} +96 -82
- package/lib/chunks/LCWGF7G6.js +79 -0
- package/lib/chunks/PFPGSTSG.js +1756 -0
- package/lib/chunks/{BA5AZJUM.js → Q3KTKRJH.js} +2 -2
- package/lib/chunks/{V6CVT3XE.js → SZLWDHZK.js} +3 -3
- package/lib/chunks/{W5R2GYDZ.js → VMHXZFTB.js} +2 -2
- package/lib/chunks/{OYZMAAZV.js → XDNYWH7V.js} +2 -2
- package/lib/chunks/{KYZEVOA2.js → YK6T7IHG.js} +3844 -3093
- package/lib/chunks/{2LEVMD2A.js → Z5H4OEIW.js} +4 -4
- package/lib/chunks/{WST4KAJO.js → ZBZADNJT.js} +134 -518
- package/lib/index.js +125 -117
- 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:
|
|
@@ -646,16 +646,16 @@ Packages:
|
|
|
646
646
|
@noble/hashes@1.8.0 — Copyright (c) 2022 Paul Miller (https://paulmillr.com)
|
|
647
647
|
@redocly/ajv@8.11.2 — Copyright (c) 2015-2021 Evgeny Poberezkin
|
|
648
648
|
@redocly/ajv@8.18.3 — Copyright (c) 2015-2021 Evgeny Poberezkin
|
|
649
|
-
@redocly/cli-otel@0.3.
|
|
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
|
-
@redocly/config@0.
|
|
652
|
-
@redocly/openapi-core@1.34.
|
|
651
|
+
@redocly/config@0.52.0 — Copyright 2024 Redocly Inc.
|
|
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
|
|
@@ -678,6 +678,7 @@ Packages:
|
|
|
678
678
|
js-levenshtein@1.1.6 — Copyright (c) 2017 Gustaf Andersson
|
|
679
679
|
js-tokens@4.0.0 — Copyright (c) 2014, 2015, 2016, 2017, 2018 Simon Lydell
|
|
680
680
|
js-yaml@4.2.0 — Copyright (C) 2011-2015 by Vitaly Puzrin
|
|
681
|
+
js-yaml@5.2.1 — Copyright (C) 2011-2015 by Vitaly Puzrin
|
|
681
682
|
json-pointer@0.6.2 — Copyright (c) 2016 Manuel Stofer
|
|
682
683
|
json-schema-traverse@1.0.0 — Copyright (c) 2017 Evgeny Poberezkin
|
|
683
684
|
jsonpointer@5.0.1 — Copyright (c) 2011-2015 Jan Lehnardt <jan@apache.org> & Marc Bachmann <https://github.com/marcbachmann>
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from 'node:module';
|
|
2
2
|
const require = __createRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
|
-
|
|
4
|
+
F,
|
|
5
5
|
ulid
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./ICPYP2LP.js";
|
|
7
7
|
import {
|
|
8
8
|
DEFAULT_FETCH_TIMEOUT,
|
|
9
9
|
OTEL_TRACES_URL
|
|
10
10
|
} from "./Y6DTFCLS.js";
|
|
11
11
|
import {
|
|
12
12
|
version
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./Z5H4OEIW.js";
|
|
14
14
|
import {
|
|
15
15
|
diag,
|
|
16
16
|
esm_exports,
|
|
@@ -13359,7 +13359,7 @@ var OtelServerTelemetry = class {
|
|
|
13359
13359
|
const time = new Date(cloudEvent.time);
|
|
13360
13360
|
const tracer = this.nodeTracerProvider.getTracer("CliTelemetry");
|
|
13361
13361
|
const spanName = `event.${cloudEvent.type}`;
|
|
13362
|
-
const attributes =
|
|
13362
|
+
const attributes = F(cloudEvent, time);
|
|
13363
13363
|
const span = tracer.startSpan(spanName, {
|
|
13364
13364
|
attributes,
|
|
13365
13365
|
startTime: time
|
|
@@ -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
|
(**
|