mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix: Register community nodes as known nodes (no-changelog) (#4775)
This commit is contained in:
committed by
GitHub
parent
f3202ee0a8
commit
8698e02079
@@ -104,6 +104,11 @@ export abstract class DirectoryLoader {
|
||||
: tmpNode.description.version;
|
||||
}
|
||||
|
||||
this.known.nodes[fullNodeName] = {
|
||||
className: nodeName,
|
||||
sourcePath: filePath,
|
||||
};
|
||||
|
||||
this.nodeTypes[fullNodeName] = {
|
||||
type: tempNode,
|
||||
sourcePath: filePath,
|
||||
@@ -139,6 +144,11 @@ export abstract class DirectoryLoader {
|
||||
}
|
||||
}
|
||||
|
||||
this.known.credentials[tempCredential.name] = {
|
||||
className: credentialName,
|
||||
sourcePath: filePath,
|
||||
};
|
||||
|
||||
this.credentialTypes[tempCredential.name] = {
|
||||
type: tempCredential,
|
||||
sourcePath: filePath,
|
||||
@@ -319,7 +329,10 @@ export class LazyPackageDirectoryLoader extends PackageDirectoryLoader {
|
||||
await this.readPackageJson();
|
||||
|
||||
try {
|
||||
this.known.nodes = await this.readJSON('dist/known/nodes.json');
|
||||
const knownNodes: typeof this.known.nodes = await this.readJSON('dist/known/nodes.json');
|
||||
for (const nodeName in knownNodes) {
|
||||
this.known.nodes[`${this.packageName}.${nodeName}`] = knownNodes[nodeName];
|
||||
}
|
||||
this.known.credentials = await this.readJSON('dist/known/credentials.json');
|
||||
|
||||
this.types.nodes = await this.readJSON('dist/types/nodes.json');
|
||||
|
||||
Reference in New Issue
Block a user