esoftplay 0.0.116-e → 0.0.116-h

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/bin/build.js CHANGED
@@ -230,7 +230,7 @@ yarn-error.log\n\
230
230
  console.log('.gitignore has been created');
231
231
  });
232
232
 
233
- const AppJS = `import { esp, LibNotification } from 'esoftplay';
233
+ const AppJS = `import * as Esoftplay from 'esoftplay';
234
234
  import * as ErrorReport from 'esoftplay/error';
235
235
  import * as Notifications from 'expo-notifications';
236
236
  import React, { useEffect, useRef } from 'react';
@@ -239,10 +239,10 @@ const { globalIdx } = require('esoftplay/global');
239
239
  enableScreens();
240
240
  enableFreeze();
241
241
 
242
- Notifications.addNotificationResponseReceivedListener(x => LibNotification.onAction(x));
242
+ Notifications.addNotificationResponseReceivedListener(x => Esoftplay.LibNotification.onAction(x));
243
243
 
244
244
  export default function App() {
245
- const Home = useRef(esp.home()).current
245
+ const Home = useRef(Esoftplay.esp.home()).current
246
246
 
247
247
  useEffect(() => {
248
248
  globalIdx.reset()
@@ -287,7 +287,8 @@ export default function App() {
287
287
  'react-native-safe-area-context',
288
288
  'react-native-screens',
289
289
  'react-native-webview',
290
- 'shorthash'
290
+ 'shorthash',
291
+ 'usestable'
291
292
  ]
292
293
  if ($config.config.hasOwnProperty('excludePackages')) {
293
294
  if ($config.config.excludePackages) {
package/bin/router.js CHANGED
@@ -569,7 +569,7 @@ function createRouter() {
569
569
  var Task = "";
570
570
  var nav = "";
571
571
  var staticImport = []
572
-
572
+
573
573
  staticImport.push("var isEqual = require('react-fast-compare');\n")
574
574
  staticImport.push("export function applyStyle(style){ return style };\n")
575
575
  staticImport.push("export { default as useGlobalState } from '../../../node_modules/esoftplay/global';\n")
@@ -587,14 +587,14 @@ function createRouter() {
587
587
  var item = "import { default as _" + ucword(module) + ucword(task) + " } from '../../." + Modules[module][task] + "';\n"
588
588
  if (HookModules.includes(nav)) {
589
589
  item += "" +
590
- "import * as " + ucword(module) + ucword(task) + SuffixHooksProperty + " from '../../." + Modules[module][task] + "';\n" +
591
- "var " + ucword(module) + ucword(task) + " = React.memo(_" + ucword(module) + ucword(task) + ", isEqual); \n" +
592
- "export { " + ucword(module) + ucword(task) + SuffixHooksProperty + ", " + ucword(module) + ucword(task) + " };\n"
590
+ "import * as " + ucword(module) + ucword(task) + SuffixHooksProperty + " from '../../." + Modules[module][task] + "';\n" +
591
+ "var " + ucword(module) + ucword(task) + " = stable(_" + ucword(module) + ucword(task) + "); \n" +
592
+ "export { " + ucword(module) + ucword(task) + SuffixHooksProperty + ", " + ucword(module) + ucword(task) + " };\n"
593
593
  } else if (UseLibs.includes(nav)) {
594
594
  item += "" +
595
- "import * as " + ucword(module) + ucword(task) + SuffixHooksProperty + " from '../../." + Modules[module][task] + "';\n" +
596
- "var " + ucword(module) + ucword(task) + " = _" + ucword(module) + ucword(task) + "; \n" +
597
- "export { " + ucword(module) + ucword(task) + SuffixHooksProperty + ", " + ucword(module) + ucword(task) + " };\n"
595
+ "import * as " + ucword(module) + ucword(task) + SuffixHooksProperty + " from '../../." + Modules[module][task] + "';\n" +
596
+ "var " + ucword(module) + ucword(task) + " = _" + ucword(module) + ucword(task) + "; \n" +
597
+ "export { " + ucword(module) + ucword(task) + SuffixHooksProperty + ", " + ucword(module) + ucword(task) + " };\n"
598
598
  } else {
599
599
  item += "export { _" + ucword(module) + ucword(task) + " as " + ucword(module) + ucword(task) + " };\n"
600
600
  }
@@ -617,7 +617,7 @@ function createRouter() {
617
617
  }
618
618
  staticImport.splice(2, 0, "export { default as createCache } from '../../../node_modules/esoftplay/_cache';\n")
619
619
  staticImport.splice(2, 0, "export { default as _global } from '../../../node_modules/esoftplay/_global';\n")
620
- staticImport.splice(2, 0, "import React from 'react';\n")
620
+ staticImport.splice(2, 0, "import { stable } from 'usestable';\n")
621
621
  const x = staticImport.join('')
622
622
  if (isChange(tmpDir + 'index.js', x))
623
623
  fs.writeFile(tmpDir + 'index.js', x, { flag: 'w' }, function (err) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esoftplay",
3
- "version": "0.0.116-e",
3
+ "version": "0.0.116-h",
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",