@cloudcare/browser-core 3.1.15 → 3.1.16
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/LICENSE +2 -2
- package/package.json +2 -2
- package/types/index.d.ts +2 -6
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) 2024 CloudCare
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
18
18
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
19
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
20
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
21
|
+
SOFTWARE.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcare/browser-core",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.16",
|
|
4
4
|
"main": "cjs/index.js",
|
|
5
5
|
"module": "esm/index.js",
|
|
6
6
|
"types": "types/index.d.ts",
|
|
@@ -22,5 +22,5 @@
|
|
|
22
22
|
"author": "dataflux",
|
|
23
23
|
"license": "MIT",
|
|
24
24
|
"description": "DataFlux RUM Web 端数据指标监控",
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "46f43c9701dfd70b5f9b4fd718cbb0dcdddcafdd"
|
|
26
26
|
}
|
package/types/index.d.ts
CHANGED
|
@@ -157,14 +157,10 @@ export interface RumBaseInitConfiguration extends InitConfiguration {
|
|
|
157
157
|
traceId128Bit?: boolean | undefined
|
|
158
158
|
/**
|
|
159
159
|
* Fetch/Xhr 拦截之后,往请求 header 添加额外 header-key,受 allowedTracingUrls 影响
|
|
160
|
-
* @param context
|
|
160
|
+
* @param context 请求附带额外信息,包括traceid spanid url 等内容
|
|
161
161
|
* @returns 返回 key: value 对象, 请求添加的额外 key
|
|
162
162
|
*/
|
|
163
|
-
injectTraceHeader?: (
|
|
164
|
-
traceId: string
|
|
165
|
-
spanId: string
|
|
166
|
-
traceSampled: number
|
|
167
|
-
}) => { [key: string]: string } | undefined
|
|
163
|
+
injectTraceHeader?: (content: any) => { [key: string]: string } | undefined
|
|
168
164
|
}
|
|
169
165
|
export type RumInitConfiguration = RumBaseInitConfiguration &
|
|
170
166
|
DatakitInitConfiguration
|