@okf/ootils 1.24.2 → 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 CHANGED
@@ -1331,7 +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(): any;
1334
+ static getTenantEnvConfigs(tenant: any): any;
1335
1335
  static getInstance(): any;
1336
1336
  constructor({ secrets }?: {
1337
1337
  secrets?: never[] | undefined;
package/dist/node.d.ts CHANGED
@@ -1331,7 +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(): any;
1334
+ static getTenantEnvConfigs(tenant: any): any;
1335
1335
  static getInstance(): any;
1336
1336
  constructor({ secrets }?: {
1337
1337
  secrets?: never[] | undefined;
package/dist/node.js CHANGED
@@ -3579,8 +3579,9 @@ var SecretManagerConnector = class _SecretManagerConnector {
3579
3579
  static getDbConfigs() {
3580
3580
  return _SecretManagerConnector.getSecret("dbConfigs");
3581
3581
  }
3582
- static getTenantEnvConfigs() {
3583
- return _SecretManagerConnector.getSecret("tenantEnvConfigs");
3582
+ static getTenantEnvConfigs(tenant) {
3583
+ const configs = _SecretManagerConnector.getSecret("tenantEnvConfigs");
3584
+ return tenant ? configs[tenant] : configs;
3584
3585
  }
3585
3586
  static getInstance() {
3586
3587
  return _SecretManagerConnector.instance;
package/dist/node.mjs CHANGED
@@ -3526,8 +3526,9 @@ var SecretManagerConnector = class _SecretManagerConnector {
3526
3526
  static getDbConfigs() {
3527
3527
  return _SecretManagerConnector.getSecret("dbConfigs");
3528
3528
  }
3529
- static getTenantEnvConfigs() {
3530
- return _SecretManagerConnector.getSecret("tenantEnvConfigs");
3529
+ static getTenantEnvConfigs(tenant) {
3530
+ const configs = _SecretManagerConnector.getSecret("tenantEnvConfigs");
3531
+ return tenant ? configs[tenant] : configs;
3531
3532
  }
3532
3533
  static getInstance() {
3533
3534
  return _SecretManagerConnector.instance;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.24.2",
6
+ "version": "1.24.3",
7
7
  "description": "Utility functions for both browser and Node.js",
8
8
  "main": "dist/index.js",
9
9
  "module": "dist/index.mjs",