@medplum/core 2.0.19 → 2.0.20
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/README.md +1 -1
- package/dist/cjs/index.cjs +18 -12
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.min.cjs +1 -1
- package/dist/esm/client.mjs +8 -1
- package/dist/esm/client.mjs.map +1 -1
- package/dist/esm/index.min.mjs +1 -1
- package/dist/esm/search/details.mjs +10 -11
- package/dist/esm/search/details.mjs.map +1 -1
- package/dist/types/client.d.ts +5 -0
- package/dist/types/config.d.ts +45 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/esm/client.mjs
CHANGED
|
@@ -11,7 +11,7 @@ import { encodeBase64 } from './base64.mjs';
|
|
|
11
11
|
|
|
12
12
|
// PKCE auth based on:
|
|
13
13
|
// https://aws.amazon.com/blogs/security/how-to-add-authentication-single-page-web-application-with-amazon-cognito-oauth2-implementation/
|
|
14
|
-
const MEDPLUM_VERSION = "2.0.
|
|
14
|
+
const MEDPLUM_VERSION = "2.0.20-effeb76c" ;
|
|
15
15
|
const DEFAULT_BASE_URL = 'https://api.medplum.com/';
|
|
16
16
|
const DEFAULT_RESOURCE_CACHE_SIZE = 1000;
|
|
17
17
|
const DEFAULT_CACHE_TIME = 60000; // 60 seconds
|
|
@@ -182,6 +182,13 @@ class MedplumClient extends EventTarget {
|
|
|
182
182
|
url = url.toString();
|
|
183
183
|
this.requestCache?.delete(url);
|
|
184
184
|
}
|
|
185
|
+
/**
|
|
186
|
+
* Invalidates all cached values and flushes the cache.
|
|
187
|
+
* @category Caching
|
|
188
|
+
*/
|
|
189
|
+
invalidateAll() {
|
|
190
|
+
this.requestCache?.clear();
|
|
191
|
+
}
|
|
185
192
|
/**
|
|
186
193
|
* Invalidates all cached search results or cached requests for the given resourceType.
|
|
187
194
|
* @category Caching
|