Comparing version 2.2.0 to 2.2.1
@@ -5,3 +5,3 @@ 'use strict'; | ||
var FileSend = require('../index'); | ||
var colors = require('colors/safe'); | ||
var chalk = require('chalk'); | ||
var cluster = require('cluster'); | ||
@@ -21,8 +21,8 @@ var NUMCPUS = require('os').cpus().length; | ||
send.pipe(response).on('headers', function(headers) { | ||
var message = 'URL : ' + colors.green.bold(send.url) | ||
+ '\r\nPATH : ' + colors.yellow.bold(send.path) | ||
+ '\r\nROOT : ' + colors.magenta.bold(send.root) | ||
+ '\r\nREALPATH : ' + colors.magenta.bold(send.realpath) | ||
+ '\r\nSTATUS : ' + colors.cyan.bold(send.statusCode) | ||
+ '\r\nHEADERS : ' + colors.cyan.bold(JSON.stringify(headers, null, 2)) | ||
var message = 'URL : ' + chalk.green.bold(send.url) | ||
+ '\r\nPATH : ' + chalk.yellow.bold(send.path) | ||
+ '\r\nROOT : ' + chalk.magenta.bold(send.root) | ||
+ '\r\nREALPATH : ' + chalk.magenta.bold(send.realpath) | ||
+ '\r\nSTATUS : ' + chalk.cyan.bold(send.statusCode) | ||
+ '\r\nHEADERS : ' + chalk.cyan.bold(JSON.stringify(headers, null, 2)) | ||
+ '\r\n-----------------------------------------------------------------------------------------'; | ||
@@ -43,4 +43,4 @@ | ||
console.log( | ||
colors.green.bold('Server run at:'), | ||
colors.cyan.bold(address.address + ':' + address.port), | ||
chalk.green.bold('Server run at:'), | ||
chalk.cyan.bold(address.address + ':' + address.port), | ||
'\r\n-----------------------------------------------------------------------------------------' | ||
@@ -47,0 +47,0 @@ ); |
{ | ||
"name": "file-send", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"description": "A http file send", | ||
@@ -37,3 +37,2 @@ "author": { | ||
"destroy": "^1.0.4", | ||
"colors": "^1.1.2", | ||
"micromatch": "^3.1.0", | ||
@@ -40,0 +39,0 @@ "encodeurl": "^1.0.1", |
@@ -139,3 +139,3 @@ # file-send | ||
var FileSend = require('../index'); | ||
var colors = require('colors/safe'); | ||
var chalk = require('chalk'); | ||
var cluster = require('cluster'); | ||
@@ -155,8 +155,8 @@ var NUMCPUS = require('os').cpus().length; | ||
send.pipe(response).on('headers', function(headers) { | ||
var message = 'URL : ' + colors.green.bold(send.url) + | ||
'\r\nPATH : ' + colors.yellow.bold(send.path) + | ||
'\r\nROOT : ' + colors.magenta.bold(send.root) + | ||
'\r\nREALPATH : ' + colors.magenta.bold(send.realpath) + | ||
'\r\nSTATUS : ' + colors.cyan.bold(send.statusCode) + | ||
'\r\nHEADERS : ' + colors.cyan.bold(JSON.stringify(headers, null, 2)) + | ||
var message = 'URL : ' + chalk.green.bold(send.url) + | ||
'\r\nPATH : ' + chalk.yellow.bold(send.path) + | ||
'\r\nROOT : ' + chalk.magenta.bold(send.root) + | ||
'\r\nREALPATH : ' + chalk.magenta.bold(send.realpath) + | ||
'\r\nSTATUS : ' + chalk.cyan.bold(send.statusCode) + | ||
'\r\nHEADERS : ' + chalk.cyan.bold(JSON.stringify(headers, null, 2)) + | ||
'\r\n-----------------------------------------------------------------------------------------'; | ||
@@ -177,4 +177,4 @@ | ||
console.log( | ||
colors.green.bold('Server run at:'), | ||
colors.cyan.bold(address.address + ':' + address.port), | ||
chalk.green.bold('Server run at:'), | ||
chalk.cyan.bold(address.address + ':' + address.port), | ||
'\r\n-----------------------------------------------------------------------------------------' | ||
@@ -181,0 +181,0 @@ ); |
11
46443
- Removedcolors@^1.1.2
- Removedcolors@1.4.0(transitive)