@xysfe/bug-tap 0.1.0 → 0.1.2
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/CHANGELOG.md +12 -0
- package/README.md +1 -1
- package/dist/bug-tap-screenshot.min.js +1 -1
- package/dist/bug-tap-vue.cjs +1 -1
- package/dist/bug-tap-vue.js +1 -1
- package/dist/bug-tap-vue.min.js +1 -1
- package/dist/bug-tap.cjs +1 -1
- package/dist/bug-tap.js +2 -2
- package/dist/bug-tap.min.js +4 -4
- package/dist/bug-tap.min.js.map +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/{index-BBRuTNvo.js → index-CyYSr1VU.js} +10 -7
- package/dist/index-CyYSr1VU.js.map +1 -0
- package/dist/{index-DCLLRJxX.cjs → index-RD4QHe1D.cjs} +5 -5
- package/dist/index-RD4QHe1D.cjs.map +1 -0
- package/dist/{panel-mount-mAOg572s.js → panel-mount-39UeybHJ.js} +3 -3
- package/dist/{panel-mount-mAOg572s.js.map → panel-mount-39UeybHJ.js.map} +1 -1
- package/dist/{panel-mount-Dia21VuZ.cjs → panel-mount-DWp_zfpW.cjs} +2 -2
- package/dist/{panel-mount-Dia21VuZ.cjs.map → panel-mount-DWp_zfpW.cjs.map} +1 -1
- package/docs/backend-api.md +5 -3
- package/docs/config.md +2 -2
- package/package.json +1 -1
- package/dist/index-BBRuTNvo.js.map +0 -1
- package/dist/index-DCLLRJxX.cjs.map +0 -1
package/dist/config.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import type { BugTapConfig, ResolvedBugTapConfig, UserInfoInput } from './types'
|
|
|
2
2
|
export declare const DEFAULT_EXCLUDE_URLS: Array<string | RegExp>;
|
|
3
3
|
export declare const DEFAULT_ENDPOINT = "/go/SupportTools/logreport";
|
|
4
4
|
export declare const DEFAULT_UPLOAD_URL = "/platform/file/uploadPicture";
|
|
5
|
-
export declare const DEFAULT_UPLOAD_BIZ_ID = "
|
|
5
|
+
export declare const DEFAULT_UPLOAD_BIZ_ID = "1086";
|
|
6
6
|
/**
|
|
7
7
|
* 用户信息只接受单层标量字段:
|
|
8
8
|
* - 嵌套对象 / 数组会被丢弃,避免把整个 store 塞进上报
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getCssSelector as kr } from "css-selector-generator";
|
|
2
|
-
/*! @xysfe/bug-tap v0.1.
|
|
2
|
+
/*! @xysfe/bug-tap v0.1.2 | MIT */
|
|
3
3
|
const Z = [
|
|
4
4
|
"x-request-id",
|
|
5
5
|
"x-trace-id",
|
|
@@ -74,7 +74,7 @@ function Br(e) {
|
|
|
74
74
|
function Ir(e, t, r) {
|
|
75
75
|
return !(t.length > 0 && (!e || !t.some((i) => _(i, e))) || e && r.some((i) => _(i, e)));
|
|
76
76
|
}
|
|
77
|
-
const $r = /\.(?:js|css|map|png|jpe?g|gif|svg|webp|ico|bmp|woff2?|ttf|eot|otf|mp4|webm|mp3|wav|ogg|avi|mov|zip|gz|pdf)(?:[?#]|$)/i, Or = [$r], ke = "/go/SupportTools/logreport", Ce = "/platform/file/uploadPicture", Le = "
|
|
77
|
+
const $r = /\.(?:js|css|map|png|jpe?g|gif|svg|webp|ico|bmp|woff2?|ttf|eot|otf|mp4|webm|mp3|wav|ogg|avi|mov|zip|gz|pdf)(?:[?#]|$)/i, Or = [$r], ke = "/go/SupportTools/logreport", Ce = "/platform/file/uploadPicture", Le = "1086";
|
|
78
78
|
function _r(e) {
|
|
79
79
|
return (String(e != null ? e : "").trim() || ke).replace(/\/+$/, "") || ke;
|
|
80
80
|
}
|
|
@@ -230,7 +230,7 @@ function it(e) {
|
|
|
230
230
|
upload: {
|
|
231
231
|
enabled: ((we = e.upload) == null ? void 0 : we.enabled) !== !1,
|
|
232
232
|
url: String(((ve = e.upload) == null ? void 0 : ve.url) || Ce).trim() || Ce,
|
|
233
|
-
// 上传接口必须带业务类型,未显式配置时用默认值
|
|
233
|
+
// 上传接口必须带业务类型,未显式配置时用默认值 1086
|
|
234
234
|
bizId: String((Ee = (xe = e.upload) == null ? void 0 : xe.bizId) != null ? Ee : Le).trim() || Le,
|
|
235
235
|
timeoutMs: y((Se = e.upload) == null ? void 0 : Se.timeoutMs, 1e3, 12e4, 3e4)
|
|
236
236
|
}
|
|
@@ -2265,7 +2265,7 @@ function Ki(e) {
|
|
|
2265
2265
|
extra: ut(e.extra),
|
|
2266
2266
|
contexts: ut(e.contexts),
|
|
2267
2267
|
timestamp: Date.now(),
|
|
2268
|
-
sdkVersion: "0.1.
|
|
2268
|
+
sdkVersion: "0.1.2",
|
|
2269
2269
|
clientReportId: e.clientReportId || Vi()
|
|
2270
2270
|
};
|
|
2271
2271
|
return tn(c);
|
|
@@ -2475,6 +2475,9 @@ function yn(e, t) {
|
|
|
2475
2475
|
return {
|
|
2476
2476
|
project: e.project,
|
|
2477
2477
|
environment: e.environment,
|
|
2478
|
+
// libVersion 是与 xys-util RealTimeReport 打通用的字段名:
|
|
2479
|
+
// 日志平台按它区分「日志来自哪个上报库」,与 sdkVersion 同值,保留两个名字
|
|
2480
|
+
libVersion: e.sdkVersion,
|
|
2478
2481
|
sdkVersion: e.sdkVersion,
|
|
2479
2482
|
clientReportId: e.clientReportId,
|
|
2480
2483
|
release: e.release,
|
|
@@ -4383,7 +4386,7 @@ class Er {
|
|
|
4383
4386
|
if (this.panel) return Promise.resolve(this.panel);
|
|
4384
4387
|
this.host || this.mountFab();
|
|
4385
4388
|
const t = this.host;
|
|
4386
|
-
return t ? import("./panel-mount-
|
|
4389
|
+
return t ? import("./panel-mount-39UeybHJ.js").then(
|
|
4387
4390
|
(r) => new r.ReporterPanel({
|
|
4388
4391
|
onSubmit: (i, n, s) => this.submit(i, n, s),
|
|
4389
4392
|
onCapture: () => this.capture(),
|
|
@@ -4539,7 +4542,7 @@ function $(e, t) {
|
|
|
4539
4542
|
}
|
|
4540
4543
|
return !0;
|
|
4541
4544
|
}
|
|
4542
|
-
const ys = "0.1.
|
|
4545
|
+
const ys = "0.1.2";
|
|
4543
4546
|
let f = null;
|
|
4544
4547
|
function ws(e) {
|
|
4545
4548
|
if (typeof window == "undefined") return null;
|
|
@@ -4682,4 +4685,4 @@ export {
|
|
|
4682
4685
|
ps as r,
|
|
4683
4686
|
ys as v
|
|
4684
4687
|
};
|
|
4685
|
-
//# sourceMappingURL=index-
|
|
4688
|
+
//# sourceMappingURL=index-CyYSr1VU.js.map
|