@huolala-tech/page-spy-base
Advanced tools
Comparing version
import { SpyClient } from '@huolala-tech/page-spy-types'; | ||
export declare class Client { | ||
info: SpyClient.ClientInfo; | ||
constructor(info?: SpyClient.ClientInfo); | ||
rawInfo?: Record<string, any> | undefined; | ||
constructor(info?: SpyClient.ClientInfo, rawInfo?: Record<string, any> | undefined); | ||
plugins: string[]; | ||
@@ -6,0 +7,0 @@ makeClientInfoMsg(): SpyClient.DataItem; |
export class Client { | ||
info; | ||
rawInfo; | ||
constructor(info = { | ||
@@ -13,4 +14,7 @@ // browserName and framework should be overwritten by package implementation\ | ||
sdkVersion: '0.0.0', | ||
}) { | ||
}, | ||
// the raw info from getSystemInfoSync or similar api, will be sent by system plugin | ||
rawInfo) { | ||
this.info = info; | ||
this.rawInfo = rawInfo; | ||
} | ||
@@ -17,0 +21,0 @@ plugins = []; |
{ | ||
"name": "@huolala-tech/page-spy-base", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "The common utils of PageSpy.", | ||
"dependencies": { | ||
"@huolala-tech/page-spy-types": "^2.0.0" | ||
"@huolala-tech/page-spy-types": "^2.1.0" | ||
}, | ||
@@ -45,3 +45,3 @@ "license": "MIT", | ||
], | ||
"gitHead": "f06712ca3a72d0e880508b737a1576c0050c351a" | ||
"gitHead": "1c29db7f3f5f060cd82e3e57df725e768414a11c" | ||
} |
49447
0.48%1421
0.35%