@ronin/compiler 0.16.3 → 0.16.4
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.d.ts +0 -1
- package/dist/index.js +6 -9
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
@@ -1465,11 +1465,6 @@ var getSystemFields = (idPrefix) => [
|
|
1465
1465
|
[QUERY_SYMBOLS.EXPRESSION]: `'${idPrefix}_' || lower(substr(hex(randomblob(12)), 1, 16))`
|
1466
1466
|
}
|
1467
1467
|
},
|
1468
|
-
{
|
1469
|
-
name: "RONIN - Locked",
|
1470
|
-
type: "boolean",
|
1471
|
-
slug: "ronin.locked"
|
1472
|
-
},
|
1473
1468
|
{
|
1474
1469
|
name: "RONIN - Created At",
|
1475
1470
|
type: "date",
|
@@ -2058,10 +2053,12 @@ var Transaction = class {
|
|
2058
2053
|
const record = fields.reduce((acc, field, fieldIndex) => {
|
2059
2054
|
let newSlug = field.mountingPath;
|
2060
2055
|
let newValue = row[fieldIndex];
|
2061
|
-
if (
|
2062
|
-
|
2063
|
-
|
2064
|
-
|
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
|
+
}
|
2065
2062
|
}
|
2066
2063
|
if (isMeta && PLURAL_MODEL_ENTITIES_VALUES.includes(newSlug)) {
|
2067
2064
|
newValue = newValue ? Object.entries(newValue).map(([slug, attributes]) => {
|