serve-favicon
Advanced tools
Comparing version 2.1.7 to 2.2.0
@@ -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 @@ ================== |
@@ -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) { |
{ | ||
"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 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10410
141
4
+ Addedparseurl@~1.3.0
+ Addedms@0.7.0(transitive)
+ Addedparseurl@1.3.3(transitive)
- Removedms@0.6.2(transitive)
Updatedetag@~1.5.1
Updatedms@0.7.0