@carto/api-client 0.5.9-alpha.PR193.1 → 0.5.9-alpha.PR193.3

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/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "homepage": "https://github.com/CartoDB/carto-api-client#readme",
9
9
  "author": "Don McCurdy <donmccurdy@carto.com>",
10
10
  "packageManager": "yarn@4.3.1",
11
- "version": "0.5.9-alpha.PR193.1",
11
+ "version": "0.5.9-alpha.PR193.3",
12
12
  "license": "MIT",
13
13
  "publishConfig": {
14
14
  "access": "public"
@@ -146,10 +146,12 @@ function createURLWithParameters(
146
146
  if (isPureObject(value) || Array.isArray(value)) {
147
147
  baseUrl.searchParams.set(key, JSON.stringify(value));
148
148
  } else {
149
- baseUrl.searchParams.set(
150
- key,
151
- (value as string | boolean | number).toString()
152
- );
149
+ if (value !== null && value !== undefined) {
150
+ baseUrl.searchParams.set(
151
+ key,
152
+ (value as string | boolean | number).toString()
153
+ );
154
+ }
153
155
  }
154
156
  }
155
157
  return baseUrl.toString();
@@ -99,7 +99,7 @@ export function executeModel(props: {
99
99
  queryParameters: source.queryParameters || '',
100
100
  filters,
101
101
  filtersLogicalOperator,
102
- tags,
102
+ ...(tags ?? {}),
103
103
  };
104
104
 
105
105
  queryParams.spatialDataType = spatialDataType;