@carto/api-client 0.5.4-alpha.1 → 0.5.4

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.4-alpha.1",
11
+ "version": "0.5.4",
12
12
  "license": "MIT",
13
13
  "publishConfig": {
14
14
  "access": "public"
@@ -128,6 +128,5 @@
128
128
  "resolutions": {
129
129
  "@carto/api-client": "portal:./",
130
130
  "rollup": "^4.20.0"
131
- },
132
- "stableVersion": "0.5.3"
131
+ }
133
132
  }
package/src/api/index.ts CHANGED
@@ -11,4 +11,7 @@ export {
11
11
  export {buildPublicMapUrl, buildStatsUrl} from './endpoints.js';
12
12
  export {query} from './query.js';
13
13
  export type {QueryOptions} from './query.js';
14
- export {requestWithParameters} from './request-with-parameters.js';
14
+ export {
15
+ requestWithParameters,
16
+ clearDefaultRequestCache,
17
+ } from './request-with-parameters.js';
@@ -164,3 +164,11 @@ function excludeURLParameters(baseUrlString: string, parameters: string[]) {
164
164
  }
165
165
  return baseUrl.toString();
166
166
  }
167
+
168
+ /**
169
+ * Clears the HTTP response cache for all requests using the default cache.
170
+ * @internal
171
+ */
172
+ export function clearDefaultRequestCache() {
173
+ DEFAULT_REQUEST_CACHE.clear();
174
+ }
package/src/index.ts CHANGED
@@ -18,6 +18,7 @@ export {
18
18
  buildStatsUrl, // Internal, but required for fetchMap().
19
19
  query,
20
20
  requestWithParameters,
21
+ clearDefaultRequestCache, // Internal, for unit testing.
21
22
  } from './api/index.js';
22
23
 
23
24
  export {_getHexagonResolution} from './spatial-index.js';