@medplum/agent 3.2.21 → 3.2.23
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
|
@@ -42225,7 +42225,7 @@ var _t = class {
|
|
|
42225
42225
|
return this.masterSubEmitter || (this.masterSubEmitter = new Ge(...Array.from(this.criteriaEntries.keys()))), this.masterSubEmitter;
|
|
42226
42226
|
}
|
|
42227
42227
|
};
|
|
42228
|
-
var Xd = "3.2.
|
|
42228
|
+
var Xd = "3.2.23-b7a535d09";
|
|
42229
42229
|
var ta = D.FHIR_JSON + ", */*; q=0.1";
|
|
42230
42230
|
var ra = "https://api.medplum.com/";
|
|
42231
42231
|
var na = 1e3;
|
|
@@ -42519,7 +42519,10 @@ var Nt = class extends H {
|
|
|
42519
42519
|
return this.invalidateSearches(t.resourceType), this.post(this.fhirUrl(t.resourceType), t, void 0, n);
|
|
42520
42520
|
}
|
|
42521
42521
|
async createResourceIfNoneExist(t, n, i) {
|
|
42522
|
-
|
|
42522
|
+
let o = this.fhirUrl(t.resourceType);
|
|
42523
|
+
i ? i.headers ? Array.isArray(i.headers) ? i.headers.push(["If-None-Exist", n]) : i.headers instanceof Headers ? i.headers.set("If-None-Exist", n) : i.headers["If-None-Exist"] = n : i.headers = { "If-None-Exist": n } : i = { headers: { "If-None-Exist": n } };
|
|
42524
|
+
let s = await this.post(o, t, void 0, i);
|
|
42525
|
+
return this.cacheResource(s), this.invalidateUrl(this.fhirUrl(t.resourceType, t.id, "_history")), this.invalidateSearches(t.resourceType), s;
|
|
42523
42526
|
}
|
|
42524
42527
|
async upsertResource(t, n, i) {
|
|
42525
42528
|
let o = this.fhirSearchUrl(t.resourceType, n), s = await this.put(o, t, void 0, i);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@medplum/agent",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.23",
|
|
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.23",
|
|
28
|
+
"@medplum/hl7": "3.2.23",
|
|
29
29
|
"dcmjs-dimse": "0.1.30",
|
|
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.23",
|
|
35
|
+
"@medplum/mock": "3.2.23",
|
|
36
36
|
"@types/async-eventemitter": "0.2.4",
|
|
37
37
|
"@types/ws": "8.5.13",
|
|
38
38
|
"mock-socket": "9.3.1",
|