@gearbox-protocol/cli-utils 5.35.3 → 5.35.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/Zommand.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { Command } from "@commander-js/extra-typings";
2
2
  import * as z4 from "zod/v4/core";
3
+ import type { TemplateData } from "./resolveYamlFiles.js";
3
4
  export declare const zommandRegistry: z4.$ZodRegistry<{
4
5
  flags: string;
5
6
  env?: string;
@@ -7,7 +8,7 @@ export declare const zommandRegistry: z4.$ZodRegistry<{
7
8
  }, z4.$ZodType<unknown, unknown>>;
8
9
  export interface ZommandOptions<T extends z4.$ZodObject> {
9
10
  schema: T;
10
- templateData?: Record<string, string>;
11
+ templateData?: TemplateData;
11
12
  /**
12
13
  * If value is string, it's used as default value for config file
13
14
  */
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";
@@ -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.3",
4
+ "version": "5.35.5",
5
5
  "homepage": "https://gearbox.fi",
6
6
  "keywords": [
7
7
  "gearbox"