@yysports/tools 0.0.7 → 0.0.8

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.
@@ -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<void>;
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;
@@ -181,7 +181,8 @@ var Track = /*#__PURE__*/function () {
181
181
  this.setUserProfile(userProfile);
182
182
  }
183
183
  this.mountAutoTask();
184
- case 9:
184
+ return _context2.abrupt("return", CurrentUser.profile);
185
+ case 10:
185
186
  case "end":
186
187
  return _context2.stop();
187
188
  }
@@ -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<void>;
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;
@@ -141,6 +141,7 @@ var Track = class {
141
141
  this.setUserProfile(userProfile);
142
142
  }
143
143
  this.mountAutoTask();
144
+ return import_CurrentUser.default.profile;
144
145
  }
145
146
  // 推送埋点信息进入队列
146
147
  static pushQueue({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yysports/tools",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "description": "常用工具函数库",
5
5
  "homepage": "https://git.pousheng.com/sport-service-department/pousheng-guard/yysports_tools#readme",
6
6
  "bugs": {