@base44-preview/cli 0.0.32-pr.252.0c10d75 → 0.0.32-pr.252.3b64eaf
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/cli/index.js +2 -10
- package/dist/cli/index.js.map +3 -3
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -185403,15 +185403,7 @@ var isValidFieldCondition = (value) => {
|
|
|
185403
185403
|
}
|
|
185404
185404
|
return false;
|
|
185405
185405
|
};
|
|
185406
|
-
var RefineRLSConditionSchema = RLSConditionSchema.refine((val) => Object.entries(val).every(([key, value]) =>
|
|
185407
|
-
if (rlsConditionAllowedKeys.has(key)) {
|
|
185408
|
-
return true;
|
|
185409
|
-
}
|
|
185410
|
-
if (key.startsWith("data.")) {
|
|
185411
|
-
return isValidFieldCondition(value);
|
|
185412
|
-
}
|
|
185413
|
-
return isValidFieldCondition(value);
|
|
185414
|
-
}), "Keys must be known RLS keys or match data.* pattern with valid value");
|
|
185406
|
+
var RefineRLSConditionSchema = RLSConditionSchema.refine((val) => Object.entries(val).every(([key, value]) => rlsConditionAllowedKeys.has(key) || isValidFieldCondition(value)), "Field condition values must be a primitive or an operator object ($in, $nin, $ne, $all)");
|
|
185415
185407
|
var RLSRuleSchema = exports_external.union([exports_external.boolean(), RefineRLSConditionSchema]);
|
|
185416
185408
|
var EntityRLSSchema = exports_external.looseObject({
|
|
185417
185409
|
create: RLSRuleSchema.optional(),
|
|
@@ -199759,4 +199751,4 @@ export {
|
|
|
199759
199751
|
CLIExitError
|
|
199760
199752
|
};
|
|
199761
199753
|
|
|
199762
|
-
//# debugId=
|
|
199754
|
+
//# debugId=AF03C92ADCD7DDC664756E2164756E21
|