MCPcopy Index your code
hub / github.com/simstudioai/sim / findFirst

Function findFirst

apps/sim/tools/workday/soap.ts:537–544  ·  view source on GitHub ↗
(node: XmlNode, localName: string)

Source from the content-addressed store, hash-verified

535}
536
537function findFirst(node: XmlNode, localName: string): XmlNode | null {
538 if (node.localName === localName) return node
539 for (const child of node.children) {
540 const found = findFirst(child, localName)
541 if (found) return found
542 }
543 return null
544}
545
546function extractFaultMessage(envelope: XmlNode): string | null {
547 const fault = findFirst(envelope, 'Fault')

Callers 2

extractFaultMessageFunction · 0.85
callOperationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected