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.
Files changed (34) hide show
  1. package/README.md +12 -20
  2. package/dist/classes/EventSubscribers/EventSubscribers.js +35 -0
  3. package/dist/classes/HTTPSApi/HTTPSApi.js +2 -1
  4. package/dist/classes/HTTPSApi/deps/apiRequest/apiRequest.js +61 -61
  5. package/dist/classes/NetworkStatusTracker/NetworkStatusTracker.d.ts +30 -0
  6. package/dist/classes/NetworkStatusTracker/NetworkStatusTracker.js +158 -0
  7. package/dist/classes/NetworkStatusTracker/NetworkStatusTracker.types.d.ts +22 -0
  8. package/dist/index.d.ts +2 -2
  9. package/dist/index.js +14 -14
  10. package/package.json +10 -2
  11. package/dist/classes/ControlAppBySocket/ControlAppBySocket.d.ts +0 -3
  12. package/dist/classes/ControlAppBySocket/ControlAppBySocket.js +0 -8
  13. package/dist/classes/SocketApi/SocketApi.d.ts +0 -52
  14. package/dist/classes/SocketApi/SocketApi.js +0 -127
  15. package/dist/classes/SocketApi/SocketApi.types.d.ts +0 -9
  16. package/dist/classes/SocketApi/deps/ConfigInfoConnect/ConfigInfoConnect.d.ts +0 -8
  17. package/dist/classes/SocketApi/deps/ConfigInfoConnect/ConfigInfoConnect.js +0 -16
  18. package/dist/classes/SocketApi/deps/ConfigInfoConnect/ConfigInfoConnect.types.d.ts +0 -7
  19. package/dist/classes/SocketApi/deps/ConfigInfoConnect/ConfigInfoConnect.types.js +0 -1
  20. package/dist/classes/SocketApi/deps/WsApi/WsApi.d.ts +0 -41
  21. package/dist/classes/SocketApi/deps/WsApi/WsApi.js +0 -116
  22. package/dist/classes/SocketApi/deps/WsApi/WsApi.types.d.ts +0 -22
  23. package/dist/classes/SocketApi/deps/WsApi/WsApi.types.js +0 -1
  24. package/dist/classes/SocketApi/deps/WsApi/index.d.ts +0 -2
  25. package/dist/classes/SocketApi/deps/WsApi/index.js +0 -4
  26. package/dist/classes/SocketApi/index.d.ts +0 -2
  27. package/dist/classes/SocketApi/index.js +0 -4
  28. package/dist/classes/Utils/EventSubscribers/EventSubscribers.js +0 -33
  29. /package/dist/classes/{Utils/EventSubscribers → EventSubscribers}/EventSubscribers.d.ts +0 -0
  30. /package/dist/classes/{Utils/EventSubscribers → EventSubscribers}/EventSubscribers.types.d.ts +0 -0
  31. /package/dist/classes/{Utils/EventSubscribers → EventSubscribers}/EventSubscribers.types.js +0 -0
  32. /package/dist/classes/{Utils/EventSubscribers → EventSubscribers}/index.d.ts +0 -0
  33. /package/dist/classes/{Utils/EventSubscribers → EventSubscribers}/index.js +0 -0
  34. /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,2 +0,0 @@
1
- export * from './WsApi';
2
- export type { WsApiE_StatusConnect_OR, WsApi_Options_P, } from './WsApi.types';
@@ -1,4 +0,0 @@
1
- import { WsApi as r } from "./WsApi.js";
2
- export {
3
- r as WsApi
4
- };
@@ -1,2 +0,0 @@
1
- export * from './SocketApi';
2
- export { type SocketApi_StateProps_P, type SocketApi_StatusConnect_OR } from './SocketApi.types';
@@ -1,4 +0,0 @@
1
- import { SocketApi as p } from "./SocketApi.js";
2
- export {
3
- p as SocketApi
4
- };
@@ -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
- };