prisma-guard 1.27.0 → 1.27.1

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.
@@ -1027,8 +1027,14 @@ function tryInlineForcedField(result, field, forcedValue) {
1027
1027
  if (!isPlainObject(forcedValue))
1028
1028
  return false;
1029
1029
  const existing = result[field];
1030
- if (!isPlainObject(existing))
1031
- return false;
1030
+ if (!isPlainObject(existing)) {
1031
+ const merged2 = { equals: existing };
1032
+ for (const [op, value] of Object.entries(forcedValue)) {
1033
+ merged2[op] = deepClone(value);
1034
+ }
1035
+ result[field] = merged2;
1036
+ return true;
1037
+ }
1032
1038
  const merged = { ...existing };
1033
1039
  for (const [op, value] of Object.entries(forcedValue)) {
1034
1040
  if (op in merged) {