@medplum/agent 5.1.31 → 5.1.32
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 +6 -6
- package/package.json +5 -5
package/dist/cjs/index.cjs
CHANGED
|
@@ -76537,7 +76537,7 @@ function bt(t6) {
|
|
|
76537
76537
|
return t6.bareCriteria ? [t6.bareCriteria, ...t6.criteriaWithProps] : t6.criteriaWithProps;
|
|
76538
76538
|
}
|
|
76539
76539
|
var Gc = new ee(1e3);
|
|
76540
|
-
var Mn = "5.1.
|
|
76540
|
+
var Mn = "5.1.32-e611245";
|
|
76541
76541
|
var Jc = V.FHIR_JSON + ", */*; q=0.1";
|
|
76542
76542
|
var Kc = "https://api.medplum.com/";
|
|
76543
76543
|
var Yc = 1e3;
|
|
@@ -77790,7 +77790,7 @@ function Ps(t6) {
|
|
|
77790
77790
|
function Jl(t6) {
|
|
77791
77791
|
if (!Rs.test(t6)) throw new TypeError(`Version is not a valid Medplum semver (eg. 1.1.1 or 1.1.1-a1bc): ${t6}`);
|
|
77792
77792
|
}
|
|
77793
|
-
async function
|
|
77793
|
+
async function Cv(t6, e) {
|
|
77794
77794
|
if (!Ps(e)) return false;
|
|
77795
77795
|
try {
|
|
77796
77796
|
await oi(t6, e);
|
|
@@ -77799,7 +77799,7 @@ async function Rv(t6, e) {
|
|
|
77799
77799
|
}
|
|
77800
77800
|
return true;
|
|
77801
77801
|
}
|
|
77802
|
-
async function
|
|
77802
|
+
async function Pv(t6) {
|
|
77803
77803
|
let e = await oi(t6);
|
|
77804
77804
|
if (!e.tag_name.startsWith("v")) throw new Error(`Invalid release name found. Release tag '${e.tag_name}' did not start with 'v'`);
|
|
77805
77805
|
let r = e.tag_name.slice(1);
|
|
@@ -106720,7 +106720,7 @@ ${result}`);
|
|
|
106720
106720
|
return;
|
|
106721
106721
|
}
|
|
106722
106722
|
let child;
|
|
106723
|
-
if (message2.version && !await
|
|
106723
|
+
if (message2.version && !await Cv("agent-upgrader", message2.version)) {
|
|
106724
106724
|
const versionTag = message2.version ? `v${message2.version}` : "latest";
|
|
106725
106725
|
const errMsg = `Error during upgrading to version '${versionTag}'. '${message2.version}' is not a valid version`;
|
|
106726
106726
|
this.log.error(errMsg);
|
|
@@ -106731,7 +106731,7 @@ ${result}`);
|
|
|
106731
106731
|
});
|
|
106732
106732
|
return;
|
|
106733
106733
|
}
|
|
106734
|
-
const targetVersion = message2.version ?? await
|
|
106734
|
+
const targetVersion = message2.version ?? await Pv("agent-upgrader");
|
|
106735
106735
|
if (Mn.startsWith(targetVersion)) {
|
|
106736
106736
|
if (!message2?.force) {
|
|
106737
106737
|
this.log.info(`Attempted to upgrade to version ${targetVersion}, but agent is already on that version`);
|
|
@@ -107174,7 +107174,7 @@ async function upgraderMain(argv) {
|
|
|
107174
107174
|
if (argv[3] && !Ps(argv[3])) {
|
|
107175
107175
|
throw new Error("Invalid version specified");
|
|
107176
107176
|
}
|
|
107177
|
-
version = argv[3] ?? await
|
|
107177
|
+
version = argv[3] ?? await Pv("agent-upgrader");
|
|
107178
107178
|
binPath = getReleaseBinPath(version);
|
|
107179
107179
|
if (!(0, import_node_fs7.existsSync)(binPath)) {
|
|
107180
107180
|
globalLogger.info(`Could not find binary at "${binPath}". Downloading release from GitHub...`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@medplum/agent",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.32",
|
|
4
4
|
"description": "Medplum Agent",
|
|
5
5
|
"homepage": "https://www.medplum.com/",
|
|
6
6
|
"bugs": {
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"test": "vitest run"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@medplum/core": "5.1.
|
|
30
|
-
"@medplum/hl7": "5.1.
|
|
29
|
+
"@medplum/core": "5.1.32",
|
|
30
|
+
"@medplum/hl7": "5.1.32",
|
|
31
31
|
"dcmjs": "0.52.0",
|
|
32
32
|
"dcmjs-dimse": "0.3.3",
|
|
33
33
|
"iconv-lite": "0.7.3",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"ws": "8.21.3"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@medplum/fhirtypes": "5.1.
|
|
41
|
-
"@medplum/mock": "5.1.
|
|
40
|
+
"@medplum/fhirtypes": "5.1.32",
|
|
41
|
+
"@medplum/mock": "5.1.32",
|
|
42
42
|
"@types/async-eventemitter": "0.2.4",
|
|
43
43
|
"@types/ws": "8.18.1",
|
|
44
44
|
"mock-socket": "9.3.1",
|