New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

file-send

Package Overview
Dependencies
Maintainers
1
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

file-send - npm Package Compare versions

Comparing version 2.2.0 to 2.2.1

18

examples/server.js

@@ -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 @@ );

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc