@quoreadmin/ui 1.10.27 → 1.10.30
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.css +1 -1
- package/dist/index103.js +11 -6
- package/dist/index147.js +147 -147
- package/dist/index157.js +160 -160
- package/dist/index186.js +4 -4
- package/dist/index193.js +8 -8
- package/dist/index195.js +8 -8
- package/dist/index198.js +17 -17
- package/dist/index201.js +26 -26
- package/dist/index202.js +1 -1
- package/dist/index203.js +1 -1
- package/dist/index206.js +2 -2
- package/dist/index208.js +14 -14
- package/dist/index209.js +1 -1
- package/dist/index210.js +1 -1
- package/dist/index211.js +3 -3
- package/dist/index212.js +6 -6
- package/dist/index216.js +2 -2
- package/dist/index217.js +1 -1
- package/dist/index219.js +4 -4
- package/dist/index221.js +1 -1
- package/dist/index222.js +1 -1
- package/dist/index223.js +1 -1
- package/dist/index224.js +4 -4
- package/dist/index226.js +1 -1
- package/dist/index227.js +2 -2
- package/dist/index228.js +2 -2
- package/dist/index229.js +1 -1
- package/dist/index23.js +47 -27
- package/dist/index230.js +159 -159
- package/dist/index231.js +228 -20
- package/dist/index232.js +36 -19
- package/dist/index233.js +10 -22
- package/dist/index234.js +129 -167
- package/dist/index235.js +19 -69
- package/dist/index236.js +20 -34
- package/dist/index237.js +21 -39
- package/dist/index238.js +185 -113
- package/dist/index239.js +57 -25
- package/dist/index240.js +31 -77
- package/dist/index241.js +39 -19
- package/dist/index242.js +126 -19
- package/dist/index243.js +34 -16
- package/dist/index244.js +80 -20
- package/dist/index245.js +19 -160
- package/dist/index246.js +20 -228
- package/dist/index247.js +19 -36
- package/dist/index248.js +20 -10
- package/dist/index249.js +3709 -22
- package/dist/index250.js +60 -22
- package/dist/index251.js +83 -20
- package/dist/index252.js +39 -823
- package/dist/index253.js +198 -685
- package/dist/index254.js +9 -175
- package/dist/index255.js +57 -22
- package/dist/index256.js +61 -20
- package/dist/index257.js +54 -20
- package/dist/index258.js +81 -3
- package/dist/index259.js +711 -170
- package/dist/index260.js +41 -127
- package/dist/index261.js +55 -1214
- package/dist/index262.js +11 -20
- package/dist/index263.js +705 -22
- package/dist/index264.js +820 -22
- package/dist/index265.js +15 -22
- package/dist/index266.js +15 -13
- package/dist/index267.js +12 -12
- package/dist/index268.js +836 -2
- package/dist/index269.js +702 -2
- package/dist/index270.js +164 -241
- package/dist/index271.js +21 -7
- package/dist/index272.js +20 -138
- package/dist/index273.js +20 -83
- package/dist/index274.js +3 -54
- package/dist/index275.js +173 -65
- package/dist/index276.js +132 -25
- package/dist/index277.js +1223 -22
- package/dist/index278.js +13 -15
- package/dist/index279.js +22 -16
- package/dist/index280.js +22 -17
- package/dist/index281.js +28 -22
- package/dist/index282.js +20 -3
- package/dist/index283.js +19 -26
- package/dist/index284.js +2 -3709
- package/dist/index285.js +2 -60
- package/dist/index286.js +242 -72
- package/dist/index287.js +7 -51
- package/dist/index288.js +132 -209
- package/dist/index289.js +83 -10
- package/dist/index290.js +3 -57
- package/dist/index291.js +26 -60
- package/dist/index292.js +51 -51
- package/dist/index293.js +76 -78
- package/dist/index294.js +25 -727
- package/dist/index295.js +22 -47
- package/dist/index296.js +22 -64
- package/dist/index297.js +15 -10
- package/dist/index298.js +16 -704
- package/dist/index299.js +23 -820
- package/dist/index301.js +1534 -79
- package/dist/index302.js +386 -22
- package/dist/index303.js +2698 -902
- package/dist/index304.js +85 -21
- package/dist/index305.js +3798 -20
- package/dist/index306.js +59 -19
- package/dist/index307.js +15 -69
- package/dist/index308.js +84 -19
- package/dist/index309.js +201 -18
- package/dist/index310.js +246 -22
- package/dist/index311.js +78 -21
- package/dist/index312.js +22 -63
- package/dist/index313.js +920 -250
- package/dist/index314.js +21 -5
- package/dist/index315.js +19 -149
- package/dist/index316.js +19 -68
- package/dist/index317.js +64 -86
- package/dist/index318.js +19 -29
- package/dist/index319.js +19 -16
- package/dist/index320.js +21 -74
- package/dist/index321.js +21 -3
- package/dist/index322.js +63 -2
- package/dist/index323.js +227 -76
- package/dist/index324.js +5 -57
- package/dist/index325.js +133 -5
- package/dist/index326.js +67 -4
- package/dist/index327.js +79 -178
- package/dist/index328.js +26 -60
- package/dist/index329.js +8 -74
- package/dist/index330.js +73 -35
- package/dist/index331.js +3 -8
- package/dist/index332.js +2 -13
- package/dist/index333.js +78 -50
- package/dist/index334.js +53 -11
- package/dist/index335.js +4 -12
- package/dist/index336.js +4 -57
- package/dist/index337.js +175 -48
- package/dist/index338.js +60 -28
- package/dist/index339.js +75 -2
- package/dist/index340.js +10 -5
- package/dist/index341.js +10 -2
- package/dist/index342.js +12 -21
- package/dist/index343.js +9 -40
- package/dist/index344.js +17 -2
- package/dist/index345.js +9 -11
- package/dist/index346.js +12 -19
- package/dist/index347.js +55 -10
- package/dist/index348.js +12 -10
- package/dist/index349.js +12 -15
- package/dist/index350.js +58 -2
- package/dist/index351.js +52 -9
- package/dist/index352.js +30 -9
- package/dist/index353.js +2 -14
- package/dist/index354.js +4 -1533
- package/dist/index355.js +2 -386
- package/dist/index356.js +22 -2730
- package/dist/index357.js +37 -82
- package/dist/index358.js +2 -3798
- package/dist/index359.js +11 -60
- package/dist/index360.js +20 -15
- package/dist/index361.js +2 -84
- package/dist/index362.js +9 -202
- package/dist/index363.js +31 -240
- package/dist/index364.js +1 -1
- package/dist/index365.js +1 -1
- package/dist/index366.js +1 -1
- package/dist/index367.js +1 -1
- package/dist/index368.js +14 -12
- package/dist/index369.js +1 -2
- package/dist/index370.js +22 -18
- package/dist/index371.js +2 -2
- package/dist/index372.js +3 -6
- package/dist/index373.js +3 -4
- package/dist/index374.js +2 -2
- package/dist/index375.js +2 -2
- package/dist/index376.js +1 -1
- package/dist/index378.js +20 -32
- package/dist/index379.js +45 -58
- package/dist/index380.js +100 -16
- package/dist/index381.js +90 -30
- package/dist/index382.js +98 -11
- package/dist/index383.js +17 -4
- package/dist/index384.js +30 -3
- package/dist/index385.js +11 -13
- package/dist/index386.js +4 -7
- package/dist/index387.js +3 -13
- package/dist/index388.js +13 -5
- package/dist/index389.js +7 -36
- package/dist/index390.js +11 -36
- package/dist/index391.js +5 -30
- package/dist/index392.js +33 -64
- package/dist/index393.js +29 -99
- package/dist/index394.js +28 -91
- package/dist/index395.js +59 -96
- package/dist/index396.js +1 -1
- package/dist/index402.js +1 -1
- package/dist/index50.js +1 -1
- package/dist/src/components/event/event.d.ts +12 -0
- package/dist/src/components/event/event.stories.d.ts +2 -0
- package/dist/src/components/room-details-popover/room-details-popover.d.ts +9 -3
- package/package.json +2 -2
package/dist/index364.js
CHANGED
package/dist/index365.js
CHANGED
package/dist/index366.js
CHANGED
package/dist/index367.js
CHANGED
package/dist/index368.js
CHANGED
|
@@ -1,18 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
function
|
|
1
|
+
import f from "./index323.js";
|
|
2
|
+
import d from "./index384.js";
|
|
3
|
+
function l(e) {
|
|
4
4
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
5
5
|
}
|
|
6
|
-
function m(e,
|
|
7
|
-
if (!
|
|
6
|
+
function m(e, c, i) {
|
|
7
|
+
if (!c)
|
|
8
8
|
return e;
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
9
|
+
const t = i && i.encode || l;
|
|
10
|
+
f.isFunction(i) && (i = {
|
|
11
|
+
serialize: i
|
|
12
|
+
});
|
|
13
|
+
const r = i && i.serialize;
|
|
14
|
+
let n;
|
|
15
|
+
if (r ? n = r(c, i) : n = f.isURLSearchParams(c) ? c.toString() : new d(c, i).toString(t), n) {
|
|
16
|
+
const a = e.indexOf("#");
|
|
17
|
+
a !== -1 && (e = e.slice(0, a)), e += (e.indexOf("?") === -1 ? "?" : "&") + n;
|
|
16
18
|
}
|
|
17
19
|
return e;
|
|
18
20
|
}
|
package/dist/index369.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import n from "./
|
|
1
|
+
import n from "./index323.js";
|
|
2
2
|
class a {
|
|
3
3
|
constructor() {
|
|
4
4
|
this.handlers = [];
|
|
@@ -8,7 +8,6 @@ class a {
|
|
|
8
8
|
*
|
|
9
9
|
* @param {Function} fulfilled The function to handle `then` for a `Promise`
|
|
10
10
|
* @param {Function} rejected The function to handle `reject` for a `Promise`
|
|
11
|
-
* @param {Object} options The options for the interceptor, synchronous and runWhen
|
|
12
11
|
*
|
|
13
12
|
* @return {Number} An ID used to remove interceptor later
|
|
14
13
|
*/
|
package/dist/index370.js
CHANGED
|
@@ -1,26 +1,30 @@
|
|
|
1
|
-
import r from "./
|
|
2
|
-
import p from "./
|
|
3
|
-
import l from "./
|
|
4
|
-
import m from "./
|
|
5
|
-
import a from "./
|
|
6
|
-
import o from "./
|
|
1
|
+
import r from "./index385.js";
|
|
2
|
+
import p from "./index331.js";
|
|
3
|
+
import l from "./index327.js";
|
|
4
|
+
import m from "./index329.js";
|
|
5
|
+
import a from "./index337.js";
|
|
6
|
+
import o from "./index338.js";
|
|
7
7
|
function d(e) {
|
|
8
8
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
9
9
|
throw new m(null, e);
|
|
10
10
|
}
|
|
11
11
|
function q(e) {
|
|
12
|
-
return d(e), e.headers = a.from(e.headers), e.data = r.call(
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
12
|
+
return d(e), e.headers = a.from(e.headers), e.data = r.call(
|
|
13
|
+
e,
|
|
14
|
+
e.transformRequest
|
|
15
|
+
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), o.getAdapter(e.adapter || l.adapter, e)(e).then(function(t) {
|
|
16
|
+
return d(e), t.data = r.call(
|
|
17
|
+
e,
|
|
18
|
+
e.transformResponse,
|
|
19
|
+
t
|
|
20
|
+
), t.headers = a.from(t.headers), t;
|
|
21
|
+
}, function(t) {
|
|
22
|
+
return p(t) || (d(e), t && t.response && (t.response.data = r.call(
|
|
23
|
+
e,
|
|
24
|
+
e.transformResponse,
|
|
25
|
+
t.response
|
|
26
|
+
), t.response.headers = a.from(t.response.headers))), Promise.reject(t);
|
|
27
|
+
});
|
|
24
28
|
}
|
|
25
29
|
export {
|
|
26
30
|
q as default
|
package/dist/index371.js
CHANGED
package/dist/index372.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { VERSION as w } from "./
|
|
2
|
-
import s from "./
|
|
1
|
+
import { VERSION as w } from "./index332.js";
|
|
2
|
+
import s from "./index334.js";
|
|
3
3
|
const l = {};
|
|
4
4
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((n, t) => {
|
|
5
5
|
l[n] = function(o) {
|
|
@@ -38,10 +38,7 @@ function b(n, t, i) {
|
|
|
38
38
|
if (e) {
|
|
39
39
|
const u = n[r], c = u === void 0 || e(u, r, n);
|
|
40
40
|
if (c !== !0)
|
|
41
|
-
throw new s(
|
|
42
|
-
"option " + r + " must be " + c,
|
|
43
|
-
s.ERR_BAD_OPTION_VALUE
|
|
44
|
-
);
|
|
41
|
+
throw new s("option " + r + " must be " + c, s.ERR_BAD_OPTION_VALUE);
|
|
45
42
|
continue;
|
|
46
43
|
}
|
|
47
44
|
if (i !== !0)
|
package/dist/index373.js
CHANGED
package/dist/index374.js
CHANGED
package/dist/index375.js
CHANGED
package/dist/index376.js
CHANGED
package/dist/index378.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import H from "./
|
|
2
|
-
import D from "./
|
|
1
|
+
import H from "./index323.js";
|
|
2
|
+
import D from "./index390.js";
|
|
3
3
|
import L from "./index373.js";
|
|
4
|
-
import n from "./
|
|
5
|
-
import y from "./
|
|
6
|
-
import O from "./
|
|
4
|
+
import n from "./index334.js";
|
|
5
|
+
import y from "./index329.js";
|
|
6
|
+
import O from "./index391.js";
|
|
7
7
|
import U from "./index375.js";
|
|
8
|
-
import q from "./
|
|
9
|
-
import { progressEventReducer as A } from "./
|
|
10
|
-
import v from "./
|
|
8
|
+
import q from "./index337.js";
|
|
9
|
+
import { progressEventReducer as A } from "./index392.js";
|
|
10
|
+
import v from "./index393.js";
|
|
11
11
|
const N = typeof XMLHttpRequest < "u", Q = N && function(s) {
|
|
12
12
|
return new Promise(function(C, i) {
|
|
13
13
|
const t = v(s);
|
|
@@ -32,15 +32,11 @@ const N = typeof XMLHttpRequest < "u", Q = N && function(s) {
|
|
|
32
32
|
config: s,
|
|
33
33
|
request: e
|
|
34
34
|
};
|
|
35
|
-
D(
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
i(c), x();
|
|
41
|
-
},
|
|
42
|
-
a
|
|
43
|
-
), e = null;
|
|
35
|
+
D(function(c) {
|
|
36
|
+
C(c), x();
|
|
37
|
+
}, function(c) {
|
|
38
|
+
i(c), x();
|
|
39
|
+
}, a), e = null;
|
|
44
40
|
}
|
|
45
41
|
"onloadend" in e ? e.onloadend = b : e.onreadystatechange = function() {
|
|
46
42
|
!e || e.readyState !== 4 || e.status === 0 && !(e.responseURL && e.responseURL.indexOf("file:") === 0) || setTimeout(b);
|
|
@@ -52,14 +48,12 @@ const N = typeof XMLHttpRequest < "u", Q = N && function(s) {
|
|
|
52
48
|
}, e.ontimeout = function() {
|
|
53
49
|
let r = t.timeout ? "timeout of " + t.timeout + "ms exceeded" : "timeout exceeded";
|
|
54
50
|
const a = t.transitional || L;
|
|
55
|
-
t.timeoutErrorMessage && (r = t.timeoutErrorMessage), i(
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
)
|
|
62
|
-
), e = null;
|
|
51
|
+
t.timeoutErrorMessage && (r = t.timeoutErrorMessage), i(new n(
|
|
52
|
+
r,
|
|
53
|
+
a.clarifyTimeoutError ? n.ETIMEDOUT : n.ECONNABORTED,
|
|
54
|
+
s,
|
|
55
|
+
e
|
|
56
|
+
)), e = null;
|
|
63
57
|
}, E === void 0 && T.setContentType(null), "setRequestHeader" in e && H.forEach(T.toJSON(), function(r, a) {
|
|
64
58
|
e.setRequestHeader(a, r);
|
|
65
59
|
}), H.isUndefined(t.withCredentials) || (e.withCredentials = !!t.withCredentials), d && d !== "json" && (e.responseType = t.responseType), h && ([w, f] = A(h, !0), e.addEventListener("progress", w)), R && e.upload && ([g, u] = A(R), e.upload.addEventListener("progress", g), e.upload.addEventListener("loadend", u)), (t.cancelToken || t.signal) && (l = (o) => {
|
|
@@ -67,13 +61,7 @@ const N = typeof XMLHttpRequest < "u", Q = N && function(s) {
|
|
|
67
61
|
}, t.cancelToken && t.cancelToken.subscribe(l), t.signal && (t.signal.aborted ? l() : t.signal.addEventListener("abort", l)));
|
|
68
62
|
const m = O(t.url);
|
|
69
63
|
if (m && U.protocols.indexOf(m) === -1) {
|
|
70
|
-
i(
|
|
71
|
-
new n(
|
|
72
|
-
"Unsupported protocol " + m + ":",
|
|
73
|
-
n.ERR_BAD_REQUEST,
|
|
74
|
-
s
|
|
75
|
-
)
|
|
76
|
-
);
|
|
64
|
+
i(new n("Unsupported protocol " + m + ":", n.ERR_BAD_REQUEST, s));
|
|
77
65
|
return;
|
|
78
66
|
}
|
|
79
67
|
e.send(E || null);
|
package/dist/index379.js
CHANGED
|
@@ -1,35 +1,34 @@
|
|
|
1
1
|
import K from "./index375.js";
|
|
2
|
-
import t from "./
|
|
3
|
-
import b from "./
|
|
4
|
-
import ee from "./
|
|
5
|
-
import { trackStream as z } from "./
|
|
6
|
-
import te from "./
|
|
7
|
-
import { progressEventDecorator as I, progressEventReducer as M, asyncDecorator as j } from "./
|
|
8
|
-
import se from "./
|
|
9
|
-
import re from "./
|
|
10
|
-
const J = 64 * 1024, { isFunction: P } = t, ne = (({ Request:
|
|
11
|
-
Request:
|
|
12
|
-
Response:
|
|
13
|
-
}))(t.global), {
|
|
2
|
+
import t from "./index323.js";
|
|
3
|
+
import b from "./index334.js";
|
|
4
|
+
import ee from "./index394.js";
|
|
5
|
+
import { trackStream as z } from "./index395.js";
|
|
6
|
+
import te from "./index337.js";
|
|
7
|
+
import { progressEventDecorator as I, progressEventReducer as M, asyncDecorator as j } from "./index392.js";
|
|
8
|
+
import se from "./index393.js";
|
|
9
|
+
import re from "./index390.js";
|
|
10
|
+
const J = 64 * 1024, { isFunction: P } = t, ne = (({ Request: r, Response: n }) => ({
|
|
11
|
+
Request: r,
|
|
12
|
+
Response: n
|
|
13
|
+
}))(t.global), {
|
|
14
|
+
ReadableStream: V,
|
|
15
|
+
TextEncoder: W
|
|
16
|
+
} = t.global, Z = (r, ...n) => {
|
|
14
17
|
try {
|
|
15
|
-
return !!
|
|
18
|
+
return !!r(...n);
|
|
16
19
|
} catch {
|
|
17
20
|
return !1;
|
|
18
21
|
}
|
|
19
|
-
}, oe = (
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
ne,
|
|
25
|
-
n
|
|
26
|
-
);
|
|
27
|
-
const { fetch: o, Request: a, Response: y } = n, g = o ? P(o) : typeof fetch == "function", f = P(a), F = P(y);
|
|
22
|
+
}, oe = (r) => {
|
|
23
|
+
r = t.merge.call({
|
|
24
|
+
skipUndefined: !0
|
|
25
|
+
}, ne, r);
|
|
26
|
+
const { fetch: n, Request: o, Response: y } = r, g = n ? P(n) : typeof fetch == "function", f = P(o), F = P(y);
|
|
28
27
|
if (!g)
|
|
29
28
|
return !1;
|
|
30
|
-
const w = g && P(V), R = g && (typeof W == "function" ? /* @__PURE__ */ ((e) => (s) => e.encode(s))(new W()) : async (e) => new Uint8Array(await new
|
|
29
|
+
const w = g && P(V), R = g && (typeof W == "function" ? /* @__PURE__ */ ((e) => (s) => e.encode(s))(new W()) : async (e) => new Uint8Array(await new o(e).arrayBuffer())), d = f && w && Z(() => {
|
|
31
30
|
let e = !1;
|
|
32
|
-
const s = new
|
|
31
|
+
const s = new o(K.origin, {
|
|
33
32
|
body: new V(),
|
|
34
33
|
method: "POST",
|
|
35
34
|
get duplex() {
|
|
@@ -45,11 +44,7 @@ const J = 64 * 1024, { isFunction: P } = t, ne = (({ Request: n, Response: o })
|
|
|
45
44
|
let c = s && s[e];
|
|
46
45
|
if (c)
|
|
47
46
|
return c.call(s);
|
|
48
|
-
throw new b(
|
|
49
|
-
`Response type '${e}' is not supported`,
|
|
50
|
-
b.ERR_NOT_SUPPORT,
|
|
51
|
-
i
|
|
52
|
-
);
|
|
47
|
+
throw new b(`Response type '${e}' is not supported`, b.ERR_NOT_SUPPORT, i);
|
|
53
48
|
});
|
|
54
49
|
});
|
|
55
50
|
const $ = async (e) => {
|
|
@@ -58,7 +53,7 @@ const J = 64 * 1024, { isFunction: P } = t, ne = (({ Request: n, Response: o })
|
|
|
58
53
|
if (t.isBlob(e))
|
|
59
54
|
return e.size;
|
|
60
55
|
if (t.isSpecCompliantForm(e))
|
|
61
|
-
return (await new
|
|
56
|
+
return (await new o(K.origin, {
|
|
62
57
|
method: "POST",
|
|
63
58
|
body: e
|
|
64
59
|
}).arrayBuffer()).byteLength;
|
|
@@ -84,19 +79,16 @@ const J = 64 * 1024, { isFunction: P } = t, ne = (({ Request: n, Response: o })
|
|
|
84
79
|
headers: q,
|
|
85
80
|
withCredentials: C = "same-origin",
|
|
86
81
|
fetchOptions: U
|
|
87
|
-
} = se(e), v =
|
|
82
|
+
} = se(e), v = n || fetch;
|
|
88
83
|
l = l ? (l + "").toLowerCase() : "text";
|
|
89
|
-
let E = ee(
|
|
90
|
-
[Q, _ && _.toAbortSignal()],
|
|
91
|
-
X
|
|
92
|
-
), T = null;
|
|
84
|
+
let E = ee([Q, _ && _.toAbortSignal()], X), T = null;
|
|
93
85
|
const m = E && E.unsubscribe && (() => {
|
|
94
86
|
E.unsubscribe();
|
|
95
87
|
});
|
|
96
88
|
let D;
|
|
97
89
|
try {
|
|
98
90
|
if (B && d && i !== "get" && i !== "head" && (D = await G(q, c)) !== 0) {
|
|
99
|
-
let p = new
|
|
91
|
+
let p = new o(s, {
|
|
100
92
|
method: "POST",
|
|
101
93
|
body: c,
|
|
102
94
|
duplex: "half"
|
|
@@ -110,16 +102,16 @@ const J = 64 * 1024, { isFunction: P } = t, ne = (({ Request: n, Response: o })
|
|
|
110
102
|
}
|
|
111
103
|
}
|
|
112
104
|
t.isString(C) || (C = C ? "include" : "omit");
|
|
113
|
-
const
|
|
105
|
+
const a = f && "credentials" in o.prototype, N = {
|
|
114
106
|
...U,
|
|
115
107
|
signal: E,
|
|
116
108
|
method: i.toUpperCase(),
|
|
117
109
|
headers: q.normalize().toJSON(),
|
|
118
110
|
body: c,
|
|
119
111
|
duplex: "half",
|
|
120
|
-
credentials:
|
|
112
|
+
credentials: a ? C : void 0
|
|
121
113
|
};
|
|
122
|
-
T = f && new
|
|
114
|
+
T = f && new o(s, N);
|
|
123
115
|
let u = await (f ? v(T, U) : v(s, N));
|
|
124
116
|
const k = h && (l === "stream" || l === "response");
|
|
125
117
|
if (h && (O || k && m)) {
|
|
@@ -139,10 +131,7 @@ const J = 64 * 1024, { isFunction: P } = t, ne = (({ Request: n, Response: o })
|
|
|
139
131
|
);
|
|
140
132
|
}
|
|
141
133
|
l = l || "text";
|
|
142
|
-
let Y = await x[t.findKey(x, l) || "text"](
|
|
143
|
-
u,
|
|
144
|
-
e
|
|
145
|
-
);
|
|
134
|
+
let Y = await x[t.findKey(x, l) || "text"](u, e);
|
|
146
135
|
return !k && m && m(), await new Promise((p, S) => {
|
|
147
136
|
re(p, S, {
|
|
148
137
|
data: Y,
|
|
@@ -153,27 +142,25 @@ const J = 64 * 1024, { isFunction: P } = t, ne = (({ Request: n, Response: o })
|
|
|
153
142
|
request: T
|
|
154
143
|
});
|
|
155
144
|
});
|
|
156
|
-
} catch (
|
|
157
|
-
throw m && m(),
|
|
158
|
-
new b(
|
|
159
|
-
"Network Error",
|
|
160
|
-
b.ERR_NETWORK,
|
|
161
|
-
e,
|
|
162
|
-
T,
|
|
163
|
-
r && r.response
|
|
164
|
-
),
|
|
145
|
+
} catch (a) {
|
|
146
|
+
throw m && m(), a && a.name === "TypeError" && /Load failed|fetch/i.test(a.message) ? Object.assign(
|
|
147
|
+
new b("Network Error", b.ERR_NETWORK, e, T),
|
|
165
148
|
{
|
|
166
|
-
cause:
|
|
149
|
+
cause: a.cause || a
|
|
167
150
|
}
|
|
168
|
-
) : b.from(
|
|
151
|
+
) : b.from(a, a && a.code, e, T);
|
|
169
152
|
}
|
|
170
153
|
};
|
|
171
|
-
}, ae = /* @__PURE__ */ new Map(), ie = (
|
|
172
|
-
let
|
|
173
|
-
const { fetch:
|
|
154
|
+
}, ae = /* @__PURE__ */ new Map(), ie = (r) => {
|
|
155
|
+
let n = r && r.env || {};
|
|
156
|
+
const { fetch: o, Request: y, Response: g } = n, f = [
|
|
157
|
+
y,
|
|
158
|
+
g,
|
|
159
|
+
o
|
|
160
|
+
];
|
|
174
161
|
let F = f.length, w = F, R, d, h = ae;
|
|
175
162
|
for (; w--; )
|
|
176
|
-
R = f[w], d = h.get(R), d === void 0 && h.set(R, d = w ? /* @__PURE__ */ new Map() : oe(
|
|
163
|
+
R = f[w], d = h.get(R), d === void 0 && h.set(R, d = w ? /* @__PURE__ */ new Map() : oe(n)), h = d;
|
|
177
164
|
return d;
|
|
178
165
|
};
|
|
179
166
|
ie();
|
package/dist/index380.js
CHANGED
|
@@ -1,19 +1,103 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
function e(t) {
|
|
2
|
+
this.content = t;
|
|
3
|
+
}
|
|
4
|
+
e.prototype = {
|
|
5
|
+
constructor: e,
|
|
6
|
+
find: function(t) {
|
|
7
|
+
for (var n = 0; n < this.content.length; n += 2)
|
|
8
|
+
if (this.content[n] === t) return n;
|
|
9
|
+
return -1;
|
|
10
|
+
},
|
|
11
|
+
// :: (string) → ?any
|
|
12
|
+
// Retrieve the value stored under `key`, or return undefined when
|
|
13
|
+
// no such key exists.
|
|
14
|
+
get: function(t) {
|
|
15
|
+
var n = this.find(t);
|
|
16
|
+
return n == -1 ? void 0 : this.content[n + 1];
|
|
17
|
+
},
|
|
18
|
+
// :: (string, any, ?string) → OrderedMap
|
|
19
|
+
// Create a new map by replacing the value of `key` with a new
|
|
20
|
+
// value, or adding a binding to the end of the map. If `newKey` is
|
|
21
|
+
// given, the key of the binding will be replaced with that key.
|
|
22
|
+
update: function(t, n, r) {
|
|
23
|
+
var i = r && r != t ? this.remove(r) : this, o = i.find(t), c = i.content.slice();
|
|
24
|
+
return o == -1 ? c.push(r || t, n) : (c[o + 1] = n, r && (c[o] = r)), new e(c);
|
|
25
|
+
},
|
|
26
|
+
// :: (string) → OrderedMap
|
|
27
|
+
// Return a map with the given key removed, if it existed.
|
|
28
|
+
remove: function(t) {
|
|
29
|
+
var n = this.find(t);
|
|
30
|
+
if (n == -1) return this;
|
|
31
|
+
var r = this.content.slice();
|
|
32
|
+
return r.splice(n, 2), new e(r);
|
|
33
|
+
},
|
|
34
|
+
// :: (string, any) → OrderedMap
|
|
35
|
+
// Add a new key to the start of the map.
|
|
36
|
+
addToStart: function(t, n) {
|
|
37
|
+
return new e([t, n].concat(this.remove(t).content));
|
|
38
|
+
},
|
|
39
|
+
// :: (string, any) → OrderedMap
|
|
40
|
+
// Add a new key to the end of the map.
|
|
41
|
+
addToEnd: function(t, n) {
|
|
42
|
+
var r = this.remove(t).content.slice();
|
|
43
|
+
return r.push(t, n), new e(r);
|
|
44
|
+
},
|
|
45
|
+
// :: (string, string, any) → OrderedMap
|
|
46
|
+
// Add a key after the given key. If `place` is not found, the new
|
|
47
|
+
// key is added to the end.
|
|
48
|
+
addBefore: function(t, n, r) {
|
|
49
|
+
var i = this.remove(n), o = i.content.slice(), c = i.find(t);
|
|
50
|
+
return o.splice(c == -1 ? o.length : c, 0, n, r), new e(o);
|
|
51
|
+
},
|
|
52
|
+
// :: ((key: string, value: any))
|
|
53
|
+
// Call the given function for each key/value pair in the map, in
|
|
54
|
+
// order.
|
|
55
|
+
forEach: function(t) {
|
|
56
|
+
for (var n = 0; n < this.content.length; n += 2)
|
|
57
|
+
t(this.content[n], this.content[n + 1]);
|
|
58
|
+
},
|
|
59
|
+
// :: (union<Object, OrderedMap>) → OrderedMap
|
|
60
|
+
// Create a new map by prepending the keys in this map that don't
|
|
61
|
+
// appear in `map` before the keys in `map`.
|
|
62
|
+
prepend: function(t) {
|
|
63
|
+
return t = e.from(t), t.size ? new e(t.content.concat(this.subtract(t).content)) : this;
|
|
64
|
+
},
|
|
65
|
+
// :: (union<Object, OrderedMap>) → OrderedMap
|
|
66
|
+
// Create a new map by appending the keys in this map that don't
|
|
67
|
+
// appear in `map` after the keys in `map`.
|
|
68
|
+
append: function(t) {
|
|
69
|
+
return t = e.from(t), t.size ? new e(this.subtract(t).content.concat(t.content)) : this;
|
|
70
|
+
},
|
|
71
|
+
// :: (union<Object, OrderedMap>) → OrderedMap
|
|
72
|
+
// Create a map containing all the keys in this map that don't
|
|
73
|
+
// appear in `map`.
|
|
74
|
+
subtract: function(t) {
|
|
75
|
+
var n = this;
|
|
76
|
+
t = e.from(t);
|
|
77
|
+
for (var r = 0; r < t.content.length; r += 2)
|
|
78
|
+
n = n.remove(t.content[r]);
|
|
79
|
+
return n;
|
|
80
|
+
},
|
|
81
|
+
// :: () → Object
|
|
82
|
+
// Turn ordered map into a plain object.
|
|
83
|
+
toObject: function() {
|
|
84
|
+
var t = {};
|
|
85
|
+
return this.forEach(function(n, r) {
|
|
86
|
+
t[n] = r;
|
|
87
|
+
}), t;
|
|
88
|
+
},
|
|
89
|
+
// :: number
|
|
90
|
+
// The amount of keys in this map.
|
|
91
|
+
get size() {
|
|
92
|
+
return this.content.length >> 1;
|
|
12
93
|
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
94
|
+
};
|
|
95
|
+
e.from = function(t) {
|
|
96
|
+
if (t instanceof e) return t;
|
|
97
|
+
var n = [];
|
|
98
|
+
if (t) for (var r in t) n.push(r, t[r]);
|
|
99
|
+
return new e(n);
|
|
100
|
+
};
|
|
17
101
|
export {
|
|
18
|
-
|
|
102
|
+
e as default
|
|
19
103
|
};
|