fix(core): Prefix package name in supportedNodes on generated types as well (#12514)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™ 2025-01-15 13:06:02 +01:00 committed by GitHub
parent 41e5d10d40
commit 4a1a999362
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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) {