Socket
Socket
Sign inDemoInstall

accepts

Package Overview
Dependencies
Maintainers
7
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

accepts - npm Package Compare versions

Comparing version 1.0.6 to 1.0.7

4

History.md

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

1.0.7 / 2014-07-04
==================
* Fix wrong type returned from `type` when match after unknown extension
1.0.6 / 2014-06-24

@@ -3,0 +7,0 @@ ==================

4

index.js

@@ -63,4 +63,4 @@ var Negotiator = require('negotiator')

if (!this.headers.accept) return types[0];
var mimes = types.map(extToMime).filter(validMime);
var accepts = n.mediaTypes(mimes);
var mimes = types.map(extToMime);
var accepts = n.mediaTypes(mimes.filter(validMime));
var first = accepts[0];

@@ -67,0 +67,0 @@ if (!first) return false;

{
"name": "accepts",
"description": "Higher-level content negotiation",
"version": "1.0.6",
"version": "1.0.7",
"author": "Jonathan Ong <me@jongleberry.com> (http://jongleberry.com)",

@@ -6,0 +6,0 @@ "license": "MIT",

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