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.6 to 2.1.7

5

HISTORY.md

@@ -0,1 +1,6 @@

2.1.7 / 2014-11-19
==================
* Avoid errors from enumerables on `Object.prototype`
2.1.6 / 2014-10-16

@@ -2,0 +7,0 @@ ==================

6

index.js

@@ -147,4 +147,6 @@ /*!

// Set headers
for (var header in headers) {
res.setHeader(header, headers[header]);
var keys = Object.keys(headers);
for (var i = 0; i < keys.length; i++) {
var key = keys[i];
res.setHeader(key, headers[key]);
}

@@ -151,0 +153,0 @@

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

@@ -20,6 +20,5 @@ "license": "MIT",

"istanbul": "0.3.2",
"mocha": "~1.21.5",
"mocha": "~2.0.1",
"proxyquire": "~1.0.1",
"should": "~4.0.1",
"supertest": "~0.14.0"
"supertest": "~0.15.0"
},

@@ -26,0 +25,0 @@ "files": [

@@ -11,2 +11,13 @@ # serve-favicon

Why use this module?
- User agents request `favicon.ico` frequently and indiscriminately, so you
may wish to exclude these requests from your logs by using this middleware
before your logger middleware.
- This module caches the icon in memory to improve performance by skipping
disk access.
- This module provides an `ETag` based on the contents of the icon, rather
than file system properties.
- This module will serve with the most compatible `Content-Type`.
## Install

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