hunter-open-sdk 2.0.0-beta.13 → 2.0.0-beta.14

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.
@@ -63,14 +63,21 @@ const getTrustStatus = async (udid = '', params, once = false) => {
63
63
  return false;
64
64
  }
65
65
 
66
- // 通过调用 trust_status 来判断信任状态
67
- const kitParamsObj = JSON.parse(params);
68
-
69
66
  // 合并参数
70
- Object.assign(kitParamsObj, {
71
- cmd: 'trust_status',
67
+ const paramsObj = Object.assign(JSON.parse(params), {
72
68
  udid
73
69
  });
70
+ let label = 'Windows';
71
+ if ((0, _utils.isMac)()) {
72
+ label = 'Mac';
73
+ }
74
+
75
+ // 通过调用 trust_status 来判断信任状态
76
+ const kitParamsObj = {
77
+ cmd: 'trust_status',
78
+ label,
79
+ params: JSON.stringify(paramsObj)
80
+ };
74
81
 
75
82
  // 获取信任状态
76
83
  const trustStatusRes = (0, _utils3.callHunterInspectionKit)('TheForceKit', JSON.stringify(kitParamsObj));
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hunter-open-sdk",
3
- "version": "2.0.0-beta.13",
3
+ "version": "2.0.0-beta.14",
4
4
  "description": "采货侠SaaS版本桌面端sdk",
5
5
  "scripts": {
6
6
  "start": "zz dev",