MCPcopy
hub / github.com/nuxt/nuxt / getUserCaller

Function getUserCaller

packages/nuxt/src/app/utils.ts:28–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26}
27
28export 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}

Callers 2

useAsyncDataFunction · 0.90
buildAsyncDataFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…