From c43017a525eb6b676bf7c7e50bcd9ac963c9df30 Mon Sep 17 00:00:00 2001 From: Els Boerema Date: Thu, 4 Apr 2024 11:49:58 +0200 Subject: [PATCH 1/2] fixed path of api.json file --- src/ApiCommunicationsWrapper/JSONBodyBuilder.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ApiCommunicationsWrapper/JSONBodyBuilder.ts b/src/ApiCommunicationsWrapper/JSONBodyBuilder.ts index 11216d2..16c1d73 100644 --- a/src/ApiCommunicationsWrapper/JSONBodyBuilder.ts +++ b/src/ApiCommunicationsWrapper/JSONBodyBuilder.ts @@ -10,10 +10,11 @@ import { SchemaProperties, } from "./Types/BodyBuilderTypes"; import { DocHorizonRequestData } from "./Types/UserOptionsTypes"; +import path from "path"; export class JSONBodyBuilder { private static JSONData: ApiJsonFile = JSON.parse( - fs.readFileSync("./api.json", "utf-8"), + fs.readFileSync(path.join(__dirname, "../../api.json"), "utf-8"), ); private static endpointsList: Path = this.getPaths(); private static endpointsData: Record = From 4a1e2e6332b9ea61b99c9cc0fc0c21098dbb3e93 Mon Sep 17 00:00:00 2001 From: Els Boerema Date: Thu, 4 Apr 2024 11:51:16 +0200 Subject: [PATCH 2/2] version bump --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index c2276a7..1fa0af7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@klippa/dochorizon-sdk", - "version": "1.0.1", + "version": "1.0.2", "description": "## NodeJS developer SDK for DocHorizon.", "main": "dist/index.js", "types": "dist/index.d.ts",