@dispatchtickets/sdk 0.8.0 → 0.8.1
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.
- package/dist/index.cjs +3 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -239,7 +239,9 @@ var HttpClient = class {
|
|
|
239
239
|
return delay + jitter;
|
|
240
240
|
}
|
|
241
241
|
buildUrl(path, query) {
|
|
242
|
-
const
|
|
242
|
+
const base = this.config.baseUrl.endsWith("/") ? this.config.baseUrl : `${this.config.baseUrl}/`;
|
|
243
|
+
const normalizedPath = path.startsWith("/") ? path.slice(1) : path;
|
|
244
|
+
const url = new URL(normalizedPath, base);
|
|
243
245
|
if (query) {
|
|
244
246
|
for (const [key, value] of Object.entries(query)) {
|
|
245
247
|
if (value !== void 0) {
|