@instockng/storefront-ui 1.0.15 → 1.0.17
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/components/OrderConfirmation.d.ts.map +1 -1
- package/dist/components/ui/button.d.ts +1 -1
- package/dist/index10.mjs +3 -3
- package/dist/index100.mjs +33 -5
- package/dist/index101.mjs +31 -33
- package/dist/index102.mjs +26 -29
- package/dist/index103.mjs +59 -26
- package/dist/index104.mjs +3 -61
- package/dist/index105.mjs +2 -3
- package/dist/index106.mjs +2 -2
- package/dist/index107.mjs +17 -2
- package/dist/index108.mjs +11 -15
- package/dist/index109.mjs +6 -13
- package/dist/index11.mjs +2 -2
- package/dist/index110.mjs +30 -6
- package/dist/index13.mjs +1 -1
- package/dist/index17.mjs +2 -2
- package/dist/index18.mjs +12 -21
- package/dist/index20.mjs +4 -9
- package/dist/index21.mjs +1 -1
- package/dist/index28.mjs +11 -11
- package/dist/index29.mjs +1 -1
- package/dist/index30.mjs +1 -1
- package/dist/index31.mjs +1 -1
- package/dist/index32.mjs +1 -1
- package/dist/index33.mjs +1433 -4
- package/dist/index34.mjs +2 -1433
- package/dist/index35.mjs +57 -2
- package/dist/index36.mjs +48 -54
- package/dist/index37.mjs +33 -51
- package/dist/index38.mjs +15 -33
- package/dist/index39.mjs +2260 -12
- package/dist/index4.mjs +37 -37
- package/dist/index40.mjs +36 -2263
- package/dist/index41.mjs +44 -36
- package/dist/index42.mjs +99 -44
- package/dist/index43.mjs +97 -99
- package/dist/index44.mjs +47 -78
- package/dist/index45.mjs +54 -53
- package/dist/index46.mjs +63 -55
- package/dist/index47.mjs +56 -79
- package/dist/index48.mjs +57 -63
- package/dist/index49.mjs +15 -70
- package/dist/index50.mjs +14 -14
- package/dist/index51.mjs +59 -13
- package/dist/index52.mjs +99 -36
- package/dist/index53.mjs +97 -97
- package/dist/index54.mjs +4 -132
- package/dist/index58.mjs +2 -2
- package/dist/index59.mjs +234 -3
- package/dist/index60.mjs +6 -2
- package/dist/index61.mjs +133 -4
- package/dist/index62.mjs +64 -30
- package/dist/index63.mjs +84 -40
- package/dist/index64.mjs +23 -229
- package/dist/index65.mjs +8 -5
- package/dist/index66.mjs +66 -125
- package/dist/index67.mjs +3 -67
- package/dist/index68.mjs +2 -87
- package/dist/index69.mjs +78 -24
- package/dist/index70.mjs +52 -7
- package/dist/index71.mjs +5 -74
- package/dist/index72.mjs +4 -3
- package/dist/index73.mjs +179 -2
- package/dist/index74.mjs +49 -79
- package/dist/index75.mjs +68 -53
- package/dist/index76.mjs +34 -6
- package/dist/index77.mjs +42 -4
- package/dist/index78.mjs +3 -178
- package/dist/index79.mjs +2 -53
- package/dist/index80.mjs +21 -69
- package/dist/index81.mjs +54 -19
- package/dist/index82.mjs +28 -55
- package/dist/index83.mjs +5 -27
- package/dist/index84.mjs +51 -6
- package/dist/index85.mjs +5 -51
- package/dist/index86.mjs +12 -6
- package/dist/index87.mjs +7 -12
- package/dist/index88.mjs +27 -6
- package/dist/index89.mjs +2 -28
- package/dist/index90.mjs +70 -2
- package/dist/index91.mjs +164 -67
- package/dist/index92.mjs +28 -164
- package/dist/index93.mjs +10 -30
- package/dist/index94.mjs +3 -10
- package/dist/index95.mjs +3 -3
- package/dist/index96.mjs +13 -4
- package/dist/index97.mjs +7 -13
- package/dist/index98.mjs +12 -7
- package/dist/index99.mjs +4 -11
- package/dist/styles.css +1 -1
- package/package.json +11 -11
- package/src/components/OrderConfirmation.tsx +6 -1
- package/dist/index111.mjs +0 -33
- package/dist/test-utils/MockCartProvider.d.ts +0 -21
- package/dist/test-utils/MockCartProvider.d.ts.map +0 -1
package/dist/index80.mjs
CHANGED
|
@@ -1,72 +1,24 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
UseProxy: 305,
|
|
23
|
-
Unused: 306,
|
|
24
|
-
TemporaryRedirect: 307,
|
|
25
|
-
PermanentRedirect: 308,
|
|
26
|
-
BadRequest: 400,
|
|
27
|
-
Unauthorized: 401,
|
|
28
|
-
PaymentRequired: 402,
|
|
29
|
-
Forbidden: 403,
|
|
30
|
-
NotFound: 404,
|
|
31
|
-
MethodNotAllowed: 405,
|
|
32
|
-
NotAcceptable: 406,
|
|
33
|
-
ProxyAuthenticationRequired: 407,
|
|
34
|
-
RequestTimeout: 408,
|
|
35
|
-
Conflict: 409,
|
|
36
|
-
Gone: 410,
|
|
37
|
-
LengthRequired: 411,
|
|
38
|
-
PreconditionFailed: 412,
|
|
39
|
-
PayloadTooLarge: 413,
|
|
40
|
-
UriTooLong: 414,
|
|
41
|
-
UnsupportedMediaType: 415,
|
|
42
|
-
RangeNotSatisfiable: 416,
|
|
43
|
-
ExpectationFailed: 417,
|
|
44
|
-
ImATeapot: 418,
|
|
45
|
-
MisdirectedRequest: 421,
|
|
46
|
-
UnprocessableEntity: 422,
|
|
47
|
-
Locked: 423,
|
|
48
|
-
FailedDependency: 424,
|
|
49
|
-
TooEarly: 425,
|
|
50
|
-
UpgradeRequired: 426,
|
|
51
|
-
PreconditionRequired: 428,
|
|
52
|
-
TooManyRequests: 429,
|
|
53
|
-
RequestHeaderFieldsTooLarge: 431,
|
|
54
|
-
UnavailableForLegalReasons: 451,
|
|
55
|
-
InternalServerError: 500,
|
|
56
|
-
NotImplemented: 501,
|
|
57
|
-
BadGateway: 502,
|
|
58
|
-
ServiceUnavailable: 503,
|
|
59
|
-
GatewayTimeout: 504,
|
|
60
|
-
HttpVersionNotSupported: 505,
|
|
61
|
-
VariantAlsoNegotiates: 506,
|
|
62
|
-
InsufficientStorage: 507,
|
|
63
|
-
LoopDetected: 508,
|
|
64
|
-
NotExtended: 510,
|
|
65
|
-
NetworkAuthenticationRequired: 511
|
|
66
|
-
};
|
|
67
|
-
Object.entries(e).forEach(([t, o]) => {
|
|
68
|
-
e[o] = t;
|
|
69
|
-
});
|
|
2
|
+
import f from "./index59.mjs";
|
|
3
|
+
import d from "./index92.mjs";
|
|
4
|
+
function l(e) {
|
|
5
|
+
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
6
|
+
}
|
|
7
|
+
function m(e, c, i) {
|
|
8
|
+
if (!c)
|
|
9
|
+
return e;
|
|
10
|
+
const t = i && i.encode || l;
|
|
11
|
+
f.isFunction(i) && (i = {
|
|
12
|
+
serialize: i
|
|
13
|
+
});
|
|
14
|
+
const r = i && i.serialize;
|
|
15
|
+
let n;
|
|
16
|
+
if (r ? n = r(c, i) : n = f.isURLSearchParams(c) ? c.toString() : new d(c, i).toString(t), n) {
|
|
17
|
+
const a = e.indexOf("#");
|
|
18
|
+
a !== -1 && (e = e.slice(0, a)), e += (e.indexOf("?") === -1 ? "?" : "&") + n;
|
|
19
|
+
}
|
|
20
|
+
return e;
|
|
21
|
+
}
|
|
70
22
|
export {
|
|
71
|
-
|
|
23
|
+
m as default
|
|
72
24
|
};
|
package/dist/index81.mjs
CHANGED
|
@@ -1,24 +1,59 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
2
|
+
import n from "./index59.mjs";
|
|
3
|
+
class a {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.handlers = [];
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Add a new interceptor to the stack
|
|
9
|
+
*
|
|
10
|
+
* @param {Function} fulfilled The function to handle `then` for a `Promise`
|
|
11
|
+
* @param {Function} rejected The function to handle `reject` for a `Promise`
|
|
12
|
+
*
|
|
13
|
+
* @return {Number} An ID used to remove interceptor later
|
|
14
|
+
*/
|
|
15
|
+
use(s, h, r) {
|
|
16
|
+
return this.handlers.push({
|
|
17
|
+
fulfilled: s,
|
|
18
|
+
rejected: h,
|
|
19
|
+
synchronous: r ? r.synchronous : !1,
|
|
20
|
+
runWhen: r ? r.runWhen : null
|
|
21
|
+
}), this.handlers.length - 1;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Remove an interceptor from the stack
|
|
25
|
+
*
|
|
26
|
+
* @param {Number} id The ID that was returned by `use`
|
|
27
|
+
*
|
|
28
|
+
* @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
|
|
29
|
+
*/
|
|
30
|
+
eject(s) {
|
|
31
|
+
this.handlers[s] && (this.handlers[s] = null);
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Clear all interceptors from the stack
|
|
35
|
+
*
|
|
36
|
+
* @returns {void}
|
|
37
|
+
*/
|
|
38
|
+
clear() {
|
|
39
|
+
this.handlers && (this.handlers = []);
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Iterate over all the registered interceptors
|
|
43
|
+
*
|
|
44
|
+
* This method is particularly useful for skipping over any
|
|
45
|
+
* interceptors that may have become `null` calling `eject`.
|
|
46
|
+
*
|
|
47
|
+
* @param {Function} fn The function to call for each interceptor
|
|
48
|
+
*
|
|
49
|
+
* @returns {void}
|
|
50
|
+
*/
|
|
51
|
+
forEach(s) {
|
|
52
|
+
n.forEach(this.handlers, function(r) {
|
|
53
|
+
r !== null && s(r);
|
|
54
|
+
});
|
|
19
55
|
}
|
|
20
|
-
return e;
|
|
21
56
|
}
|
|
22
57
|
export {
|
|
23
|
-
|
|
58
|
+
a as default
|
|
24
59
|
};
|
package/dist/index82.mjs
CHANGED
|
@@ -1,59 +1,32 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
*/
|
|
30
|
-
eject(s) {
|
|
31
|
-
this.handlers[s] && (this.handlers[s] = null);
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Clear all interceptors from the stack
|
|
35
|
-
*
|
|
36
|
-
* @returns {void}
|
|
37
|
-
*/
|
|
38
|
-
clear() {
|
|
39
|
-
this.handlers && (this.handlers = []);
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Iterate over all the registered interceptors
|
|
43
|
-
*
|
|
44
|
-
* This method is particularly useful for skipping over any
|
|
45
|
-
* interceptors that may have become `null` calling `eject`.
|
|
46
|
-
*
|
|
47
|
-
* @param {Function} fn The function to call for each interceptor
|
|
48
|
-
*
|
|
49
|
-
* @returns {void}
|
|
50
|
-
*/
|
|
51
|
-
forEach(s) {
|
|
52
|
-
n.forEach(this.handlers, function(r) {
|
|
53
|
-
r !== null && s(r);
|
|
54
|
-
});
|
|
55
|
-
}
|
|
2
|
+
import r from "./index93.mjs";
|
|
3
|
+
import p from "./index67.mjs";
|
|
4
|
+
import l from "./index63.mjs";
|
|
5
|
+
import m from "./index65.mjs";
|
|
6
|
+
import a from "./index73.mjs";
|
|
7
|
+
import o from "./index74.mjs";
|
|
8
|
+
function d(e) {
|
|
9
|
+
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
10
|
+
throw new m(null, e);
|
|
11
|
+
}
|
|
12
|
+
function q(e) {
|
|
13
|
+
return d(e), e.headers = a.from(e.headers), e.data = r.call(
|
|
14
|
+
e,
|
|
15
|
+
e.transformRequest
|
|
16
|
+
), ["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) {
|
|
17
|
+
return d(e), t.data = r.call(
|
|
18
|
+
e,
|
|
19
|
+
e.transformResponse,
|
|
20
|
+
t
|
|
21
|
+
), t.headers = a.from(t.headers), t;
|
|
22
|
+
}, function(t) {
|
|
23
|
+
return p(t) || (d(e), t && t.response && (t.response.data = r.call(
|
|
24
|
+
e,
|
|
25
|
+
e.transformResponse,
|
|
26
|
+
t.response
|
|
27
|
+
), t.response.headers = a.from(t.response.headers))), Promise.reject(t);
|
|
28
|
+
});
|
|
56
29
|
}
|
|
57
30
|
export {
|
|
58
|
-
|
|
31
|
+
q as default
|
|
59
32
|
};
|
package/dist/index83.mjs
CHANGED
|
@@ -1,32 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import r from "./index94.mjs";
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import o from "./index79.mjs";
|
|
8
|
-
function d(e) {
|
|
9
|
-
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
10
|
-
throw new m(null, e);
|
|
11
|
-
}
|
|
12
|
-
function q(e) {
|
|
13
|
-
return d(e), e.headers = a.from(e.headers), e.data = r.call(
|
|
14
|
-
e,
|
|
15
|
-
e.transformRequest
|
|
16
|
-
), ["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) {
|
|
17
|
-
return d(e), t.data = r.call(
|
|
18
|
-
e,
|
|
19
|
-
e.transformResponse,
|
|
20
|
-
t
|
|
21
|
-
), t.headers = a.from(t.headers), t;
|
|
22
|
-
}, function(t) {
|
|
23
|
-
return p(t) || (d(e), t && t.response && (t.response.data = r.call(
|
|
24
|
-
e,
|
|
25
|
-
e.transformResponse,
|
|
26
|
-
t.response
|
|
27
|
-
), t.response.headers = a.from(t.response.headers))), Promise.reject(t);
|
|
28
|
-
});
|
|
3
|
+
import f from "./index95.mjs";
|
|
4
|
+
function u(l, i, t) {
|
|
5
|
+
let o = !r(i);
|
|
6
|
+
return l && (o || t == !1) ? f(l, i) : i;
|
|
29
7
|
}
|
|
30
8
|
export {
|
|
31
|
-
|
|
9
|
+
u as default
|
|
32
10
|
};
|
package/dist/index84.mjs
CHANGED
|
@@ -1,10 +1,55 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
import { VERSION as w } from "./index68.mjs";
|
|
3
|
+
import s from "./index70.mjs";
|
|
4
|
+
const l = {};
|
|
5
|
+
["object", "boolean", "number", "function", "string", "symbol"].forEach((n, t) => {
|
|
6
|
+
l[n] = function(o) {
|
|
7
|
+
return typeof o === n || "a" + (t < 1 ? "n " : " ") + n;
|
|
8
|
+
};
|
|
9
|
+
});
|
|
10
|
+
const f = {};
|
|
11
|
+
l.transitional = function(t, i, o) {
|
|
12
|
+
function a(r, e) {
|
|
13
|
+
return "[Axios v" + w + "] Transitional option '" + r + "'" + e + (o ? ". " + o : "");
|
|
14
|
+
}
|
|
15
|
+
return (r, e, u) => {
|
|
16
|
+
if (t === !1)
|
|
17
|
+
throw new s(
|
|
18
|
+
a(e, " has been removed" + (i ? " in " + i : "")),
|
|
19
|
+
s.ERR_DEPRECATED
|
|
20
|
+
);
|
|
21
|
+
return i && !f[e] && (f[e] = !0, console.warn(
|
|
22
|
+
a(
|
|
23
|
+
e,
|
|
24
|
+
" has been deprecated since v" + i + " and will be removed in the near future"
|
|
25
|
+
)
|
|
26
|
+
)), t ? t(r, e, u) : !0;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
l.spelling = function(t) {
|
|
30
|
+
return (i, o) => (console.warn(`${o} is likely a misspelling of ${t}`), !0);
|
|
31
|
+
};
|
|
32
|
+
function b(n, t, i) {
|
|
33
|
+
if (typeof n != "object")
|
|
34
|
+
throw new s("options must be an object", s.ERR_BAD_OPTION_VALUE);
|
|
35
|
+
const o = Object.keys(n);
|
|
36
|
+
let a = o.length;
|
|
37
|
+
for (; a-- > 0; ) {
|
|
38
|
+
const r = o[a], e = t[r];
|
|
39
|
+
if (e) {
|
|
40
|
+
const u = n[r], c = u === void 0 || e(u, r, n);
|
|
41
|
+
if (c !== !0)
|
|
42
|
+
throw new s("option " + r + " must be " + c, s.ERR_BAD_OPTION_VALUE);
|
|
43
|
+
continue;
|
|
44
|
+
}
|
|
45
|
+
if (i !== !0)
|
|
46
|
+
throw new s("Unknown option " + r, s.ERR_BAD_OPTION);
|
|
47
|
+
}
|
|
7
48
|
}
|
|
49
|
+
const m = {
|
|
50
|
+
assertOptions: b,
|
|
51
|
+
validators: l
|
|
52
|
+
};
|
|
8
53
|
export {
|
|
9
|
-
|
|
54
|
+
m as default
|
|
10
55
|
};
|
package/dist/index85.mjs
CHANGED
|
@@ -1,55 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
l[n] = function(o) {
|
|
7
|
-
return typeof o === n || "a" + (t < 1 ? "n " : " ") + n;
|
|
8
|
-
};
|
|
9
|
-
});
|
|
10
|
-
const f = {};
|
|
11
|
-
l.transitional = function(t, i, o) {
|
|
12
|
-
function a(r, e) {
|
|
13
|
-
return "[Axios v" + w + "] Transitional option '" + r + "'" + e + (o ? ". " + o : "");
|
|
14
|
-
}
|
|
15
|
-
return (r, e, u) => {
|
|
16
|
-
if (t === !1)
|
|
17
|
-
throw new s(
|
|
18
|
-
a(e, " has been removed" + (i ? " in " + i : "")),
|
|
19
|
-
s.ERR_DEPRECATED
|
|
20
|
-
);
|
|
21
|
-
return i && !f[e] && (f[e] = !0, console.warn(
|
|
22
|
-
a(
|
|
23
|
-
e,
|
|
24
|
-
" has been deprecated since v" + i + " and will be removed in the near future"
|
|
25
|
-
)
|
|
26
|
-
)), t ? t(r, e, u) : !0;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
l.spelling = function(t) {
|
|
30
|
-
return (i, o) => (console.warn(`${o} is likely a misspelling of ${t}`), !0);
|
|
31
|
-
};
|
|
32
|
-
function b(n, t, i) {
|
|
33
|
-
if (typeof n != "object")
|
|
34
|
-
throw new s("options must be an object", s.ERR_BAD_OPTION_VALUE);
|
|
35
|
-
const o = Object.keys(n);
|
|
36
|
-
let a = o.length;
|
|
37
|
-
for (; a-- > 0; ) {
|
|
38
|
-
const r = o[a], e = t[r];
|
|
39
|
-
if (e) {
|
|
40
|
-
const u = n[r], c = u === void 0 || e(u, r, n);
|
|
41
|
-
if (c !== !0)
|
|
42
|
-
throw new s("option " + r + " must be " + c, s.ERR_BAD_OPTION_VALUE);
|
|
43
|
-
continue;
|
|
44
|
-
}
|
|
45
|
-
if (i !== !0)
|
|
46
|
-
throw new s("Unknown option " + r, s.ERR_BAD_OPTION);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
const m = {
|
|
50
|
-
assertOptions: b,
|
|
51
|
-
validators: l
|
|
2
|
+
const r = {
|
|
3
|
+
silentJSONParsing: !0,
|
|
4
|
+
forcedJSONParsing: !0,
|
|
5
|
+
clarifyTimeoutError: !1
|
|
52
6
|
};
|
|
53
7
|
export {
|
|
54
|
-
|
|
8
|
+
r as default
|
|
55
9
|
};
|
package/dist/index86.mjs
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
import s from "./index59.mjs";
|
|
3
|
+
import f from "./index69.mjs";
|
|
4
|
+
import r from "./index87.mjs";
|
|
5
|
+
function d(o, i) {
|
|
6
|
+
return f(o, new r.classes.URLSearchParams(), {
|
|
7
|
+
visitor: function(t, a, n, e) {
|
|
8
|
+
return r.isNode && s.isBuffer(t) ? (this.append(a, t.toString("base64")), !1) : e.defaultVisitor.apply(this, arguments);
|
|
9
|
+
},
|
|
10
|
+
...i
|
|
11
|
+
});
|
|
12
|
+
}
|
|
7
13
|
export {
|
|
8
|
-
|
|
14
|
+
d as default
|
|
9
15
|
};
|
package/dist/index87.mjs
CHANGED
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
return r.isNode && s.isBuffer(t) ? (this.append(a, t.toString("base64")), !1) : e.defaultVisitor.apply(this, arguments);
|
|
9
|
-
},
|
|
10
|
-
...i
|
|
11
|
-
});
|
|
12
|
-
}
|
|
2
|
+
import o from "./index96.mjs";
|
|
3
|
+
import * as t from "./index97.mjs";
|
|
4
|
+
const m = {
|
|
5
|
+
...t,
|
|
6
|
+
...o
|
|
7
|
+
};
|
|
13
8
|
export {
|
|
14
|
-
|
|
9
|
+
m as default
|
|
15
10
|
};
|
package/dist/index88.mjs
CHANGED
|
@@ -1,10 +1,31 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
import n from "./index59.mjs";
|
|
3
|
+
const a = n.toObjectSet([
|
|
4
|
+
"age",
|
|
5
|
+
"authorization",
|
|
6
|
+
"content-length",
|
|
7
|
+
"content-type",
|
|
8
|
+
"etag",
|
|
9
|
+
"expires",
|
|
10
|
+
"from",
|
|
11
|
+
"host",
|
|
12
|
+
"if-modified-since",
|
|
13
|
+
"if-unmodified-since",
|
|
14
|
+
"last-modified",
|
|
15
|
+
"location",
|
|
16
|
+
"max-forwards",
|
|
17
|
+
"proxy-authorization",
|
|
18
|
+
"referer",
|
|
19
|
+
"retry-after",
|
|
20
|
+
"user-agent"
|
|
21
|
+
]), u = (s) => {
|
|
22
|
+
const t = {};
|
|
23
|
+
let e, r, i;
|
|
24
|
+
return s && s.split(`
|
|
25
|
+
`).forEach(function(o) {
|
|
26
|
+
i = o.indexOf(":"), e = o.substring(0, i).trim().toLowerCase(), r = o.substring(i + 1).trim(), !(!e || t[e] && a[e]) && (e === "set-cookie" ? t[e] ? t[e].push(r) : t[e] = [r] : t[e] = t[e] ? t[e] + ", " + r : r);
|
|
27
|
+
}), t;
|
|
7
28
|
};
|
|
8
29
|
export {
|
|
9
|
-
|
|
30
|
+
u as default
|
|
10
31
|
};
|
package/dist/index89.mjs
CHANGED
|
@@ -1,31 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
|
|
3
|
-
const a = n.toObjectSet([
|
|
4
|
-
"age",
|
|
5
|
-
"authorization",
|
|
6
|
-
"content-length",
|
|
7
|
-
"content-type",
|
|
8
|
-
"etag",
|
|
9
|
-
"expires",
|
|
10
|
-
"from",
|
|
11
|
-
"host",
|
|
12
|
-
"if-modified-since",
|
|
13
|
-
"if-unmodified-since",
|
|
14
|
-
"last-modified",
|
|
15
|
-
"location",
|
|
16
|
-
"max-forwards",
|
|
17
|
-
"proxy-authorization",
|
|
18
|
-
"referer",
|
|
19
|
-
"retry-after",
|
|
20
|
-
"user-agent"
|
|
21
|
-
]), u = (s) => {
|
|
22
|
-
const t = {};
|
|
23
|
-
let e, r, i;
|
|
24
|
-
return s && s.split(`
|
|
25
|
-
`).forEach(function(o) {
|
|
26
|
-
i = o.indexOf(":"), e = o.substring(0, i).trim().toLowerCase(), r = o.substring(i + 1).trim(), !(!e || t[e] && a[e]) && (e === "set-cookie" ? t[e] ? t[e].push(r) : t[e] = [r] : t[e] = t[e] ? t[e] + ", " + r : r);
|
|
27
|
-
}), t;
|
|
28
|
-
};
|
|
2
|
+
const t = null;
|
|
29
3
|
export {
|
|
30
|
-
|
|
4
|
+
t as default
|
|
31
5
|
};
|
package/dist/index90.mjs
CHANGED
|
@@ -1,5 +1,73 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
|
|
2
|
+
import H from "./index59.mjs";
|
|
3
|
+
import D from "./index98.mjs";
|
|
4
|
+
import L from "./index85.mjs";
|
|
5
|
+
import n from "./index70.mjs";
|
|
6
|
+
import y from "./index65.mjs";
|
|
7
|
+
import O from "./index99.mjs";
|
|
8
|
+
import U from "./index87.mjs";
|
|
9
|
+
import q from "./index73.mjs";
|
|
10
|
+
import { progressEventReducer as A } from "./index100.mjs";
|
|
11
|
+
import v from "./index101.mjs";
|
|
12
|
+
const N = typeof XMLHttpRequest < "u", Q = N && function(s) {
|
|
13
|
+
return new Promise(function(C, i) {
|
|
14
|
+
const t = v(s);
|
|
15
|
+
let E = t.data;
|
|
16
|
+
const T = q.from(t.headers).normalize();
|
|
17
|
+
let { responseType: d, onUploadProgress: R, onDownloadProgress: h } = t, l, g, w, u, f;
|
|
18
|
+
function x() {
|
|
19
|
+
u && u(), f && f(), t.cancelToken && t.cancelToken.unsubscribe(l), t.signal && t.signal.removeEventListener("abort", l);
|
|
20
|
+
}
|
|
21
|
+
let e = new XMLHttpRequest();
|
|
22
|
+
e.open(t.method.toUpperCase(), t.url, !0), e.timeout = t.timeout;
|
|
23
|
+
function b() {
|
|
24
|
+
if (!e)
|
|
25
|
+
return;
|
|
26
|
+
const o = q.from(
|
|
27
|
+
"getAllResponseHeaders" in e && e.getAllResponseHeaders()
|
|
28
|
+
), a = {
|
|
29
|
+
data: !d || d === "text" || d === "json" ? e.responseText : e.response,
|
|
30
|
+
status: e.status,
|
|
31
|
+
statusText: e.statusText,
|
|
32
|
+
headers: o,
|
|
33
|
+
config: s,
|
|
34
|
+
request: e
|
|
35
|
+
};
|
|
36
|
+
D(function(c) {
|
|
37
|
+
C(c), x();
|
|
38
|
+
}, function(c) {
|
|
39
|
+
i(c), x();
|
|
40
|
+
}, a), e = null;
|
|
41
|
+
}
|
|
42
|
+
"onloadend" in e ? e.onloadend = b : e.onreadystatechange = function() {
|
|
43
|
+
!e || e.readyState !== 4 || e.status === 0 && !(e.responseURL && e.responseURL.indexOf("file:") === 0) || setTimeout(b);
|
|
44
|
+
}, e.onabort = function() {
|
|
45
|
+
e && (i(new n("Request aborted", n.ECONNABORTED, s, e)), e = null);
|
|
46
|
+
}, e.onerror = function(r) {
|
|
47
|
+
const a = r && r.message ? r.message : "Network Error", p = new n(a, n.ERR_NETWORK, s, e);
|
|
48
|
+
p.event = r || null, i(p), e = null;
|
|
49
|
+
}, e.ontimeout = function() {
|
|
50
|
+
let r = t.timeout ? "timeout of " + t.timeout + "ms exceeded" : "timeout exceeded";
|
|
51
|
+
const a = t.transitional || L;
|
|
52
|
+
t.timeoutErrorMessage && (r = t.timeoutErrorMessage), i(new n(
|
|
53
|
+
r,
|
|
54
|
+
a.clarifyTimeoutError ? n.ETIMEDOUT : n.ECONNABORTED,
|
|
55
|
+
s,
|
|
56
|
+
e
|
|
57
|
+
)), e = null;
|
|
58
|
+
}, E === void 0 && T.setContentType(null), "setRequestHeader" in e && H.forEach(T.toJSON(), function(r, a) {
|
|
59
|
+
e.setRequestHeader(a, r);
|
|
60
|
+
}), 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) => {
|
|
61
|
+
e && (i(!o || o.type ? new y(null, s, e) : o), e.abort(), e = null);
|
|
62
|
+
}, t.cancelToken && t.cancelToken.subscribe(l), t.signal && (t.signal.aborted ? l() : t.signal.addEventListener("abort", l)));
|
|
63
|
+
const m = O(t.url);
|
|
64
|
+
if (m && U.protocols.indexOf(m) === -1) {
|
|
65
|
+
i(new n("Unsupported protocol " + m + ":", n.ERR_BAD_REQUEST, s));
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
e.send(E || null);
|
|
69
|
+
});
|
|
70
|
+
};
|
|
3
71
|
export {
|
|
4
|
-
|
|
72
|
+
Q as default
|
|
5
73
|
};
|