Socket
Socket
Sign inDemoInstall

serve-favicon

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

serve-favicon - npm Package Compare versions

Comparing version 2.1.7 to 2.2.0

14

HISTORY.md

@@ -0,1 +1,15 @@

2.2.0 / 2014-12-18
==================
* Support query string in the URL
* deps: etag@~1.5.1
- deps: crc@3.2.1
* deps: ms@0.7.0
- Add `milliseconds`
- Add `msecs`
- Add `secs`
- Add `mins`
- Add `hrs`
- Add `yrs`
2.1.7 / 2014-11-19

@@ -2,0 +16,0 @@ ==================

6

index.js

@@ -18,2 +18,3 @@ /*!

var ms = require('ms');
var parseUrl = require('parseurl');
var path = require('path');

@@ -62,3 +63,6 @@ var resolve = path.resolve;

return function favicon(req, res, next){
if ('/favicon.ico' !== req.url) return next();
if (parseUrl(req).pathname !== '/favicon.ico') {
next();
return;
}

@@ -65,0 +69,0 @@ if ('GET' !== req.method && 'HEAD' !== req.method) {

11

package.json
{
"name": "serve-favicon",
"description": "favicon serving middleware with caching",
"version": "2.1.7",
"version": "2.2.0",
"author": "Douglas Christopher Wilson <doug@somethingdoug.com>",

@@ -14,10 +14,11 @@ "license": "MIT",

"dependencies": {
"etag": "~1.5.0",
"etag": "~1.5.1",
"fresh": "0.2.4",
"ms": "0.6.2"
"ms": "0.7.0",
"parseurl": "~1.3.0"
},
"devDependencies": {
"istanbul": "0.3.2",
"istanbul": "0.3.5",
"mocha": "~2.0.1",
"proxyquire": "~1.0.1",
"proxyquire": "~1.2.0",
"supertest": "~0.15.0"

@@ -24,0 +25,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