mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-17 22:21:04 +00:00
fix(nitro): table
esm compatibility (resolves #877)
This commit is contained in:
parent
c12a6564a0
commit
961d142039
@ -1,6 +1,6 @@
|
|||||||
import hasha from 'hasha'
|
import hasha from 'hasha'
|
||||||
import { relative } from 'pathe'
|
import { relative } from 'pathe'
|
||||||
import { table, getBorderCharacters } from 'table'
|
import table from 'table'
|
||||||
import isPrimitive from 'is-primitive'
|
import isPrimitive from 'is-primitive'
|
||||||
import stdenv from 'std-env'
|
import stdenv from 'std-env'
|
||||||
import type { ServerMiddleware } from '../../server/middleware'
|
import type { ServerMiddleware } from '../../server/middleware'
|
||||||
@ -58,12 +58,12 @@ function dumpMiddleware (middleware: ServerMiddleware[]) {
|
|||||||
dumpObject(props)
|
dumpObject(props)
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
return table([
|
return table.table([
|
||||||
['Route', 'Handle', 'Options'],
|
['Route', 'Handle', 'Options'],
|
||||||
...data
|
...data
|
||||||
], {
|
], {
|
||||||
singleLine: true,
|
singleLine: true,
|
||||||
border: getBorderCharacters('norc')
|
border: table.getBorderCharacters('norc')
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user