@yysports/tools 2.2.4 → 2.2.5
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/Log.d.ts +1 -0
- package/dist/Track/Log.js +10 -3
- package/dist/Track/index.d.ts +1 -0
- package/dist/Track/index.js +7 -0
- package/lib/Track/Log.d.ts +1 -0
- package/lib/Track/Log.js +4 -0
- package/lib/Track/index.d.ts +1 -0
- package/lib/Track/index.js +4 -0
- package/package.json +1 -1
package/dist/Track/Log.d.ts
CHANGED
package/dist/Track/Log.js
CHANGED
|
@@ -14,10 +14,17 @@ var Log = /*#__PURE__*/function () {
|
|
|
14
14
|
_classCallCheck(this, Log);
|
|
15
15
|
}
|
|
16
16
|
_createClass(Log, null, [{
|
|
17
|
-
key: "
|
|
18
|
-
|
|
17
|
+
key: "module",
|
|
18
|
+
get:
|
|
19
|
+
// 获取当前模块名称
|
|
20
|
+
function get() {
|
|
21
|
+
return this._module;
|
|
22
|
+
}
|
|
23
|
+
|
|
19
24
|
// 上报日志的公共属性
|
|
20
|
-
|
|
25
|
+
}, {
|
|
26
|
+
key: "_commonProps",
|
|
27
|
+
value: function _commonProps() {
|
|
21
28
|
return _objectSpread(_objectSpread(_objectSpread({}, User.profile), System.profile), {}, {
|
|
22
29
|
appId: Config.data.appId,
|
|
23
30
|
module: this._module
|
package/dist/Track/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export default class Track {
|
|
|
8
8
|
static get userProfile(): UserProfile | null;
|
|
9
9
|
static get systemProfile(): import("../interfaces/track.interface").SystemProfile;
|
|
10
10
|
static run(): void;
|
|
11
|
+
static get module(): string;
|
|
11
12
|
static visitLog: typeof Log.visitLog;
|
|
12
13
|
static eventLog: typeof Log.eventLog;
|
|
13
14
|
static errorLog: typeof Log.errorLog;
|
package/dist/Track/index.js
CHANGED
package/lib/Track/Log.d.ts
CHANGED
package/lib/Track/Log.js
CHANGED
|
@@ -38,6 +38,10 @@ var import_Replay = __toESM(require("./Replay"));
|
|
|
38
38
|
var import_System = __toESM(require("./System"));
|
|
39
39
|
var import_User = __toESM(require("./User"));
|
|
40
40
|
var Log = class {
|
|
41
|
+
// 获取当前模块名称
|
|
42
|
+
static get module() {
|
|
43
|
+
return this._module;
|
|
44
|
+
}
|
|
41
45
|
// 上报日志的公共属性
|
|
42
46
|
static _commonProps() {
|
|
43
47
|
return {
|
package/lib/Track/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export default class Track {
|
|
|
8
8
|
static get userProfile(): UserProfile | null;
|
|
9
9
|
static get systemProfile(): import("../interfaces/track.interface").SystemProfile;
|
|
10
10
|
static run(): void;
|
|
11
|
+
static get module(): string;
|
|
11
12
|
static visitLog: typeof Log.visitLog;
|
|
12
13
|
static eventLog: typeof Log.eventLog;
|
|
13
14
|
static errorLog: typeof Log.errorLog;
|
package/lib/Track/index.js
CHANGED
|
@@ -62,6 +62,10 @@ var Track = class {
|
|
|
62
62
|
import_Replay.default.run();
|
|
63
63
|
import_Beacon.default.updateVersion();
|
|
64
64
|
}
|
|
65
|
+
// 获取当前页面模块名称
|
|
66
|
+
static get module() {
|
|
67
|
+
return import_Log.default.module;
|
|
68
|
+
}
|
|
65
69
|
};
|
|
66
70
|
Track.visitLog = import_Log.default.visitLog.bind(import_Log.default);
|
|
67
71
|
Track.eventLog = import_Log.default.eventLog.bind(import_Log.default);
|