@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.
Files changed (2) hide show
  1. package/dist/index.js +2 -1
  2. 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 message = modelField.type === "json" ? "The provided field value is not valid JSON. Only objects and arrays should be provided. Other types of values should be stored in their respective primitive field types." : "The provided field value is not a valid Blob reference.";
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ronin/compiler",
3
- "version": "0.18.3-invalid-json-experimental-441",
3
+ "version": "0.18.3-invalid-json-experimental-442",
4
4
  "type": "module",
5
5
  "description": "Compiles RONIN queries to SQL statements.",
6
6
  "publishConfig": {