express-negotiator
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -58,3 +58,3 @@ var fs = require('fs'), | ||
var userAgentTypes = ['mobile', 'ie', 'chrome', 'phantom', 'safari', 'ios', 'iphone', 'ipad', 'touchpad', 'android', 'opera', 'firefox', 'seamonkey'], | ||
var userAgentTypes = ['mobile', 'touch', 'ie', 'chrome', 'phantom', 'safari', 'ios', 'iphone', 'ipad', 'touchpad', 'android', 'opera', 'firefox', 'seamonkey'], | ||
isValidByUserAgentType = {}; | ||
@@ -61,0 +61,0 @@ |
@@ -25,3 +25,3 @@ { | ||
], | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"engines": { | ||
@@ -31,3 +31,3 @@ "node": "*" | ||
"dependencies": { | ||
"bowser-papandreou": "=0.2.0-patch2", | ||
"bowser-papandreou": "=0.2.0-patch3", | ||
"memoizeasync": "=0.0.1", | ||
@@ -34,0 +34,0 @@ "memoizesync": "=0.0.1", |
@@ -80,2 +80,4 @@ var path = require('path'), | ||
createTest('/bar Accept: */html, a mobile user agent and userAgent:true', {url: '/bar', headers: {accept: '*/html', 'user-agent': 'Mozilla/5.0 (iPad; U; CPU OS 4_3_2 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8H7 Safari/6533.18.5"'}}, '/bar.mobile.html', {userAgent: true}); | ||
createTest('/baz Accept: */html, a non-touch user agent and userAgent:true', {url: '/baz', headers: {accept: '*/html', 'user-agent': 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C)'}}, '/baz.nontouch.html', {userAgent: true}); | ||
createTest('/baz Accept: */html, a touch user agent and userAgent:true', {url: '/baz', headers: {accept: '*/html', 'user-agent': 'Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; ARM; Trident/6.0; Touch)'}}, '/baz.touch.html', {userAgent: true}); | ||
}); |
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
33133
32
380