@medplum/agent 5.1.7 → 5.1.8
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 +7 -4
- package/package.json +5 -5
package/dist/cjs/index.cjs
CHANGED
|
@@ -70623,8 +70623,8 @@ var Tr = { ...Me, issue: [...Me.issue, { severity: "error", code: "invalid", det
|
|
|
70623
70623
|
function R(r6, e) {
|
|
70624
70624
|
return { resourceType: "OperationOutcome", issue: [{ severity: "error", code: "invalid", details: { text: r6 }, ...e ? { expression: [e] } : void 0 }] };
|
|
70625
70625
|
}
|
|
70626
|
-
function v(r6) {
|
|
70627
|
-
return { resourceType: "OperationOutcome", issue: [{ severity: "error", code: "structure", details: { text: r6 } }] };
|
|
70626
|
+
function v(r6, e, t, n) {
|
|
70627
|
+
return { resourceType: "OperationOutcome", issue: [{ severity: "error", code: t ?? "structure", details: { text: r6 }, ...e ? { expression: e } : void 0, ...n ? { diagnostics: n } : void 0 }] };
|
|
70628
70628
|
}
|
|
70629
70629
|
function Ln(r6) {
|
|
70630
70630
|
return { resourceType: "OperationOutcome", issue: [{ severity: "error", code: "exception", details: { text: "Internal server error" }, diagnostics: r6.toString() }] };
|
|
@@ -72506,7 +72506,7 @@ function st(r6) {
|
|
|
72506
72506
|
return r6.bareCriteria ? [r6.bareCriteria, ...r6.criteriaWithProps] : r6.criteriaWithProps;
|
|
72507
72507
|
}
|
|
72508
72508
|
var Ga = new z(1e3);
|
|
72509
|
-
var ln = "5.1.
|
|
72509
|
+
var ln = "5.1.8-5bca090";
|
|
72510
72510
|
var za = O.FHIR_JSON + ", */*; q=0.1";
|
|
72511
72511
|
var Ja = "https://api.medplum.com/";
|
|
72512
72512
|
var Ka = 1e3;
|
|
@@ -73011,11 +73011,14 @@ var Zt = class extends te {
|
|
|
73011
73011
|
return this.sessionDetails?.accessPolicy;
|
|
73012
73012
|
}
|
|
73013
73013
|
async download(t, n = {}) {
|
|
73014
|
+
return (await this.downloadResponse(t, n)).blob();
|
|
73015
|
+
}
|
|
73016
|
+
async downloadResponse(t, n = {}) {
|
|
73014
73017
|
this.refreshPromise && await this.refreshPromise;
|
|
73015
73018
|
let i = t.toString();
|
|
73016
73019
|
i.startsWith(ec) && (t = this.fhirUrl(i));
|
|
73017
73020
|
let o2 = n.headers;
|
|
73018
|
-
return o2 || (o2 = {}, n.headers = o2), o2.Accept || (o2.Accept = "*/*"), this.addFetchOptionsDefaults(n),
|
|
73021
|
+
return o2 || (o2 = {}, n.headers = o2), o2.Accept || (o2.Accept = "*/*"), this.addFetchOptionsDefaults(n), this.fetchWithRetry(t.toString(), n);
|
|
73019
73022
|
}
|
|
73020
73023
|
async createMedia(t, n) {
|
|
73021
73024
|
let { additionalFields: i, ...o2 } = t, s = await this.createResource({ resourceType: "Media", status: "preparation", content: { contentType: t.contentType }, ...i });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@medplum/agent",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.8",
|
|
4
4
|
"description": "Medplum Agent",
|
|
5
5
|
"homepage": "https://www.medplum.com/",
|
|
6
6
|
"bugs": {
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"test": "jest --runInBand"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@medplum/core": "5.1.
|
|
30
|
-
"@medplum/hl7": "5.1.
|
|
29
|
+
"@medplum/core": "5.1.8",
|
|
30
|
+
"@medplum/hl7": "5.1.8",
|
|
31
31
|
"dcmjs-dimse": "0.3.2",
|
|
32
32
|
"iconv-lite": "0.7.2",
|
|
33
33
|
"semver": "7.7.4",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"ws": "8.20.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@medplum/fhirtypes": "5.1.
|
|
40
|
-
"@medplum/mock": "5.1.
|
|
39
|
+
"@medplum/fhirtypes": "5.1.8",
|
|
40
|
+
"@medplum/mock": "5.1.8",
|
|
41
41
|
"@types/async-eventemitter": "0.2.4",
|
|
42
42
|
"@types/ws": "8.18.1",
|
|
43
43
|
"mock-socket": "9.3.1",
|