esoftplay 0.0.133-e → 0.0.133-g

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 (2) hide show
  1. package/bin/perf.js +2 -1
  2. package/package.json +1 -1
package/bin/perf.js CHANGED
@@ -12,12 +12,13 @@ if (param == 'clear') {
12
12
  const isHooks = (/\/\/\s{0,}withHooks/g).exec(text)
13
13
  const memoiz = (/\nexport default memo\(([a-zA-Z0-9]+)\)\;/g).exec(text)
14
14
  text = text.replace("\nimport { memo } from 'react';", "")
15
+ text = text.replace("\n memo, ", "")
15
16
  if (isHooks && memoiz && memoiz.length > 1) {
16
17
  const [exdefCurrent, currentNameFunction] = memoiz
17
18
  text = text.replace(exdefCurrent, '')
18
19
  text = text.replace("function " + currentNameFunction + "(", "export default function " + currentNameFunction + "(")
19
- fs.writeFileSync('./modules/' + module + '/' + task, text, { encoding: 'utf8' })
20
20
  }
21
+ fs.writeFileSync('./modules/' + module + '/' + task, text, { encoding: 'utf8' })
21
22
  })
22
23
  }
23
24
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esoftplay",
3
- "version": "0.0.133-e",
3
+ "version": "0.0.133-g",
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",