Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

negotiator

Package Overview
Dependencies
Maintainers
1
Versions
28
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.3 to 0.4.4

3

lib/charset.js

@@ -59,3 +59,4 @@ module.exports = preferredCharsets;

function preferredCharsets(accept, provided) {
accept = parseAcceptCharset(accept || '');
// RFC 2616 sec 14.2: no header = *
accept = parseAcceptCharset(accept || '*');
if (provided) {

@@ -62,0 +63,0 @@ return provided.map(function(type) {

@@ -70,3 +70,4 @@ module.exports = preferredLanguages;

function preferredLanguages(accept, provided) {
accept = parseAcceptLanguage(accept || '');
// RFC 2616 sec 14.4: no header = *
accept = parseAcceptLanguage(accept || '*');
if (provided) {

@@ -73,0 +74,0 @@

@@ -88,3 +88,4 @@ module.exports = preferredMediaTypes;

function preferredMediaTypes(accept, provided) {
accept = parseAccept(accept || '');
// RFC 2616 sec 14.2: no header = */*
accept = parseAccept(accept || '*/*');
if (provided) {

@@ -91,0 +92,0 @@ return provided.map(function(type) {

{
"name": "negotiator",
"description": "HTTP content negotiation",
"version": "0.4.3",
"version": "0.4.4",
"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