@arms/rum-core 0.0.31 → 0.0.33
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/lib/types/client.d.ts +22 -7
- package/lib/types/rum-event.d.ts +3 -3
- package/lib/types/rum-event.js +2 -2
- package/package.json +4 -2
package/lib/types/client.d.ts
CHANGED
|
@@ -89,6 +89,19 @@ export interface IConfiguration {
|
|
|
89
89
|
* 应用版本
|
|
90
90
|
*/
|
|
91
91
|
version?: string;
|
|
92
|
+
/**
|
|
93
|
+
* 应用配置
|
|
94
|
+
*/
|
|
95
|
+
app?: {
|
|
96
|
+
id?: string;
|
|
97
|
+
name?: string;
|
|
98
|
+
version?: string;
|
|
99
|
+
channel?: string;
|
|
100
|
+
env?: string;
|
|
101
|
+
type?: string;
|
|
102
|
+
package?: string;
|
|
103
|
+
framework?: string;
|
|
104
|
+
};
|
|
92
105
|
/**
|
|
93
106
|
* 用户配置
|
|
94
107
|
*/
|
|
@@ -96,7 +109,6 @@ export interface IConfiguration {
|
|
|
96
109
|
id?: string;
|
|
97
110
|
tags?: string;
|
|
98
111
|
name?: string;
|
|
99
|
-
[key: string]: any;
|
|
100
112
|
};
|
|
101
113
|
/**
|
|
102
114
|
* 上报地址
|
|
@@ -117,10 +129,7 @@ export interface IConfiguration {
|
|
|
117
129
|
* 配置下发
|
|
118
130
|
* - 运行时动态配置更新,根据端侧特点来做定制化配置
|
|
119
131
|
*/
|
|
120
|
-
remoteConfig?: Boolean
|
|
121
|
-
enable?: boolean;
|
|
122
|
-
url?: string;
|
|
123
|
-
};
|
|
132
|
+
remoteConfig?: Boolean;
|
|
124
133
|
/**
|
|
125
134
|
* session config
|
|
126
135
|
*/
|
|
@@ -129,7 +138,7 @@ export interface IConfiguration {
|
|
|
129
138
|
* 各个 collector config
|
|
130
139
|
*/
|
|
131
140
|
collectors?: {
|
|
132
|
-
[key: string]:
|
|
141
|
+
[key: string]: boolean;
|
|
133
142
|
};
|
|
134
143
|
/**
|
|
135
144
|
* 事件过滤器配置
|
|
@@ -139,5 +148,11 @@ export interface IConfiguration {
|
|
|
139
148
|
resource?: MatchOption | MatchOption[];
|
|
140
149
|
exception?: MatchOption | MatchOption[];
|
|
141
150
|
};
|
|
142
|
-
|
|
151
|
+
/**
|
|
152
|
+
* 全局自定义属性
|
|
153
|
+
*/
|
|
154
|
+
properties?: {
|
|
155
|
+
[key: string]: number | string;
|
|
156
|
+
};
|
|
157
|
+
[key: string]: unknown;
|
|
143
158
|
}
|
package/lib/types/rum-event.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ export declare enum RumEventType {
|
|
|
2
2
|
VIEW = "view",
|
|
3
3
|
RESOURCE = "resource",
|
|
4
4
|
EXCEPTION = "exception",
|
|
5
|
-
LONG_TASK = "
|
|
5
|
+
LONG_TASK = "longTask",
|
|
6
6
|
ACTION = "action",
|
|
7
7
|
CUSTOM = "custom",
|
|
8
8
|
APPLICATION = "application"
|
|
@@ -116,8 +116,8 @@ export type RumEvent = RumViewEvent | RumResourceEvent | RumExceptionEvent | Rum
|
|
|
116
116
|
export declare enum AppType {
|
|
117
117
|
browser = "browser",
|
|
118
118
|
miniapp = "miniapp",
|
|
119
|
-
|
|
120
|
-
|
|
119
|
+
minigame = "minigame",
|
|
120
|
+
uniapp = "uniapp"
|
|
121
121
|
}
|
|
122
122
|
export interface RumEventBundle {
|
|
123
123
|
app: {
|
package/lib/types/rum-event.js
CHANGED
|
@@ -6,7 +6,7 @@ var RumEventType = exports.RumEventType = /*#__PURE__*/function (RumEventType) {
|
|
|
6
6
|
RumEventType["VIEW"] = "view";
|
|
7
7
|
RumEventType["RESOURCE"] = "resource";
|
|
8
8
|
RumEventType["EXCEPTION"] = "exception";
|
|
9
|
-
RumEventType["LONG_TASK"] = "
|
|
9
|
+
RumEventType["LONG_TASK"] = "longTask";
|
|
10
10
|
RumEventType["ACTION"] = "action";
|
|
11
11
|
RumEventType["CUSTOM"] = "custom";
|
|
12
12
|
RumEventType["APPLICATION"] = "application";
|
|
@@ -24,7 +24,7 @@ var ResourceStatus = exports.ResourceStatus = /*#__PURE__*/function (ResourceSta
|
|
|
24
24
|
var AppType = exports.AppType = /*#__PURE__*/function (AppType) {
|
|
25
25
|
AppType["browser"] = "browser";
|
|
26
26
|
AppType["miniapp"] = "miniapp";
|
|
27
|
-
AppType["uniapp"] = "uniapp";
|
|
28
27
|
AppType["minigame"] = "minigame";
|
|
28
|
+
AppType["uniapp"] = "uniapp";
|
|
29
29
|
return AppType;
|
|
30
30
|
}({});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arms/rum-core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.33",
|
|
4
4
|
"description": "arms rum javascript sdk core",
|
|
5
5
|
"author": "guangli.fj <guangli.fj@alibaba-inc.com>",
|
|
6
6
|
"license": "ISC",
|
|
@@ -24,8 +24,10 @@
|
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"events": "^3.3.0"
|
|
26
26
|
},
|
|
27
|
+
"peerDependencies": {
|
|
28
|
+
"@babel/runtime": "^7.24.5"
|
|
29
|
+
},
|
|
27
30
|
"devDependencies": {
|
|
28
|
-
"@babel/runtime": "^7.24.5",
|
|
29
31
|
"typescript": "^4.9.4"
|
|
30
32
|
}
|
|
31
33
|
}
|