hylid-bridge 1.0.2 → 1.0.3

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/lib/appEnv.d.ts CHANGED
@@ -6,6 +6,7 @@ interface AppEnv {
6
6
  isMpWebIntl: boolean;
7
7
  isMpWebCn: boolean;
8
8
  }
9
- declare const appEnv: AppEnv;
9
+ declare let appEnv: AppEnv;
10
10
  export default appEnv;
11
- export { appEnv };
11
+ declare function setAppEnv(_: AppEnv): void;
12
+ export { appEnv, setAppEnv };
package/lib/appEnv.js CHANGED
@@ -66,7 +66,12 @@ function getEnv() {
66
66
 
67
67
  var appEnv = getEnv();
68
68
  export default appEnv;
69
- export { appEnv };
69
+
70
+ function setAppEnv(_) {
71
+ appEnv = _;
72
+ }
73
+
74
+ export { appEnv, setAppEnv };
70
75
 
71
76
  if (appEnv.isMpWebCn || appEnv.isMpWebIntl) {
72
77
  var env_1 = window;