diff --git a/package.json b/package.json index 1952135..24485aa 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "lint:commit-message": "commitlint -e", "lint": "yarn lint:code && yarn lint:prettier", "prettify": "yarn lint:prettier --write", - "prepublishOnly": "npm run build" + "postinstall": "npm run build" }, "repository": { "type": "git", diff --git a/src/BinanceApiClient.ts b/src/BinanceApiClient.ts index 30de731..4410f0f 100644 --- a/src/BinanceApiClient.ts +++ b/src/BinanceApiClient.ts @@ -774,7 +774,7 @@ export class BinanceApiClient { ...parameters: [string, any][] ): Promise { const apiUrl: URL = new URL( - Path.join("/api", apiVersion, accessedResource), + Path.join("api", apiVersion, accessedResource), "https://api.binance.com" );