@gearbox-protocol/cli-utils 5.35.2 → 5.35.4

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.
@@ -2,4 +2,4 @@ export declare class SSMManager {
2
2
  #private;
3
3
  parameter(name: string): Promise<string>;
4
4
  }
5
- export declare const ssmManagerProxy: (mgr?: SSMManager) => Record<string, Promise<string>>;
5
+ export declare const ssmManagerProxy: (mgr?: SSMManager) => Record<string, Promise<unknown>>;
@@ -3,4 +3,4 @@ export declare class SecretsManager {
3
3
  secret(key: string): Promise<string>;
4
4
  secretRaw(key: string): Promise<unknown>;
5
5
  }
6
- export declare const secretsManagerProxy: (mgr?: SecretsManager) => Record<string, Promise<string | object>>;
6
+ export declare const secretsManagerProxy: (mgr?: SecretsManager) => Record<string, Promise<unknown>>;
package/dist/index.d.ts CHANGED
@@ -4,4 +4,5 @@ export * from "./resolveYamlFiles.js";
4
4
  export * from "./schema-primitives.js";
5
5
  export * from "./SecretsManager.js";
6
6
  export * from "./SSMManager.js";
7
+ export * from "./uncensorMap.js";
7
8
  export * from "./Zommand.js";
package/dist/index.js CHANGED
@@ -4,4 +4,5 @@ export * from "./resolveYamlFiles.js";
4
4
  export * from "./schema-primitives.js";
5
5
  export * from "./SecretsManager.js";
6
6
  export * from "./SSMManager.js";
7
+ export * from "./uncensorMap.js";
7
8
  export * from "./Zommand.js";
@@ -1,5 +1,5 @@
1
1
  import YAML from "yaml";
2
- export type TemplateData = Record<string, any>;
2
+ export type TemplateData = Record<string, unknown>;
3
3
  /**
4
4
  * Merges yaml files, respecting .extends references.
5
5
  * Performs env variable substitution on the config.
@@ -0,0 +1,4 @@
1
+ export interface IValue<V extends string = string> {
2
+ value: V;
3
+ }
4
+ export declare function uncensorMap<V extends string = string>(map: Record<string, IValue<V>>): Record<string, V>;
@@ -0,0 +1,3 @@
1
+ export function uncensorMap(map) {
2
+ return Object.fromEntries(Object.entries(map).map(([k, v]) => [k, v.value]));
3
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/cli-utils",
3
3
  "description": "Utils for creating cli apps",
4
- "version": "5.35.2",
4
+ "version": "5.35.4",
5
5
  "homepage": "https://gearbox.fi",
6
6
  "keywords": [
7
7
  "gearbox"