esoftplay 0.0.177 → 0.0.178

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.
@@ -24,10 +24,6 @@ const state = useGlobalState<status>({
24
24
  isInternetReachable: true
25
25
  })
26
26
 
27
- export const subscriber = useGlobalSubscriber<status>({
28
- isOnline: true,
29
- isInternetReachable: true
30
- })
31
27
 
32
28
  /** Klik [disini](https://github.com/dev-esoftplay/mobile-docs/blob/main/modules/lib/net_status.md) untuk melihat dokumentasi*/
33
29
  class net_status extends LibComponent<LibNet_statusProps, LibNet_statusState> {
@@ -36,6 +32,11 @@ class net_status extends LibComponent<LibNet_statusProps, LibNet_statusState> {
36
32
  return state
37
33
  }
38
34
 
35
+ static subscriber = useGlobalSubscriber<status>({
36
+ isOnline: true,
37
+ isInternetReachable: true
38
+ })
39
+
39
40
  /** Klik [disini](https://github.com/dev-esoftplay/mobile-docs/blob/main/modules/lib/net_status.md#setOnline) untuk melihat dokumentasi*/
40
41
  static setOnline(isOnline: boolean, isInternetReachable: boolean): void {
41
42
  subscriber.trigger({ isOnline, isInternetReachable })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esoftplay",
3
- "version": "0.0.177",
3
+ "version": "0.0.178",
4
4
  "description": "embedding data from esoftplay framework (web based) into mobile app",
5
5
  "main": "cache/index.js",
6
6
  "types": "../../index.d.ts",