@seedgrid/fe-core 2026.4.24 → 2026.4.25
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/http/api-client.js +3 -1
- package/package.json +1 -1
package/dist/http/api-client.js
CHANGED
|
@@ -219,7 +219,9 @@ function mergeHeaders(target, source) {
|
|
|
219
219
|
});
|
|
220
220
|
}
|
|
221
221
|
function buildUrl(baseUrl, path, query) {
|
|
222
|
-
const
|
|
222
|
+
const base = baseUrl.endsWith("/") ? baseUrl : `${baseUrl}/`;
|
|
223
|
+
const normalizedPath = path.startsWith("/") ? path.slice(1) : path;
|
|
224
|
+
const url = new URL(normalizedPath, base);
|
|
223
225
|
for (const [key, value] of Object.entries(query ?? {})) {
|
|
224
226
|
if (value == null) {
|
|
225
227
|
continue;
|