@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.d.mts +1 -2
- package/dist/index.d.ts +1 -2
- package/dist/index.js +8 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -542,19 +542,19 @@ var Config = class {
|
|
|
542
542
|
debug;
|
|
543
543
|
db;
|
|
544
544
|
api;
|
|
545
|
-
|
|
546
|
-
|
|
545
|
+
#tenantId;
|
|
546
|
+
#userId;
|
|
547
547
|
get tenantId() {
|
|
548
|
-
return this
|
|
548
|
+
return this.#tenantId;
|
|
549
549
|
}
|
|
550
550
|
set tenantId(value) {
|
|
551
|
-
this
|
|
551
|
+
this.#tenantId = value;
|
|
552
552
|
}
|
|
553
553
|
get userId() {
|
|
554
|
-
return this
|
|
554
|
+
return this.#userId;
|
|
555
555
|
}
|
|
556
556
|
set userId(value) {
|
|
557
|
-
this
|
|
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
|
|
578
|
+
this.#tenantId = getTenantId(envVarConfig);
|
|
579
579
|
this.debug = Boolean(config?.debug);
|
|
580
|
-
this
|
|
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);
|