@niledatabase/server 4.1.0-alpha.3 → 4.1.0-alpha.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.mjs CHANGED
@@ -542,19 +542,19 @@ var Config = class {
542
542
  debug;
543
543
  db;
544
544
  api;
545
- _tenantId;
546
- _userId;
545
+ #tenantId;
546
+ #userId;
547
547
  get tenantId() {
548
- return this._tenantId;
548
+ return this.#tenantId;
549
549
  }
550
550
  set tenantId(value) {
551
- this._tenantId = value;
551
+ this.#tenantId = value;
552
552
  }
553
553
  get userId() {
554
- return this._userId;
554
+ return this.#userId;
555
555
  }
556
556
  set userId(value) {
557
- this._userId = value;
557
+ this.#userId = value;
558
558
  }
559
559
  constructor(config, logger) {
560
560
  const envVarConfig = { config, logger };
@@ -575,9 +575,9 @@ var Config = class {
575
575
  }
576
576
  this.databaseId = getDatabaseId(envVarConfig);
577
577
  this.databaseName = getDatabaseName(envVarConfig);
578
- this._tenantId = getTenantId(envVarConfig);
578
+ this.#tenantId = getTenantId(envVarConfig);
579
579
  this.debug = Boolean(config?.debug);
580
- this._userId = config?.userId;
580
+ this.#userId = config?.userId;
581
581
  const { host, port, ...dbConfig } = config?.db ?? {};
582
582
  const configuredHost = host ?? getDbHost(envVarConfig);
583
583
  const configuredPort = port ?? getDbPort(envVarConfig);