From c04e694030bad6397a7c5cf38a87bd62c2674287 Mon Sep 17 00:00:00 2001
From: "Richard T. Carback III" <rick.carback@gmail.com>
Date: Fri, 6 Sep 2024 17:24:22 -0400
Subject: [PATCH] Update NDF, make it accessible via a function

---
 src/index.ts | 3 ++-
 src/ndf.ts   | 5 +++++
 src/xxdk.ts  | 7 -------
 3 files changed, 7 insertions(+), 8 deletions(-)
 create mode 100644 src/ndf.ts

diff --git a/src/index.ts b/src/index.ts
index f080a6e..16a2b46 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -4,4 +4,5 @@
 export * from './types';
 export * from './paths';
 
-export { InitXXDK } from './xxdk';
+export { GetDefaultNDF } from './ndf';
+export { InitXXDK } from './xxdk';
\ No newline at end of file
diff --git a/src/ndf.ts b/src/ndf.ts
new file mode 100644
index 0000000..26e85e4
--- /dev/null
+++ b/src/ndf.ts
@@ -0,0 +1,5 @@
+import DefaultNdf from './ndf.json'
+
+export function GetDefaultNDF(): String {
+    return JSON.stringify(DefaultNdf);
+};
\ No newline at end of file
diff --git a/src/xxdk.ts b/src/xxdk.ts
index 790e242..957db1c 100644
--- a/src/xxdk.ts
+++ b/src/xxdk.ts
@@ -1,11 +1,8 @@
 import type { XXDKUtils } from './types';
 import { logFileWorkerPath } from './paths';
 
-import DefaultNdf from './ndf.json'
-
 const xxdkWasm: URL = require('../assets/wasm/xxdk.wasm');
 
-
 type Logger = {
   StopLogging: () => void,
   GetFile: () => Promise<string>,
@@ -137,7 +134,3 @@ export const InitXXDK = () => new Promise<XXDKUtils>(async (xxdkUtils) => {
     RPCSend
   });
 });
-
-export const GetDefaultNDF = (): String => {
-  return JSON.stringify(DefaultNdf);
-}
\ No newline at end of file
-- 
GitLab