From 9adfe19676d19d07bc5423a224fa14cecfbdf654 Mon Sep 17 00:00:00 2001 From: Antoine Niek Date: Wed, 22 May 2024 16:34:56 -0400 Subject: [PATCH] Expose build version publicly (#113) --- lib/sdk.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/sdk.ts b/lib/sdk.ts index 927c379..0d08f40 100644 --- a/lib/sdk.ts +++ b/lib/sdk.ts @@ -1,4 +1,5 @@ import type { OptableConfig } from "./config"; +import { default as buildInfo } from "./build.json"; import { getConfig } from "./config"; import type { WitnessProperties } from "./edge/witness"; import type { ProfileTraits } from "./edge/profile"; @@ -19,6 +20,8 @@ import { Profile } from "./edge/profile"; import { sha256 } from "js-sha256"; class OptableSDK { + public static version = buildInfo.version; + public dcn: Required; private init: Promise;