MCPcopy Create free account
hub / github.com/getsentry/sentry-javascript / middleware

Function middleware

packages/hono/test/shared/applyPatches.test.ts:405–407  ·  view source on GitHub ↗
(_c: unknown, next: () => Promise<void>)

Source from the content-addressed store, hash-verified

403 const OPENAPI = Symbol('openapi');
404 const META = Symbol('meta');
405 const middleware = async function authMiddleware(_c: unknown, next: () => Promise<void>) {
406 await next();
407 };
408 (middleware as any)[OPENAPI] = { security: [{ bearer: [] }] };
409 (middleware as any)[META] = { rateLimit: 100 };
410 (middleware as any).customProp = 'preserved';

Callers 3

middleware.test.tsFile · 0.50
onRequestFunction · 0.50
trpc.test.tsFile · 0.50

Calls 1

nextFunction · 0.85

Tested by

no test coverage detected