@medplum/agent 3.2.14 → 3.2.15
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/dist/cjs/index.cjs +5 -2
- package/package.json +5 -5
package/dist/cjs/index.cjs
CHANGED
|
@@ -44347,7 +44347,7 @@ var Mt = class {
|
|
|
44347
44347
|
return this.masterSubEmitter || (this.masterSubEmitter = new $e(...Array.from(this.criteriaEntries.keys()))), this.masterSubEmitter;
|
|
44348
44348
|
}
|
|
44349
44349
|
};
|
|
44350
|
-
var Wd = "3.2.
|
|
44350
|
+
var Wd = "3.2.15-b06c52c04";
|
|
44351
44351
|
var Ys = D.FHIR_JSON + ", */*; q=0.1";
|
|
44352
44352
|
var Zs = "https://api.medplum.com/";
|
|
44353
44353
|
var Xs = 1e3;
|
|
@@ -45016,13 +45016,16 @@ var _t = class extends H {
|
|
|
45016
45016
|
}
|
|
45017
45017
|
return this.setActiveLogin({ accessToken: n, refreshToken: t.refresh_token, project: t.project, profile: t.profile });
|
|
45018
45018
|
}
|
|
45019
|
+
checkSessionDetailsMatchLogin(t) {
|
|
45020
|
+
return this.sessionDetails && t ? t.profile?.reference?.endsWith(this.sessionDetails.profile.id) ?? false : true;
|
|
45021
|
+
}
|
|
45019
45022
|
setupStorageListener() {
|
|
45020
45023
|
try {
|
|
45021
45024
|
window.addEventListener("storage", (t) => {
|
|
45022
45025
|
if (t.key === null) window.location.reload();
|
|
45023
45026
|
else if (t.key === "activeLogin") {
|
|
45024
45027
|
let n = t.oldValue ? JSON.parse(t.oldValue) : void 0, i = t.newValue ? JSON.parse(t.newValue) : void 0;
|
|
45025
|
-
n?.profile.reference !== i?.profile.reference
|
|
45028
|
+
n?.profile.reference !== i?.profile.reference || !this.checkSessionDetailsMatchLogin(i) ? window.location.reload() : i ? this.setAccessToken(i.accessToken, i.refreshToken) : this.clear();
|
|
45026
45029
|
}
|
|
45027
45030
|
});
|
|
45028
45031
|
} catch {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@medplum/agent",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.15",
|
|
4
4
|
"description": "Medplum Agent",
|
|
5
5
|
"homepage": "https://www.medplum.com/",
|
|
6
6
|
"bugs": {
|
|
@@ -24,15 +24,15 @@
|
|
|
24
24
|
"test": "jest"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@medplum/core": "3.2.
|
|
28
|
-
"@medplum/hl7": "3.2.
|
|
27
|
+
"@medplum/core": "3.2.15",
|
|
28
|
+
"@medplum/hl7": "3.2.15",
|
|
29
29
|
"dcmjs-dimse": "0.1.28",
|
|
30
30
|
"iconv-lite": "0.6.3",
|
|
31
31
|
"ws": "8.18.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@medplum/fhirtypes": "3.2.
|
|
35
|
-
"@medplum/mock": "3.2.
|
|
34
|
+
"@medplum/fhirtypes": "3.2.15",
|
|
35
|
+
"@medplum/mock": "3.2.15",
|
|
36
36
|
"@types/async-eventemitter": "0.2.4",
|
|
37
37
|
"@types/ws": "8.5.12",
|
|
38
38
|
"mock-socket": "9.3.1",
|