Function
getCredentialParam
(paramName: string, credentialData: ICommonObject, nodeData: INodeData, defaultValue?: any)
Source from the content-addressed store, hash-verified
| 684 | } |
| 685 | |
| 686 | export const getCredentialParam = (paramName: string, credentialData: ICommonObject, nodeData: INodeData, defaultValue?: any): any => { |
| 687 | return (nodeData.inputs as ICommonObject)[paramName] ?? credentialData[paramName] ?? defaultValue ?? undefined |
| 688 | } |
| 689 | |
| 690 | // reference https://www.freeformatter.com/json-escape.html |
| 691 | const jsonEscapeCharacters = [ |
Tested by
no test coverage detected