Skip to content

Commit

Permalink
Expose build version publicly (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
zapo authored May 22, 2024
1 parent 5f78fff commit 9adfe19
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/sdk.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand All @@ -19,6 +20,8 @@ import { Profile } from "./edge/profile";
import { sha256 } from "js-sha256";

class OptableSDK {
public static version = buildInfo.version;

public dcn: Required<OptableConfig>;
private init: Promise<void>;

Expand Down

0 comments on commit 9adfe19

Please sign in to comment.