@ronin/compiler 0.16.3-leo-ron-1099-experimental-369 → 0.16.3-leo-ron-1099-experimental-371

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 +6 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2053,10 +2053,12 @@ var Transaction = class {
2053
2053
  const record = fields.reduce((acc, field, fieldIndex) => {
2054
2054
  let newSlug = field.mountingPath;
2055
2055
  let newValue = row[fieldIndex];
2056
- if (field.type === "json" || field.type === "blob") {
2057
- newValue = JSON.parse(newValue);
2058
- } else if (field.type === "boolean") {
2059
- newValue = Boolean(newValue);
2056
+ if (newValue !== null) {
2057
+ if (field.type === "json" || field.type === "blob") {
2058
+ newValue = JSON.parse(newValue);
2059
+ } else if (field.type === "boolean") {
2060
+ newValue = Boolean(newValue);
2061
+ }
2060
2062
  }
2061
2063
  if (isMeta && PLURAL_MODEL_ENTITIES_VALUES.includes(newSlug)) {
2062
2064
  newValue = newValue ? Object.entries(newValue).map(([slug, attributes]) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ronin/compiler",
3
- "version": "0.16.3-leo-ron-1099-experimental-369",
3
+ "version": "0.16.3-leo-ron-1099-experimental-371",
4
4
  "type": "module",
5
5
  "description": "Compiles RONIN queries to SQL statements.",
6
6
  "publishConfig": {