byt-ui 0.1.6 → 0.1.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.
- package/lib/byt-ui.common.js +18 -16
- package/lib/byt-ui.umd.js +18 -16
- package/lib/byt-ui.umd.min.js +1 -1
- package/package.json +1 -1
- package/packages/common/modules/cookie.js +3 -3
- package/packages/common/modules/sentry.js +15 -13
package/lib/byt-ui.common.js
CHANGED
|
@@ -94431,7 +94431,7 @@ var website = __webpack_require__(17021);
|
|
|
94431
94431
|
* @Description:
|
|
94432
94432
|
* @Author: 王国火
|
|
94433
94433
|
* @Date: 2022-10-18 12:37:03
|
|
94434
|
-
* @LastEditTime: 2024-04-22 19:
|
|
94434
|
+
* @LastEditTime: 2024-04-22 19:23:05
|
|
94435
94435
|
* @LastEditors: 王国火
|
|
94436
94436
|
*/
|
|
94437
94437
|
|
|
@@ -94442,7 +94442,7 @@ const getCookie = key => {
|
|
|
94442
94442
|
// domain: window.location.hostname
|
|
94443
94443
|
}) || '';
|
|
94444
94444
|
};
|
|
94445
|
-
const setCookie = (key, value, expires = 7, path = '') => {
|
|
94445
|
+
const setCookie = (key, value, expires = 7, path = '/') => {
|
|
94446
94446
|
const fullKey = `${website["default"].key}-${key}`;
|
|
94447
94447
|
return api.set(fullKey, value, {
|
|
94448
94448
|
expires,
|
|
@@ -94450,7 +94450,7 @@ const setCookie = (key, value, expires = 7, path = '') => {
|
|
|
94450
94450
|
// domain: window.location.hostname
|
|
94451
94451
|
});
|
|
94452
94452
|
};
|
|
94453
|
-
const removeCookie = (key, path = '') => {
|
|
94453
|
+
const removeCookie = (key, path = '/') => {
|
|
94454
94454
|
const fullKey = `${website["default"].key}-${key}`;
|
|
94455
94455
|
return api.remove(fullKey, {
|
|
94456
94456
|
path
|
|
@@ -125499,7 +125499,7 @@ var store = __webpack_require__(67745);
|
|
|
125499
125499
|
* @Description:
|
|
125500
125500
|
* @Author: 王国火
|
|
125501
125501
|
* @Date: 2024-04-18 15:37:44
|
|
125502
|
-
* @LastEditTime: 2024-04-
|
|
125502
|
+
* @LastEditTime: 2024-04-23 09:30:29
|
|
125503
125503
|
* @LastEditors: 王国火
|
|
125504
125504
|
*/
|
|
125505
125505
|
|
|
@@ -125655,20 +125655,22 @@ class Sentry {
|
|
|
125655
125655
|
// 允许自定义配置覆盖、合并默认配置
|
|
125656
125656
|
sdk_init(Object.assign({}, params, this.options));
|
|
125657
125657
|
}
|
|
125658
|
-
|
|
125659
|
-
|
|
125658
|
+
register() {
|
|
125659
|
+
this.axios({
|
|
125660
125660
|
url: '/leo-tech-bridge/sysParam/getSentryDsn',
|
|
125661
|
-
method: 'GET'
|
|
125661
|
+
method: 'GET',
|
|
125662
|
+
showError: false
|
|
125663
|
+
}).then(res => {
|
|
125664
|
+
// 需要兼容商城和业务中台
|
|
125665
|
+
const val = res instanceof Object ? res.data : res;
|
|
125666
|
+
if (val) {
|
|
125667
|
+
// 重新处理拼接dsn地址
|
|
125668
|
+
const localhost = window.location;
|
|
125669
|
+
const result = val.split('@');
|
|
125670
|
+
const dsn = `${localhost.protocol}//${result[0]}@${localhost.host}${result[1]}`;
|
|
125671
|
+
this.init(dsn);
|
|
125672
|
+
}
|
|
125662
125673
|
});
|
|
125663
|
-
// 需要兼容商城和业务中台
|
|
125664
|
-
const val = res instanceof Object ? res.data : res;
|
|
125665
|
-
if (val) {
|
|
125666
|
-
// 重新处理拼接dsn地址
|
|
125667
|
-
const localhost = window.location;
|
|
125668
|
-
const result = val.split('@');
|
|
125669
|
-
const dsn = `${localhost.protocol}//${result[0]}@${localhost.host}${result[1]}`;
|
|
125670
|
-
this.init(dsn);
|
|
125671
|
-
}
|
|
125672
125674
|
}
|
|
125673
125675
|
}
|
|
125674
125676
|
/* harmony default export */ var sentry = ({
|
package/lib/byt-ui.umd.js
CHANGED
|
@@ -94441,7 +94441,7 @@ var website = __webpack_require__(4522);
|
|
|
94441
94441
|
* @Description:
|
|
94442
94442
|
* @Author: 王国火
|
|
94443
94443
|
* @Date: 2022-10-18 12:37:03
|
|
94444
|
-
* @LastEditTime: 2024-04-22 19:
|
|
94444
|
+
* @LastEditTime: 2024-04-22 19:23:05
|
|
94445
94445
|
* @LastEditors: 王国火
|
|
94446
94446
|
*/
|
|
94447
94447
|
|
|
@@ -94452,7 +94452,7 @@ const getCookie = key => {
|
|
|
94452
94452
|
// domain: window.location.hostname
|
|
94453
94453
|
}) || '';
|
|
94454
94454
|
};
|
|
94455
|
-
const setCookie = (key, value, expires = 7, path = '') => {
|
|
94455
|
+
const setCookie = (key, value, expires = 7, path = '/') => {
|
|
94456
94456
|
const fullKey = `${website["default"].key}-${key}`;
|
|
94457
94457
|
return api.set(fullKey, value, {
|
|
94458
94458
|
expires,
|
|
@@ -94460,7 +94460,7 @@ const setCookie = (key, value, expires = 7, path = '') => {
|
|
|
94460
94460
|
// domain: window.location.hostname
|
|
94461
94461
|
});
|
|
94462
94462
|
};
|
|
94463
|
-
const removeCookie = (key, path = '') => {
|
|
94463
|
+
const removeCookie = (key, path = '/') => {
|
|
94464
94464
|
const fullKey = `${website["default"].key}-${key}`;
|
|
94465
94465
|
return api.remove(fullKey, {
|
|
94466
94466
|
path
|
|
@@ -125509,7 +125509,7 @@ var store = __webpack_require__(5438);
|
|
|
125509
125509
|
* @Description:
|
|
125510
125510
|
* @Author: 王国火
|
|
125511
125511
|
* @Date: 2024-04-18 15:37:44
|
|
125512
|
-
* @LastEditTime: 2024-04-
|
|
125512
|
+
* @LastEditTime: 2024-04-23 09:30:29
|
|
125513
125513
|
* @LastEditors: 王国火
|
|
125514
125514
|
*/
|
|
125515
125515
|
|
|
@@ -125665,20 +125665,22 @@ class Sentry {
|
|
|
125665
125665
|
// 允许自定义配置覆盖、合并默认配置
|
|
125666
125666
|
sdk_init(Object.assign({}, params, this.options));
|
|
125667
125667
|
}
|
|
125668
|
-
|
|
125669
|
-
|
|
125668
|
+
register() {
|
|
125669
|
+
this.axios({
|
|
125670
125670
|
url: '/leo-tech-bridge/sysParam/getSentryDsn',
|
|
125671
|
-
method: 'GET'
|
|
125671
|
+
method: 'GET',
|
|
125672
|
+
showError: false
|
|
125673
|
+
}).then(res => {
|
|
125674
|
+
// 需要兼容商城和业务中台
|
|
125675
|
+
const val = res instanceof Object ? res.data : res;
|
|
125676
|
+
if (val) {
|
|
125677
|
+
// 重新处理拼接dsn地址
|
|
125678
|
+
const localhost = window.location;
|
|
125679
|
+
const result = val.split('@');
|
|
125680
|
+
const dsn = `${localhost.protocol}//${result[0]}@${localhost.host}${result[1]}`;
|
|
125681
|
+
this.init(dsn);
|
|
125682
|
+
}
|
|
125672
125683
|
});
|
|
125673
|
-
// 需要兼容商城和业务中台
|
|
125674
|
-
const val = res instanceof Object ? res.data : res;
|
|
125675
|
-
if (val) {
|
|
125676
|
-
// 重新处理拼接dsn地址
|
|
125677
|
-
const localhost = window.location;
|
|
125678
|
-
const result = val.split('@');
|
|
125679
|
-
const dsn = `${localhost.protocol}//${result[0]}@${localhost.host}${result[1]}`;
|
|
125680
|
-
this.init(dsn);
|
|
125681
|
-
}
|
|
125682
125684
|
}
|
|
125683
125685
|
}
|
|
125684
125686
|
/* harmony default export */ var sentry = ({
|