volleyball
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -54,3 +54,3 @@ 'use strict'; // eslint-disable-line semi | ||
let reqLine = chalk.dim('<-') + ` ${shared.id} ` | ||
let reqLine = `${shared.id} ${chalk.dim('<——')} ` | ||
reqLine += `${chalk.bold.underline(req.method)} ${req.url} ` | ||
@@ -76,7 +76,7 @@ if (bytes) reqLine += chalk.blue(filesize(bytes)) + sp | ||
let resLine = ` ${shared.id} ` + chalk.dim('->') + sp | ||
let resLine = `${shared.id} ${chalk.dim('——>')} ` | ||
resLine += chalk[statusColor](`${status} ${meaning}`) + sp | ||
if (bytes) resLine += chalk.blue(filesize(bytes)) + sp | ||
if (type) resLine += chalk.blue.dim(type) + sp | ||
resLine += chalk.dim(`(<-> ${msDiff(shared.time)} ms)`) | ||
resLine += chalk.dim(`(<—> ${msDiff(shared.time)} ms)`) | ||
@@ -83,0 +83,0 @@ shared.logger(resLine) |
{ | ||
"name": "volleyball", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "🏐 Tiny HTTP logger for Express showing asynchronous requests and responses", | ||
@@ -5,0 +5,0 @@ "engines": { |
@@ -1,3 +0,3 @@ | ||
[![npm version](https://img.shields.io/npm/v/volleyball.svg?maxAge=3600)](https://www.npmjs.com/package/potential) | ||
[![Codeship](https://img.shields.io/codeship/6f38c760-44b0-0134-bda6-02154be91b77.svg)](https://codeship.com/projects/155189) | ||
[![npm version](https://img.shields.io/npm/v/volleyball.svg?maxAge=3600)](https://www.npmjs.com/package/volleyball) | ||
[![Codeship](https://img.shields.io/codeship/6f38c760-44b0-0134-bda6-02154be91b77.svg)](https://codeship.com/projects/168493) | ||
[![Greenkeeper.io is keeping this repo's dependencies up to date](https://img.shields.io/badge/greenkeeper.io-monitoring-brightgreen.svg?maxAge=3600)](https://greenkeeper.io/) | ||
@@ -16,3 +16,3 @@ | ||
![Screenshot](https://cloud.githubusercontent.com/assets/7230206/17653596/ff26ea3a-6265-11e6-8b6d-5f8f5e3f19c6.jpg) | ||
![Screenshot](https://cloud.githubusercontent.com/assets/7230206/17654589/912d68b2-6272-11e6-9b49-1858fe20c6a6.jpg) | ||
@@ -19,0 +19,0 @@ Volleyball is a minimal Connect-style middleware function which logs incoming requests and outgoing responses as separate events. It optionally supports the [`debug`](https://github.com/visionmedia/debug#readme) module. |
10483