@settlemint/dalp-cli 3.1.33-main.43518621346 → 3.1.33-main.43535573391

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@settlemint/dalp-cli",
3
- "version": "3.1.33-main.43518621346",
3
+ "version": "3.1.33-main.43535573391",
4
4
  "private": false,
5
5
  "description": "CLI for the Digital Asset Lifecycle Platform — manage tokens, identities, compliance, and more from the command line.",
6
6
  "homepage": "https://settlemint.com",
@@ -50,14 +50,14 @@
50
50
  },
51
51
  "dependencies": {
52
52
  "@modelcontextprotocol/server": "2.4.0",
53
- "@settlemint/dalp-sdk": "3.1.33-main.43518621346",
53
+ "@settlemint/dalp-sdk": "3.1.33-main.43535573391",
54
54
  "incur": "0.7.1",
55
55
  "zod": "4.6.7"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@arethetypeswrong/cli": "0.18.5",
59
- "@testkit/effect-bun-test": "3.1.33-main.43518621346",
60
- "@tools/typescript-config": "3.1.33-main.43518621346",
59
+ "@testkit/effect-bun-test": "3.1.33-main.43535573391",
60
+ "@tools/typescript-config": "3.1.33-main.43535573391",
61
61
  "@types/bun": "1.4.4",
62
62
  "publint": "0.3.25"
63
63
  },
@@ -1,11 +1,12 @@
1
+ import { readFile } from "node:fs/promises";
1
2
  import path from "node:path";
2
3
  import surfaceAssetPath from "../generated/openapi-surface.json" with { type: "file" };
3
4
  import type { OpenApiSurface, SurfaceOperation } from "./openapi-surface-types.ts";
4
5
 
5
6
  export type { OpenApiSurface, SurfaceOperation, SurfaceParam } from "./openapi-surface-types.ts";
6
7
 
7
- const surfaceFile = path.resolve(import.meta.dir, surfaceAssetPath);
8
- const openApiSurface = (await Bun.file(surfaceFile).json()) as OpenApiSurface;
8
+ const surfaceFile = path.resolve(import.meta.dirname, surfaceAssetPath);
9
+ const openApiSurface = JSON.parse(await readFile(surfaceFile, "utf8")) as OpenApiSurface;
9
10
 
10
11
  export function surfaceFor(operationName: string): SurfaceOperation | undefined {
11
12
  return openApiSurface.operations[operationName];