deps.. travis
This commit is contained in:
@ -1,4 +1,3 @@
|
|||||||
language: node_js
|
language: node_js
|
||||||
node_js:
|
node_js:
|
||||||
- '5.0'
|
- 'node'
|
||||||
- '4.2'
|
|
||||||
|
@ -135,12 +135,12 @@ function localWebServer (options) {
|
|||||||
if (!log.format) {
|
if (!log.format) {
|
||||||
const streamLogStats = require('stream-log-stats')
|
const streamLogStats = require('stream-log-stats')
|
||||||
log.options.stream = streamLogStats({ refreshRate: 500 })
|
log.options.stream = streamLogStats({ refreshRate: 500 })
|
||||||
app.use(morgan.middleware('common', log.options))
|
app.use(morgan('common', log.options))
|
||||||
} else if (log.format === 'logstalgia') {
|
} else if (log.format === 'logstalgia') {
|
||||||
morgan.token('date', logstalgiaDate)
|
morgan.token('date', logstalgiaDate)
|
||||||
app.use(morgan.middleware('combined', log.options))
|
app.use(morgan('combined', log.options))
|
||||||
} else {
|
} else {
|
||||||
app.use(morgan.middleware(log.format, log.options))
|
app.use(morgan(log.format, log.options))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -43,7 +43,7 @@
|
|||||||
"koa-convert": "^1.1.0",
|
"koa-convert": "^1.1.0",
|
||||||
"koa-etag": "^2.1.0",
|
"koa-etag": "^2.1.0",
|
||||||
"koa-json": "^1.1.1",
|
"koa-json": "^1.1.1",
|
||||||
"koa-morgan": "^0.4.0",
|
"koa-morgan": "^1",
|
||||||
"koa-rewrite": "75lb/rewrite",
|
"koa-rewrite": "75lb/rewrite",
|
||||||
"koa-route": "^3",
|
"koa-route": "^3",
|
||||||
"koa-send": "^3.1.0",
|
"koa-send": "^3.1.0",
|
||||||
|
Reference in New Issue
Block a user