mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-16 20:11:08 +00:00
14 lines
505 B
JavaScript
14 lines
505 B
JavaScript
"use strict";
|
|
|
|
const { assertBrowserOnlyPlugin } = require("../../domain/pluginRuntimePolicy.cjs");
|
|
|
|
function assertCatalogManifest(manifest, expected) {
|
|
if (manifest.id !== expected.id || manifest.version !== expected.version) {
|
|
throw new Error("Catalog package identity/version mismatch");
|
|
}
|
|
assertBrowserOnlyPlugin(manifest);
|
|
if (!manifest.license || manifest.license !== expected.license) throw new Error("Catalog package license mismatch");
|
|
}
|
|
|
|
module.exports = { assertCatalogManifest };
|