@univerjs/network 0.5.1 → 0.5.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/lib/cjs/facade.js +1 -0
- package/lib/cjs/index.js +2 -2
- package/lib/es/facade.js +78 -0
- package/lib/es/index.js +405 -356
- package/lib/types/facade/f-network.d.ts +52 -0
- package/lib/types/facade/f-univer.d.ts +16 -0
- package/lib/types/facade/index.d.ts +18 -0
- package/lib/types/plugin.d.ts +12 -2
- package/lib/types/services/http/http.service.d.ts +4 -4
- package/lib/types/services/http/implementations/fetch.d.ts +4 -2
- package/lib/types/services/http/implementations/util.d.ts +2 -0
- package/lib/types/services/http/implementations/xhr.d.ts +4 -1
- package/lib/types/services/http/response.d.ts +4 -1
- package/lib/umd/facade.js +1 -0
- package/lib/umd/index.js +2 -2
- package/package.json +15 -5
package/lib/es/index.js
CHANGED
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { createIdentifier as
|
|
5
|
-
import { of as
|
|
6
|
-
import { concatMap as
|
|
1
|
+
var Z = Object.defineProperty;
|
|
2
|
+
var P = (e, r, t) => r in e ? Z(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t;
|
|
3
|
+
var d = (e, r, t) => P(e, typeof r != "symbol" ? r + "" : r, t);
|
|
4
|
+
import { createIdentifier as V, Disposable as z, toDisposable as R, remove as J, ILogService as D, Inject as S, Injector as H, Plugin as C, Quantity as T, LookUp as ee, registerDependencies as re, mergeOverrideWithDependencies as te, DisposableCollection as ne } from "@univerjs/core";
|
|
5
|
+
import { of as q, firstValueFrom as se, Observable as m, catchError as oe, throwError as ie } from "rxjs";
|
|
6
|
+
import { concatMap as M, share as b, retry as ce } from "rxjs/operators";
|
|
7
7
|
const k = "application/json";
|
|
8
|
-
class
|
|
8
|
+
class I {
|
|
9
9
|
constructor(r) {
|
|
10
|
-
|
|
10
|
+
d(this, "_headers", /* @__PURE__ */ new Map());
|
|
11
11
|
typeof r == "string" ? this._handleHeadersString(r) : r instanceof Headers ? this._handleHeaders(r) : r && this._handleHeadersConstructorProps(r);
|
|
12
12
|
}
|
|
13
13
|
forEach(r) {
|
|
14
|
-
this._headers.forEach((
|
|
14
|
+
this._headers.forEach((t, n) => r(n, t));
|
|
15
15
|
}
|
|
16
16
|
has(r) {
|
|
17
17
|
return !!this._headers.has(r.toLowerCase());
|
|
18
18
|
}
|
|
19
19
|
get(r) {
|
|
20
|
-
const
|
|
21
|
-
return this._headers.has(
|
|
20
|
+
const t = r.toLowerCase();
|
|
21
|
+
return this._headers.has(t) ? this._headers.get(t) : null;
|
|
22
22
|
}
|
|
23
|
-
set(r,
|
|
24
|
-
this._setHeader(r,
|
|
23
|
+
set(r, t) {
|
|
24
|
+
this._setHeader(r, t);
|
|
25
25
|
}
|
|
26
26
|
toHeadersInit() {
|
|
27
|
-
var
|
|
27
|
+
var t, n;
|
|
28
28
|
const r = {};
|
|
29
|
-
return this._headers.forEach((s,
|
|
30
|
-
r[
|
|
31
|
-
}), (
|
|
29
|
+
return this._headers.forEach((s, o) => {
|
|
30
|
+
r[o] = s.join(",");
|
|
31
|
+
}), (t = r.accept) != null || (r.accept = "application/json, text/plain, */*"), (n = r["content-type"]) != null || (r["content-type"] = "application/json;charset=UTF-8"), r;
|
|
32
32
|
}
|
|
33
|
-
_setHeader(r,
|
|
34
|
-
const
|
|
35
|
-
this._headers.has(
|
|
33
|
+
_setHeader(r, t) {
|
|
34
|
+
const n = r.toLowerCase();
|
|
35
|
+
this._headers.has(n) ? this._headers.get(n).push(t.toString()) : this._headers.set(n, [t.toString()]);
|
|
36
36
|
}
|
|
37
37
|
_handleHeadersString(r) {
|
|
38
38
|
r.split(`
|
|
39
|
-
`).forEach((
|
|
40
|
-
const [
|
|
41
|
-
|
|
39
|
+
`).forEach((t) => {
|
|
40
|
+
const [n, s] = t.split(":");
|
|
41
|
+
n && s && this._setHeader(n, s);
|
|
42
42
|
});
|
|
43
43
|
}
|
|
44
44
|
_handleHeadersConstructorProps(r) {
|
|
45
|
-
Object.entries(r).forEach(([
|
|
45
|
+
Object.entries(r).forEach(([t, n]) => this._setHeader(t, n));
|
|
46
46
|
}
|
|
47
47
|
_handleHeaders(r) {
|
|
48
|
-
r.forEach((
|
|
48
|
+
r.forEach((t, n) => this._setHeader(n, t));
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
-
const
|
|
52
|
-
class
|
|
51
|
+
const K = V("network.http-implementation");
|
|
52
|
+
class B {
|
|
53
53
|
constructor(r) {
|
|
54
54
|
this.params = r;
|
|
55
55
|
}
|
|
@@ -57,11 +57,11 @@ class M {
|
|
|
57
57
|
return this.params ? Object.keys(this.params).map((r) => `${r}=${this.params[r]}`).join("&") : "";
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
let
|
|
61
|
-
class
|
|
62
|
-
constructor(r,
|
|
63
|
-
|
|
64
|
-
this.method = r, this.url =
|
|
60
|
+
let ae = 0;
|
|
61
|
+
class G {
|
|
62
|
+
constructor(r, t, n) {
|
|
63
|
+
d(this, "uid", ae++);
|
|
64
|
+
this.method = r, this.url = t, this.requestParams = n;
|
|
65
65
|
}
|
|
66
66
|
get headers() {
|
|
67
67
|
return this.requestParams.headers;
|
|
@@ -73,30 +73,30 @@ class j {
|
|
|
73
73
|
return this.requestParams.responseType;
|
|
74
74
|
}
|
|
75
75
|
getUrlWithParams() {
|
|
76
|
-
var
|
|
77
|
-
const r = (
|
|
76
|
+
var t, n;
|
|
77
|
+
const r = (n = (t = this.requestParams) == null ? void 0 : t.params) == null ? void 0 : n.toString();
|
|
78
78
|
return r ? `${this.url}${this.url.includes("?") ? "&" : "?"}${r}` : this.url;
|
|
79
79
|
}
|
|
80
80
|
getBody() {
|
|
81
|
-
var
|
|
82
|
-
const r = (
|
|
83
|
-
return r === k &&
|
|
81
|
+
var n, s;
|
|
82
|
+
const r = (n = this.headers.get("Content-Type")) != null ? n : k, t = (s = this.requestParams) == null ? void 0 : s.body;
|
|
83
|
+
return r === k && t && typeof t == "object" ? JSON.stringify(t) : t ? `${t}` : null;
|
|
84
84
|
}
|
|
85
85
|
getHeadersInit() {
|
|
86
86
|
return this.headers.toHeadersInit();
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
|
-
var
|
|
90
|
-
for (var s =
|
|
91
|
-
(
|
|
92
|
-
return
|
|
93
|
-
},
|
|
94
|
-
let
|
|
89
|
+
var le = Object.defineProperty, he = Object.getOwnPropertyDescriptor, pe = (e, r, t, n) => {
|
|
90
|
+
for (var s = n > 1 ? void 0 : n ? he(r, t) : r, o = e.length - 1, i; o >= 0; o--)
|
|
91
|
+
(i = e[o]) && (s = (n ? i(r, t, s) : i(s)) || s);
|
|
92
|
+
return n && s && le(r, t, s), s;
|
|
93
|
+
}, de = (e, r) => (t, n) => r(t, n, e);
|
|
94
|
+
let x = class extends z {
|
|
95
95
|
constructor(r) {
|
|
96
96
|
super();
|
|
97
|
-
|
|
97
|
+
d(this, "_interceptors", []);
|
|
98
98
|
// eslint-disable-next-line ts/no-explicit-any
|
|
99
|
-
|
|
99
|
+
d(this, "_pipe");
|
|
100
100
|
this._http = r;
|
|
101
101
|
}
|
|
102
102
|
/**
|
|
@@ -108,427 +108,476 @@ let F = class extends G {
|
|
|
108
108
|
registerHTTPInterceptor(r) {
|
|
109
109
|
if (this._interceptors.indexOf(r) !== -1)
|
|
110
110
|
throw new Error("[HTTPService]: The interceptor has already been registered!");
|
|
111
|
-
return this._interceptors.push(r), this._interceptors = this._interceptors.sort((
|
|
112
|
-
var s,
|
|
113
|
-
return ((s =
|
|
114
|
-
}), this._pipe = null, R(() =>
|
|
111
|
+
return this._interceptors.push(r), this._interceptors = this._interceptors.sort((t, n) => {
|
|
112
|
+
var s, o;
|
|
113
|
+
return ((s = t.priority) != null ? s : 0) - ((o = n.priority) != null ? o : 0);
|
|
114
|
+
}), this._pipe = null, R(() => J(this._interceptors, r));
|
|
115
115
|
}
|
|
116
|
-
get(r,
|
|
117
|
-
return this._request("GET", r,
|
|
116
|
+
get(r, t) {
|
|
117
|
+
return this._request("GET", r, t);
|
|
118
118
|
}
|
|
119
|
-
post(r,
|
|
120
|
-
return this._request("POST", r,
|
|
119
|
+
post(r, t) {
|
|
120
|
+
return this._request("POST", r, t);
|
|
121
121
|
}
|
|
122
|
-
put(r,
|
|
123
|
-
return this._request("PUT", r,
|
|
122
|
+
put(r, t) {
|
|
123
|
+
return this._request("PUT", r, t);
|
|
124
124
|
}
|
|
125
|
-
delete(r,
|
|
126
|
-
return this._request("DELETE", r,
|
|
125
|
+
delete(r, t) {
|
|
126
|
+
return this._request("DELETE", r, t);
|
|
127
127
|
}
|
|
128
|
-
patch(r,
|
|
129
|
-
return this._request("PATCH", r,
|
|
128
|
+
patch(r, t) {
|
|
129
|
+
return this._request("PATCH", r, t);
|
|
130
130
|
}
|
|
131
|
-
getSSE(r,
|
|
132
|
-
var c,
|
|
133
|
-
const s = new
|
|
131
|
+
getSSE(r, t, n) {
|
|
132
|
+
var c, w;
|
|
133
|
+
const s = new I(n == null ? void 0 : n.headers), o = new B(n == null ? void 0 : n.params), i = new G(r, t, {
|
|
134
134
|
headers: s,
|
|
135
|
-
params:
|
|
136
|
-
withCredentials: (c =
|
|
135
|
+
params: o,
|
|
136
|
+
withCredentials: (c = n == null ? void 0 : n.withCredentials) != null ? c : !1,
|
|
137
137
|
reportProgress: !0,
|
|
138
|
-
responseType: (
|
|
139
|
-
body: ["GET", "DELETE"].includes(r) ||
|
|
138
|
+
responseType: (w = n == null ? void 0 : n.responseType) != null ? w : "json",
|
|
139
|
+
body: ["GET", "DELETE"].includes(r) || n == null ? void 0 : n.body
|
|
140
140
|
});
|
|
141
|
-
return
|
|
141
|
+
return q(i).pipe(M((a) => this._runInterceptorsAndImplementation(a)));
|
|
142
142
|
}
|
|
143
143
|
/** The HTTP request implementations */
|
|
144
|
-
async _request(r,
|
|
144
|
+
async _request(r, t, n) {
|
|
145
145
|
var a, h;
|
|
146
|
-
const s = new
|
|
146
|
+
const s = new I(n == null ? void 0 : n.headers), o = new B(n == null ? void 0 : n.params), i = new G(r, t, {
|
|
147
147
|
headers: s,
|
|
148
|
-
params:
|
|
149
|
-
withCredentials: (a =
|
|
148
|
+
params: o,
|
|
149
|
+
withCredentials: (a = n == null ? void 0 : n.withCredentials) != null ? a : !1,
|
|
150
150
|
// default value for withCredentials is false by MDN
|
|
151
|
-
responseType: (h =
|
|
152
|
-
body: ["GET", "DELETE"].includes(r) ||
|
|
153
|
-
}), c =
|
|
154
|
-
|
|
151
|
+
responseType: (h = n == null ? void 0 : n.responseType) != null ? h : "json",
|
|
152
|
+
body: ["GET", "DELETE"].includes(r) || n == null ? void 0 : n.body
|
|
153
|
+
}), c = q(i).pipe(
|
|
154
|
+
M((l) => this._runInterceptorsAndImplementation(l))
|
|
155
155
|
);
|
|
156
|
-
return await
|
|
156
|
+
return await se(c);
|
|
157
157
|
}
|
|
158
158
|
// eslint-disable-next-line ts/no-explicit-any
|
|
159
159
|
_runInterceptorsAndImplementation(r) {
|
|
160
|
-
return this._pipe || (this._pipe = this._interceptors.map((
|
|
161
|
-
(
|
|
162
|
-
(
|
|
160
|
+
return this._pipe || (this._pipe = this._interceptors.map((t) => t.interceptor).reduceRight(
|
|
161
|
+
(t, n) => ue(t, n),
|
|
162
|
+
(t, n) => n(t)
|
|
163
163
|
)), this._pipe(
|
|
164
164
|
r,
|
|
165
|
-
(
|
|
165
|
+
(t) => this._http.send(t)
|
|
166
166
|
/* final handler */
|
|
167
167
|
);
|
|
168
168
|
}
|
|
169
169
|
};
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
],
|
|
173
|
-
function
|
|
174
|
-
return (
|
|
170
|
+
x = pe([
|
|
171
|
+
de(0, K)
|
|
172
|
+
], x);
|
|
173
|
+
function ue(e, r) {
|
|
174
|
+
return (t, n) => r(t, (s) => e(s, n));
|
|
175
175
|
}
|
|
176
|
-
const
|
|
177
|
-
var
|
|
178
|
-
class
|
|
176
|
+
const fe = 200, ge = 300;
|
|
177
|
+
var L = /* @__PURE__ */ ((e) => (e[e.Continue = 100] = "Continue", e[e.SwitchingProtocols = 101] = "SwitchingProtocols", e[e.Processing = 102] = "Processing", e[e.EarlyHints = 103] = "EarlyHints", e[e.Ok = 200] = "Ok", e[e.Created = 201] = "Created", e[e.Accepted = 202] = "Accepted", e[e.NonAuthoritativeInformation = 203] = "NonAuthoritativeInformation", e[e.NoContent = 204] = "NoContent", e[e.ResetContent = 205] = "ResetContent", e[e.PartialContent = 206] = "PartialContent", e[e.MultiStatus = 207] = "MultiStatus", e[e.AlreadyReported = 208] = "AlreadyReported", e[e.ImUsed = 226] = "ImUsed", e[e.MultipleChoices = 300] = "MultipleChoices", e[e.MovedPermanently = 301] = "MovedPermanently", e[e.Found = 302] = "Found", e[e.SeeOther = 303] = "SeeOther", e[e.NotModified = 304] = "NotModified", e[e.UseProxy = 305] = "UseProxy", e[e.Unused = 306] = "Unused", e[e.TemporaryRedirect = 307] = "TemporaryRedirect", e[e.PermanentRedirect = 308] = "PermanentRedirect", e[e.BadRequest = 400] = "BadRequest", e[e.Unauthorized = 401] = "Unauthorized", e[e.PaymentRequired = 402] = "PaymentRequired", e[e.Forbidden = 403] = "Forbidden", e[e.NotFound = 404] = "NotFound", e[e.MethodNotAllowed = 405] = "MethodNotAllowed", e[e.NotAcceptable = 406] = "NotAcceptable", e[e.ProxyAuthenticationRequired = 407] = "ProxyAuthenticationRequired", e[e.RequestTimeout = 408] = "RequestTimeout", e[e.Conflict = 409] = "Conflict", e[e.Gone = 410] = "Gone", e[e.LengthRequired = 411] = "LengthRequired", e[e.PreconditionFailed = 412] = "PreconditionFailed", e[e.PayloadTooLarge = 413] = "PayloadTooLarge", e[e.UriTooLong = 414] = "UriTooLong", e[e.UnsupportedMediaType = 415] = "UnsupportedMediaType", e[e.RangeNotSatisfiable = 416] = "RangeNotSatisfiable", e[e.ExpectationFailed = 417] = "ExpectationFailed", e[e.ImATeapot = 418] = "ImATeapot", e[e.MisdirectedRequest = 421] = "MisdirectedRequest", e[e.UnprocessableEntity = 422] = "UnprocessableEntity", e[e.Locked = 423] = "Locked", e[e.FailedDependency = 424] = "FailedDependency", e[e.TooEarly = 425] = "TooEarly", e[e.UpgradeRequired = 426] = "UpgradeRequired", e[e.PreconditionRequired = 428] = "PreconditionRequired", e[e.TooManyRequests = 429] = "TooManyRequests", e[e.RequestHeaderFieldsTooLarge = 431] = "RequestHeaderFieldsTooLarge", e[e.UnavailableForLegalReasons = 451] = "UnavailableForLegalReasons", e[e.InternalServerError = 500] = "InternalServerError", e[e.NotImplemented = 501] = "NotImplemented", e[e.BadGateway = 502] = "BadGateway", e[e.ServiceUnavailable = 503] = "ServiceUnavailable", e[e.GatewayTimeout = 504] = "GatewayTimeout", e[e.HttpVersionNotSupported = 505] = "HttpVersionNotSupported", e[e.VariantAlsoNegotiates = 506] = "VariantAlsoNegotiates", e[e.InsufficientStorage = 507] = "InsufficientStorage", e[e.LoopDetected = 508] = "LoopDetected", e[e.NotExtended = 510] = "NotExtended", e[e.NetworkAuthenticationRequired = 511] = "NetworkAuthenticationRequired", e))(L || {}), Y = /* @__PURE__ */ ((e) => (e[e.DownloadProgress = 0] = "DownloadProgress", e[e.Response = 1] = "Response", e))(Y || {});
|
|
178
|
+
class $ {
|
|
179
179
|
constructor({
|
|
180
180
|
body: r,
|
|
181
|
-
headers:
|
|
182
|
-
status:
|
|
181
|
+
headers: t,
|
|
182
|
+
status: n,
|
|
183
183
|
statusText: s
|
|
184
184
|
}) {
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
this.body = r, this.headers =
|
|
185
|
+
d(this, "type", 1);
|
|
186
|
+
d(this, "body");
|
|
187
|
+
d(this, "headers");
|
|
188
|
+
d(this, "status");
|
|
189
|
+
d(this, "statusText");
|
|
190
|
+
this.body = r, this.headers = t, this.status = n, this.statusText = s;
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
|
-
class
|
|
194
|
-
constructor(r,
|
|
195
|
-
|
|
196
|
-
this.total = r, this.loaded =
|
|
193
|
+
class we {
|
|
194
|
+
constructor(r, t, n) {
|
|
195
|
+
d(this, "type", 0);
|
|
196
|
+
this.total = r, this.loaded = t, this.partialText = n;
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
|
-
class
|
|
200
|
-
constructor(r,
|
|
201
|
-
this.headers = r, this.status =
|
|
199
|
+
class ye {
|
|
200
|
+
constructor(r, t, n) {
|
|
201
|
+
this.headers = r, this.status = t, this.statusText = n;
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
|
-
class
|
|
204
|
+
class v {
|
|
205
205
|
constructor({
|
|
206
|
-
|
|
206
|
+
request: r,
|
|
207
|
+
headers: t,
|
|
207
208
|
status: n,
|
|
208
|
-
statusText:
|
|
209
|
-
error:
|
|
209
|
+
statusText: s,
|
|
210
|
+
error: o
|
|
210
211
|
}) {
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
this
|
|
212
|
+
d(this, "request");
|
|
213
|
+
d(this, "headers");
|
|
214
|
+
d(this, "status");
|
|
215
|
+
d(this, "statusText");
|
|
216
|
+
d(this, "error");
|
|
217
|
+
this.request = r, this.headers = t, this.status = n, this.statusText = s, this.error = o;
|
|
216
218
|
}
|
|
217
219
|
}
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
return new he(a, t.status, l);
|
|
226
|
-
}, i = () => {
|
|
227
|
-
const { headers: l, statusText: a, status: h } = s(), { responseType: m } = r;
|
|
228
|
-
let d = null, f = null;
|
|
229
|
-
h !== I.NoContent && (d = typeof t.response > "u" ? t.responseText : t.response);
|
|
230
|
-
let y = h >= ce && h < ae;
|
|
231
|
-
if (m === "json" && typeof d == "string") {
|
|
232
|
-
const g = d;
|
|
233
|
-
try {
|
|
234
|
-
d = d ? JSON.parse(d) : null;
|
|
235
|
-
} catch (p) {
|
|
236
|
-
y = !1, d = g, f = p;
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
y ? n.next(
|
|
240
|
-
new U({
|
|
241
|
-
body: d,
|
|
242
|
-
headers: l,
|
|
243
|
-
status: h,
|
|
244
|
-
statusText: a
|
|
245
|
-
})
|
|
246
|
-
) : n.error(
|
|
247
|
-
new _({
|
|
248
|
-
error: f,
|
|
249
|
-
headers: l,
|
|
250
|
-
status: h,
|
|
251
|
-
statusText: a
|
|
252
|
-
})
|
|
253
|
-
);
|
|
254
|
-
}, o = (l) => {
|
|
255
|
-
const a = new _({
|
|
256
|
-
error: l,
|
|
257
|
-
status: t.status || 0,
|
|
258
|
-
statusText: t.statusText || "Unknown Error",
|
|
259
|
-
headers: s().headers
|
|
260
|
-
});
|
|
261
|
-
n.error(a);
|
|
262
|
-
};
|
|
263
|
-
t.addEventListener("load", i), t.addEventListener("error", o), t.addEventListener("abort", o), t.addEventListener("timeout", o);
|
|
264
|
-
const c = r.getBody();
|
|
265
|
-
return t.send(c), () => {
|
|
266
|
-
t.readyState !== t.DONE && t.abort(), t.removeEventListener("load", i), t.removeEventListener("error", o), t.removeEventListener("abort", o), t.removeEventListener("timeout", o);
|
|
267
|
-
};
|
|
268
|
-
});
|
|
269
|
-
}
|
|
220
|
+
function Q(e) {
|
|
221
|
+
return {
|
|
222
|
+
method: e.method,
|
|
223
|
+
headers: e.getHeadersInit(),
|
|
224
|
+
body: e.getBody(),
|
|
225
|
+
credentials: e.withCredentials ? "include" : void 0
|
|
226
|
+
};
|
|
270
227
|
}
|
|
271
|
-
var
|
|
272
|
-
for (var s =
|
|
273
|
-
(
|
|
274
|
-
return
|
|
275
|
-
},
|
|
276
|
-
let
|
|
277
|
-
constructor(e
|
|
278
|
-
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
Z(this._injector, P([
|
|
283
|
-
[F],
|
|
284
|
-
[W, { useClass: de }]
|
|
285
|
-
], (e = this._config) == null ? void 0 : e.override));
|
|
286
|
-
}
|
|
287
|
-
}, u(N, "pluginName", "UNIVER_NETWORK_PLUGIN"), N);
|
|
288
|
-
$ = me([
|
|
289
|
-
ye(1, K(Y))
|
|
290
|
-
], $);
|
|
291
|
-
class Ae {
|
|
292
|
-
send(r) {
|
|
293
|
-
return new w((n) => {
|
|
228
|
+
var me = Object.defineProperty, ve = Object.getOwnPropertyDescriptor, _e = (e, r, t, n) => {
|
|
229
|
+
for (var s = n > 1 ? void 0 : n ? ve(r, t) : r, o = e.length - 1, i; o >= 0; o--)
|
|
230
|
+
(i = e[o]) && (s = (n ? i(r, t, s) : i(s)) || s);
|
|
231
|
+
return n && s && me(r, t, s), s;
|
|
232
|
+
}, Ee = (e, r) => (t, n) => r(t, n, e);
|
|
233
|
+
let N = class {
|
|
234
|
+
constructor(e) {
|
|
235
|
+
this._logService = e;
|
|
236
|
+
}
|
|
237
|
+
send(e) {
|
|
238
|
+
return new m((r) => {
|
|
294
239
|
const t = new AbortController();
|
|
295
|
-
return this._send(
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
240
|
+
return this._send(e, r, t).catch((n) => {
|
|
241
|
+
r.error(new v({
|
|
242
|
+
error: n,
|
|
243
|
+
request: e
|
|
299
244
|
}));
|
|
300
245
|
}), () => t.abort();
|
|
301
246
|
});
|
|
302
247
|
}
|
|
303
|
-
async _send(
|
|
304
|
-
var
|
|
305
|
-
let
|
|
248
|
+
async _send(e, r, t) {
|
|
249
|
+
var a, h;
|
|
250
|
+
let n;
|
|
306
251
|
try {
|
|
307
|
-
const
|
|
308
|
-
s = await fetch(r.getUrlWithParams(), {
|
|
252
|
+
const l = Q(e), y = e.getUrlWithParams(), p = fetch(y, {
|
|
309
253
|
signal: t.signal,
|
|
310
|
-
...
|
|
254
|
+
...l
|
|
311
255
|
});
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
256
|
+
this._logService.debug(`[FetchHTTPImplementation]: sending request to url ${y} with params ${l}`), n = await p;
|
|
257
|
+
} catch (l) {
|
|
258
|
+
const y = new v({
|
|
259
|
+
request: e,
|
|
260
|
+
error: l,
|
|
261
|
+
status: (a = l.status) != null ? a : 0,
|
|
262
|
+
statusText: (h = l.statusText) != null ? h : "Unknown Error",
|
|
263
|
+
headers: l.headers
|
|
264
|
+
});
|
|
265
|
+
this._logService.error("[FetchHTTPImplementation]: network error", y), r.error(y);
|
|
319
266
|
return;
|
|
320
267
|
}
|
|
321
|
-
const
|
|
322
|
-
let
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
268
|
+
const s = new I(n.headers), o = n.status, i = n.statusText;
|
|
269
|
+
let c = null;
|
|
270
|
+
if (n.body && (c = await this._readBody(e, n, r)), o >= L.Ok && o < L.MultipleChoices)
|
|
271
|
+
r.next(new $({
|
|
272
|
+
body: c,
|
|
273
|
+
headers: s,
|
|
274
|
+
status: o,
|
|
275
|
+
statusText: i
|
|
276
|
+
}));
|
|
277
|
+
else {
|
|
278
|
+
const l = new v({
|
|
279
|
+
request: e,
|
|
280
|
+
error: c,
|
|
281
|
+
status: o,
|
|
282
|
+
statusText: i,
|
|
283
|
+
headers: s
|
|
284
|
+
});
|
|
285
|
+
this._logService.error("[FetchHTTPImplementation]: network error", l), r.error(l);
|
|
286
|
+
}
|
|
287
|
+
r.complete();
|
|
288
|
+
}
|
|
289
|
+
async _readBody(e, r, t) {
|
|
290
|
+
var y, p;
|
|
291
|
+
const n = [], s = r.body.getReader(), o = r.headers.get("content-length");
|
|
292
|
+
let i = 0;
|
|
293
|
+
const c = (y = e.requestParams) == null ? void 0 : y.reportProgress, w = e.responseType;
|
|
294
|
+
let a, h;
|
|
341
295
|
for (; ; ) {
|
|
342
|
-
const { done:
|
|
343
|
-
if (
|
|
344
|
-
|
|
296
|
+
const { done: u, value: g } = await s.read();
|
|
297
|
+
if (u) break;
|
|
298
|
+
n.push(g), i += g.length, c && w === "text" && (a = (a != null ? a : "") + (h != null ? h : h = new TextDecoder()).decode(g, { stream: !0 }), t.next(new we(
|
|
345
299
|
o ? Number.parseInt(o, 10) : void 0,
|
|
346
|
-
|
|
347
|
-
|
|
300
|
+
i,
|
|
301
|
+
a
|
|
348
302
|
)));
|
|
349
303
|
}
|
|
350
|
-
const
|
|
304
|
+
const l = Re(n, i);
|
|
351
305
|
try {
|
|
352
|
-
const
|
|
353
|
-
return
|
|
354
|
-
} catch (
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
306
|
+
const u = (p = r.headers.get("content-type")) != null ? p : "";
|
|
307
|
+
return be(e, l, u);
|
|
308
|
+
} catch (u) {
|
|
309
|
+
const g = new v({
|
|
310
|
+
request: e,
|
|
311
|
+
error: u,
|
|
312
|
+
status: r.status,
|
|
313
|
+
statusText: r.statusText,
|
|
314
|
+
headers: new I(r.headers)
|
|
315
|
+
});
|
|
316
|
+
return this._logService.error("[FetchHTTPImplementation]: network error", g), t.error(g), null;
|
|
361
317
|
}
|
|
362
318
|
}
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
}
|
|
371
|
-
}
|
|
372
|
-
function fe(e, r) {
|
|
373
|
-
const n = new Uint8Array(r);
|
|
374
|
-
let t = 0;
|
|
319
|
+
};
|
|
320
|
+
N = _e([
|
|
321
|
+
Ee(0, D)
|
|
322
|
+
], N);
|
|
323
|
+
function Re(e, r) {
|
|
324
|
+
const t = new Uint8Array(r);
|
|
325
|
+
let n = 0;
|
|
375
326
|
for (const s of e)
|
|
376
|
-
|
|
377
|
-
return
|
|
327
|
+
t.set(s, n), n += s.length;
|
|
328
|
+
return t;
|
|
378
329
|
}
|
|
379
|
-
const
|
|
380
|
-
function
|
|
330
|
+
const Ie = /^\)\]\}',?\n/;
|
|
331
|
+
function be(e, r, t) {
|
|
381
332
|
switch (e.responseType) {
|
|
382
333
|
case "json":
|
|
383
|
-
const
|
|
384
|
-
return
|
|
334
|
+
const n = new TextDecoder().decode(r).replace(Ie, "");
|
|
335
|
+
return n === "" ? null : JSON.parse(n);
|
|
385
336
|
case "text":
|
|
386
337
|
return new TextDecoder().decode(r);
|
|
387
338
|
case "blob":
|
|
388
|
-
return new Blob([r], { type:
|
|
339
|
+
return new Blob([r], { type: t });
|
|
389
340
|
case "arraybuffer":
|
|
390
341
|
return r.buffer;
|
|
391
342
|
default:
|
|
392
343
|
throw new Error(`[FetchHTTPImplementation]: unknown response type: ${e.responseType}.`);
|
|
393
344
|
}
|
|
394
345
|
}
|
|
395
|
-
|
|
396
|
-
|
|
346
|
+
var xe = Object.defineProperty, Le = Object.getOwnPropertyDescriptor, Ne = (e, r, t, n) => {
|
|
347
|
+
for (var s = n > 1 ? void 0 : n ? Le(r, t) : r, o = e.length - 1, i; o >= 0; o--)
|
|
348
|
+
(i = e[o]) && (s = (n ? i(r, t, s) : i(s)) || s);
|
|
349
|
+
return n && s && xe(r, t, s), s;
|
|
350
|
+
}, Fe = (e, r) => (t, n) => r(t, n, e);
|
|
351
|
+
let U = class {
|
|
352
|
+
constructor(e) {
|
|
353
|
+
this._logService = e;
|
|
354
|
+
}
|
|
355
|
+
send(e) {
|
|
356
|
+
return new m((r) => {
|
|
357
|
+
const t = new XMLHttpRequest(), n = e.getUrlWithParams(), s = Q(e);
|
|
358
|
+
t.open(e.method, n), e.withCredentials && (t.withCredentials = !0), s.headers && Object.entries(s.headers).forEach(([a, h]) => t.setRequestHeader(a, h));
|
|
359
|
+
const o = () => {
|
|
360
|
+
const a = t.statusText || "OK", h = new I(t.getAllResponseHeaders());
|
|
361
|
+
return new ye(h, t.status, a);
|
|
362
|
+
}, i = () => {
|
|
363
|
+
const { headers: a, statusText: h, status: l } = o(), { responseType: y } = e;
|
|
364
|
+
let p = null, u = null;
|
|
365
|
+
l !== L.NoContent && (p = typeof t.response > "u" ? t.responseText : t.response);
|
|
366
|
+
let g = l >= fe && l < ge;
|
|
367
|
+
if (y === "json" && typeof p == "string") {
|
|
368
|
+
const f = p;
|
|
369
|
+
try {
|
|
370
|
+
p = p ? JSON.parse(p) : null;
|
|
371
|
+
} catch (_) {
|
|
372
|
+
g = !1, p = f, u = _;
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
if (g)
|
|
376
|
+
r.next(
|
|
377
|
+
new $({
|
|
378
|
+
body: p,
|
|
379
|
+
headers: a,
|
|
380
|
+
status: l,
|
|
381
|
+
statusText: h
|
|
382
|
+
})
|
|
383
|
+
);
|
|
384
|
+
else {
|
|
385
|
+
const f = new v({
|
|
386
|
+
request: e,
|
|
387
|
+
error: u,
|
|
388
|
+
headers: a,
|
|
389
|
+
status: l,
|
|
390
|
+
statusText: h
|
|
391
|
+
});
|
|
392
|
+
this._logService.error("[XHRHTTPImplementation]: network error", f), r.error(f);
|
|
393
|
+
}
|
|
394
|
+
}, c = (a) => {
|
|
395
|
+
const h = new v({
|
|
396
|
+
request: e,
|
|
397
|
+
error: a,
|
|
398
|
+
status: t.status || 0,
|
|
399
|
+
statusText: t.statusText || "Unknown Error",
|
|
400
|
+
headers: o().headers
|
|
401
|
+
});
|
|
402
|
+
this._logService.error("[XHRHTTPImplementation]: network error", h), r.error(h);
|
|
403
|
+
};
|
|
404
|
+
t.addEventListener("load", i), t.addEventListener("error", c), t.addEventListener("abort", c), t.addEventListener("timeout", c);
|
|
405
|
+
const w = e.getBody();
|
|
406
|
+
return t.send(w), this._logService.debug(`[XHRHTTPImplementation]: sending request to url ${n} with params ${s}`), () => {
|
|
407
|
+
t.readyState !== t.DONE && t.abort(), t.removeEventListener("load", i), t.removeEventListener("error", c), t.removeEventListener("abort", c), t.removeEventListener("timeout", c);
|
|
408
|
+
};
|
|
409
|
+
});
|
|
410
|
+
}
|
|
411
|
+
};
|
|
412
|
+
U = Ne([
|
|
413
|
+
Fe(0, D)
|
|
414
|
+
], U);
|
|
415
|
+
var Oe = Object.defineProperty, Ae = Object.getOwnPropertyDescriptor, Ue = (e, r, t, n) => {
|
|
416
|
+
for (var s = n > 1 ? void 0 : n ? Ae(r, t) : r, o = e.length - 1, i; o >= 0; o--)
|
|
417
|
+
(i = e[o]) && (s = (n ? i(r, t, s) : i(s)) || s);
|
|
418
|
+
return n && s && Oe(r, t, s), s;
|
|
419
|
+
}, W = (e, r) => (t, n) => r(t, n, e), A;
|
|
420
|
+
let X = (A = class extends C {
|
|
421
|
+
constructor(e = void 0, r, t) {
|
|
422
|
+
super(), this._config = e, this._logger = r, this._injector = t;
|
|
423
|
+
}
|
|
424
|
+
onStarting() {
|
|
425
|
+
var t, n, s;
|
|
426
|
+
if (this._injector.get(x, T.OPTIONAL, ee.SKIP_SELF) && !((t = this._config) != null && t.forceUseNewInstance)) {
|
|
427
|
+
this._logger.warn(
|
|
428
|
+
"[UniverNetworkPlugin]",
|
|
429
|
+
'HTTPService is already registered in an ancestor interceptor. Skipping registration. If you want to force a new instance, set "forceUseNewInstance" to true in the plugin configuration.'
|
|
430
|
+
);
|
|
431
|
+
return;
|
|
432
|
+
}
|
|
433
|
+
const r = (n = this._config) != null && n.useFetchImpl ? N : typeof window < "u" ? U : N;
|
|
434
|
+
re(this._injector, te([
|
|
435
|
+
[x],
|
|
436
|
+
[K, { useClass: r }]
|
|
437
|
+
], (s = this._config) == null ? void 0 : s.override));
|
|
438
|
+
}
|
|
439
|
+
}, d(A, "pluginName", "UNIVER_NETWORK_PLUGIN"), A);
|
|
440
|
+
X = Ue([
|
|
441
|
+
W(1, D),
|
|
442
|
+
W(2, S(H))
|
|
443
|
+
], X);
|
|
444
|
+
const We = V("univer.network.socket.service");
|
|
445
|
+
class Xe extends z {
|
|
397
446
|
createSocket(r) {
|
|
398
447
|
try {
|
|
399
|
-
const
|
|
448
|
+
const t = new WebSocket(r), n = new ne();
|
|
400
449
|
return {
|
|
401
450
|
URL: r,
|
|
402
|
-
close: (
|
|
403
|
-
|
|
451
|
+
close: (o, i) => {
|
|
452
|
+
t.close(o, i), n.dispose();
|
|
404
453
|
},
|
|
405
|
-
send: (
|
|
406
|
-
|
|
454
|
+
send: (o) => {
|
|
455
|
+
t.send(o);
|
|
407
456
|
},
|
|
408
|
-
open$: new
|
|
409
|
-
const
|
|
410
|
-
|
|
457
|
+
open$: new m((o) => {
|
|
458
|
+
const i = (c) => o.next(c);
|
|
459
|
+
t.addEventListener("open", i), n.add(R(() => t.removeEventListener("open", i)));
|
|
411
460
|
}).pipe(b()),
|
|
412
|
-
close$: new
|
|
413
|
-
const
|
|
414
|
-
|
|
461
|
+
close$: new m((o) => {
|
|
462
|
+
const i = (c) => o.next(c);
|
|
463
|
+
t.addEventListener("close", i), n.add(R(() => t.removeEventListener("close", i)));
|
|
415
464
|
}).pipe(b()),
|
|
416
|
-
error$: new
|
|
417
|
-
const
|
|
418
|
-
|
|
465
|
+
error$: new m((o) => {
|
|
466
|
+
const i = (c) => o.next(c);
|
|
467
|
+
t.addEventListener("error", i), n.add(R(() => t.removeEventListener("error", i)));
|
|
419
468
|
}).pipe(b()),
|
|
420
|
-
message$: new
|
|
421
|
-
const
|
|
422
|
-
|
|
469
|
+
message$: new m((o) => {
|
|
470
|
+
const i = (c) => o.next(c);
|
|
471
|
+
t.addEventListener("message", i), n.add(R(() => t.removeEventListener("message", i)));
|
|
423
472
|
}).pipe(b())
|
|
424
473
|
};
|
|
425
|
-
} catch (
|
|
426
|
-
return console.error(
|
|
474
|
+
} catch (t) {
|
|
475
|
+
return console.error(t), null;
|
|
427
476
|
}
|
|
428
477
|
}
|
|
429
478
|
}
|
|
430
|
-
const
|
|
431
|
-
var
|
|
432
|
-
const r = (
|
|
433
|
-
return (
|
|
434
|
-
},
|
|
435
|
-
const r = [],
|
|
479
|
+
const De = 3, $e = 1e3, Ve = (e) => {
|
|
480
|
+
var n, s;
|
|
481
|
+
const r = (n = e == null ? void 0 : e.maxRetryAttempts) != null ? n : De, t = (s = e == null ? void 0 : e.delayInterval) != null ? s : $e;
|
|
482
|
+
return (o, i) => i(o).pipe(ce({ delay: t, count: r }));
|
|
483
|
+
}, ze = (e) => {
|
|
484
|
+
const r = [], t = /* @__PURE__ */ new Set(), n = () => {
|
|
436
485
|
var s;
|
|
437
|
-
for (;
|
|
438
|
-
const
|
|
439
|
-
|
|
486
|
+
for (; t.size < ((s = e == null ? void 0 : e.maxParallel) != null ? s : 1) && r.length > 0; ) {
|
|
487
|
+
const o = r.shift();
|
|
488
|
+
t.add(o), o();
|
|
440
489
|
}
|
|
441
490
|
};
|
|
442
|
-
return (s,
|
|
443
|
-
const c = () =>
|
|
444
|
-
next: (a) =>
|
|
445
|
-
error: (a) =>
|
|
446
|
-
complete: () =>
|
|
447
|
-
}),
|
|
448
|
-
|
|
491
|
+
return (s, o) => new m((i) => {
|
|
492
|
+
const c = () => o(s).subscribe({
|
|
493
|
+
next: (a) => i.next(a),
|
|
494
|
+
error: (a) => i.error(a),
|
|
495
|
+
complete: () => i.complete()
|
|
496
|
+
}), w = () => {
|
|
497
|
+
t.delete(c), J(r, c), n();
|
|
449
498
|
};
|
|
450
|
-
return r.push(c),
|
|
499
|
+
return r.push(c), n(), w;
|
|
451
500
|
});
|
|
452
|
-
},
|
|
453
|
-
const { errorStatusCodes: r, onAuthError:
|
|
454
|
-
return (s,
|
|
455
|
-
|
|
501
|
+
}, Je = (e) => {
|
|
502
|
+
const { errorStatusCodes: r, onAuthError: t } = e;
|
|
503
|
+
return (s, o) => o(s).pipe(
|
|
504
|
+
oe((i) => (i instanceof v && r.some((c) => c === i.status) && t(), ie(() => i)))
|
|
456
505
|
);
|
|
457
|
-
},
|
|
458
|
-
let
|
|
506
|
+
}, je = (e = 300) => {
|
|
507
|
+
let t = () => {
|
|
459
508
|
};
|
|
460
|
-
return (
|
|
461
|
-
|
|
462
|
-
const
|
|
509
|
+
return (n) => new Promise((s) => {
|
|
510
|
+
t();
|
|
511
|
+
const o = setTimeout(() => {
|
|
463
512
|
s(!0);
|
|
464
513
|
}, e);
|
|
465
|
-
|
|
466
|
-
clearTimeout(
|
|
514
|
+
t = () => {
|
|
515
|
+
clearTimeout(o), s(!1);
|
|
467
516
|
};
|
|
468
517
|
});
|
|
469
|
-
},
|
|
470
|
-
const { isMatch:
|
|
471
|
-
return (a, h) =>
|
|
472
|
-
const
|
|
518
|
+
}, qe = () => (e, r) => r.map((t) => ({ config: t, result: e })), Ke = (e, r = {}) => {
|
|
519
|
+
const { isMatch: t, getParamsFromRequest: n, mergeParamsToRequest: s } = e, { fetchCheck: o = je(300), distributeResult: i = qe() } = r, c = [], w = (a) => a.map((h) => h.config);
|
|
520
|
+
return (a, h) => t(a) ? new m((l) => {
|
|
521
|
+
const y = n(a);
|
|
473
522
|
c.push({
|
|
474
|
-
next: (
|
|
475
|
-
error: (
|
|
476
|
-
config:
|
|
523
|
+
next: (u) => l.next(u),
|
|
524
|
+
error: (u) => l.error(u),
|
|
525
|
+
config: y
|
|
477
526
|
});
|
|
478
|
-
const
|
|
479
|
-
|
|
480
|
-
if (
|
|
527
|
+
const p = w(c);
|
|
528
|
+
o(a).then((u) => {
|
|
529
|
+
if (u) {
|
|
481
530
|
const g = [];
|
|
482
|
-
|
|
483
|
-
const
|
|
484
|
-
if (
|
|
485
|
-
const [E] = c.splice(
|
|
531
|
+
p.forEach((f) => {
|
|
532
|
+
const _ = c.findIndex((E) => E.config === f);
|
|
533
|
+
if (_ >= 0) {
|
|
534
|
+
const [E] = c.splice(_, 1);
|
|
486
535
|
g.push(E);
|
|
487
536
|
}
|
|
488
|
-
}), h(s(
|
|
489
|
-
next: (
|
|
490
|
-
if (
|
|
491
|
-
const
|
|
492
|
-
g.forEach((
|
|
493
|
-
const
|
|
494
|
-
if (
|
|
495
|
-
const
|
|
496
|
-
body:
|
|
497
|
-
headers:
|
|
498
|
-
status:
|
|
499
|
-
statusText:
|
|
537
|
+
}), h(s(p, a)).subscribe({
|
|
538
|
+
next: (f) => {
|
|
539
|
+
if (f.type === Y.Response) {
|
|
540
|
+
const _ = f.body, E = i(_, p);
|
|
541
|
+
g.forEach((F) => {
|
|
542
|
+
const j = E.find((O) => O.config === F.config);
|
|
543
|
+
if (j) {
|
|
544
|
+
const O = new $({
|
|
545
|
+
body: j.result,
|
|
546
|
+
headers: f.headers,
|
|
547
|
+
status: f.status,
|
|
548
|
+
statusText: f.statusText
|
|
500
549
|
});
|
|
501
|
-
|
|
550
|
+
F.next(O);
|
|
502
551
|
} else
|
|
503
|
-
|
|
552
|
+
F.error("batch error");
|
|
504
553
|
});
|
|
505
554
|
}
|
|
506
555
|
},
|
|
507
|
-
complete: () =>
|
|
508
|
-
error: (
|
|
556
|
+
complete: () => l.complete(),
|
|
557
|
+
error: (f) => l.error(f)
|
|
509
558
|
});
|
|
510
559
|
}
|
|
511
560
|
});
|
|
512
561
|
}) : h(a);
|
|
513
562
|
};
|
|
514
563
|
export {
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
564
|
+
Je as AuthInterceptorFactory,
|
|
565
|
+
N as FetchHTTPImplementation,
|
|
566
|
+
Y as HTTPEventType,
|
|
567
|
+
I as HTTPHeaders,
|
|
568
|
+
we as HTTPProgress,
|
|
569
|
+
G as HTTPRequest,
|
|
570
|
+
$ as HTTPResponse,
|
|
571
|
+
v as HTTPResponseError,
|
|
572
|
+
x as HTTPService,
|
|
573
|
+
L as HTTPStatusCode,
|
|
574
|
+
K as IHTTPImplementation,
|
|
575
|
+
We as ISocketService,
|
|
576
|
+
Ke as MergeInterceptorFactory,
|
|
577
|
+
ye as ResponseHeader,
|
|
578
|
+
Ve as RetryInterceptorFactory,
|
|
579
|
+
ze as ThresholdInterceptorFactory,
|
|
580
|
+
X as UniverNetworkPlugin,
|
|
581
|
+
Xe as WebSocketService,
|
|
582
|
+
U as XHRHTTPImplementation
|
|
534
583
|
};
|