swagger-editor 5.8.1 → 5.8.2
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 +28 -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/umd/apidom.worker.js +1 -1
- package/dist/umd/asyncapi-parser.worker.js +1 -1
- package/dist/umd/swagger-editor.js +43 -41
- package/package.json +3 -3
|
@@ -23277,18 +23277,18 @@ var gh, _h, vh, yh, bh = o((() => {
|
|
|
23277
23277
|
})), lg = /* @__PURE__ */ s(((e, t) => {
|
|
23278
23278
|
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();
|
|
23279
23279
|
function p(e, t) {
|
|
23280
|
-
return typeof e == "string" ? e =
|
|
23280
|
+
return typeof e == "string" ? e = C(e, t) : typeof e == "object" && (e = S(_(e, t), t)), e;
|
|
23281
23281
|
}
|
|
23282
23282
|
function m(e, t, n) {
|
|
23283
|
-
let r = n ? Object.assign({ scheme: "null" }, n) : { scheme: "null" }, i = h(
|
|
23283
|
+
let r = n ? Object.assign({ scheme: "null" }, n) : { scheme: "null" }, i = h(S(e, r), S(t, r), r, !0);
|
|
23284
23284
|
return r.skipEscape = !0, _(i, r);
|
|
23285
23285
|
}
|
|
23286
23286
|
function h(e, t, n, i) {
|
|
23287
23287
|
let a = {};
|
|
23288
|
-
return i || (e =
|
|
23288
|
+
return i || (e = S(_(e, n), n), t = S(_(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;
|
|
23289
23289
|
}
|
|
23290
23290
|
function g(e, t, n) {
|
|
23291
|
-
let r =
|
|
23291
|
+
let r = T(e, n), i = T(t, n);
|
|
23292
23292
|
return r !== void 0 && i !== void 0 && r.toLowerCase() === i.toLowerCase();
|
|
23293
23293
|
}
|
|
23294
23294
|
function _(e, t) {
|
|
@@ -23316,12 +23316,12 @@ var gh, _h, vh, yh, bh = o((() => {
|
|
|
23316
23316
|
}
|
|
23317
23317
|
return n.query !== void 0 && c.push("?", n.query), n.fragment !== void 0 && c.push("#", n.fragment), c.join("");
|
|
23318
23318
|
}
|
|
23319
|
-
var v = /^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u
|
|
23320
|
-
function
|
|
23319
|
+
var v = /^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u, y = /^(?:[^#/:?]+:)?\/\/([^/?#]*)/;
|
|
23320
|
+
function b(e, t) {
|
|
23321
23321
|
if (t[2] !== void 0 && e.path && e.path[0] !== "/") return "URI path must start with \"/\" when authority is present.";
|
|
23322
23322
|
if (typeof e.port == "number" && (e.port < 0 || e.port > 65535)) return "URI port is malformed.";
|
|
23323
23323
|
}
|
|
23324
|
-
function
|
|
23324
|
+
function x(e, t) {
|
|
23325
23325
|
let r = Object.assign({}, t), i = {
|
|
23326
23326
|
scheme: void 0,
|
|
23327
23327
|
userinfo: void 0,
|
|
@@ -23332,63 +23332,65 @@ var gh, _h, vh, yh, bh = o((() => {
|
|
|
23332
23332
|
fragment: void 0
|
|
23333
23333
|
}, a = !1, s = !1;
|
|
23334
23334
|
r.reference === "suffix" && (e = r.scheme ? r.scheme + ":" + e : "//" + e);
|
|
23335
|
-
let d = e.match(
|
|
23336
|
-
|
|
23337
|
-
|
|
23338
|
-
|
|
23335
|
+
let d = e.match(y);
|
|
23336
|
+
d !== null && d[1].indexOf("\\") !== -1 && (i.error = "URI authority must not contain a literal backslash.", a = !0);
|
|
23337
|
+
let p = e.match(v);
|
|
23338
|
+
if (p) {
|
|
23339
|
+
i.scheme = p[1], i.userinfo = p[3], i.host = p[4], i.port = parseInt(p[5], 10), i.path = p[6] || "", i.query = p[7], i.fragment = p[8], isNaN(i.port) && (i.port = p[5]);
|
|
23340
|
+
let t = b(i, p);
|
|
23339
23341
|
if (t !== void 0 && (i.error = i.error || t, a = !0), i.host) if (l(i.host) === !1) {
|
|
23340
23342
|
let e = n(i.host);
|
|
23341
23343
|
i.host = e.host.toLowerCase(), s = e.isIPV6;
|
|
23342
23344
|
} else s = !0;
|
|
23343
23345
|
i.scheme === void 0 && i.userinfo === void 0 && i.host === void 0 && i.port === void 0 && i.query === void 0 && !i.path ? i.reference = "same-document" : i.scheme === void 0 ? i.reference = "relative" : i.fragment === void 0 ? i.reference = "absolute" : i.reference = "uri", r.reference && r.reference !== "suffix" && r.reference !== i.reference && (i.error = i.error || "URI is not a " + r.reference + " reference.");
|
|
23344
|
-
let
|
|
23345
|
-
if (!r.unicodeSupport && (!
|
|
23346
|
-
i.host = URL
|
|
23346
|
+
let d = f(r.scheme || i.scheme);
|
|
23347
|
+
if (!r.unicodeSupport && (!d || !d.unicodeSupport) && i.host && (r.domainHost || d && d.domainHost) && s === !1 && u(i.host)) try {
|
|
23348
|
+
i.host = new URL("http://" + i.host).hostname;
|
|
23347
23349
|
} catch (e) {
|
|
23348
23350
|
i.error = i.error || "Host's domain name can not be converted to ASCII: " + e;
|
|
23349
23351
|
}
|
|
23350
|
-
if ((!
|
|
23352
|
+
if ((!d || d && !d.skipNormalize) && (e.indexOf("%") !== -1 && (i.scheme !== void 0 && (i.scheme = unescape(i.scheme)), i.host !== void 0 && (i.host = c(unescape(i.host), s))), i.path &&= o(i.path), i.fragment)) try {
|
|
23351
23353
|
i.fragment = encodeURI(decodeURIComponent(i.fragment));
|
|
23352
23354
|
} catch {
|
|
23353
23355
|
i.error = i.error || "URI malformed";
|
|
23354
23356
|
}
|
|
23355
|
-
|
|
23357
|
+
d && d.parse && d.parse(i, r);
|
|
23356
23358
|
} else i.error = i.error || "URI can not be parsed.";
|
|
23357
23359
|
return {
|
|
23358
23360
|
parsed: i,
|
|
23359
23361
|
malformedAuthorityOrPort: a
|
|
23360
23362
|
};
|
|
23361
23363
|
}
|
|
23362
|
-
function x(e, t) {
|
|
23363
|
-
return b(e, t).parsed;
|
|
23364
|
-
}
|
|
23365
23364
|
function S(e, t) {
|
|
23366
|
-
return
|
|
23365
|
+
return x(e, t).parsed;
|
|
23367
23366
|
}
|
|
23368
23367
|
function C(e, t) {
|
|
23369
|
-
|
|
23368
|
+
return w(e, t).normalized;
|
|
23369
|
+
}
|
|
23370
|
+
function w(e, t) {
|
|
23371
|
+
let { parsed: n, malformedAuthorityOrPort: r } = x(e, t);
|
|
23370
23372
|
return {
|
|
23371
23373
|
normalized: r ? e : _(n, t),
|
|
23372
23374
|
malformedAuthorityOrPort: r
|
|
23373
23375
|
};
|
|
23374
23376
|
}
|
|
23375
|
-
function
|
|
23377
|
+
function T(e, t) {
|
|
23376
23378
|
if (typeof e == "string") {
|
|
23377
|
-
let { normalized: n, malformedAuthorityOrPort: r } =
|
|
23379
|
+
let { normalized: n, malformedAuthorityOrPort: r } = w(e, t);
|
|
23378
23380
|
return r ? void 0 : n;
|
|
23379
23381
|
}
|
|
23380
23382
|
if (typeof e == "object") return _(e, t);
|
|
23381
23383
|
}
|
|
23382
|
-
var
|
|
23384
|
+
var E = {
|
|
23383
23385
|
SCHEMES: d,
|
|
23384
23386
|
normalize: p,
|
|
23385
23387
|
resolve: m,
|
|
23386
23388
|
resolveComponent: h,
|
|
23387
23389
|
equal: g,
|
|
23388
23390
|
serialize: _,
|
|
23389
|
-
parse:
|
|
23391
|
+
parse: S
|
|
23390
23392
|
};
|
|
23391
|
-
t.exports =
|
|
23393
|
+
t.exports = E, t.exports.default = E, t.exports.fastUri = E;
|
|
23392
23394
|
})), ug = /* @__PURE__ */ s(((e) => {
|
|
23393
23395
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
23394
23396
|
var t = lg();
|