mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-21 02:56:40 -08:00
fix(core): Prefix package name in supportedNodes
on generated types as well (#12514)
This commit is contained in:
parent
41e5d10d40
commit
4a1a999362
|
@ -323,7 +323,15 @@ export class LoadNodesAndCredentials {
|
|||
name: `${packageName}.${name}`,
|
||||
})),
|
||||
);
|
||||
this.types.credentials = this.types.credentials.concat(types.credentials);
|
||||
this.types.credentials = this.types.credentials.concat(
|
||||
types.credentials.map(({ supportedNodes, ...rest }) => ({
|
||||
...rest,
|
||||
supportedNodes:
|
||||
loader instanceof PackageDirectoryLoader
|
||||
? supportedNodes?.map((nodeName) => `${loader.packageName}.${nodeName}`)
|
||||
: undefined,
|
||||
})),
|
||||
);
|
||||
|
||||
// Nodes and credentials that have been loaded immediately
|
||||
for (const nodeTypeName in loader.nodeTypes) {
|
||||
|
|
Loading…
Reference in a new issue