ugcinc-render 1.8.201 → 1.8.203
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/index.js +2 -7
- package/dist/index.mjs +2 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5407,14 +5407,9 @@ function validatePublicInput(input) {
|
|
|
5407
5407
|
message: "Theme must be 'light' or 'dark'"
|
|
5408
5408
|
});
|
|
5409
5409
|
}
|
|
5410
|
-
if (
|
|
5411
|
-
errors.push({
|
|
5412
|
-
field: "messages",
|
|
5413
|
-
message: "At least one message is required"
|
|
5414
|
-
});
|
|
5415
|
-
} else {
|
|
5410
|
+
if (input.messages && input.messages.length > 0) {
|
|
5416
5411
|
input.messages.forEach((msg, index) => {
|
|
5417
|
-
if (
|
|
5412
|
+
if (msg.text === void 0 || msg.text === null) {
|
|
5418
5413
|
errors.push({
|
|
5419
5414
|
field: `messages[${index}].text`,
|
|
5420
5415
|
message: `Message ${index + 1}: text is required`
|
package/dist/index.mjs
CHANGED
|
@@ -4453,14 +4453,9 @@ function validatePublicInput(input) {
|
|
|
4453
4453
|
message: "Theme must be 'light' or 'dark'"
|
|
4454
4454
|
});
|
|
4455
4455
|
}
|
|
4456
|
-
if (
|
|
4457
|
-
errors.push({
|
|
4458
|
-
field: "messages",
|
|
4459
|
-
message: "At least one message is required"
|
|
4460
|
-
});
|
|
4461
|
-
} else {
|
|
4456
|
+
if (input.messages && input.messages.length > 0) {
|
|
4462
4457
|
input.messages.forEach((msg, index) => {
|
|
4463
|
-
if (
|
|
4458
|
+
if (msg.text === void 0 || msg.text === null) {
|
|
4464
4459
|
errors.push({
|
|
4465
4460
|
field: `messages[${index}].text`,
|
|
4466
4461
|
message: `Message ${index + 1}: text is required`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ugcinc-render",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.203",
|
|
4
4
|
"description": "Unified rendering package for UGC Inc - shared types, components, and compositions for pixel-perfect client/server rendering",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|