@cloudcare/browser-core 1.0.25 → 1.0.26

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.
@@ -51,6 +51,8 @@ var DEFAULT_CONFIGURATION = {
51
51
  // 新增
52
52
  isServiceSampling: false,
53
53
  // 是否不抛弃采样是数据, 采用在服务端菜样的方式
54
+ isJsBirdge: false,
55
+ // 是否需要对webview 发送数据,需要装我们对应ios sdk
54
56
  beforeSend: function beforeSend(event) {},
55
57
  isServerError: function isServerError(request) {
56
58
  return false;
@@ -102,6 +104,10 @@ function commonInit(userConfiguration, buildEnv) {
102
104
  cookieOptions: buildCookieOptions(userConfiguration)
103
105
  };
104
106
 
107
+ if ('isJsBirdge' in userConfiguration) {
108
+ transportConfiguration.isJsBirdge = userConfiguration.isJsBirdge;
109
+ }
110
+
105
111
  if ('allowedDDTracingOrigins' in userConfiguration) {
106
112
  transportConfiguration.allowedTracingOrigins = userConfiguration.allowedDDTracingOrigins;
107
113
  }
@@ -37,6 +37,8 @@ export var DEFAULT_CONFIGURATION = {
37
37
  // 新增
38
38
  isServiceSampling: false,
39
39
  // 是否不抛弃采样是数据, 采用在服务端菜样的方式
40
+ isJsBirdge: false,
41
+ // 是否需要对webview 发送数据,需要装我们对应ios sdk
40
42
  beforeSend: function beforeSend(event) {},
41
43
  isServerError: function isServerError(request) {
42
44
  return false;
@@ -87,6 +89,10 @@ export function commonInit(userConfiguration, buildEnv) {
87
89
  cookieOptions: buildCookieOptions(userConfiguration)
88
90
  };
89
91
 
92
+ if ('isJsBirdge' in userConfiguration) {
93
+ transportConfiguration.isJsBirdge = userConfiguration.isJsBirdge;
94
+ }
95
+
90
96
  if ('allowedDDTracingOrigins' in userConfiguration) {
91
97
  transportConfiguration.allowedTracingOrigins = userConfiguration.allowedDDTracingOrigins;
92
98
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudcare/browser-core",
3
- "version": "1.0.25",
3
+ "version": "1.0.26",
4
4
  "main": "cjs/index.js",
5
5
  "module": "esm/index.js",
6
6
  "scripts": {
@@ -20,5 +20,5 @@
20
20
  "author": "dataflux",
21
21
  "license": "MIT",
22
22
  "description": "DataFlux RUM Web 端数据指标监控",
23
- "gitHead": "71b933526e868e57c1ebf943f337bda9a19fe7ed"
23
+ "gitHead": "8a8ee0b57af1e54f8b41100dfadf1477868cce56"
24
24
  }
@@ -40,6 +40,7 @@ export var DEFAULT_CONFIGURATION = {
40
40
  allowedDDTracingOrigins: [], //废弃
41
41
  allowedTracingOrigins:[], // 新增
42
42
  isServiceSampling: false, // 是否不抛弃采样是数据, 采用在服务端菜样的方式
43
+ isJsBirdge: false,// 是否需要对webview 发送数据,需要装我们对应ios sdk
43
44
  beforeSend: function (event) {},
44
45
  isServerError: function(request) {return false} // 判断请求是否为error 请求
45
46
  }
@@ -87,6 +88,9 @@ export function commonInit(userConfiguration, buildEnv) {
87
88
  isEnabled: function(feature) {return includes(enableExperimentalFeatures, feature)},
88
89
  cookieOptions: buildCookieOptions(userConfiguration)
89
90
  }
91
+ if ('isJsBirdge' in userConfiguration) {
92
+ transportConfiguration.isJsBirdge = userConfiguration.isJsBirdge
93
+ }
90
94
  if ('allowedDDTracingOrigins' in userConfiguration) {
91
95
  transportConfiguration.allowedTracingOrigins =
92
96
  userConfiguration.allowedDDTracingOrigins