(ancestor = 1)
| 19 | @param ancestor Which call in the stack should be used as key. 0 means the exact line where getCallerID is called. Defaults to 1 because it's usually used inside a helper. |
| 20 | */ |
| 21 | export default function getCallerId(ancestor = 1): string { |
| 22 | /* +1 because the first line comes from this function */ |
| 23 | return hashString(getStackLine(new Error('Get stack').stack!, ancestor + 1)); |
| 24 | } |
no test coverage detected