@bifrostui/utils 2.0.0-alpha.10 → 2.0.0-alpha.12

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/dist/isMini.js CHANGED
@@ -24,7 +24,7 @@ __export(isMini_exports, {
24
24
  isWeapp: () => isWeapp
25
25
  });
26
26
  module.exports = __toCommonJS(isMini_exports);
27
- const isMini = typeof process.env.TARO_ENV === "string";
27
+ const isMini = typeof process.env.TARO_ENV === "string" && ["weapp", "swan", "alipay", "tt", "qq", "jd"].includes(process.env.TARO_ENV);
28
28
  const isWeapp = process.env.TARO_ENV === "weapp";
29
29
  const isAlipay = process.env.TARO_ENV === "alipay";
30
30
  const isTt = process.env.TARO_ENV === "tt";
package/es/isMini.js CHANGED
@@ -1,4 +1,4 @@
1
- const isMini = typeof process.env.TARO_ENV === "string";
1
+ const isMini = typeof process.env.TARO_ENV === "string" && ["weapp", "swan", "alipay", "tt", "qq", "jd"].includes(process.env.TARO_ENV);
2
2
  const isWeapp = process.env.TARO_ENV === "weapp";
3
3
  const isAlipay = process.env.TARO_ENV === "alipay";
4
4
  const isTt = process.env.TARO_ENV === "tt";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bifrostui/utils",
3
- "version": "2.0.0-alpha.10",
3
+ "version": "2.0.0-alpha.12",
4
4
  "description": "BUI React utilities for building components.",
5
5
  "main": "dist/index.js",
6
6
  "module": "es/index.js",
@@ -17,7 +17,7 @@
17
17
  },
18
18
  "dependencies": {
19
19
  "react-is": "^18.0.0",
20
- "@bifrostui/styles": "2.0.0-alpha.10"
20
+ "@bifrostui/styles": "2.0.0-alpha.12"
21
21
  },
22
22
  "peerDependencies": {
23
23
  "@tarojs/runtime": "^3.0.0",