Skip to content

Commit

Permalink
Merge pull request #5 from klippa-app/fix-json-pathing
Browse files Browse the repository at this point in the history
fixed path of api.json file
  • Loading branch information
elbble authored Apr 4, 2024
2 parents c2e70f4 + 4a1e2e6 commit bfd14d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
3 changes: 2 additions & 1 deletion src/ApiCommunicationsWrapper/JSONBodyBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, ApiEndpoint> =
Expand Down

0 comments on commit bfd14d3

Please sign in to comment.