@lemon-fe/mini-app 0.1.13 → 0.1.24

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.
@@ -99,10 +99,9 @@ function App(props) {
99
99
  return _objectSpread(_objectSpread({}, prev), {}, {
100
100
  routes: nextRoutes
101
101
  });
102
- } else {
103
- mini.exit();
104
102
  }
105
103
 
104
+ mini.exit();
106
105
  return prev;
107
106
  });
108
107
  }, []);
package/es/global.d.ts CHANGED
@@ -11,7 +11,9 @@ interface Mini {
11
11
  };
12
12
  addListener(cb: (e: string) => void): void;
13
13
  getExtraPayload(): unknown;
14
- scanCode(): void;
14
+ scanCode(opt: {
15
+ success: (value: string) => void;
16
+ }): void;
15
17
  exit(): void;
16
18
  }
17
19
  declare global {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lemon-fe/mini-app",
3
- "version": "0.1.13",
3
+ "version": "0.1.24",
4
4
  "description": "> TODO: description",
5
5
  "author": "鲁盛杰 <lusj@cnlemon.net>",
6
6
  "homepage": "",
@@ -31,5 +31,6 @@
31
31
  },
32
32
  "devDependencies": {
33
33
  "@types/react-transition-group": "^4.4.4"
34
- }
34
+ },
35
+ "gitHead": "72377e94c49e83f586ec6e36371387291ff41843"
35
36
  }