@ronin/compiler 0.18.3-invalid-json-experimental-441 → 0.18.3-invalid-json-experimental-442
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 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -1375,7 +1375,8 @@ var composeConditions = (models, model, statementParams, instructionName, value,
|
|
1375
1375
|
const valueIsJSON = isObject(value) || (modelField?.type === "blob" ? null : Array.isArray(value));
|
1376
1376
|
if (!valueIsJSON || getQuerySymbol(value) || fieldIsJSON) {
|
1377
1377
|
if (modelField && fieldIsJSON && !valueIsJSON) {
|
1378
|
-
const
|
1378
|
+
const messagePrefix = "The provided field value is not";
|
1379
|
+
const message = modelField.type === "json" ? `${messagePrefix} valid JSON. Only objects and arrays should be provided. Other types of values should be stored in their respective primitive field types.` : `${messagePrefix} a valid Blob reference.`;
|
1379
1380
|
throw new RoninError({
|
1380
1381
|
message,
|
1381
1382
|
field: modelField?.slug,
|
package/package.json
CHANGED