Skip to content
Myr

fix(app): export `fire()` correctly (#1106)

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 f52e3c8 · Browse files · 3 files+16 added−14 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+16 added−14 removed

  • other:+16 added−14 removed

3 files+16 added−14 removed

modified:deno_dist/hono-base.ts+8 added
310 unmodified lines
311 const path = /^https?:\/\//.test(input) ? input : `http://localhost${mergePath('/', input)}`312 const req = new Request(path, requestInit)313 return await this.fetch(req)314 }315316 fire = () => {317 // eslint-disable-next-line @typescript-eslint/ban-ts-comment318 // @ts-ignore319 addEventListener('fetch', (event: FetchEvent): void => {320 void event.respondWith(this.handleEvent(event))321 })322 }323}324325export { Hono as HonoBase }
modified:src/hono-base.ts+8 added
310 unmodified lines
311 const path = /^https?:\/\//.test(input) ? input : `http://localhost${mergePath('/', input)}`312 const req = new Request(path, requestInit)313 return await this.fetch(req)314 }315316 fire = () => {317 // eslint-disable-next-line @typescript-eslint/ban-ts-comment318 // @ts-ignore319 addEventListener('fetch', (event: FetchEvent): void => {320 void event.respondWith(this.handleEvent(event))321 })322 }323}324325export { Hono as HonoBase }
modified:src/index.ts-14 removed