@tracelog/lib 2.6.2-rc.94.7 → 2.7.0-rc.95.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/README.md +1 -1
- package/dist/browser/tracelog.esm.js +11 -11
- package/dist/browser/tracelog.esm.js.map +1 -1
- package/dist/browser/tracelog.js +1 -1
- package/dist/browser/tracelog.js.map +1 -1
- package/dist/public-api.cjs +1 -1
- package/dist/public-api.cjs.map +1 -1
- package/dist/public-api.d.mts +4 -4
- package/dist/public-api.d.ts +4 -4
- package/dist/public-api.js +1 -1
- package/dist/public-api.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -400,7 +400,7 @@ tracelog.mergeGlobalMetadata({
|
|
|
400
400
|
|
|
401
401
|
- **Allowed Types**: Primitives (string, number, boolean), string arrays, nested objects (1 level deep)
|
|
402
402
|
- **NOT Allowed**: Functions, symbols, undefined, deeply nested objects
|
|
403
|
-
- **Limits**: Max 100 keys,
|
|
403
|
+
- **Limits**: Max 100 keys, 64KB serialized size, 500 items per array, 1000 chars per string
|
|
404
404
|
|
|
405
405
|
**→ [Metadata API Reference](./API_REFERENCE.md#global-metadata)**
|
|
406
406
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const os = 9e5;
|
|
2
|
-
const as = 120, ls =
|
|
3
|
-
const hs = 1e3, fs = 500, ms =
|
|
2
|
+
const as = 120, ls = 65536, cs = 100, us = 500, ds = 200;
|
|
3
|
+
const hs = 1e3, fs = 500, ms = 1e3;
|
|
4
4
|
const b = "data-tlog", _t = [
|
|
5
5
|
"button",
|
|
6
6
|
"a",
|
|
@@ -290,7 +290,7 @@ const kt = () => {
|
|
|
290
290
|
default:
|
|
291
291
|
return Xe;
|
|
292
292
|
}
|
|
293
|
-
}, jt = 1e3, Qt = 50, zt = "2.
|
|
293
|
+
}, jt = 1e3, Qt = 50, zt = "2.7.0", Kt = zt, ot = () => typeof window < "u" && typeof sessionStorage < "u", Yt = () => {
|
|
294
294
|
try {
|
|
295
295
|
const s = new URLSearchParams(window.location.search);
|
|
296
296
|
s.delete(et);
|
|
@@ -462,9 +462,9 @@ const tr = () => {
|
|
|
462
462
|
if (e > 10)
|
|
463
463
|
return null;
|
|
464
464
|
if (Array.isArray(s))
|
|
465
|
-
return s.slice(0,
|
|
465
|
+
return s.slice(0, 1e3).map((n) => _e(n, e + 1)).filter((n) => n !== null);
|
|
466
466
|
if (typeof s == "object") {
|
|
467
|
-
const t = {}, n = Object.entries(s).slice(0,
|
|
467
|
+
const t = {}, n = Object.entries(s).slice(0, 200);
|
|
468
468
|
for (const [i, o] of n) {
|
|
469
469
|
const l = ze(i);
|
|
470
470
|
if (l) {
|
|
@@ -673,22 +673,22 @@ const tr = () => {
|
|
|
673
673
|
error: `${n}: object contains circular references or cannot be serialized.`
|
|
674
674
|
};
|
|
675
675
|
}
|
|
676
|
-
if (i.length >
|
|
676
|
+
if (i.length > 65536)
|
|
677
677
|
return {
|
|
678
678
|
valid: !1,
|
|
679
|
-
error: `${n}: object is too large (max ${
|
|
679
|
+
error: `${n}: object is too large (max ${65536 / 1024} KB).`
|
|
680
680
|
};
|
|
681
|
-
if (Object.keys(r).length >
|
|
681
|
+
if (Object.keys(r).length > 100)
|
|
682
682
|
return {
|
|
683
683
|
valid: !1,
|
|
684
|
-
error: `${n}: object has too many keys (max
|
|
684
|
+
error: `${n}: object has too many keys (max 100 keys).`
|
|
685
685
|
};
|
|
686
686
|
for (const [l, c] of Object.entries(r)) {
|
|
687
687
|
if (Array.isArray(c)) {
|
|
688
|
-
if (c.length >
|
|
688
|
+
if (c.length > 500)
|
|
689
689
|
return {
|
|
690
690
|
valid: !1,
|
|
691
|
-
error: `${n}: array property "${l}" is too large (max
|
|
691
|
+
error: `${n}: array property "${l}" is too large (max 500 items).`
|
|
692
692
|
};
|
|
693
693
|
for (const u of c)
|
|
694
694
|
if (typeof u == "string" && u.length > 500)
|