Socket
Socket
Sign inDemoInstall

negotiator

Package Overview
Dependencies
Maintainers
1
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.4.6 to 0.4.7

1

lib/language.js

@@ -53,2 +53,3 @@ module.exports = preferredLanguages;

var p = parseLanguage(language)
if (!p) return null;
var s = 0;

@@ -55,0 +56,0 @@ if(spec.full === p.full){

@@ -60,2 +60,7 @@ module.exports = preferredMediaTypes;

var s = 0;
if (!p) {
return null;
}
if(spec.type == p.type) {

@@ -62,0 +67,0 @@ s |= 4

2

package.json
{
"name": "negotiator",
"description": "HTTP content negotiation",
"version": "0.4.6",
"version": "0.4.7",
"author": "Federico Romero <federico.romero@outboxlabs.com>",

@@ -6,0 +6,0 @@ "contributors": ["Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)"],

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