dev-classes 1.1.16 → 1.1.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.
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { FetchCommonPayloadHTTPSApi, RequestPayloadHTTPSApi } from './HTTPSApi.types';
|
|
2
2
|
import { ResolveRequestInServer_P } from './deps/apiRequest/apiRequest';
|
|
3
3
|
|
|
4
|
+
export * from './HTTPSApi.types';
|
|
4
5
|
export declare class HTTPSApi {
|
|
5
6
|
private static options;
|
|
6
7
|
static setOptions(options: Partial<typeof HTTPSApi.options>): void;
|
|
@@ -5,13 +5,14 @@ export interface FetchCommonPayloadHTTPSApi extends FetchCommonApiRequest, Pick<
|
|
|
5
5
|
keyAction: string | null;
|
|
6
6
|
isReload: boolean;
|
|
7
7
|
}
|
|
8
|
-
export
|
|
9
|
-
|
|
8
|
+
export interface ResponseErrorHTTPSApi extends FetchCommonPayloadHTTPSApi, Pick<RejectRequestInServer_P, 'msg' | 'errExt'> {
|
|
9
|
+
}
|
|
10
|
+
export interface RequestPayloadHTTPSApi {
|
|
10
11
|
keyAction: FetchCommonPayloadHTTPSApi['keyAction'];
|
|
11
12
|
request: {
|
|
12
13
|
url: string;
|
|
13
14
|
} & RequestOptions_P;
|
|
14
|
-
}
|
|
15
|
+
}
|
|
15
16
|
declare global {
|
|
16
17
|
interface Window {
|
|
17
18
|
cordova: {
|
|
@@ -1804,11 +1804,11 @@ C(g, "keyCookie", "Token"), C(g, "cookieOptions", {}), C(g, "registerRequest", n
|
|
|
1804
1804
|
headers: {
|
|
1805
1805
|
cookie: g.getToken()
|
|
1806
1806
|
},
|
|
1807
|
-
timeout:
|
|
1807
|
+
timeout: 6e4
|
|
1808
1808
|
}, f = ft.deepMerge(c, n);
|
|
1809
1809
|
if (console.dir(f), window != null && window.cordova && ((l = (u = window == null ? void 0 : window.cordova) == null ? void 0 : u.plugin) != null && l.http)) {
|
|
1810
1810
|
const { http: b } = (p = window == null ? void 0 : window.cordova) == null ? void 0 : p.plugin;
|
|
1811
|
-
b.setDataSerializer("json"), b.setRequestTimeout(f.timeout), g.registerRequest.setList({ url: t, options: f }), b.sendRequest(
|
|
1811
|
+
b.setDataSerializer("json"), b.setRequestTimeout(Number(f.timeout) / 1e3), g.registerRequest.setList({ url: t, options: f }), b.sendRequest(
|
|
1812
1812
|
t,
|
|
1813
1813
|
f,
|
|
1814
1814
|
(w) => {
|