@gearbox-protocol/cli-utils 5.35.4 → 5.35.6

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
  */
@@ -7,11 +7,12 @@
7
7
  export default async function getPromisePath(object, path) {
8
8
  return getPromised(object, path.split("."));
9
9
  }
10
- function getPromised(object, keys) {
10
+ async function getPromised(object, keys) {
11
11
  if (keys.length === 0) {
12
12
  return Promise.resolve(object);
13
13
  }
14
14
  const [key, ...rest] = keys;
15
15
  const value = object[key];
16
- return Promise.resolve(value).then(v => getPromised(v, rest));
16
+ const resolved = await Promise.resolve(value);
17
+ return getPromised(resolved, rest);
17
18
  }
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.4",
4
+ "version": "5.35.6",
5
5
  "homepage": "https://gearbox.fi",
6
6
  "keywords": [
7
7
  "gearbox"