fix(core): Handle versioned custom nodes correctly (#5313)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2023-02-10 18:33:04 +01:00
committed by GitHub
parent 309c995364
commit 59f5c4221e
3 changed files with 11 additions and 12 deletions

View File

@@ -1,7 +1,7 @@
import * as path from 'path';
import { readFile } from 'fs/promises';
import glob from 'fast-glob';
import { jsonParse, LoggerProxy as Logger } from 'n8n-workflow';
import { jsonParse, getVersionedNodeTypeAll, LoggerProxy as Logger } from 'n8n-workflow';
import type {
CodexData,
DocumentationLink,
@@ -133,7 +133,9 @@ export abstract class DirectoryLoader {
version: nodeVersion,
});
this.types.nodes.push(tempNode.description);
getVersionedNodeTypeAll(tempNode).forEach(({ description }) => {
this.types.nodes.push(description);
});
}
protected loadCredentialFromFile(credentialName: string, filePath: string): void {