mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-21 11:49:59 +00:00
fix(core): Prefix package name in supportedNodes on generated types as well (#12514)
This commit is contained in:
committed by
GitHub
parent
41e5d10d40
commit
4a1a999362
@@ -323,7 +323,15 @@ export class LoadNodesAndCredentials {
|
|||||||
name: `${packageName}.${name}`,
|
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
|
// Nodes and credentials that have been loaded immediately
|
||||||
for (const nodeTypeName in loader.nodeTypes) {
|
for (const nodeTypeName in loader.nodeTypes) {
|
||||||
|
|||||||
Reference in New Issue
Block a user