@tracelog/lib 2.7.0-rc.95.3 → 2.7.0-rc.95.5
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/dist/browser/tracelog.esm.js +10 -10
- 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 +2 -2
- package/dist/public-api.cjs.map +1 -1
- package/dist/public-api.js +2 -2
- package/dist/public-api.js.map +1 -1
- package/package.json +1 -1
|
@@ -673,7 +673,7 @@ const tr = () => {
|
|
|
673
673
|
error: `${n}: object contains circular references or cannot be serialized.`
|
|
674
674
|
};
|
|
675
675
|
}
|
|
676
|
-
if (i.
|
|
676
|
+
if (new TextEncoder().encode(i).byteLength > 49152)
|
|
677
677
|
return {
|
|
678
678
|
valid: !1,
|
|
679
679
|
error: `${n}: object is too large (max ${49152 / 1024} KB).`
|
|
@@ -683,24 +683,24 @@ const tr = () => {
|
|
|
683
683
|
valid: !1,
|
|
684
684
|
error: `${n}: object has too many keys (max 100 keys).`
|
|
685
685
|
};
|
|
686
|
-
for (const [
|
|
687
|
-
if (Array.isArray(
|
|
688
|
-
if (
|
|
686
|
+
for (const [c, u] of Object.entries(r)) {
|
|
687
|
+
if (Array.isArray(u)) {
|
|
688
|
+
if (u.length > 500)
|
|
689
689
|
return {
|
|
690
690
|
valid: !1,
|
|
691
|
-
error: `${n}: array property "${
|
|
691
|
+
error: `${n}: array property "${c}" is too large (max 500 items).`
|
|
692
692
|
};
|
|
693
|
-
for (const
|
|
694
|
-
if (typeof
|
|
693
|
+
for (const g of u)
|
|
694
|
+
if (typeof g == "string" && g.length > 500)
|
|
695
695
|
return {
|
|
696
696
|
valid: !1,
|
|
697
|
-
error: `${n}: array property "${
|
|
697
|
+
error: `${n}: array property "${c}" contains strings that are too long (max 500 characters).`
|
|
698
698
|
};
|
|
699
699
|
}
|
|
700
|
-
if (typeof
|
|
700
|
+
if (typeof u == "string" && u.length > 1e3)
|
|
701
701
|
return {
|
|
702
702
|
valid: !1,
|
|
703
|
-
error: `${n}: property "${
|
|
703
|
+
error: `${n}: property "${c}" is too long (max 1000 characters).`
|
|
704
704
|
};
|
|
705
705
|
}
|
|
706
706
|
return {
|