@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.
- package/dist/index.js +6 -4
- 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 (
|
2057
|
-
|
2058
|
-
|
2059
|
-
|
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