@okf/ootils 1.24.1 → 1.24.3
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/node.d.mts +1 -0
- package/dist/node.d.ts +1 -0
- package/dist/node.js +4 -0
- package/dist/node.mjs +4 -0
- package/package.json +1 -1
package/dist/node.d.mts
CHANGED
|
@@ -1331,6 +1331,7 @@ declare class SecretManagerConnector {
|
|
|
1331
1331
|
static getSecret(secretName: any): any;
|
|
1332
1332
|
static getGlobalConfigs(): any;
|
|
1333
1333
|
static getDbConfigs(): any;
|
|
1334
|
+
static getTenantEnvConfigs(tenant: any): any;
|
|
1334
1335
|
static getInstance(): any;
|
|
1335
1336
|
constructor({ secrets }?: {
|
|
1336
1337
|
secrets?: never[] | undefined;
|
package/dist/node.d.ts
CHANGED
|
@@ -1331,6 +1331,7 @@ declare class SecretManagerConnector {
|
|
|
1331
1331
|
static getSecret(secretName: any): any;
|
|
1332
1332
|
static getGlobalConfigs(): any;
|
|
1333
1333
|
static getDbConfigs(): any;
|
|
1334
|
+
static getTenantEnvConfigs(tenant: any): any;
|
|
1334
1335
|
static getInstance(): any;
|
|
1335
1336
|
constructor({ secrets }?: {
|
|
1336
1337
|
secrets?: never[] | undefined;
|
package/dist/node.js
CHANGED
|
@@ -3579,6 +3579,10 @@ var SecretManagerConnector = class _SecretManagerConnector {
|
|
|
3579
3579
|
static getDbConfigs() {
|
|
3580
3580
|
return _SecretManagerConnector.getSecret("dbConfigs");
|
|
3581
3581
|
}
|
|
3582
|
+
static getTenantEnvConfigs(tenant) {
|
|
3583
|
+
const configs = _SecretManagerConnector.getSecret("tenantEnvConfigs");
|
|
3584
|
+
return tenant ? configs[tenant] : configs;
|
|
3585
|
+
}
|
|
3582
3586
|
static getInstance() {
|
|
3583
3587
|
return _SecretManagerConnector.instance;
|
|
3584
3588
|
}
|
package/dist/node.mjs
CHANGED
|
@@ -3526,6 +3526,10 @@ var SecretManagerConnector = class _SecretManagerConnector {
|
|
|
3526
3526
|
static getDbConfigs() {
|
|
3527
3527
|
return _SecretManagerConnector.getSecret("dbConfigs");
|
|
3528
3528
|
}
|
|
3529
|
+
static getTenantEnvConfigs(tenant) {
|
|
3530
|
+
const configs = _SecretManagerConnector.getSecret("tenantEnvConfigs");
|
|
3531
|
+
return tenant ? configs[tenant] : configs;
|
|
3532
|
+
}
|
|
3529
3533
|
static getInstance() {
|
|
3530
3534
|
return _SecretManagerConnector.instance;
|
|
3531
3535
|
}
|