This repository was archived by the owner on Apr 6, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3535 "execa" : " ^6.1.0" ,
3636 "flat" : " ^5.0.2" ,
3737 "giget" : " ^0.1.7" ,
38+ "h3" : " ^0.7.21" ,
3839 "jiti" : " ^1.16.0" ,
3940 "listhen" : " ^0.3.4" ,
4041 "mlly" : " ^0.5.16" ,
Original file line number Diff line number Diff line change 11import { promises as fsp } from 'node:fs'
22import { join , resolve } from 'pathe'
3- import { createApp , lazyHandle } from 'h3'
3+ import { createApp , defineLazyHandler } from 'h3'
44import { listen } from 'listhen'
55import { writeTypes } from '../utils/prepare'
66import { loadKit } from '../utils/kit'
@@ -37,7 +37,7 @@ export default defineNuxtCommand({
3737
3838 const app = createApp ( )
3939
40- const serveFile = ( filePath : string ) => lazyHandle ( async ( ) => {
40+ const serveFile = ( filePath : string ) => defineLazyHandler ( async ( ) => {
4141 const contents = await fsp . readFile ( filePath , 'utf-8' )
4242 return ( _req , res ) => { res . end ( contents ) }
4343 } )
Original file line number Diff line number Diff line change @@ -10470,6 +10470,7 @@ __metadata:
1047010470 flat : ^5.0.2
1047110471 fsevents : ~2.3.2
1047210472 giget : ^0.1.7
10473+ h3 : ^0.7.21
1047310474 jiti : ^1.16.0
1047410475 listhen : ^0.3.4
1047510476 mlly : ^0.5.16
You can’t perform that action at this time.
0 commit comments