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

vigour-ua

Package Overview
Dependencies
Maintainers
2
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vigour-ua - npm Package Compare versions

Comparing version 3.1.3 to 3.1.4

7

index.js

@@ -27,3 +27,2 @@ /**

var _phone = 'phone'
var _firetv = 'firetv'
var _facebook = 'facebook'

@@ -43,3 +42,3 @@ var _edge = 'edge'

var _v = _ua.match(
new RegExp('((([\\/ ]' + _version + '|' + arr[ 0 ] + '(?!.+' + _version + '))[\/ ])| rv:)([0-9]{1,4}\\.[0-9]{0,2})')
new RegExp('((([\\/ ]' + _version + '|' + arr[ 0 ] + '(?!.+' + _version + '))[/ ])| rv:)([0-9]{1,4}\\.[0-9]{0,2})')
)

@@ -58,3 +57,3 @@ obj[_version] = _v ? Number(_v[4]) : 0

[ _facebook ],
[ _chrome + '|crios\/', _webkit, _chrome ],
[ _chrome + '|crios/', _webkit, _chrome ],
[ _edge, _webkit, _edge ],

@@ -97,3 +96,3 @@ [ node, false, true ]

[ _tablet + '|amazon-fireos|nexus (?=[^1-6])\\d{1,2}', _tablet ],
[ 'tv|smarttv|googletv|appletv|hbbtv|pov_tv|netcast.tv|webos.+large|viera|aft[bsm]|bravia', 'tv' ],
[ '\\btv\\b|smarttv|googletv|appletv|hbbtv|pov_tv|netcast.tv|webos.+large|viera|aft[bsm]|bravia', 'tv' ],
[ 'mozilla\\/5.0 \\(compatible; .+http:\\/\\/', 'bot' ],

@@ -100,0 +99,0 @@ [ node, 'server' ]

{
"name": "vigour-ua",
"version": "3.1.3",
"version": "3.1.4",
"description": "lightweight ua parser",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -42,2 +42,11 @@ 'use strict'

test('devices - iPhone wrapper', function (t) {
t.plan(useragents.ployNative.length * 2)
check({
list: useragents.ployNative,
platform: 'ios',
device: 'phone'
}, t)
})
test('devices - iPod', function (t) {

@@ -114,4 +123,2 @@ t.plan(useragents.iPod.length * 2)

function check (params, t) {

@@ -118,0 +125,0 @@ var result

@@ -44,3 +44,3 @@

'Mozilla/5.0 (iPhone; CPU iPhone OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Mobile/13B137',
"Mozilla/5.0 (iPhone; CPU iPhone OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B143 Safari/601.1",
'Mozilla/5.0 (iPhone; CPU iPhone OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B143 Safari/601.1',
// ios 4

@@ -65,3 +65,3 @@ 'Mozilla/5.0 (iPod; U; CPU iPhone OS 4_3_3 like Mac OS X; ja-jp) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8J2 Safari/6533.18.5',

// ios 9
"Mozilla/5.0 (iPad; CPU OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B143 Safari/601.1",
'Mozilla/5.0 (iPad; CPU OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B143 Safari/601.1',
// ios 7

@@ -112,3 +112,5 @@ 'Mozilla/5.0 (iPad; CPU OS 7_0 like Mac OS X) AppleWebKit/537.51.1 (KHTML, like Gecko) CriOS/30.0.1599.12 Mobile/11A465 Safari/8536.25 (3B92C18B-D9DE-4CB7-A02A-22FD2AF17C8F)'

exports.ployNative = [
"Mozilla/5.0 (iPhone; CPU iPhone OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B143 Safari/601.1 ploy-native"
'Mozilla/5.0 (iPhone; CPU iPhone OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B143 Safari/601.1 ploy-native',
'Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_1 like Mac OS X) AppleWebKit/603.1.30 (KHTML, like Gecko) Mobile/14E304 *VG*ploy-native,webkit,v1.0.0',
'Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_1 like Mac OS X) AppleWebKit/603.1.30 (KHTML, like Gecko) Mobile/14E304 *VG*ploy-native,webkit,com.example.tvae,v1.0.0'
]

@@ -115,0 +117,0 @@

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