@getpinax/widget 0.0.0-stage → 1.0.0-beta.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/LICENSE +21 -0
- package/README.md +513 -2
- package/dist/a11y/scan.d.ts +25 -0
- package/dist/api.d.ts +83 -0
- package/dist/capture/breadcrumbs.d.ts +49 -0
- package/dist/capture/console.d.ts +17 -0
- package/dist/capture/env.d.ts +25 -0
- package/dist/capture/network.d.ts +23 -0
- package/dist/capture/ring.d.ts +14 -0
- package/dist/capture/signature.d.ts +7 -0
- package/dist/capture/text.d.ts +23 -0
- package/dist/capture/ua.d.ts +13 -0
- package/dist/chunks/editor-0Kr31Uly.mjs +1368 -0
- package/dist/chunks/privacy-B_b1_Y1n.mjs +39 -0
- package/dist/chunks/recorder-tu4yugLw.mjs +2874 -0
- package/dist/chunks/scan-CFQwrtAQ.mjs +46137 -0
- package/dist/chunks/text-D9SaDBT0.mjs +36 -0
- package/dist/chunks/widget-BpTBdX2R.mjs +1272 -0
- package/dist/editor/annotator.d.ts +20 -0
- package/dist/editor/capture.d.ts +28 -0
- package/dist/editor/encode.d.ts +7 -0
- package/dist/editor/index.d.ts +5 -0
- package/dist/editor/mask.d.ts +29 -0
- package/dist/editor/pii.d.ts +22 -0
- package/dist/editor/shapes.d.ts +31 -0
- package/dist/editor-loader.d.ts +9 -0
- package/dist/editor-loader.embed.d.ts +6 -0
- package/dist/fixcheck.d.ts +42 -0
- package/dist/index.d.ts +85 -0
- package/dist/known.d.ts +27 -0
- package/dist/mount.d.ts +8 -0
- package/dist/navigation.d.ts +1 -0
- package/dist/paths.d.ts +4 -0
- package/dist/pinax-axe.js +46167 -0
- package/dist/pinax-editor.js +1417 -0
- package/dist/pinax-recorder.js +2915 -0
- package/dist/pinax.js +135 -0
- package/dist/pinax.mjs +1270 -0
- package/dist/preview.d.ts +48 -0
- package/dist/preview.mjs +67 -0
- package/dist/privacy.d.ts +24 -0
- package/dist/queue.d.ts +10 -0
- package/dist/replay/buffer.d.ts +40 -0
- package/dist/replay/recorder.d.ts +25 -0
- package/dist/replay/sanitize.d.ts +19 -0
- package/dist/report.d.ts +128 -0
- package/dist/segment.d.ts +31 -0
- package/dist/settings.d.ts +40 -0
- package/dist/types.d.ts +247 -0
- package/dist/ui/color.d.ts +7 -0
- package/dist/ui/dom.d.ts +14 -0
- package/dist/ui/styles.d.ts +3 -0
- package/dist/ui/widget.d.ts +241 -0
- package/package.json +74 -4
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// src/capture/text.ts
|
|
2
|
+
function e(e, t) {
|
|
3
|
+
return e.length > t ? `${e.slice(0, t - 1)}…` : e;
|
|
4
|
+
}
|
|
5
|
+
var t = /^(access_?token|token|id_token|refresh_token|auth|authorization|api_?key|key|secret|password|passwd|pwd|session|sessionid|sid|code|signature|sig)$/i;
|
|
6
|
+
function n(e, n) {
|
|
7
|
+
try {
|
|
8
|
+
let r = new URL(e, n);
|
|
9
|
+
r.hash = "", r.username = "", r.password = "";
|
|
10
|
+
for (let e of [...r.searchParams.keys()]) t.test(e) && r.searchParams.set(e, "[hidden]");
|
|
11
|
+
return r.toString();
|
|
12
|
+
} catch {
|
|
13
|
+
return String(e);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
var r = /^(utm_\w*|page|lang|ref|variant|tab|sort)$/i;
|
|
17
|
+
function i(e, t) {
|
|
18
|
+
let n = e.indexOf("?");
|
|
19
|
+
if (n < 0) return e;
|
|
20
|
+
let r = e.slice(n + 1).split("&").map((e) => {
|
|
21
|
+
let n = e.indexOf("=");
|
|
22
|
+
if (n < 0 || n === e.length - 1) return e;
|
|
23
|
+
let r = e.slice(0, n), i = r;
|
|
24
|
+
try {
|
|
25
|
+
i = decodeURIComponent(r.replace(/\+/g, " "));
|
|
26
|
+
} catch {}
|
|
27
|
+
return t?.test(i) ? e : `${r}=…`;
|
|
28
|
+
}).join("&");
|
|
29
|
+
return `${e.slice(0, n)}?${r}`;
|
|
30
|
+
}
|
|
31
|
+
function a(e, t) {
|
|
32
|
+
return i(n(e, t));
|
|
33
|
+
}
|
|
34
|
+
export { n as a, i, e as n, a as r, r as t };
|
|
35
|
+
|
|
36
|
+
//# sourceMappingURL=text-D9SaDBT0.mjs.map
|