@momo-kits/foundation 0.89.5-beta.15 → 0.89.5-beta.17

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/code-scanner.js CHANGED
@@ -76,7 +76,7 @@ const main = async () => {
76
76
  const appJson = require(app)
77
77
  const branchName = appJson.appId
78
78
 
79
- if (!branchName && !branchName.includes("vn.momo")){
79
+ if (!branchName || !branchName.includes("vn.momo")){
80
80
  return
81
81
  }
82
82
 
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@momo-kits/foundation",
3
- "version": "0.89.5-beta.15",
3
+ "version": "0.89.5-beta.17",
4
4
  "description": "React Native Component Kits",
5
5
  "main": "index.ts",
6
6
  "scripts": {
7
- "postinstall": "node verify.js && node code-scanner.js"
7
+ "postinstall": "node verify.js && yarn add react-scanner && node code-scanner.js"
8
8
  },
9
9
  "keywords": [
10
10
  "@momo-kits/foundation"
package/verify.js CHANGED
@@ -13,6 +13,10 @@ try {
13
13
  const iOSAppTarget = appInfo?.client?.ios.deploymentTarget;
14
14
  const androidAppTarget = appInfo?.client?.android.deploymentTarget;
15
15
 
16
+ if (Object.values(appInfo).length < 1) {
17
+ return
18
+ }
19
+
16
20
  if (appInfo.name === 'MoMoPlatform') {
17
21
  return;
18
22
  }