@zenstackhq/plugin-policy 3.4.3 → 3.4.5
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.cjs +7 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
package/dist/index.cjs
CHANGED
|
@@ -1566,6 +1566,13 @@ var PolicyHandler = class extends import_kysely3.OperationNodeTransformer {
|
|
|
1566
1566
|
for (let i = 0; i < data.length; i++) {
|
|
1567
1567
|
const item = data[i];
|
|
1568
1568
|
if (typeof item === "object" && item && "kind" in item) {
|
|
1569
|
+
if (item.kind === "DefaultInsertValueNode") {
|
|
1570
|
+
result.push({
|
|
1571
|
+
node: import_kysely3.ValueNode.create(null),
|
|
1572
|
+
raw: null
|
|
1573
|
+
});
|
|
1574
|
+
continue;
|
|
1575
|
+
}
|
|
1569
1576
|
const fieldDef = import_orm4.QueryUtils.requireField(this.client.$schema, model, fields[i]);
|
|
1570
1577
|
(0, import_common_helpers3.invariant)(item.kind === "ValueNode", "expecting a ValueNode");
|
|
1571
1578
|
result.push({
|