oz-node-sdk 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -233,7 +233,7 @@ export class OzNodeSdkClient {
233
233
  throw new Error('No fetch implementation available in this environment');
234
234
  }
235
235
 
236
- this.#baseUrl = baseUrl.replace(//$/, '');
236
+ this.#baseUrl = baseUrl.endsWith('/') ? baseUrl.slice(0, -1) : baseUrl;
237
237
  this.#apiKey = apiKey ?? null;
238
238
  this.#fetch = resolvedFetch;
239
239
  this.#defaultHeaders = { ...headers };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oz-node-sdk",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "author": "github.com/geoffsee",