@carto/api-client 0.5.20 → 0.5.21

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/CHANGELOG.md CHANGED
@@ -4,6 +4,10 @@
4
4
 
5
5
  ## 0.5
6
6
 
7
+ ### 0.5.21
8
+
9
+ - fix(query,fetchMap): Fix queryParameter encoding for POST requests. (#247)
10
+
7
11
  ### 0.5.20
8
12
 
9
13
  - fix(fetchMap): support quantile color scale with 2 ranges (#241)
@@ -8695,7 +8695,7 @@ var query = async function(options) {
8695
8695
  } = options;
8696
8696
  const urlParameters = { q: sqlQuery };
8697
8697
  if (queryParameters) {
8698
- urlParameters.queryParameters = JSON.stringify(queryParameters);
8698
+ urlParameters.queryParameters = queryParameters;
8699
8699
  }
8700
8700
  const baseUrl = buildQueryUrl({ apiBaseUrl, connectionName });
8701
8701
  const headers = {
@@ -11218,7 +11218,7 @@ async function _fetchTilestats(attribute, dataset, context) {
11218
11218
  if (type === "query") {
11219
11219
  parameters.q = source;
11220
11220
  if (queryParameters) {
11221
- parameters.queryParameters = JSON.stringify(queryParameters);
11221
+ parameters.queryParameters = queryParameters;
11222
11222
  }
11223
11223
  }
11224
11224
  const stats = await requestWithParameters({