dev-classes 1.1.16 → 1.1.18

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 type ResponseErrorHTTPSApi = FetchCommonPayloadHTTPSApi & Pick<RejectRequestInServer_P, 'msg' | 'errExt'>;
9
- export type RequestPayloadHTTPSApi = {
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: 30
1807
+ timeout: 6e4
1808
1808
  }, f = ft.deepMerge(c, n);
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)) {
1809
+ if (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) => {
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "url": "git+https://github.com/SinGlEBW/dev-classes.git"
8
8
  },
9
9
  "license": "MIT",
10
- "version": "1.1.16",
10
+ "version": "1.1.18",
11
11
  "type": "module",
12
12
  "module": "./dist/index.js",
13
13
  "main": "./dist/index.js",