@gravitee/graphene-core 3.6.0 → 3.7.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/dist/index.js +29 -22
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -32575,18 +32575,20 @@ var wY = /* @__PURE__ */ K(((e) => {
|
|
|
32575
32575
|
})), tX = /* @__PURE__ */ K(((e, t) => {
|
|
32576
32576
|
var { normalizeIPv6: n, removeDotSegments: r, recomposeAuthority: i, normalizePercentEncoding: a, normalizePathEncoding: o, escapePreservingEscapes: s, reescapeHostDelimiters: c, isIPv4: l, nonSimpleDomain: u } = $Y(), { SCHEMES: d, getSchemeHandler: f } = eX();
|
|
32577
32577
|
function p(e, t) {
|
|
32578
|
-
return typeof e == "string" ? e =
|
|
32578
|
+
return typeof e == "string" ? e = w(e, t) : typeof e == "object" && (e = C(_(e, t), t)), e;
|
|
32579
32579
|
}
|
|
32580
32580
|
function m(e, t, n) {
|
|
32581
|
-
let r = n ? Object.assign({ scheme: "null" }, n) : { scheme: "null" }, i =
|
|
32582
|
-
|
|
32581
|
+
let r = n ? Object.assign({ scheme: "null" }, n) : { scheme: "null" }, { parsed: i, malformedAuthorityOrPort: a } = S(e, r), { parsed: o, malformedAuthorityOrPort: s } = S(t, r);
|
|
32582
|
+
if (a || s) throw Error(i.error || o.error || "URI is malformed.");
|
|
32583
|
+
let c = h(i, o, r, !0);
|
|
32584
|
+
return r.skipEscape = !0, _(c, r);
|
|
32583
32585
|
}
|
|
32584
32586
|
function h(e, t, n, i) {
|
|
32585
32587
|
let a = {};
|
|
32586
|
-
return i || (e =
|
|
32588
|
+
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;
|
|
32587
32589
|
}
|
|
32588
32590
|
function g(e, t, n) {
|
|
32589
|
-
let r =
|
|
32591
|
+
let r = E(e, n), i = E(t, n);
|
|
32590
32592
|
return r !== void 0 && i !== void 0 && r.toLowerCase() === i.toLowerCase();
|
|
32591
32593
|
}
|
|
32592
32594
|
function _(e, t) {
|
|
@@ -32614,12 +32616,12 @@ var wY = /* @__PURE__ */ K(((e) => {
|
|
|
32614
32616
|
}
|
|
32615
32617
|
return n.query !== void 0 && c.push("?", n.query), n.fragment !== void 0 && c.push("#", n.fragment), c.join("");
|
|
32616
32618
|
}
|
|
32617
|
-
var v = /^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u, y = /^(?:[^#/:?]+:)?\/\/([^/?#]*)/;
|
|
32618
|
-
function
|
|
32619
|
+
var v = /^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u, y = /^(?:[^#/:?]+:)?\/\/([^/?#]*)/, b = /^(?:[^#/:?]+:)?([/\\\t\n\r]*)/;
|
|
32620
|
+
function x(e, t) {
|
|
32619
32621
|
if (t[2] !== void 0 && e.path && e.path[0] !== "/") return "URI path must start with \"/\" when authority is present.";
|
|
32620
32622
|
if (typeof e.port == "number" && (e.port < 0 || e.port > 65535)) return "URI port is malformed.";
|
|
32621
32623
|
}
|
|
32622
|
-
function
|
|
32624
|
+
function S(e, t) {
|
|
32623
32625
|
let r = Object.assign({}, t), i = {
|
|
32624
32626
|
scheme: void 0,
|
|
32625
32627
|
userinfo: void 0,
|
|
@@ -32632,10 +32634,15 @@ var wY = /* @__PURE__ */ K(((e) => {
|
|
|
32632
32634
|
r.reference === "suffix" && (e = r.scheme ? r.scheme + ":" + e : "//" + e);
|
|
32633
32635
|
let d = e.match(y);
|
|
32634
32636
|
d !== null && d[1].indexOf("\\") !== -1 && (i.error = "URI authority must not contain a literal backslash.", a = !0);
|
|
32635
|
-
let p = e.match(
|
|
32636
|
-
if (p) {
|
|
32637
|
-
|
|
32638
|
-
|
|
32637
|
+
let p = e.match(b);
|
|
32638
|
+
if (p !== null) {
|
|
32639
|
+
let e = p[1], t = e.replace(/[\t\n\r]/g, "");
|
|
32640
|
+
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));
|
|
32641
|
+
}
|
|
32642
|
+
let m = e.match(v);
|
|
32643
|
+
if (m) {
|
|
32644
|
+
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]);
|
|
32645
|
+
let t = x(i, m);
|
|
32639
32646
|
if (t !== void 0 && (i.error = i.error || t, a = !0), i.host) if (l(i.host) === !1) {
|
|
32640
32647
|
let e = n(i.host);
|
|
32641
32648
|
i.host = e.host.toLowerCase(), s = e.isIPV6;
|
|
@@ -32659,36 +32666,36 @@ var wY = /* @__PURE__ */ K(((e) => {
|
|
|
32659
32666
|
malformedAuthorityOrPort: a
|
|
32660
32667
|
};
|
|
32661
32668
|
}
|
|
32662
|
-
function S(e, t) {
|
|
32663
|
-
return x(e, t).parsed;
|
|
32664
|
-
}
|
|
32665
32669
|
function C(e, t) {
|
|
32666
|
-
return
|
|
32670
|
+
return S(e, t).parsed;
|
|
32667
32671
|
}
|
|
32668
32672
|
function w(e, t) {
|
|
32669
|
-
|
|
32673
|
+
return T(e, t).normalized;
|
|
32674
|
+
}
|
|
32675
|
+
function T(e, t) {
|
|
32676
|
+
let { parsed: n, malformedAuthorityOrPort: r } = S(e, t);
|
|
32670
32677
|
return {
|
|
32671
32678
|
normalized: r ? e : _(n, t),
|
|
32672
32679
|
malformedAuthorityOrPort: r
|
|
32673
32680
|
};
|
|
32674
32681
|
}
|
|
32675
|
-
function
|
|
32682
|
+
function E(e, t) {
|
|
32676
32683
|
if (typeof e == "string") {
|
|
32677
|
-
let { normalized: n, malformedAuthorityOrPort: r } =
|
|
32684
|
+
let { normalized: n, malformedAuthorityOrPort: r } = T(e, t);
|
|
32678
32685
|
return r ? void 0 : n;
|
|
32679
32686
|
}
|
|
32680
32687
|
if (typeof e == "object") return _(e, t);
|
|
32681
32688
|
}
|
|
32682
|
-
var
|
|
32689
|
+
var D = {
|
|
32683
32690
|
SCHEMES: d,
|
|
32684
32691
|
normalize: p,
|
|
32685
32692
|
resolve: m,
|
|
32686
32693
|
resolveComponent: h,
|
|
32687
32694
|
equal: g,
|
|
32688
32695
|
serialize: _,
|
|
32689
|
-
parse:
|
|
32696
|
+
parse: C
|
|
32690
32697
|
};
|
|
32691
|
-
t.exports =
|
|
32698
|
+
t.exports = D, t.exports.default = D, t.exports.fastUri = D;
|
|
32692
32699
|
})), nX = /* @__PURE__ */ K(((e) => {
|
|
32693
32700
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
32694
32701
|
var t = tX();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gravitee/graphene-core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.7.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Gravitee's Graphene design system: accessible React components, design tokens, icons, and shared ESLint/TypeScript configs. Built on shadcn/ui and Tailwind.",
|
|
6
6
|
"keywords": [
|