更新 inject.js

This commit is contained in:
2025-10-15 07:36:36 +00:00
parent 08ffdff1ee
commit 9dbdfbd42b

View File

@@ -1,62 +1,48 @@
license_sdk_1.LicenseManager.prototype.licenseCert = {
consumerId: "n8n",
version: 1,
tenantId: 1,
renewalToken: "123",
deviceLock: false,
deviceFingerprint: "888",
createdAt: new Date(),
issuedAt: new Date(),
expiresAt: new Date(Date.now() + 1000 * 60 * 60 * 24 * 365),
terminatesAt: new Date(Date.now() + 1000 * 60 * 60 * 24 * 365),
entitlements: [
{
id: "1",
productId: "123",
productMetadata: {
terms: {
isMainPlan: true,
consumerId: "n8n",
version: 1,
tenantId: 1,
renewalToken: "123",
deviceLock: false,
deviceFingerprint: "888",
createdAt: new Date(),
issuedAt: new Date(),
expiresAt: new Date(Date.now() + 1000 * 60 * 60 * 24 * 365),
terminatesAt: new Date(Date.now() + 1000 * 60 * 60 * 24 * 365),
entitlements: [
{
id: "1",
productId: "123",
productMetadata: {
terms: {
isMainPlan: true,
},
},
validFrom: new Date(),
validTo: new Date(Date.now() + 1000 * 60 * 60 * 24 * 365),
features: {
planName: "Enterprise",
...Object.
fromEntries(
constants_1.LICENSE_FEATURES.
filter((f) => ['feat:apiDisabled', 'feat:showNonProdBanner'].includes(f)).
map((f) => [f, true]),
),
...Object.fromEntries(
constants_1.LICENSE_QUOTAS.
map((f) => [f, -1]),
),
},
},
},
validFrom: new Date(),
validTo: new Date(Date.now() + 1000 * 60 * 60 * 24 * 365),
features: {
planName: "Enterprise",
"feat:sharing": true,
"feat:ldap": true,
"feat:saml": true,
"feat:logStreaming": true,
"feat:advancedExecutionFilters": true,
"feat:variables": true,
"feat:debugInEditor": true,
"feat:workflowHistory": true,
"feat:showNonProdBanner": false,
"feat:externalSecrets": true,
"feat:apiDisabled": false,
"feat:sourceControl": true,
"feat:binaryDataS3": true,
"feat:multipleMainInstances": true,
"feat:workerView": true,
"feat:advancedPermissions": true,
'feat:projectRole:admin': true,
'feat:projectRole:editor': true,
'feat:projectRole:viewer': true,
'feat:aiAssistant': true,
'feat:askAi': true,
'feat:communityNodes:customRegistry': true,
'feat:aiCredits': true,
'quota:aiCredits': 114514,
'quota:maxTeamProjects': 114514,
},
},
],
managementJwt: "123",
isEphemeral: true,
],
managementJwt: "123",
isEphemeral: true,
};
license_sdk_1.LicenseManager.prototype.updateCurrentFeatures();
// license_sdk_1.LicenseManager.prototype.isInitialized = () => true;
license_sdk_1.LicenseManager.prototype.activate = () => {};
license_sdk_1.LicenseManager.prototype.initialize = () => {};
license_sdk_1.LicenseManager.prototype.renew = () => {};
license_sdk_1.LicenseManager.prototype.reset = () => {};
license_sdk_1.LicenseManager.prototype.activate = () => { };
license_sdk_1.LicenseManager.prototype.initialize = () => { };
license_sdk_1.LicenseManager.prototype.renew = () => { };
license_sdk_1.LicenseManager.prototype.reset = () => { };