@base44-preview/cli 0.0.50-pr.475.b600821 → 0.0.50-pr.475.feeb89c

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
@@ -253322,6 +253322,7 @@ class Validator {
253322
253322
 
253323
253323
  // src/cli/dev/dev-server/db/database.ts
253324
253324
  var USER_COLLECTION = "user";
253325
+ var PRIVATE_COLLECTION_PREFIX = "$";
253325
253326
 
253326
253327
  class Database {
253327
253328
  collections = new Map;
@@ -253343,6 +253344,7 @@ class Database {
253343
253344
  this.schemas.set(USER_COLLECTION, this.buildUserSchema(userEntity));
253344
253345
  const collection = new import_nedb.default;
253345
253346
  this.collections.set(USER_COLLECTION, collection);
253347
+ this.collections.set(PRIVATE_COLLECTION_PREFIX + USER_COLLECTION, new import_nedb.default);
253346
253348
  const userInfo = await readAuth();
253347
253349
  const now = getNowISOTimestamp();
253348
253350
  await collection.insertAsync({
@@ -253384,7 +253386,9 @@ class Database {
253384
253386
  return this.collections.get(this.normalizeName(name2));
253385
253387
  }
253386
253388
  getCollectionNames() {
253387
- return Array.from(this.collections.keys());
253389
+ return Array.from(this.collections.keys()).filter((name2) => {
253390
+ return !name2.startsWith(PRIVATE_COLLECTION_PREFIX);
253391
+ });
253388
253392
  }
253389
253393
  dropAll() {
253390
253394
  for (const collection of this.collections.values()) {
@@ -260365,4 +260369,4 @@ export {
260365
260369
  CLIExitError
260366
260370
  };
260367
260371
 
260368
- //# debugId=404C42E5E0DB4C5E64756E2164756E21
260372
+ //# debugId=F5DEA59E4A91DAEE64756E2164756E21