ua-parser-js
Advanced tools
Comparing version 0.4.6 to 0.4.7
{ | ||
"title": "UA-Parser.JS", | ||
"name": "ua-parser-js", | ||
"version": "0.4.6", | ||
"version": "0.4.7", | ||
"author": "Faisal Salman <fyzlman@gmail.com> (http://faisalman.com)", | ||
@@ -6,0 +6,0 @@ "description": "Lightweight JavaScript-based user-agent string parser", |
@@ -1,2 +0,2 @@ | ||
// UA-Parser.JS v0.4.6 | ||
// UA-Parser.JS v0.4.7 | ||
// Lightweight JavaScript-based User-Agent string parser | ||
@@ -137,12 +137,19 @@ // https://github.com/faisalman/ua-parser-js | ||
// Trident based | ||
/(avant\sbrowser|iemobile|slimbrowser)[\/\s]?((\d+)?[\w\.]*)/i, // Avant/IEMobile/SlimBrowser | ||
/(avant\sbrowser|iemobile|slimbrowser|baidubrowser)[\/\s]?((\d+)?[\w\.]*)/i, | ||
// Avant/IEMobile/SlimBrowser/Baidu | ||
/ms(ie)\s((\d+)?[\w\.]+)/i, // Internet Explorer | ||
// Webkit/KHTML based | ||
/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|series60|bolt)\/((\d+)?[\w\.]+)/i, | ||
/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|s60|series60|ovibrowser|bolt)\/((\d+)?[\w\.]+)/i, | ||
// Chromium/Flock/RockMelt/Midori/Epiphany/Silk/Skyfire/S60/Bolt | ||
/(chrome|omniweb|arora|dolfin|[tizenoka]{5}\s?browser)\/((\d+)?[\w\.]+)/i, | ||
// Chrome/OmniWeb/Arora/Dolphin/Tizen/Nokia | ||
/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/((\d+)?[\w\.]+)/i, | ||
// Chrome/OmniWeb/Arora/Tizen/Nokia | ||
], ['name', 'version', 'major'], [ | ||
/(dolfin)\/((\d+)?[\w\.]+)/i // Dolphin | ||
], [['name', 'Dolphin'], 'version', 'major'], [ | ||
/(yabrowser)\/((\d+)?[\w\.]+)/i // Yandex | ||
], [['name', 'Yandex'], 'version', 'major'], [ | ||
/(?:android.+(crmo|crios))\/((\d+)?[\w\.]+)/i, // Chrome for Android/iOS | ||
@@ -168,2 +175,3 @@ ], [['name', 'Chrome'], 'version', 'major'], [ | ||
// Other | ||
/(ucbrowser)\/?((\d+)?[\w\.]+)/i, // UCBrowser | ||
/(lynx|dillo|icab|doris)[\/\s]?((\d+)?[\w\.]+)/i, // Lynx/Dillo/iCab/Doris | ||
@@ -176,3 +184,5 @@ /(gobrowser)\/?[\d\.]*/i // GoBrowser | ||
/\(((ipad|playbook));/i, // iPad/PlayBook | ||
/\((ipad|playbook);[\w\s\);-]+(rim|apple)/i // iPad/PlayBook | ||
], ['model', 'vendor', ['type', 'Tablet']], [ | ||
/(hp).+(touchpad)/i, // HP TouchPad | ||
@@ -184,3 +194,5 @@ /(kindle)\/([\w\.]+)/i, // Kindle | ||
/\(((ip[honed]+));/i, // iPod/iPhone | ||
/\((ip[honed]+);.+(apple)/i // iPod/iPhone | ||
], ['model', 'vendor', ['type', 'Mobile']], [ | ||
/(blackberry)[\s-]?(\w+)/i, // BlackBerry | ||
@@ -231,3 +243,6 @@ /(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|huawei|meizu|motorola)[\s_-]?([\w-]+)*/i, | ||
/(lg)[e;\s-\/]+(\w+)*/i | ||
], [['vendor', 'LG'], 'model', ['type', 'Mobile']] | ||
], [['vendor', 'LG'], 'model', ['type', 'Mobile']], [ | ||
/(mobile|tablet);.+rv\:.+gecko\//i // Unidentifiable | ||
], ['type', 'vendor', 'model'] | ||
], | ||
@@ -234,0 +249,0 @@ |
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
20983
290