@seayoo-web/request 2.0.6 → 2.0.8
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.cjs +2 -2
- package/dist/index.js +65 -66
- package/dist/node.cjs +1 -1
- package/dist/node.js +11 -13
- package/dist/request.fetch-Dc_ujBlU.cjs +1 -0
- package/dist/{request.fetch-CLhjvjtM.js → request.fetch-DfFYJr1l.js} +1 -1
- package/dist/{version-DjQ2Y-bj.js → retry-CaBI_Pfh.js} +165 -159
- package/dist/retry-DrW-Az-k.cjs +2 -0
- package/dist/wx.cjs +1 -1
- package/dist/wx.js +16 -18
- package/package.json +26 -40
- package/{dist → types}/index.d.ts +14 -13
- package/{dist → types}/node.d.ts +11 -12
- package/types/version.d.ts +1 -0
- package/{dist → types}/wx.d.ts +9 -10
- package/Migeration.md +0 -7
- package/dist/request.fetch-BS5HgpwU.cjs +0 -1
- package/dist/version-jIPGFudi.cjs +0 -2
- package/dist/version.d.ts +0 -1
- package/{dist → types}/inc/cache.d.ts +0 -0
- package/{dist → types}/inc/config.d.ts +0 -0
- package/{dist → types}/inc/detect.d.ts +0 -0
- package/{dist → types}/inc/guard.d.ts +1 -1
- package/{dist → types}/inc/jsonp.d.ts +0 -0
- package/{dist → types}/inc/main.d.ts +0 -0
- package/{dist → types}/inc/option.d.ts +1 -1
- package/{dist → types}/inc/request.fetch.d.ts +0 -0
- package/{dist → types}/inc/request.node.d.ts +0 -0
- package/{dist → types}/inc/request.wx.d.ts +0 -0
- package/{dist → types}/inc/request.xhr.d.ts +0 -0
- package/{dist → types}/inc/response.d.ts +0 -0
- package/{dist → types}/inc/retry.d.ts +1 -1
- package/{dist → types}/inc/rule.d.ts +0 -0
- package/{dist → types}/inc/sentry.d.ts +0 -0
- package/{dist → types}/inc/type.d.ts +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./
|
|
2
|
-
`).forEach(n=>{const r=n.trim();if(!r)return;const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./retry-DrW-Az-k.cjs"),y=require("./request.fetch-Dc_ujBlU.cjs"),m=async function(t,o,e){return s.handleResponse(await s.retryRequest(p,t,o,e),t,o,e)};async function q(t,o,e,n){const r=e==null?void 0:e.body,d=(e==null?void 0:e.method)==="PUT"?"PUT":"POST";if(o instanceof Blob){const i=new s.RequestGlobalConfig(n),f=await p(t,i,{...e,method:d,body:o});return s.handleResponse(f,t,i,e)}const c=new FormData,u={...o};r instanceof Object&&Object.entries(r).forEach(([i,f])=>{f instanceof Blob?u[i]=f:Array.isArray(f)?f.forEach((a,g)=>{c.append(`${i}[${g}]`,String(a))}):c.append(i,String(f))});for(const i in u)c.append(i,u[i]);const b=new s.RequestGlobalConfig(n),w=await p(t,b,{...e,method:d,body:c});return s.handleResponse(w,t,b,e)}const p=async function(t,o,e){const n=await s.convertOptions(t,o,e),r=n.method,d=e==null?void 0:e.onUploadProgress,c=s.Bt(n.url,n.params);return await new Promise(u=>{let b=null,w=!1;const i=function(){w||(a.abort(),w=!0)};function f(){b!==null&&clearTimeout(b),n.abort&&n.abort.removeEventListener("abort",i)}const a=new XMLHttpRequest;if(a.open(r,c,!0),d){let g=1;a.upload.addEventListener("progress",h=>{g=h.total,d({total:h.total,loaded:h.loaded})}),a.addEventListener("load",()=>{d({loaded:g,total:g})})}a.addEventListener("load",()=>{f(),u({url:c,method:r,status:a.status,statusText:a.statusText,headers:H(a),body:r==="HEAD"?"":a.responseText})}),a.addEventListener("error",g=>{f(),u({url:c,method:r,status:-1,statusText:"Unknown",body:"",rawError:g})},!0),a.addEventListener("abort",()=>{f(),u({url:c,method:r,status:-1,statusText:"Aborted",body:""})}),Object.entries(n.headers).forEach(([g,h])=>{a.setRequestHeader(g,h)}),n.credentials==="include"&&(a.withCredentials=!0),a.send(n.body||void 0),n.abort&&n.abort.addEventListener("abort",i),n.timeout>0&&(b=setTimeout(i,n.timeout))})};function H(t){const o={};if(!t)return o;const e=t.getAllResponseHeaders();return e&&e!=="null"&&e.replace(/\r/g,"").split(`
|
|
2
|
+
`).forEach(n=>{const r=n.trim();if(!r)return;const d=r.split(":"),c=d[0].trim();c&&(o[c]=(d[1]||"").trim())}),o}async function T(t,o,e={}){const n=window;"callback"in e||(e.callback="jsonxData"+Math.random().toString(16).slice(2));const r=e.callback+"";if(!t)return null;const d=s.Bt(t,e,!0);return new Promise(c=>{n[r]=function(u){if(r in window&&delete n[r],o(u))return u;console.warn("response type check faild",t,u),c(null)},s.je(d).catch(function(){c(null),delete n[r]})})}async function E(t,o,e={}){const n=window;return"var"in e||(e.var="jsonxData"+Math.random().toString(16).slice(2)),t?await s.je(s.Bt(t,e,!0)).then(()=>{const r=n[e.var+""];return o(r)?r:(console.warn("response type check faild",t,r),null)}).catch(()=>null):null}const j=async function(t,o,e){return await q(t,o,e,{baseURL:l.getConfig("baseURL"),logHandler:l.getConfig("logHandler"),errorHandler:l.getConfig("errorHandler"),requestTransformer:l.getConfig("requestTransformer"),messageHandler:l.getConfig("messageHandler"),responseHandler:l.getConfig("responseHandler")})};function R(t){if(!s.Support.window)throw new Error("Default Module Only Support In Browser");return s.Support.fetch?new s.NetRequestHandler(y.fetchRequest,t):new s.NetRequestHandler(m,t)}const l=R(),C=l.setConfig,S=l.request,x=l.head,L=l.get,U=l.post,k=l.del,v=l.put,D=l.patch;exports.getResponseRulesDescription=s.getResponseRulesDescription;exports.NetRequest=R;exports.del=k;exports.get=L;exports.head=x;exports.jsonp=T;exports.jsonx=E;exports.patch=D;exports.post=U;exports.put=v;exports.request=S;exports.setGlobalConfig=C;exports.upload=j;
|
package/dist/index.js
CHANGED
|
@@ -1,66 +1,66 @@
|
|
|
1
|
-
import { h as w, r as
|
|
2
|
-
import { g as I
|
|
3
|
-
import { f as x } from "./request.fetch-
|
|
4
|
-
const
|
|
5
|
-
return w(await
|
|
1
|
+
import { h as w, r as E, R as y, c as T, B as p, j as q, S as R, N as H } from "./retry-CaBI_Pfh.js";
|
|
2
|
+
import { g as I } from "./retry-CaBI_Pfh.js";
|
|
3
|
+
import { f as x } from "./request.fetch-DfFYJr1l.js";
|
|
4
|
+
const C = async function(t, o, e) {
|
|
5
|
+
return w(await E(m, t, o, e), t, o, e);
|
|
6
6
|
};
|
|
7
|
-
async function
|
|
8
|
-
const r = e == null ? void 0 : e.body,
|
|
9
|
-
if (
|
|
7
|
+
async function L(t, o, e, n) {
|
|
8
|
+
const r = e == null ? void 0 : e.body, i = (e == null ? void 0 : e.method) === "PUT" ? "PUT" : "POST";
|
|
9
|
+
if (o instanceof Blob) {
|
|
10
10
|
const l = new y(n), u = await m(t, l, {
|
|
11
11
|
...e,
|
|
12
|
-
method:
|
|
13
|
-
body:
|
|
12
|
+
method: i,
|
|
13
|
+
body: o
|
|
14
14
|
});
|
|
15
15
|
return w(u, t, l, e);
|
|
16
16
|
}
|
|
17
|
-
const s = new FormData(),
|
|
17
|
+
const s = new FormData(), d = { ...o };
|
|
18
18
|
r instanceof Object && Object.entries(r).forEach(([l, u]) => {
|
|
19
|
-
u instanceof Blob ?
|
|
20
|
-
s.append(`${l}[${f}]`, String(
|
|
19
|
+
u instanceof Blob ? d[l] = u : Array.isArray(u) ? u.forEach((a, f) => {
|
|
20
|
+
s.append(`${l}[${f}]`, String(a));
|
|
21
21
|
}) : s.append(l, String(u));
|
|
22
22
|
});
|
|
23
|
-
for (const l in
|
|
24
|
-
s.append(l,
|
|
23
|
+
for (const l in d)
|
|
24
|
+
s.append(l, d[l]);
|
|
25
25
|
const b = new y(n), h = await m(t, b, {
|
|
26
26
|
...e,
|
|
27
|
-
method:
|
|
27
|
+
method: i,
|
|
28
28
|
body: s
|
|
29
29
|
});
|
|
30
30
|
return w(h, t, b, e);
|
|
31
31
|
}
|
|
32
|
-
const m = async function(t,
|
|
33
|
-
const n = await T(t,
|
|
34
|
-
return await new Promise((
|
|
32
|
+
const m = async function(t, o, e) {
|
|
33
|
+
const n = await T(t, o, e), r = n.method, i = e == null ? void 0 : e.onUploadProgress, s = p(n.url, n.params);
|
|
34
|
+
return await new Promise((d) => {
|
|
35
35
|
let b = null, h = !1;
|
|
36
36
|
const l = function() {
|
|
37
|
-
h || (
|
|
37
|
+
h || (a.abort(), h = !0);
|
|
38
38
|
};
|
|
39
39
|
function u() {
|
|
40
40
|
b !== null && clearTimeout(b), n.abort && n.abort.removeEventListener("abort", l);
|
|
41
41
|
}
|
|
42
|
-
const
|
|
43
|
-
if (
|
|
42
|
+
const a = new XMLHttpRequest();
|
|
43
|
+
if (a.open(r, s, !0), i) {
|
|
44
44
|
let f = 1;
|
|
45
|
-
|
|
46
|
-
f = g.total,
|
|
47
|
-
}),
|
|
48
|
-
|
|
45
|
+
a.upload.addEventListener("progress", (g) => {
|
|
46
|
+
f = g.total, i({ total: g.total, loaded: g.loaded });
|
|
47
|
+
}), a.addEventListener("load", () => {
|
|
48
|
+
i({ loaded: f, total: f });
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
|
-
|
|
52
|
-
u(),
|
|
51
|
+
a.addEventListener("load", () => {
|
|
52
|
+
u(), d({
|
|
53
53
|
url: s,
|
|
54
54
|
method: r,
|
|
55
|
-
status:
|
|
56
|
-
statusText:
|
|
57
|
-
headers:
|
|
58
|
-
body: r === "HEAD" ? "" :
|
|
55
|
+
status: a.status,
|
|
56
|
+
statusText: a.statusText,
|
|
57
|
+
headers: S(a),
|
|
58
|
+
body: r === "HEAD" ? "" : a.responseText
|
|
59
59
|
});
|
|
60
|
-
}),
|
|
60
|
+
}), a.addEventListener(
|
|
61
61
|
"error",
|
|
62
62
|
(f) => {
|
|
63
|
-
u(),
|
|
63
|
+
u(), d({
|
|
64
64
|
url: s,
|
|
65
65
|
method: r,
|
|
66
66
|
status: -1,
|
|
@@ -70,8 +70,8 @@ const m = async function(t, a, e) {
|
|
|
70
70
|
});
|
|
71
71
|
},
|
|
72
72
|
!0
|
|
73
|
-
),
|
|
74
|
-
u(),
|
|
73
|
+
), a.addEventListener("abort", () => {
|
|
74
|
+
u(), d({
|
|
75
75
|
url: s,
|
|
76
76
|
method: r,
|
|
77
77
|
status: -1,
|
|
@@ -79,50 +79,50 @@ const m = async function(t, a, e) {
|
|
|
79
79
|
body: ""
|
|
80
80
|
});
|
|
81
81
|
}), Object.entries(n.headers).forEach(([f, g]) => {
|
|
82
|
-
|
|
83
|
-
}), n.credentials === "include" && (
|
|
82
|
+
a.setRequestHeader(f, g);
|
|
83
|
+
}), n.credentials === "include" && (a.withCredentials = !0), a.send(n.body || void 0), n.abort && n.abort.addEventListener("abort", l), n.timeout > 0 && (b = setTimeout(l, n.timeout));
|
|
84
84
|
});
|
|
85
85
|
};
|
|
86
|
-
function
|
|
87
|
-
const
|
|
86
|
+
function S(t) {
|
|
87
|
+
const o = {};
|
|
88
88
|
if (!t)
|
|
89
|
-
return
|
|
89
|
+
return o;
|
|
90
90
|
const e = t.getAllResponseHeaders();
|
|
91
91
|
return e && e !== "null" && e.replace(/\r/g, "").split(`
|
|
92
92
|
`).forEach((n) => {
|
|
93
93
|
const r = n.trim();
|
|
94
94
|
if (!r)
|
|
95
95
|
return;
|
|
96
|
-
const
|
|
97
|
-
s && (
|
|
98
|
-
}),
|
|
96
|
+
const i = r.split(":"), s = i[0].trim();
|
|
97
|
+
s && (o[s] = (i[1] || "").trim());
|
|
98
|
+
}), o;
|
|
99
99
|
}
|
|
100
|
-
async function
|
|
100
|
+
async function v(t, o, e = {}) {
|
|
101
101
|
const n = window;
|
|
102
102
|
"callback" in e || (e.callback = "jsonxData" + Math.random().toString(16).slice(2));
|
|
103
103
|
const r = e.callback + "";
|
|
104
104
|
if (!t)
|
|
105
105
|
return null;
|
|
106
|
-
const
|
|
106
|
+
const i = p(t, e, !0);
|
|
107
107
|
return new Promise((s) => {
|
|
108
|
-
n[r] = function(
|
|
109
|
-
if (r in window && delete n[r],
|
|
110
|
-
return
|
|
111
|
-
console.warn("response type check faild", t,
|
|
112
|
-
},
|
|
108
|
+
n[r] = function(d) {
|
|
109
|
+
if (r in window && delete n[r], o(d))
|
|
110
|
+
return d;
|
|
111
|
+
console.warn("response type check faild", t, d), s(null);
|
|
112
|
+
}, q(i).catch(function() {
|
|
113
113
|
s(null), delete n[r];
|
|
114
114
|
});
|
|
115
115
|
});
|
|
116
116
|
}
|
|
117
|
-
async function D(t,
|
|
117
|
+
async function D(t, o, e = {}) {
|
|
118
118
|
const n = window;
|
|
119
|
-
return "var" in e || (e.var = "jsonxData" + Math.random().toString(16).slice(2)), t ? await
|
|
119
|
+
return "var" in e || (e.var = "jsonxData" + Math.random().toString(16).slice(2)), t ? await q(p(t, e, !0)).then(() => {
|
|
120
120
|
const r = n[e.var + ""];
|
|
121
|
-
return
|
|
121
|
+
return o(r) ? r : (console.warn("response type check faild", t, r), null);
|
|
122
122
|
}).catch(() => null) : null;
|
|
123
123
|
}
|
|
124
|
-
const O = async function(t,
|
|
125
|
-
return await
|
|
124
|
+
const O = async function(t, o, e) {
|
|
125
|
+
return await L(t, o, e, {
|
|
126
126
|
baseURL: c.getConfig("baseURL"),
|
|
127
127
|
logHandler: c.getConfig("logHandler"),
|
|
128
128
|
errorHandler: c.getConfig("errorHandler"),
|
|
@@ -131,25 +131,24 @@ const O = async function(t, a, e) {
|
|
|
131
131
|
responseHandler: c.getConfig("responseHandler")
|
|
132
132
|
});
|
|
133
133
|
};
|
|
134
|
-
function
|
|
134
|
+
function j(t) {
|
|
135
135
|
if (!R.window)
|
|
136
136
|
throw new Error("Default Module Only Support In Browser");
|
|
137
|
-
return R.fetch ? new
|
|
137
|
+
return R.fetch ? new H(x, t) : new H(C, t);
|
|
138
138
|
}
|
|
139
|
-
const c =
|
|
139
|
+
const c = j(), P = c.setConfig, A = c.request, B = c.head, M = c.get, N = c.post, X = c.del, F = c.put, G = c.patch;
|
|
140
140
|
export {
|
|
141
|
-
|
|
141
|
+
j as NetRequest,
|
|
142
142
|
X as del,
|
|
143
|
-
|
|
143
|
+
M as get,
|
|
144
144
|
I as getResponseRulesDescription,
|
|
145
|
-
|
|
146
|
-
|
|
145
|
+
B as head,
|
|
146
|
+
v as jsonp,
|
|
147
147
|
D as jsonx,
|
|
148
148
|
G as patch,
|
|
149
|
-
|
|
149
|
+
N as post,
|
|
150
150
|
F as put,
|
|
151
151
|
A as request,
|
|
152
152
|
P as setGlobalConfig,
|
|
153
|
-
O as upload
|
|
154
|
-
J as version
|
|
153
|
+
O as upload
|
|
155
154
|
};
|
package/dist/node.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./retry-DrW-Az-k.cjs"),y=require("./request.fetch-Dc_ujBlU.cjs"),R=require("node:http"),g=require("node:https"),w=async function(o,a,c){return e.handleResponse(await e.retryRequest(S,o,a,c),o,a,c)},S=async function(o,a,c){const t=await e.convertOptions(o,a,c);if(!e.X(t.url))return{url:t.url,method:t.method,status:-1,statusText:"URLFormatError",headers:{},body:""};const f=/^https:\/\//i.test(t.url)?g:R,u=new URL(t.url),i=t.params;i instanceof Object&&Object.keys(i).forEach(r=>u.searchParams.set(r,i[r]));const q=t.method==="HEAD";return new Promise(r=>{const d=f.request(u,{headers:t.headers,method:t.method,timeout:t.timeout>0?t.timeout:void 0},function(s){const p=[];s.on("data",h=>p.push(h)),s.on("end",()=>{const h=e.fromEntries(Object.entries(s.headers).map(([b,m])=>[b.toLowerCase(),Array.isArray(m)?m.join(","):m]));r({url:u.toString(),method:t.method,status:s.statusCode||-1,statusText:s.statusMessage||"Unknown",headers:h,body:q?"":Buffer.concat(p).toString("utf-8")})})});d.on("error",s=>{r({url:u.toString(),method:t.method,status:-1,statusText:"Unknown",body:"",rawError:s})}),d.on("timeout",()=>{r({url:u.toString(),method:t.method,status:-1,statusText:"Timeout",body:""})}),t.body&&d.write(t.body),d.end()})};function l(o){return e.Support.fetch?new e.NetRequestHandler(y.fetchRequest,o):new e.NetRequestHandler(w,o)}const n=l(),T=n.setConfig,j=n.head,C=n.get,E=n.post,N=n.del,O=n.put,U=n.patch;exports.NetRequest=l;exports.del=N;exports.get=C;exports.head=j;exports.patch=U;exports.post=E;exports.put=O;exports.setGlobalConfig=T;
|
package/dist/node.js
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import y from "
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { f as T } from "./request.fetch-CLhjvjtM.js";
|
|
1
|
+
import { h as y, r as R, c as w, X as q, f as g, N as p, S } from "./retry-CaBI_Pfh.js";
|
|
2
|
+
import { f as x } from "./request.fetch-DfFYJr1l.js";
|
|
3
|
+
import E from "node:http";
|
|
4
|
+
import T from "node:https";
|
|
6
5
|
const U = async function(e, a, u) {
|
|
7
|
-
return
|
|
6
|
+
return y(await R(j, e, a, u), e, a, u);
|
|
8
7
|
}, j = async function(e, a, u) {
|
|
9
|
-
const t = await
|
|
10
|
-
if (!
|
|
8
|
+
const t = await w(e, a, u);
|
|
9
|
+
if (!q(t.url))
|
|
11
10
|
return {
|
|
12
11
|
url: t.url,
|
|
13
12
|
method: t.method,
|
|
@@ -16,7 +15,7 @@ const U = async function(e, a, u) {
|
|
|
16
15
|
headers: {},
|
|
17
16
|
body: ""
|
|
18
17
|
};
|
|
19
|
-
const f = /^https:\/\//i.test(t.url) ?
|
|
18
|
+
const f = /^https:\/\//i.test(t.url) ? T : E, n = new URL(t.url), d = t.params;
|
|
20
19
|
d instanceof Object && Object.keys(d).forEach((r) => n.searchParams.set(r, d[r]));
|
|
21
20
|
const b = t.method === "HEAD";
|
|
22
21
|
return new Promise((r) => {
|
|
@@ -30,7 +29,7 @@ const U = async function(e, a, u) {
|
|
|
30
29
|
function(o) {
|
|
31
30
|
const h = [];
|
|
32
31
|
o.on("data", (i) => h.push(i)), o.on("end", () => {
|
|
33
|
-
const i =
|
|
32
|
+
const i = g(
|
|
34
33
|
Object.entries(o.headers).map(([l, m]) => [l.toLowerCase(), Array.isArray(m) ? m.join(",") : m])
|
|
35
34
|
);
|
|
36
35
|
r({
|
|
@@ -65,7 +64,7 @@ const U = async function(e, a, u) {
|
|
|
65
64
|
});
|
|
66
65
|
};
|
|
67
66
|
function C(e) {
|
|
68
|
-
return
|
|
67
|
+
return S.fetch ? new p(x, e) : new p(U, e);
|
|
69
68
|
}
|
|
70
69
|
const s = C(), H = s.setConfig, k = s.head, P = s.get, B = s.post, D = s.del, F = s.put, G = s.patch;
|
|
71
70
|
export {
|
|
@@ -76,6 +75,5 @@ export {
|
|
|
76
75
|
G as patch,
|
|
77
76
|
B as post,
|
|
78
77
|
F as put,
|
|
79
|
-
H as setGlobalConfig
|
|
80
|
-
z as version
|
|
78
|
+
H as setGlobalConfig
|
|
81
79
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const o=require("./retry-DrW-Az-k.cjs"),f=async function(a,n,i){return o.handleResponse(await o.retryRequest(w,a,n,i),a,n,i)},w=async function(a,n,i){const t=await o.convertOptions(a,n,i),s=new URL(t.url),u=t.params;u instanceof Object&&Object.keys(u).forEach(e=>s.searchParams.set(e,u[e]));const r=o.Support.AbortController?new AbortController:null;function c(){r&&!r.signal.aborted&&r.abort()}t.abort&&t.abort.addEventListener("abort",c);const h=t.timeout>0?setTimeout(c,t.timeout):null,l=t.method==="HEAD";return await fetch(s,{method:t.method,headers:Object.keys(t.headers).length>0?new Headers(t.headers):void 0,body:t.body,credentials:t.credentials,signal:r==null?void 0:r.signal,redirect:"follow"}).then(async e=>{const d=l?"":await e.text().catch(m=>m),b=o.fromEntries([...e.headers.entries()]);return d instanceof Error?{url:s.toString(),method:t.method,status:e.status,statusText:e.statusText||"Unknown",body:"",headers:b,rawError:d}:{url:s.toString(),method:t.method,status:e.status,statusText:e.statusText,headers:b,body:d}}).catch(e=>({url:s.toString(),method:t.method,status:-1,statusText:r!=null&&r.signal.aborted?"Aborted":"Unknown",body:"",rawError:e})).finally(()=>{h!==null&&clearTimeout(h),t.abort&&t.abort.removeEventListener("abort",c)})};exports.fetchRequest=f;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as l, r as f, c as w, S as y, f as p } from "./
|
|
1
|
+
import { h as l, r as f, c as w, S as y, f as p } from "./retry-CaBI_Pfh.js";
|
|
2
2
|
const x = async function(o, r, n) {
|
|
3
3
|
return l(await f(E, o, r, n), o, r, n);
|
|
4
4
|
}, E = async function(o, r, n) {
|