@yysports/tools 0.0.7 → 0.0.9
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/dist/Track/index.d.ts +1 -1
- package/dist/Track/index.js +2 -4
- package/lib/Track/index.d.ts +1 -1
- package/lib/Track/index.js +1 -3
- package/package.json +1 -1
package/dist/Track/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ declare class Track {
|
|
|
9
9
|
static getSystemProfile(): SystemProfile;
|
|
10
10
|
static getUserProfile(): UserProfile;
|
|
11
11
|
static setUserProfile(userProfile: UserProfile): void;
|
|
12
|
-
static init({ userProfile, menuNameMap, routes, getAuth, menuBuild, ...restConfig }: TrackConfig): Promise<
|
|
12
|
+
static init({ userProfile, menuNameMap, routes, getAuth, menuBuild, ...restConfig }: TrackConfig): Promise<import("..").CurrentUserInfo | null>;
|
|
13
13
|
static pushQueue({ type, log, }: {
|
|
14
14
|
type: TrackType;
|
|
15
15
|
log: ErrorProfile | CustomizeProfile;
|
package/dist/Track/index.js
CHANGED
|
@@ -38,9 +38,6 @@ var Track = /*#__PURE__*/function () {
|
|
|
38
38
|
if (!config.appId) {
|
|
39
39
|
throw new Error('请设置appId');
|
|
40
40
|
}
|
|
41
|
-
if (CurrentUser.profile === null) {
|
|
42
|
-
throw new Error('请先调用CurrentUser对象设置系统信息');
|
|
43
|
-
}
|
|
44
41
|
this.config = config;
|
|
45
42
|
}
|
|
46
43
|
|
|
@@ -181,7 +178,8 @@ var Track = /*#__PURE__*/function () {
|
|
|
181
178
|
this.setUserProfile(userProfile);
|
|
182
179
|
}
|
|
183
180
|
this.mountAutoTask();
|
|
184
|
-
|
|
181
|
+
return _context2.abrupt("return", CurrentUser.profile);
|
|
182
|
+
case 10:
|
|
185
183
|
case "end":
|
|
186
184
|
return _context2.stop();
|
|
187
185
|
}
|
package/lib/Track/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ declare class Track {
|
|
|
9
9
|
static getSystemProfile(): SystemProfile;
|
|
10
10
|
static getUserProfile(): UserProfile;
|
|
11
11
|
static setUserProfile(userProfile: UserProfile): void;
|
|
12
|
-
static init({ userProfile, menuNameMap, routes, getAuth, menuBuild, ...restConfig }: TrackConfig): Promise<
|
|
12
|
+
static init({ userProfile, menuNameMap, routes, getAuth, menuBuild, ...restConfig }: TrackConfig): Promise<import("..").CurrentUserInfo | null>;
|
|
13
13
|
static pushQueue({ type, log, }: {
|
|
14
14
|
type: TrackType;
|
|
15
15
|
log: ErrorProfile | CustomizeProfile;
|
package/lib/Track/index.js
CHANGED
|
@@ -45,9 +45,6 @@ var Track = class {
|
|
|
45
45
|
if (!config.appId) {
|
|
46
46
|
throw new Error("请设置appId");
|
|
47
47
|
}
|
|
48
|
-
if (import_CurrentUser.default.profile === null) {
|
|
49
|
-
throw new Error("请先调用CurrentUser对象设置系统信息");
|
|
50
|
-
}
|
|
51
48
|
this.config = config;
|
|
52
49
|
}
|
|
53
50
|
// 发送埋点数据
|
|
@@ -141,6 +138,7 @@ var Track = class {
|
|
|
141
138
|
this.setUserProfile(userProfile);
|
|
142
139
|
}
|
|
143
140
|
this.mountAutoTask();
|
|
141
|
+
return import_CurrentUser.default.profile;
|
|
144
142
|
}
|
|
145
143
|
// 推送埋点信息进入队列
|
|
146
144
|
static pushQueue({
|