更新 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 = { license_sdk_1.LicenseManager.prototype.licenseCert = {
consumerId: "n8n", consumerId: "n8n",
version: 1, version: 1,
@@ -27,7 +26,7 @@ license_sdk_1.LicenseManager.prototype.licenseCert = {
...Object. ...Object.
fromEntries( fromEntries(
Object.values(constants_1.LICENSE_FEATURES). 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]), map((f) => [f, true]),
), ),
...Object.fromEntries( ...Object.fromEntries(
@@ -40,6 +39,7 @@ license_sdk_1.LicenseManager.prototype.licenseCert = {
managementJwt: "123", managementJwt: "123",
isEphemeral: true, isEphemeral: true,
}; };
console.log('License', license_sdk_1.LicenseManager.prototype.licenseCert);
license_sdk_1.LicenseManager.prototype.updateCurrentFeatures(); license_sdk_1.LicenseManager.prototype.updateCurrentFeatures();
// license_sdk_1.LicenseManager.prototype.isInitialized = () => true; // license_sdk_1.LicenseManager.prototype.isInitialized = () => true;
license_sdk_1.LicenseManager.prototype.activate = () => { }; license_sdk_1.LicenseManager.prototype.activate = () => { };