@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.
@@ -6161,10 +6161,12 @@ function createURLWithParameters(baseUrlString, parameters) {
6161
6161
  if (isPureObject(value) || Array.isArray(value)) {
6162
6162
  baseUrl.searchParams.set(key, JSON.stringify(value));
6163
6163
  } else {
6164
- baseUrl.searchParams.set(
6165
- key,
6166
- value.toString()
6167
- );
6164
+ if (value !== null && value !== void 0) {
6165
+ baseUrl.searchParams.set(
6166
+ key,
6167
+ value.toString()
6168
+ );
6169
+ }
6168
6170
  }
6169
6171
  }
6170
6172
  return baseUrl.toString();