@ronin/compiler 0.14.5-leo-ron-1099-1-experimental-328 → 0.14.5-leo-ron-1099-1-experimental-330

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 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1389,7 +1389,7 @@ var composeAssociationModelSlug = (model, field) => convertToCamelCase(`ronin_li
1389
1389
  var getFieldSelector = (model, field, fieldPath, writing) => {
1390
1390
  const symbol = model.tableAlias?.startsWith(QUERY_SYMBOLS.FIELD_PARENT) ? `${model.tableAlias.replace(QUERY_SYMBOLS.FIELD_PARENT, "").slice(0, -1)}.` : "";
1391
1391
  const tablePrefix = symbol || (model.tableAlias ? `"${model.tableAlias}".` : "");
1392
- if (field.type === "json" && !writing) {
1392
+ if ((field.type === "json" || field.type === "blob") && !writing) {
1393
1393
  const dotParts = fieldPath.split(".");
1394
1394
  const columnName = tablePrefix + dotParts.shift();
1395
1395
  if (dotParts.length > 0) {
@@ -1407,7 +1407,7 @@ function getFieldFromModel(model, fieldPath, source, shouldThrow = true) {
1407
1407
  let modelField;
1408
1408
  if (fieldPath.includes(".")) {
1409
1409
  modelField = modelFields.find((field) => field.slug === fieldPath.split(".")[0]);
1410
- if (modelField?.type === "json") {
1410
+ if (modelField?.type === "json" || modelField?.type === "blob") {
1411
1411
  const fieldSelector2 = getFieldSelector(model, modelField, fieldPath, writingField);
1412
1412
  return { field: modelField, fieldSelector: fieldSelector2 };
1413
1413
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ronin/compiler",
3
- "version": "0.14.5-leo-ron-1099-1-experimental-328",
3
+ "version": "0.14.5-leo-ron-1099-1-experimental-330",
4
4
  "type": "module",
5
5
  "description": "Compiles RONIN queries to SQL statements.",
6
6
  "publishConfig": {