Socket
Socket
Sign inDemoInstall

negotiator

Package Overview
Dependencies
Maintainers
3
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

negotiator - npm Package Compare versions

Comparing version 0.5.2 to 0.5.3

5

HISTORY.md

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

0.5.3 / 2015-05-10
==================
* Fix media type parameter matching to be case-insensitive
0.5.2 / 2015-05-06

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

10

lib/mediaType.js

@@ -0,1 +1,9 @@

/**
* negotiator
* Copyright(c) 2012 Isaac Z. Schlueter
* Copyright(c) 2014 Federico Romero
* Copyright(c) 2014-2015 Douglas Christopher Wilson
* MIT Licensed
*/
module.exports = preferredMediaTypes;

@@ -35,3 +43,3 @@ preferredMediaTypes.preferredMediaTypes = preferredMediaTypes;

}).reduce(function (set, p) {
var name = p[0];
var name = p[0].toLowerCase();
var value = p[1];

@@ -38,0 +46,0 @@

2

package.json
{
"name": "negotiator",
"description": "HTTP content negotiation",
"version": "0.5.2",
"version": "0.5.3",
"contributors": [

@@ -6,0 +6,0 @@ "Douglas Christopher Wilson <doug@somethingdoug.com>",

Sorry, the diff of this file is not supported yet

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