@base44-preview/cli 0.0.50-pr.481.b39f5e6 → 0.0.50-pr.481.d091ce8

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 CHANGED
@@ -253941,22 +253941,26 @@ function evaluateOperator(recordValue, operator) {
253941
253941
  for (const [op2, opValue] of Object.entries(operator)) {
253942
253942
  switch (op2) {
253943
253943
  case "$in":
253944
- if (!Array.isArray(opValue) || !opValue.includes(recordValue))
253944
+ if (!Array.isArray(opValue) || !opValue.includes(recordValue)) {
253945
253945
  return false;
253946
+ }
253946
253947
  break;
253947
253948
  case "$nin":
253948
- if (Array.isArray(opValue) && opValue.includes(recordValue))
253949
+ if (!Array.isArray(opValue) || opValue.includes(recordValue)) {
253949
253950
  return false;
253951
+ }
253950
253952
  break;
253951
253953
  case "$ne":
253952
253954
  if (recordValue === opValue)
253953
253955
  return false;
253954
253956
  break;
253955
253957
  case "$all":
253956
- if (!Array.isArray(recordValue) || !Array.isArray(opValue))
253958
+ if (!Array.isArray(recordValue) || !Array.isArray(opValue)) {
253957
253959
  return false;
253958
- if (!opValue.every((v10) => recordValue.includes(v10)))
253960
+ }
253961
+ if (!opValue.every((v10) => recordValue.includes(v10))) {
253959
253962
  return false;
253963
+ }
253960
253964
  break;
253961
253965
  }
253962
253966
  }
@@ -254254,7 +254258,7 @@ async function createEntityRoutes(db2, logger2, broadcast) {
254254
254258
  const schema10 = db2.getSchema(entityName);
254255
254259
  if (!checkRLS(schema10?.rls?.read, doc2, currentUser)) {
254256
254260
  res.status(404).json({
254257
- message: `Entity Task with ID ${id2} not found`
254261
+ message: `Entity ${entityName} with ID ${id2} not found`
254258
254262
  });
254259
254263
  return;
254260
254264
  }
@@ -254390,7 +254394,7 @@ async function createEntityRoutes(db2, logger2, broadcast) {
254390
254394
  }
254391
254395
  if (!checkRLS(schema10.rls.update, existing, currentUser)) {
254392
254396
  res.status(404).json({
254393
- message: `Entity Task with ID ${id2} not found`
254397
+ message: `Entity ${entityName} with ID ${id2} not found`
254394
254398
  });
254395
254399
  return;
254396
254400
  }
@@ -254432,7 +254436,7 @@ async function createEntityRoutes(db2, logger2, broadcast) {
254432
254436
  const schema10 = db2.getSchema(entityName);
254433
254437
  if (!checkRLS(schema10?.rls?.delete, doc2, currentUser)) {
254434
254438
  res.status(404).json({
254435
- message: `Entity Task with ID ${id2} not found`
254439
+ message: `Entity ${entityName} with ID ${id2} not found`
254436
254440
  });
254437
254441
  return;
254438
254442
  }
@@ -256264,7 +256268,9 @@ var DEFAULT_PORT = 4400;
256264
256268
  var BASE44_APP_URL = "https://base44.app";
256265
256269
  async function createDevServer(options8) {
256266
256270
  const { port: userPort } = options8;
256267
- const port = userPort ?? await getPorts({ port: DEFAULT_PORT });
256271
+ const port = userPort ?? await getPorts({
256272
+ port: process.env.IS_TEST === "true" ? undefined : DEFAULT_PORT
256273
+ });
256268
256274
  const baseUrl = `http://localhost:${port}`;
256269
256275
  const { functions, entities, project: project2 } = await options8.loadResources();
256270
256276
  const app = import_express6.default();
@@ -260876,4 +260882,4 @@ export {
260876
260882
  CLIExitError
260877
260883
  };
260878
260884
 
260879
- //# debugId=7538A503FE5FF74364756E2164756E21
260885
+ //# debugId=18683176A875C40664756E2164756E21