esoftplay 0.0.108-q → 0.0.109

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/_cache.ts CHANGED
@@ -42,7 +42,9 @@ export default (() => {
42
42
  if (o?.persistKey) {
43
43
  AsyncStorage.setItem(o.persistKey, JSON.stringify(value[_idx]))
44
44
  }
45
- o.listener(ns instanceof Function ? ns(value[_idx]) : ns)
45
+ if (o?.listener) {
46
+ o?.listener?.(ns instanceof Function ? ns(value[_idx]) : ns)
47
+ }
46
48
  }
47
49
  };
48
50
 
package/bin/build.js CHANGED
@@ -255,26 +255,27 @@ yarn.lock\n\
255
255
  console.log('.gitignore has been created');
256
256
  });
257
257
 
258
- const AppJS = `import React, { useEffect, useRef } from 'react';
259
- import { esp, LibNotification } from 'esoftplay';
260
- import * as ErrorReport from 'esoftplay/error'
261
- import * as Notifications from 'expo-notifications';
262
- import { enableScreens } from 'react-native-screens';
263
- const { globalIdx } = require('esoftplay/global')
264
- enableScreens();
265
-
266
- Notifications.addNotificationResponseReceivedListener(x => LibNotification.onAction(x))
267
-
268
- export default function App() {
269
- const Home = useRef(esp.home()).current
270
-
271
- useEffect(() => {
272
- globalIdx.reset()
273
- ErrorReport.getError()
274
- }, [])
275
-
276
- return <Home />
277
- }`;
258
+ const AppJS = `import { esp, LibNotification } from 'esoftplay';
259
+ import * as ErrorReport from 'esoftplay/error';
260
+ import * as Notifications from 'expo-notifications';
261
+ import React, { useEffect, useRef } from 'react';
262
+ import { enableFreeze, enableScreens } from 'react-native-screens';
263
+ const { globalIdx } = require('esoftplay/global')
264
+ enableScreens();
265
+ enableFreeze(true);
266
+
267
+ Notifications.addNotificationResponseReceivedListener(x => LibNotification.onAction(x))
268
+
269
+ export default function App() {
270
+ const Home = useRef(esp.home()).current
271
+
272
+ useEffect(() => {
273
+ globalIdx.reset()
274
+ ErrorReport.getError()
275
+ }, [])
276
+
277
+ return <Home />
278
+ }`;
278
279
  let expoLib = [
279
280
  '@expo/vector-icons',
280
281
  '@react-native-async-storage/async-storage',
@@ -55,6 +55,7 @@ export default class ecurl {
55
55
  if (this.abort?.cancel) {
56
56
  // reportApiError(`Request timeout`, this.url + this.uri)
57
57
  this.closeConnection()
58
+ LibProgress.hide()
58
59
  }
59
60
  }, customTimeout ?? this.timeout);
60
61
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esoftplay",
3
- "version": "0.0.108-q",
3
+ "version": "0.0.109",
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",