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

express-negotiator

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-negotiator - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

test/root/baz.nontouch.html

2

lib/expressNegotiator.js

@@ -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});
});
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