dev-classes 1.3.3 → 1.3.5

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,11 +1,11 @@
1
1
  var h = Object.defineProperty;
2
2
  var v = (i, e, r) => e in i ? h(i, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : i[e] = r;
3
3
  var s = (i, e, r) => (v(i, typeof e != "symbol" ? e + "" : e, r), r);
4
- import { NetworkInformation as b } from "../Utils/NetworkInformation/NetworkInformation.js";
5
- import { apiRequest as l } from "./deps/apiRequest/apiRequest.js";
4
+ import { EventSubscribers as b } from "../Utils/EventSubscribers/EventSubscribers.js";
6
5
  import { NetworkInformationCordova as k } from "../Utils/NetworkInformation/classes/NetworkInformationCordova.js";
7
6
  import { NetworkInformationPC as N } from "../Utils/NetworkInformation/classes/NetworkInformationPC.js";
8
- import { EventSubscribers as g } from "../Utils/EventSubscribers/EventSubscribers.js";
7
+ import { NetworkInformation as g } from "../Utils/NetworkInformation/NetworkInformation.js";
8
+ import { apiRequest as l } from "./deps/apiRequest/apiRequest.js";
9
9
  const t = class t {
10
10
  static setState(e) {
11
11
  t.state = { ...t.state, ...e };
@@ -62,7 +62,7 @@ const t = class t {
62
62
  s(t, "state", {
63
63
  isInit: !1,
64
64
  isNetworkStatus: navigator.onLine
65
- }), s(t, "internet", new b([new N(), new k()])), s(t, "events", new g(["fetch"])), s(t, "online", () => {
65
+ }), s(t, "internet", new g([new N(), new k()])), s(t, "events", new b(["fetch"])), s(t, "online", () => {
66
66
  t.setState({ isNetworkStatus: !0 });
67
67
  }), s(t, "offline", () => {
68
68
  t.setState({ isNetworkStatus: !1 });
@@ -1,4 +1,4 @@
1
- import { FetchCommonApiRequest, RejectRequestInServer_P, RequestOptions_P } from './deps/apiRequest/apiRequest';
1
+ import { FetchCommonApiRequest, RejectRequestInServer_P, RequestOptions_P, ResolveRequestInServer_P } from './deps/apiRequest/apiRequest';
2
2
 
3
3
  export interface FetchCommonPayloadHTTPSApi extends FetchCommonApiRequest, Pick<RejectRequestInServer_P, 'isErr'> {
4
4
  isReq: boolean;
@@ -14,7 +14,7 @@ export interface RequestPayloadHTTPSApi {
14
14
  } & RequestOptions_P;
15
15
  }
16
16
  export interface HTTPSApi_Events {
17
- fetch(info: FetchCommonPayloadHTTPSApi & Pick<RejectRequestInServer_P, 'msg'>): void;
17
+ fetch(info: FetchCommonPayloadHTTPSApi & Partial<ResolveRequestInServer_P<any>> & Pick<RejectRequestInServer_P, 'msg'>): void;
18
18
  }
19
19
  declare global {
20
20
  interface Window {
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "homepage": "https://github.com/SinGlEBW/dev-classes#readme",
13
13
  "license": "MIT",
14
- "version": "1.3.3",
14
+ "version": "1.3.5",
15
15
  "type": "module",
16
16
  "module": "./dist/index.js",
17
17
  "main": "./dist/index.js",