更新 inject.js

This commit is contained in:
2025-10-15 08:15:52 +00:00
parent 2a8b4b42bc
commit 170f9c9313

View File

@@ -1,5 +1,4 @@
license_sdk_1.LicenseManager.prototype.licenseCert = {
consumerId: "n8n",
version: 1,
@@ -27,7 +26,7 @@ license_sdk_1.LicenseManager.prototype.licenseCert = {
...Object.
fromEntries(
Object.values(constants_1.LICENSE_FEATURES).
filter((f) => ['feat:apiDisabled', 'feat:showNonProdBanner'].includes(f)).
filter((f) => !(['feat:apiDisabled', 'feat:showNonProdBanner'].includes(f))).
map((f) => [f, true]),
),
...Object.fromEntries(
@@ -40,6 +39,7 @@ license_sdk_1.LicenseManager.prototype.licenseCert = {
managementJwt: "123",
isEphemeral: true,
};
console.log('License', license_sdk_1.LicenseManager.prototype.licenseCert);
license_sdk_1.LicenseManager.prototype.updateCurrentFeatures();
// license_sdk_1.LicenseManager.prototype.isInitialized = () => true;
license_sdk_1.LicenseManager.prototype.activate = () => { };