dev-classes 1.3.35 → 1.4.10
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/README.md +12 -20
- package/dist/classes/EventSubscribers/EventSubscribers.js +35 -0
- package/dist/classes/HTTPSApi/HTTPSApi.js +2 -1
- package/dist/classes/HTTPSApi/deps/apiRequest/apiRequest.js +61 -61
- package/dist/classes/NetworkStatusTracker/NetworkStatusTracker.d.ts +30 -0
- package/dist/classes/NetworkStatusTracker/NetworkStatusTracker.js +158 -0
- package/dist/classes/NetworkStatusTracker/NetworkStatusTracker.types.d.ts +22 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +14 -14
- package/package.json +10 -2
- package/dist/classes/ControlAppBySocket/ControlAppBySocket.d.ts +0 -3
- package/dist/classes/ControlAppBySocket/ControlAppBySocket.js +0 -8
- package/dist/classes/SocketApi/SocketApi.d.ts +0 -52
- package/dist/classes/SocketApi/SocketApi.js +0 -127
- package/dist/classes/SocketApi/SocketApi.types.d.ts +0 -9
- package/dist/classes/SocketApi/deps/ConfigInfoConnect/ConfigInfoConnect.d.ts +0 -8
- package/dist/classes/SocketApi/deps/ConfigInfoConnect/ConfigInfoConnect.js +0 -16
- package/dist/classes/SocketApi/deps/ConfigInfoConnect/ConfigInfoConnect.types.d.ts +0 -7
- package/dist/classes/SocketApi/deps/ConfigInfoConnect/ConfigInfoConnect.types.js +0 -1
- package/dist/classes/SocketApi/deps/WsApi/WsApi.d.ts +0 -41
- package/dist/classes/SocketApi/deps/WsApi/WsApi.js +0 -116
- package/dist/classes/SocketApi/deps/WsApi/WsApi.types.d.ts +0 -22
- package/dist/classes/SocketApi/deps/WsApi/WsApi.types.js +0 -1
- package/dist/classes/SocketApi/deps/WsApi/index.d.ts +0 -2
- package/dist/classes/SocketApi/deps/WsApi/index.js +0 -4
- package/dist/classes/SocketApi/index.d.ts +0 -2
- package/dist/classes/SocketApi/index.js +0 -4
- package/dist/classes/Utils/EventSubscribers/EventSubscribers.js +0 -33
- /package/dist/classes/{Utils/EventSubscribers → EventSubscribers}/EventSubscribers.d.ts +0 -0
- /package/dist/classes/{Utils/EventSubscribers → EventSubscribers}/EventSubscribers.types.d.ts +0 -0
- /package/dist/classes/{Utils/EventSubscribers → EventSubscribers}/EventSubscribers.types.js +0 -0
- /package/dist/classes/{Utils/EventSubscribers → EventSubscribers}/index.d.ts +0 -0
- /package/dist/classes/{Utils/EventSubscribers → EventSubscribers}/index.js +0 -0
- /package/dist/classes/{SocketApi/SocketApi.types.js → NetworkStatusTracker/NetworkStatusTracker.types.js} +0 -0
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export interface WsApi_Options_P {
|
|
2
|
-
url: string;
|
|
3
|
-
timeReConnect: number;
|
|
4
|
-
numberOfRepit?: number;
|
|
5
|
-
}
|
|
6
|
-
export type WsApiE_StatusConnect_OR = "pending" | "ready" | "error" | "close" | "disconnect";
|
|
7
|
-
export interface WsApi_Events {
|
|
8
|
-
status(status: WsApiE_StatusConnect_OR): void;
|
|
9
|
-
msg(message: any): void;
|
|
10
|
-
}
|
|
11
|
-
export interface WsApi_StateProps {
|
|
12
|
-
statusConnect: WsApiE_StatusConnect_OR;
|
|
13
|
-
ws: null | WebSocket;
|
|
14
|
-
arrSaveReq: {
|
|
15
|
-
payload: {
|
|
16
|
-
action: string;
|
|
17
|
-
[key: string]: any;
|
|
18
|
-
};
|
|
19
|
-
reqId: string;
|
|
20
|
-
cb: any;
|
|
21
|
-
}[];
|
|
22
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
var c = Object.defineProperty;
|
|
2
|
-
var u = (t, s, r) => s in t ? c(t, s, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[s] = r;
|
|
3
|
-
var b = (t, s, r) => (u(t, typeof s != "symbol" ? s + "" : s, r), r);
|
|
4
|
-
class h {
|
|
5
|
-
constructor(s) {
|
|
6
|
-
b(this, "subscribersEvents", {});
|
|
7
|
-
b(this, "getListNameEvents", () => Object.keys(this.subscribersEvents));
|
|
8
|
-
b(this, "getSubscribers", () => this.subscribersEvents);
|
|
9
|
-
b(this, "subscribe", (s, r) => {
|
|
10
|
-
var e;
|
|
11
|
-
(e = this.subscribersEvents[s]) == null || e.push(r);
|
|
12
|
-
});
|
|
13
|
-
b(this, "unsubscribe", (s, r) => {
|
|
14
|
-
var e;
|
|
15
|
-
this.subscribersEvents[s] && (this.subscribersEvents[s] = (e = this.subscribersEvents[s]) == null ? void 0 : e.filter((i) => i !== r));
|
|
16
|
-
});
|
|
17
|
-
b(this, "publish", (s, r) => {
|
|
18
|
-
var e;
|
|
19
|
-
this.subscribersEvents[s] && ((e = this.subscribersEvents[s]) == null || e.forEach((i) => {
|
|
20
|
-
i(r);
|
|
21
|
-
}));
|
|
22
|
-
});
|
|
23
|
-
b(this, "resetSubscribers", () => {
|
|
24
|
-
this.subscribersEvents = {};
|
|
25
|
-
});
|
|
26
|
-
s.forEach((r) => {
|
|
27
|
-
this.subscribersEvents[r] = [];
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
export {
|
|
32
|
-
h as EventSubscribers
|
|
33
|
-
};
|
|
File without changes
|
/package/dist/classes/{Utils/EventSubscribers → EventSubscribers}/EventSubscribers.types.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|