Skip to content
Myr

fix(hono-base): don't use Symbol for `COMPOSED_HANDLER` (#3773)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Yusuke Wada · committed by GitHub · parent fd6e5bd · Browse files · 3 files+6 added−6 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+6 added−6 removed

  • other:+6 added−6 removed

3 files+6 added−6 removed

added:src/utils/constants.ts+4 added
modified:src/utils/handler.ts+1 added-1 removed
modified:src/hono-base.ts+1 added-5 removed
24 unmodified lines
25 OnHandlerInterface,26 RouterRoute,27 Schema,28} from './types'29import { COMPOSED_HANDLER } from './utils/constants'30import { getPath, getPathNoStrict, mergePath } from './utils/url'3131/**32 * Symbol used to mark a composed handler.33 */34export const COMPOSED_HANDLER = Symbol('composedHandler')3532const notFoundHandler = (c: Context) => {33 return c.text('404 Not Found', 404)34}35
481 unmodified lines