@tmsfe/tms-core 0.0.37 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmsfe/tms-core",
3
- "version": "0.0.37",
3
+ "version": "0.0.38",
4
4
  "description": "tms运行时框架",
5
5
  "repository": {
6
6
  "type": "git",
@@ -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 = '' } = system;
41
- systemInfo = { model, wxVersion, platform, SDKVersion, host };
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
  }
@@ -28,9 +28,9 @@ interface IOldParams {
28
28
  interface ISystemInfo {
29
29
  model: string,
30
30
  wxVersion: string,
31
- platform: '',
32
- SDKVersion: '',
33
- host: '',
31
+ platform: string,
32
+ SDKVersion: string,
33
+ host: string,
34
34
  }
35
35
 
36
36
  interface ILocation {