MCPcopy
hub / github.com/prisma/prisma / onEvent

Function onEvent

packages/cli/src/studio-entry.ts:45–52  ·  view source on GitHub ↗
(event: Parameters<NonNullable<StudioProps['onEvent']>>[0])

Source from the content-addressed store, hash-verified

43})
44
45const onEvent = (event: Parameters<NonNullable<StudioProps['onEvent']>>[0]) => {
46 void fetch('/telemetry', {
47 body: JSON.stringify(event),
48 method: 'POST',
49 }).catch(() => {
50 // noop
51 })
52}
53
54;(window as Window & { __PVCE__?: boolean }).__PVCE__ = true
55

Callers

nothing calls this directly

Calls 2

catchMethod · 0.80
fetchFunction · 0.50

Tested by

no test coverage detected