()
| 26 | } |
| 27 | |
| 28 | export function getUserCaller (): Trace | null { |
| 29 | if (!import.meta.dev) { |
| 30 | return null |
| 31 | } |
| 32 | |
| 33 | const { source, line, column } = captureStackTrace().find(entry => !entry.source.startsWith(distURL)) ?? {} |
| 34 | |
| 35 | if (!source) { |
| 36 | return null |
| 37 | } |
| 38 | |
| 39 | return { |
| 40 | source: source.replace(/^file:\/\//, ''), |
| 41 | line, |
| 42 | column, |
| 43 | } |
| 44 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…