@carto/api-client 0.5.9-alpha.PR193.1 → 0.5.9-alpha.PR193.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.
package/build/api-client.js
CHANGED
|
@@ -5917,10 +5917,12 @@ function createURLWithParameters(baseUrlString, parameters) {
|
|
|
5917
5917
|
if (isPureObject(value) || Array.isArray(value)) {
|
|
5918
5918
|
baseUrl.searchParams.set(key, JSON.stringify(value));
|
|
5919
5919
|
} else {
|
|
5920
|
-
|
|
5921
|
-
|
|
5922
|
-
|
|
5923
|
-
|
|
5920
|
+
if (value !== null && value !== void 0) {
|
|
5921
|
+
baseUrl.searchParams.set(
|
|
5922
|
+
key,
|
|
5923
|
+
value.toString()
|
|
5924
|
+
);
|
|
5925
|
+
}
|
|
5924
5926
|
}
|
|
5925
5927
|
}
|
|
5926
5928
|
return baseUrl.toString();
|