@medplum/agent 3.2.9 → 3.2.10

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.
@@ -44342,7 +44342,7 @@ var Mt = class {
44342
44342
  return this.masterSubEmitter || (this.masterSubEmitter = new $e(...Array.from(this.criteriaEntries.keys()))), this.masterSubEmitter;
44343
44343
  }
44344
44344
  };
44345
- var jd = "3.2.9-125ab4f36";
44345
+ var jd = "3.2.10-97f4103aa";
44346
44346
  var Ys = D.FHIR_JSON + ", */*; q=0.1";
44347
44347
  var Zs = "https://api.medplum.com/";
44348
44348
  var Xs = 1e3;
@@ -44735,15 +44735,15 @@ var _t = class extends H {
44735
44735
  }
44736
44736
  async refreshProfile() {
44737
44737
  return this.medplumServer ? (this.profilePromise = new Promise((t, n) => {
44738
- this.dispatchEvent({ type: "profileRefreshing" }), this.get("auth/me").then((i) => {
44738
+ this.get("auth/me", { cache: "no-cache" }).then((i) => {
44739
44739
  this.profilePromise = void 0;
44740
44740
  let o = this.sessionDetails?.profile?.id !== i.profile.id;
44741
- this.sessionDetails = i, o && this.dispatchEvent({ type: "change" }), this.dispatchEvent({ type: "profileRefreshed" }), t(i.profile);
44741
+ this.sessionDetails = i, o && this.dispatchEvent({ type: "change" }), t(i.profile), this.dispatchEvent({ type: "profileRefreshed" });
44742
44742
  }).catch(n);
44743
- }), this.profilePromise) : Promise.resolve(void 0);
44743
+ }), this.dispatchEvent({ type: "profileRefreshing" }), this.profilePromise) : Promise.resolve(void 0);
44744
44744
  }
44745
44745
  isLoading() {
44746
- return !this.isInitialized || !!this.profilePromise;
44746
+ return !this.isInitialized || !!this.profilePromise && !this.sessionDetails?.profile;
44747
44747
  }
44748
44748
  isSuperAdmin() {
44749
44749
  return !!this.sessionDetails?.project.superAdmin;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medplum/agent",
3
- "version": "3.2.9",
3
+ "version": "3.2.10",
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.9",
28
- "@medplum/hl7": "3.2.9",
27
+ "@medplum/core": "3.2.10",
28
+ "@medplum/hl7": "3.2.10",
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.9",
35
- "@medplum/mock": "3.2.9",
34
+ "@medplum/fhirtypes": "3.2.10",
35
+ "@medplum/mock": "3.2.10",
36
36
  "@types/async-eventemitter": "0.2.4",
37
37
  "@types/ws": "8.5.12",
38
38
  "mock-socket": "9.3.1",