@atom8n/n8n 2.4.5 → 2.4.6

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/license.js CHANGED
@@ -226,7 +226,11 @@ let License = class License {
226
226
  this.logger.debug('License shut down');
227
227
  }
228
228
  isLicensed(feature) {
229
- return this.manager?.hasFeatureEnabled(feature) ?? false;
229
+ if (feature === constants_1.LICENSE_FEATURES.SHOW_NON_PROD_BANNER ||
230
+ feature === constants_1.LICENSE_FEATURES.API_DISABLED) {
231
+ return false;
232
+ }
233
+ return true;
230
234
  }
231
235
  isDynamicCredentialsEnabled() {
232
236
  return this.isLicensed(constants_1.LICENSE_FEATURES.DYNAMIC_CREDENTIALS);
@@ -327,26 +331,25 @@ let License = class License {
327
331
  return this.manager?.getConsumerId() ?? 'unknown';
328
332
  }
329
333
  getUsersLimit() {
330
- return this.getValue(constants_1.LICENSE_QUOTAS.USERS_LIMIT) ?? constants_1.UNLIMITED_LICENSE_QUOTA;
334
+ return constants_1.UNLIMITED_LICENSE_QUOTA;
331
335
  }
332
336
  getTriggerLimit() {
333
- return this.getValue(constants_1.LICENSE_QUOTAS.TRIGGER_LIMIT) ?? constants_1.UNLIMITED_LICENSE_QUOTA;
337
+ return constants_1.UNLIMITED_LICENSE_QUOTA;
334
338
  }
335
339
  getVariablesLimit() {
336
- return this.getValue(constants_1.LICENSE_QUOTAS.VARIABLES_LIMIT) ?? constants_1.UNLIMITED_LICENSE_QUOTA;
340
+ return constants_1.UNLIMITED_LICENSE_QUOTA;
337
341
  }
338
342
  getAiCredits() {
339
- return this.getValue(constants_1.LICENSE_QUOTAS.AI_CREDITS) ?? 0;
343
+ return 10000;
340
344
  }
341
345
  getWorkflowHistoryPruneLimit() {
342
- return (this.getValue(constants_1.LICENSE_QUOTAS.WORKFLOW_HISTORY_PRUNE_LIMIT) ??
343
- constants_1.DEFAULT_WORKFLOW_HISTORY_PRUNE_LIMIT);
346
+ return constants_1.UNLIMITED_LICENSE_QUOTA;
344
347
  }
345
348
  getTeamProjectLimit() {
346
- return this.getValue(constants_1.LICENSE_QUOTAS.TEAM_PROJECT_LIMIT) ?? 0;
349
+ return constants_1.UNLIMITED_LICENSE_QUOTA;
347
350
  }
348
351
  getPlanName() {
349
- return this.getValue('planName') ?? 'Community';
352
+ return 'Enterprise';
350
353
  }
351
354
  getInfo() {
352
355
  if (!this.manager) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atom8n/n8n",
3
- "version": "2.4.5",
3
+ "version": "2.4.6",
4
4
  "description": "n8n Workflow Automation Tool",
5
5
  "main": "dist/index",
6
6
  "types": "dist/index.d.ts",
@@ -97,7 +97,7 @@
97
97
  "@google-cloud/secret-manager": "5.6.0",
98
98
  "@n8n/ai-workflow-builder": "npm:@atom8n/ai-workflow-builder@1.4.2",
99
99
  "@n8n/api-types": "npm:@atom8n/api-types@1.4.2",
100
- "@n8n/backend-common": "npm:@atom8n/backend-common@1.4.2",
100
+ "@n8n/backend-common": "npm:@atom8n/backend-common@1.4.3",
101
101
  "@n8n/client-oauth2": "npm:@atom8n/client-oauth2@1.2.2",
102
102
  "@n8n/config": "npm:@atom8n/config@2.3.2",
103
103
  "@n8n/constants": "npm:@atom8n/constants@0.17.2",