@void/platform 1.1.12 → 1.2.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/installer.mjs
CHANGED
|
@@ -43,9 +43,9 @@ function parsePlatformRuntimeManifest(value) {
|
|
|
43
43
|
if (root.assets !== void 0) {
|
|
44
44
|
const assetsValue = record(root.assets, "runtime manifest assets");
|
|
45
45
|
const adminClient = parseArtifact(assetsValue.adminClient, "admin client asset");
|
|
46
|
-
if (adminClient.path !==
|
|
46
|
+
if (adminClient.path !== "api/assets/admin/client.js") throw new Error(`runtime manifest admin client asset path must be ${PLATFORM_ADMIN_CLIENT_ASSET_PATH}`);
|
|
47
47
|
const adminStyle = assetsValue.adminStyle === void 0 ? void 0 : parseArtifact(assetsValue.adminStyle, "admin style asset");
|
|
48
|
-
if (adminStyle && adminStyle.path !==
|
|
48
|
+
if (adminStyle && adminStyle.path !== "api/assets/admin/style.css") throw new Error(`runtime manifest admin style asset path must be ${PLATFORM_ADMIN_STYLE_ASSET_PATH}`);
|
|
49
49
|
assets = {
|
|
50
50
|
adminClient,
|
|
51
51
|
...adminStyle ? { adminStyle } : {}
|