@tarojs/taro-h5 3.6.0-beta.1 → 3.6.0-beta.2

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.
@@ -62,6 +62,8 @@ export const getDeviceInfo = () => {
62
62
  const info = {
63
63
  /** 应用二进制接口类型(仅 Android 支持) */
64
64
  abi: '',
65
+ /** 设备二进制接口类型(仅 Android 支持) */
66
+ deviceAbi: '',
65
67
  /** 设备性能等级(仅Android小游戏)。取值为:-2 或 0(该设备无法运行小游戏),-1(性能未知),>=1(设备性能值,该值越高,设备性能越好,目前最高不到50) */
66
68
  benchmarkLevel: -1,
67
69
  /** 设备品牌 */
@@ -71,7 +73,9 @@ export const getDeviceInfo = () => {
71
73
  /** 操作系统及版本 */
72
74
  system: md.os(),
73
75
  /** 客户端平台 */
74
- platform: navigator.platform
76
+ platform: navigator.platform,
77
+ /** 设备二进制接口类型(仅 Android 支持) */
78
+ CPUType: '',
75
79
  };
76
80
  return info;
77
81
  };
package/dist/index.cjs.js CHANGED
@@ -61,7 +61,7 @@ class MethodHandler {
61
61
  else {
62
62
  res.errMsg = `${this.methodName}:fail ${res.errMsg}`;
63
63
  }
64
- if (!isProd) {
64
+ if (process.env.NODE_ENV !== 'production') {
65
65
  console.error(res.errMsg);
66
66
  }
67
67
  shared.isFunction(this.__fail) && this.__fail(res);
@@ -176,7 +176,6 @@ const isValidColor = (color) => {
176
176
  };
177
177
 
178
178
  /* eslint-disable prefer-promise-reject-errors */
179
- const isProd = process.env.NODE_ENV === 'production';
180
179
  function shouldBeObject(target) {
181
180
  if (target && typeof target === 'object')
182
181
  return { flag: true };
@@ -258,7 +257,7 @@ function temporarilyNotSupport(name = '') {
258
257
  type: 'method',
259
258
  category: 'temporarily',
260
259
  });
261
- if (isProd) {
260
+ if (process.env.NODE_ENV === 'production') {
262
261
  console.warn(errMsg);
263
262
  return handle.success({ errMsg });
264
263
  }
@@ -278,7 +277,7 @@ function weixinCorpSupport(name) {
278
277
  type: 'method',
279
278
  category: 'weixin_corp',
280
279
  });
281
- if (isProd) {
280
+ if (process.env.NODE_ENV === 'production') {
282
281
  console.warn(errMsg);
283
282
  return handle.success({ errMsg });
284
283
  }
@@ -298,7 +297,7 @@ function permanentlyNotSupport(name = '') {
298
297
  type: 'method',
299
298
  category: 'permanently',
300
299
  });
301
- if (isProd) {
300
+ if (process.env.NODE_ENV === 'production') {
302
301
  console.warn(errMsg);
303
302
  return handle.success({ errMsg });
304
303
  }
@@ -663,6 +662,8 @@ const getDeviceInfo = () => {
663
662
  const info = {
664
663
  /** 应用二进制接口类型(仅 Android 支持) */
665
664
  abi: '',
665
+ /** 设备二进制接口类型(仅 Android 支持) */
666
+ deviceAbi: '',
666
667
  /** 设备性能等级(仅Android小游戏)。取值为:-2 或 0(该设备无法运行小游戏),-1(性能未知),>=1(设备性能值,该值越高,设备性能越好,目前最高不到50) */
667
668
  benchmarkLevel: -1,
668
669
  /** 设备品牌 */
@@ -672,7 +673,9 @@ const getDeviceInfo = () => {
672
673
  /** 操作系统及版本 */
673
674
  system: md.os(),
674
675
  /** 客户端平台 */
675
- platform: navigator.platform
676
+ platform: navigator.platform,
677
+ /** 设备二进制接口类型(仅 Android 支持) */
678
+ CPUType: '',
676
679
  };
677
680
  return info;
678
681
  };