@tmsfe/tms-core 0.0.181 → 0.0.182

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.181",
3
+ "version": "0.0.182",
4
4
  "description": "tms运行时框架",
5
5
  "repository": {
6
6
  "type": "git",
@@ -42,10 +42,10 @@ let systemInfo: ISystemInfo;
42
42
  */
43
43
  function getSystemInfo(): ISystemInfo {
44
44
  if (!systemInfo) {
45
- const system = wx.getSystemInfoSync() as any;
45
+ const currentSystemInfo = wx.getSystemInfoSync() as any;
46
46
  // eslint-disable-next-line
47
- const { model = '', version: wxVersion = '', platform = '', SDKVersion = '', host } = system;
48
- systemInfo = { model, wxVersion, platform, SDKVersion, host };
47
+ const { model = '', version: wxVersion = '', platform = '', SDKVersion = '', host, benchmarkLevel, system, memorySize } = currentSystemInfo;
48
+ systemInfo = { model, wxVersion, platform, SDKVersion, host, benchmarkLevel, system, memorySize };
49
49
  }
50
50
  return systemInfo;
51
51
  }
@@ -48,6 +48,9 @@ export interface ISystemInfo {
48
48
  SDKVersion: string,
49
49
  // 开发环境下为空
50
50
  host: object,
51
+ benchmarkLevel: number,
52
+ system: string,
53
+ memorySize: number,
51
54
  }
52
55
 
53
56
  export interface ILocation {