negotiator
Advanced tools
Comparing version 0.4.6 to 0.4.7
@@ -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 |
{ | ||
"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/)"], |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15796
418