@tmsfe/tms-core 0.0.35 → 0.0.38
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/package.json +1 -1
- package/src/report/helper.ts +4 -3
- package/src/report/types.ts +3 -3
package/package.json
CHANGED
package/src/report/helper.ts
CHANGED
|
@@ -37,8 +37,9 @@ function getSystemInfo(): ISystemInfo {
|
|
|
37
37
|
if (systemInfo === null) {
|
|
38
38
|
const system = syncApi.getSystemInfoSync() as any;
|
|
39
39
|
// eslint-disable-next-line
|
|
40
|
-
const { model = '', version: wxVersion = '', platform = '', SDKVersion = '', host
|
|
41
|
-
|
|
40
|
+
const { model = '', version: wxVersion = '', platform = '', SDKVersion = '', host } = system;
|
|
41
|
+
const hostStr = host ? JSON.stringify(host) : '';
|
|
42
|
+
systemInfo = { model, wxVersion, platform, SDKVersion, host: hostStr };
|
|
42
43
|
}
|
|
43
44
|
return systemInfo;
|
|
44
45
|
}
|
|
@@ -119,7 +120,7 @@ function getAppScene(): string {
|
|
|
119
120
|
|
|
120
121
|
// 给非空字段都encodeURIComponent一下
|
|
121
122
|
function encodeItems(arr: DataItem[]): DataItem[] {
|
|
122
|
-
return arr.map(t => t ? encodeURIComponent(t) : t);
|
|
123
|
+
return arr.map(t => (t ? encodeURIComponent(t) : t));
|
|
123
124
|
}
|
|
124
125
|
|
|
125
126
|
// 是否爬虫
|
package/src/report/types.ts
CHANGED