@atom8n/n8n-core 2.3.1 → 2.4.1

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.
@@ -19,7 +19,6 @@ export declare abstract class DirectoryLoader {
19
19
  protected removeNonIncludedNodes: boolean;
20
20
  constructor(directory: string, excludeNodes?: string[], includeNodes?: string[]);
21
21
  abstract packageName: string;
22
- get nodeTypePrefix(): string;
23
22
  abstract loadAll(): Promise<void>;
24
23
  reset(): void;
25
24
  protected resolvePath(file: string): string;
@@ -76,9 +76,6 @@ class DirectoryLoader {
76
76
  }
77
77
  this.removeNonIncludedNodes = this.includeNodes.length > 0;
78
78
  }
79
- get nodeTypePrefix() {
80
- return this.packageName;
81
- }
82
79
  reset() {
83
80
  this.unloadAll();
84
81
  this.loadedNodes = [];
@@ -3,9 +3,7 @@ import type { n8n } from './types';
3
3
  export declare class PackageDirectoryLoader extends DirectoryLoader {
4
4
  packageJson: n8n.PackageJson;
5
5
  packageName: string;
6
- private _nodeTypePrefix;
7
6
  constructor(directory: string, excludeNodes?: string[], includeNodes?: string[]);
8
- get nodeTypePrefix(): string;
9
7
  loadAll(): Promise<void>;
10
8
  private inferSupportedNodes;
11
9
  private parseJSON;
@@ -9,13 +9,13 @@ class PackageDirectoryLoader extends directory_loader_1.DirectoryLoader {
9
9
  constructor(directory, excludeNodes = [], includeNodes = []) {
10
10
  super(directory, excludeNodes, includeNodes);
11
11
  this.packageJson = this.readJSONSync('package.json');
12
- this.packageName = this.packageJson.name;
13
- this._nodeTypePrefix = this.packageJson.n8n?.nodeTypePrefix ?? this.packageName;
14
- this.excludeNodes = this.extractNodeTypes(excludeNodes, this._nodeTypePrefix);
15
- this.includeNodes = this.extractNodeTypes(includeNodes, this._nodeTypePrefix);
16
- }
17
- get nodeTypePrefix() {
18
- return this._nodeTypePrefix;
12
+ const nodeTypePrefix = this.packageJson.n8n?.nodeTypePrefix;
13
+ this.packageName = nodeTypePrefix ?? this.packageJson.name;
14
+ if (nodeTypePrefix) {
15
+ this.logger.info(`[NodeTypeLoader] Package: ${this.packageJson.name}, using nodeTypePrefix: ${nodeTypePrefix}`);
16
+ }
17
+ this.excludeNodes = this.extractNodeTypes(excludeNodes, this.packageName);
18
+ this.includeNodes = this.extractNodeTypes(includeNodes, this.packageName);
19
19
  }
20
20
  async loadAll() {
21
21
  const { n8n, version, name } = this.packageJson;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atom8n/n8n-core",
3
- "version": "2.3.1",
3
+ "version": "2.4.1",
4
4
  "description": "Core functionality of n8n",
5
5
  "main": "dist/index",
6
6
  "types": "dist/index.d.ts",
@@ -28,8 +28,8 @@
28
28
  "bin"
29
29
  ],
30
30
  "devDependencies": {
31
- "@n8n/errors": "npm:@atom8n/errors@0.6.0",
32
- "@n8n/typescript-config": "npm:@atom8n/typescript-config@1.4.0",
31
+ "@n8n/errors": "npm:@atom8n/errors@0.7.0",
32
+ "@n8n/typescript-config": "npm:@atom8n/typescript-config@1.5.0",
33
33
  "@types/express": "^5.0.1",
34
34
  "@types/jsonwebtoken": "9.0.10",
35
35
  "@types/lodash": "4.17.17",
@@ -41,12 +41,12 @@
41
41
  "dependencies": {
42
42
  "@aws-sdk/client-s3": "3.808.0",
43
43
  "@langchain/core": "1.1.0",
44
- "@n8n/backend-common": "npm:@atom8n/backend-common@1.3.0",
45
- "@n8n/client-oauth2": "npm:@atom8n/client-oauth2@1.1.0",
46
- "@n8n/config": "npm:@atom8n/config@2.2.0",
47
- "@n8n/constants": "npm:@atom8n/constants@0.16.0",
48
- "@n8n/decorators": "npm:@atom8n/decorators@1.3.0",
49
- "@n8n/di": "npm:@atom8n/di@0.11.0",
44
+ "@n8n/backend-common": "npm:@atom8n/backend-common@1.4.0",
45
+ "@n8n/client-oauth2": "npm:@atom8n/client-oauth2@1.2.0",
46
+ "@n8n/config": "npm:@atom8n/config@2.3.0",
47
+ "@n8n/constants": "npm:@atom8n/constants@0.17.0",
48
+ "@n8n/decorators": "npm:@atom8n/decorators@1.4.0",
49
+ "@n8n/di": "npm:@atom8n/di@0.12.0",
50
50
  "@sentry/node": "^9.42.1",
51
51
  "@sentry/node-native": "^9.42.1",
52
52
  "axios": "1.12.0",
@@ -64,7 +64,7 @@
64
64
  "lodash": "4.17.21",
65
65
  "luxon": "3.4.4",
66
66
  "mime-types": "3.0.1",
67
- "n8n-workflow": "npm:@atom8n/n8n-workflow@2.3.0",
67
+ "n8n-workflow": "npm:@atom8n/n8n-workflow@2.4.0",
68
68
  "nanoid": "3.3.8",
69
69
  "oauth-1.0a": "2.2.6",
70
70
  "p-cancelable": "2.1.1",