From 675aff0e0501ffdf86fbd91d7512c1a4bca610d6 Mon Sep 17 00:00:00 2001 From: chaosrealm Date: Tue, 13 Aug 2024 22:06:28 -0700 Subject: [PATCH] Fix a bug re: Path.join --- package.json | 2 +- src/api-client.ts | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 9319347..55f6250 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "url": "https://github.com/cortexclick/cortex-sdk", "type": "git" }, - "version": "0.0.11", + "version": "0.0.12", "type": "module", "main": "./dist/index.js", "types": "./dist/index.d.ts", diff --git a/src/api-client.ts b/src/api-client.ts index bd0c425..eb8632a 100644 --- a/src/api-client.ts +++ b/src/api-client.ts @@ -39,7 +39,13 @@ export class CortexApiClient { throw new Error("Request body too large"); } - const url = Path.join(this.apiUrl, this.apiVersion, "org", this.org, path); + const url = Path.posix.join( + this.apiUrl, + this.apiVersion, + "org", + this.org, + path, + ); return fetch(url, { method: "POST", headers: {