- Add Strike API credentials configuration - Implement Strike node with 9 resources (Account, Balance, Currency Exchange, Deposit, Invoice, Payment, Payment Method, Payout, Rates) - Add comprehensive operation descriptions for all resources - Include CLAUDE.MD documentation - Set up build configuration with TypeScript, ESLint, and Prettier 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
16 lines
452 B
JavaScript
16 lines
452 B
JavaScript
/**
|
|
* Returns the node with the given name if it exists else null
|
|
*
|
|
* @param {INodes} nodes Nodes to search in
|
|
* @param {string} name Name of the node to return
|
|
*/
|
|
export function getNodeByName(nodes, name) {
|
|
if (Array.isArray(nodes)) {
|
|
return nodes.find((node) => node.name === name) || null;
|
|
}
|
|
if (nodes.hasOwnProperty(name)) {
|
|
return nodes[name];
|
|
}
|
|
return null;
|
|
}
|
|
//# sourceMappingURL=get-node-by-name.js.map
|