@antelopejs/dms-frontend 0.6.0 → 0.6.1
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/module-set.js +5 -1
- package/package.json +1 -1
package/dist/module-set.js
CHANGED
|
@@ -10,6 +10,7 @@ exports.MODULE_SET_POLL_INTERVAL_MS = 3000;
|
|
|
10
10
|
const READY_ENDPOINT = "/dms/frontend/ready";
|
|
11
11
|
const READY_TIMEOUT_MS = 5000;
|
|
12
12
|
const JSON_CONTENT_TYPE = "application/json";
|
|
13
|
+
const OWN_RELEASE = require("../package.json");
|
|
13
14
|
function moduleSetFingerprint(modules) {
|
|
14
15
|
return JSON.stringify([...modules]
|
|
15
16
|
.sort((left, right) => left.name.localeCompare(right.name))
|
|
@@ -69,7 +70,10 @@ async function reportFrontendReady(backendUrl, moduleNames, bootstrapSecret) {
|
|
|
69
70
|
...(0, workspace_1.bootstrapHeaders)(bootstrapSecret),
|
|
70
71
|
"content-type": JSON_CONTENT_TYPE,
|
|
71
72
|
},
|
|
72
|
-
body: JSON.stringify({
|
|
73
|
+
body: JSON.stringify({
|
|
74
|
+
modules: moduleNames,
|
|
75
|
+
version: OWN_RELEASE.version,
|
|
76
|
+
}),
|
|
73
77
|
signal: AbortSignal.timeout(READY_TIMEOUT_MS),
|
|
74
78
|
});
|
|
75
79
|
return response.ok;
|