swagger-editor 5.8.4 → 5.8.5
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/dist/esm/asyncapi-parser.worker.js +32 -26
- package/dist/esm/asyncapi-parser.worker.js.map +1 -1
- package/dist/esm/plugins/splash-screen/index.js +1 -1
- package/dist/esm/plugins/splash-screen/index.js.map +1 -1
- package/dist/swagger-editor.css +1 -1
- package/dist/umd/apidom.worker.js +1 -1
- package/dist/umd/asyncapi-parser.worker.js +2 -2
- package/dist/umd/swagger-editor.js +70 -68
- package/package.json +16 -4
|
@@ -23304,18 +23304,20 @@ var gh, _h, vh, yh, bh = o((() => {
|
|
|
23304
23304
|
})), lg = /* @__PURE__ */ s(((e, t) => {
|
|
23305
23305
|
var { normalizeIPv6: n, removeDotSegments: r, recomposeAuthority: i, normalizePercentEncoding: a, normalizePathEncoding: o, escapePreservingEscapes: s, reescapeHostDelimiters: c, isIPv4: l, nonSimpleDomain: u } = sg(), { SCHEMES: d, getSchemeHandler: f } = cg();
|
|
23306
23306
|
function p(e, t) {
|
|
23307
|
-
return typeof e == "string" ? e =
|
|
23307
|
+
return typeof e == "string" ? e = w(e, t) : typeof e == "object" && (e = C(_(e, t), t)), e;
|
|
23308
23308
|
}
|
|
23309
23309
|
function m(e, t, n) {
|
|
23310
|
-
let r = n ? Object.assign({ scheme: "null" }, n) : { scheme: "null" }, i =
|
|
23311
|
-
|
|
23310
|
+
let r = n ? Object.assign({ scheme: "null" }, n) : { scheme: "null" }, { parsed: i, malformedAuthorityOrPort: a } = S(e, r), { parsed: o, malformedAuthorityOrPort: s } = S(t, r);
|
|
23311
|
+
if (a || s) throw Error(i.error || o.error || "URI is malformed.");
|
|
23312
|
+
let c = h(i, o, r, !0);
|
|
23313
|
+
return r.skipEscape = !0, _(c, r);
|
|
23312
23314
|
}
|
|
23313
23315
|
function h(e, t, n, i) {
|
|
23314
23316
|
let a = {};
|
|
23315
|
-
return i || (e =
|
|
23317
|
+
return i || (e = C(_(e, n), n), t = C(_(t, n), n)), n ||= {}, !n.tolerant && t.scheme ? (a.scheme = t.scheme, a.userinfo = t.userinfo, a.host = t.host, a.port = t.port, a.path = r(t.path || ""), a.query = t.query) : (t.userinfo !== void 0 || t.host !== void 0 || t.port !== void 0 ? (a.userinfo = t.userinfo, a.host = t.host, a.port = t.port, a.path = r(t.path || ""), a.query = t.query) : (t.path ? (t.path[0] === "/" ? a.path = r(t.path) : ((e.userinfo !== void 0 || e.host !== void 0 || e.port !== void 0) && !e.path ? a.path = "/" + t.path : e.path ? a.path = e.path.slice(0, e.path.lastIndexOf("/") + 1) + t.path : a.path = t.path, a.path = r(a.path)), a.query = t.query) : (a.path = e.path, t.query === void 0 ? a.query = e.query : a.query = t.query), a.userinfo = e.userinfo, a.host = e.host, a.port = e.port), a.scheme = e.scheme), a.fragment = t.fragment, a;
|
|
23316
23318
|
}
|
|
23317
23319
|
function g(e, t, n) {
|
|
23318
|
-
let r =
|
|
23320
|
+
let r = E(e, n), i = E(t, n);
|
|
23319
23321
|
return r !== void 0 && i !== void 0 && r.toLowerCase() === i.toLowerCase();
|
|
23320
23322
|
}
|
|
23321
23323
|
function _(e, t) {
|
|
@@ -23343,12 +23345,12 @@ var gh, _h, vh, yh, bh = o((() => {
|
|
|
23343
23345
|
}
|
|
23344
23346
|
return n.query !== void 0 && c.push("?", n.query), n.fragment !== void 0 && c.push("#", n.fragment), c.join("");
|
|
23345
23347
|
}
|
|
23346
|
-
var v = /^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u, y = /^(?:[^#/:?]+:)?\/\/([^/?#]*)/;
|
|
23347
|
-
function
|
|
23348
|
+
var v = /^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u, y = /^(?:[^#/:?]+:)?\/\/([^/?#]*)/, b = /^(?:[^#/:?]+:)?([/\\\t\n\r]*)/;
|
|
23349
|
+
function x(e, t) {
|
|
23348
23350
|
if (t[2] !== void 0 && e.path && e.path[0] !== "/") return "URI path must start with \"/\" when authority is present.";
|
|
23349
23351
|
if (typeof e.port == "number" && (e.port < 0 || e.port > 65535)) return "URI port is malformed.";
|
|
23350
23352
|
}
|
|
23351
|
-
function
|
|
23353
|
+
function S(e, t) {
|
|
23352
23354
|
let r = Object.assign({}, t), i = {
|
|
23353
23355
|
scheme: void 0,
|
|
23354
23356
|
userinfo: void 0,
|
|
@@ -23361,10 +23363,15 @@ var gh, _h, vh, yh, bh = o((() => {
|
|
|
23361
23363
|
r.reference === "suffix" && (e = r.scheme ? r.scheme + ":" + e : "//" + e);
|
|
23362
23364
|
let d = e.match(y);
|
|
23363
23365
|
d !== null && d[1].indexOf("\\") !== -1 && (i.error = "URI authority must not contain a literal backslash.", a = !0);
|
|
23364
|
-
let p = e.match(
|
|
23365
|
-
if (p) {
|
|
23366
|
-
|
|
23367
|
-
|
|
23366
|
+
let p = e.match(b);
|
|
23367
|
+
if (p !== null) {
|
|
23368
|
+
let e = p[1], t = e.replace(/[\t\n\r]/g, "");
|
|
23369
|
+
t.length >= 2 && (t.slice(0, 2) === "//" ? e.length !== t.length && (i.error = i.error || "URI authority introducer must not contain whitespace.", a = !0) : (i.error = i.error || "URI authority must not contain a literal backslash.", a = !0));
|
|
23370
|
+
}
|
|
23371
|
+
let m = e.match(v);
|
|
23372
|
+
if (m) {
|
|
23373
|
+
i.scheme = m[1], i.userinfo = m[3], i.host = m[4], i.port = parseInt(m[5], 10), i.path = m[6] || "", i.query = m[7], i.fragment = m[8], isNaN(i.port) && (i.port = m[5]);
|
|
23374
|
+
let t = x(i, m);
|
|
23368
23375
|
if (t !== void 0 && (i.error = i.error || t, a = !0), i.host) if (l(i.host) === !1) {
|
|
23369
23376
|
let e = n(i.host);
|
|
23370
23377
|
i.host = e.host.toLowerCase(), s = e.isIPV6;
|
|
@@ -23388,36 +23395,36 @@ var gh, _h, vh, yh, bh = o((() => {
|
|
|
23388
23395
|
malformedAuthorityOrPort: a
|
|
23389
23396
|
};
|
|
23390
23397
|
}
|
|
23391
|
-
function S(e, t) {
|
|
23392
|
-
return x(e, t).parsed;
|
|
23393
|
-
}
|
|
23394
23398
|
function C(e, t) {
|
|
23395
|
-
return
|
|
23399
|
+
return S(e, t).parsed;
|
|
23396
23400
|
}
|
|
23397
23401
|
function w(e, t) {
|
|
23398
|
-
|
|
23402
|
+
return T(e, t).normalized;
|
|
23403
|
+
}
|
|
23404
|
+
function T(e, t) {
|
|
23405
|
+
let { parsed: n, malformedAuthorityOrPort: r } = S(e, t);
|
|
23399
23406
|
return {
|
|
23400
23407
|
normalized: r ? e : _(n, t),
|
|
23401
23408
|
malformedAuthorityOrPort: r
|
|
23402
23409
|
};
|
|
23403
23410
|
}
|
|
23404
|
-
function
|
|
23411
|
+
function E(e, t) {
|
|
23405
23412
|
if (typeof e == "string") {
|
|
23406
|
-
let { normalized: n, malformedAuthorityOrPort: r } =
|
|
23413
|
+
let { normalized: n, malformedAuthorityOrPort: r } = T(e, t);
|
|
23407
23414
|
return r ? void 0 : n;
|
|
23408
23415
|
}
|
|
23409
23416
|
if (typeof e == "object") return _(e, t);
|
|
23410
23417
|
}
|
|
23411
|
-
var
|
|
23418
|
+
var D = {
|
|
23412
23419
|
SCHEMES: d,
|
|
23413
23420
|
normalize: p,
|
|
23414
23421
|
resolve: m,
|
|
23415
23422
|
resolveComponent: h,
|
|
23416
23423
|
equal: g,
|
|
23417
23424
|
serialize: _,
|
|
23418
|
-
parse:
|
|
23425
|
+
parse: C
|
|
23419
23426
|
};
|
|
23420
|
-
t.exports =
|
|
23427
|
+
t.exports = D, t.exports.default = D, t.exports.fastUri = D;
|
|
23421
23428
|
})), ug = /* @__PURE__ */ s(((e) => {
|
|
23422
23429
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
23423
23430
|
var t = lg();
|
|
@@ -48936,16 +48943,15 @@ function uH() {
|
|
|
48936
48943
|
let e = yV(), t = Object.prototype.hasOwnProperty, n = Object.prototype.toString;
|
|
48937
48944
|
function r(e) {
|
|
48938
48945
|
if (e === null) return !0;
|
|
48939
|
-
let r =
|
|
48946
|
+
let r = {}, i = e;
|
|
48940
48947
|
for (let e = 0, a = i.length; e < a; e += 1) {
|
|
48941
48948
|
let a = i[e], o = !1;
|
|
48942
48949
|
if (n.call(a) !== "[object Object]") return !1;
|
|
48943
48950
|
let s;
|
|
48944
48951
|
for (s in a) if (t.call(a, s)) if (!o) o = !0;
|
|
48945
48952
|
else return !1;
|
|
48946
|
-
if (!o) return !1;
|
|
48947
|
-
|
|
48948
|
-
else return !1;
|
|
48953
|
+
if (!o || t.call(r, s)) return !1;
|
|
48954
|
+
Object.defineProperty(r, s, { value: !0 });
|
|
48949
48955
|
}
|
|
48950
48956
|
return !0;
|
|
48951
48957
|
}
|