@hylid/env 4.0.29 → 4.0.30
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/getClientName/getName4Mp.js +0 -4
- package/lib/utils.js +0 -2
- package/lib/version.js +1 -1
- package/package.json +1 -1
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { mpChecker } from "../checker";
|
|
2
|
-
import { CLIENT } from "../constants";
|
|
3
2
|
import { getMatchName } from "../utils";
|
|
4
3
|
export function getName4MP() {
|
|
5
|
-
// 微信小程序
|
|
6
|
-
// @ts-ignore
|
|
7
|
-
if (typeof wx !== 'undefined') return CLIENT.WECHAT;
|
|
8
4
|
return getMatchName(mpChecker, my.getSystemInfoSync().app);
|
|
9
5
|
}
|
package/lib/utils.js
CHANGED
|
@@ -9,8 +9,6 @@ var __assign = this && this.__assign || function () {
|
|
|
9
9
|
return __assign.apply(this, arguments);
|
|
10
10
|
};
|
|
11
11
|
export function isMP() {
|
|
12
|
-
// @ts-ignore
|
|
13
|
-
if (typeof wx !== 'undefined') return true;
|
|
14
12
|
// 小程序一定有 my
|
|
15
13
|
if (typeof my === 'undefined') return false;
|
|
16
14
|
// SDKVersion 只在小程序有
|
package/lib/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default '4.0.
|
|
1
|
+
export default '4.0.30';
|