-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump version 1.0.38 (mirror of 0.7.38)
- Loading branch information
Showing
10 changed files
with
96 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "ua-parser-js", | ||
"version": "1.0.37", | ||
"version": "1.0.38", | ||
"authors": [ | ||
"Faisal Salman <[email protected]>" | ||
], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"title": "UAParser.js", | ||
"name": "ua-parser-js", | ||
"version": "1.0.37", | ||
"version": "1.0.38", | ||
"author": "Faisal Salman <[email protected]> (http://faisalman.com)", | ||
"description": "Detect Browser, Engine, OS, CPU, and Device type/model from User-Agent data. Supports browser & node.js environment", | ||
"keywords": [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
///////////////////////////////////////////////////////////////////////////////// | ||
/* UAParser.js v1.0.37 | ||
/* UAParser.js v1.0.38 | ||
Copyright © 2012-2021 Faisal Salman <[email protected]> | ||
MIT License *//* | ||
Detect Browser, Engine, OS, CPU, and Device type/model from User-Agent data. | ||
|
@@ -17,7 +17,7 @@ | |
///////////// | ||
|
||
|
||
var LIBVERSION = '1.0.37', | ||
var LIBVERSION = '1.0.38', | ||
EMPTY = '', | ||
UNKNOWN = '?', | ||
FUNC_TYPE = 'function', | ||
|
@@ -223,6 +223,8 @@ | |
], [NAME, VERSION], [ | ||
/opios[\/ ]+([\w\.]+)/i // Opera mini on iphone >= 8.0 | ||
], [VERSION, [NAME, OPERA+' Mini']], [ | ||
/\bop(?:rg)?x\/([\w\.]+)/i // Opera GX | ||
], [VERSION, [NAME, OPERA+' GX']], [ | ||
/\bopr\/([\w\.]+)/i // Opera Webkit | ||
], [VERSION, [NAME, OPERA]], [ | ||
|
||
|
@@ -241,6 +243,8 @@ | |
/(heytap|ovi)browser\/([\d\.]+)/i, // Heytap/Ovi | ||
/(weibo)__([\d\.]+)/i // Weibo | ||
], [NAME, VERSION], [ | ||
/\bddg\/([\w\.]+)/i // DuckDuckGo | ||
], [VERSION, [NAME, 'DuckDuckGo']], [ | ||
/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i // UCBrowser | ||
], [VERSION, [NAME, 'UC'+BROWSER]], [ | ||
/microm.+\bqbcore\/([\w\.]+)/i, // WeChat Desktop for Windows Built-in Browser | ||
|
@@ -300,6 +304,7 @@ | |
/safari (line)\/([\w\.]+)/i, // Line App for iOS | ||
/\b(line)\/([\w\.]+)\/iab/i, // Line App for Android | ||
/(alipay)client\/([\w\.]+)/i, // Alipay | ||
/(twitter)(?:and| f.+e\/([\w\.]+))/i, // Twitter | ||
/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i // Chromium/Instagram/Snapchat | ||
], [NAME, VERSION], [ | ||
/\bgsa\/([\w\.]+) .*safari\//i // Google Search Appliance on iOS | ||
|
@@ -437,6 +442,8 @@ | |
/; (\w+) bui.+ oppo/i, | ||
/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i | ||
], [MODEL, [VENDOR, 'OPPO'], [TYPE, MOBILE]], [ | ||
/\b(opd2\d{3}a?) bui/i | ||
], [MODEL, [VENDOR, 'OPPO'], [TYPE, TABLET]], [ | ||
|
||
// Vivo | ||
/vivo (\w+)(?: bui|\))/i, | ||
|
@@ -673,7 +680,7 @@ | |
], [MODEL, [VENDOR, GOOGLE], [TYPE, WEARABLE]], [ | ||
/droid.+; (wt63?0{2,3})\)/i | ||
], [MODEL, [VENDOR, ZEBRA], [TYPE, WEARABLE]], [ | ||
/(quest( 2| pro)?)/i // Oculus Quest | ||
/(quest( \d| pro)?)/i // Oculus Quest | ||
], [MODEL, [VENDOR, FACEBOOK], [TYPE, WEARABLE]], [ | ||
|
||
/////////////////// | ||
|
@@ -865,7 +872,7 @@ | |
_os[NAME] = undefined; | ||
_os[VERSION] = undefined; | ||
rgxMapper.call(_os, _ua, _rgxmap.os); | ||
if (_isSelfNav && !_os[NAME] && _uach && _uach.platform != 'Unknown') { | ||
if (_isSelfNav && !_os[NAME] && _uach && _uach.platform && _uach.platform != 'Unknown') { | ||
_os[NAME] = _uach.platform | ||
.replace(/chrome os/i, CHROMIUM_OS) | ||
.replace(/macos/i, MAC_OS); // backward compatibility | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters