-
-
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.
Update patch version to 1.0.33 as a mirror of 0.7.33
- Loading branch information
Showing
9 changed files
with
63 additions
and
13 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.32", | ||
"version": "1.0.33", | ||
"authors": [ | ||
"Faisal Salman <[email protected]>" | ||
], | ||
|
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.32", | ||
"version": "1.0.33", | ||
"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.32 | ||
/* UAParser.js v1.0.33 | ||
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.32', | ||
var LIBVERSION = '1.0.33', | ||
EMPTY = '', | ||
UNKNOWN = '?', | ||
FUNC_TYPE = 'function', | ||
|
@@ -93,7 +93,7 @@ | |
}, | ||
trim = function (str, len) { | ||
if (typeof(str) === STR_TYPE) { | ||
str = str.replace(/^\s\s*/, EMPTY).replace(/\s\s*$/, EMPTY); | ||
str = str.replace(/^\s\s*/, EMPTY); | ||
return typeof(len) === UNDEF_TYPE ? str : str.substring(0, UA_MAX_LENGTH); | ||
} | ||
}; | ||
|
@@ -330,7 +330,10 @@ | |
/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, | ||
// Polaris/Lynx/Dillo/iCab/Doris/Amaya/w3m/NetSurf/Sleipnir/Obigo/Mosaic/Go/ICE/UP.Browser | ||
/(links) \(([\w\.]+)/i // Links | ||
], [NAME, VERSION] | ||
], [NAME, VERSION], [ | ||
|
||
/(cobalt)\/([\w\.]+)/i // Cobalt | ||
], [NAME, [VERSION, /master.|lts./, ""]] | ||
], | ||
|
||
cpu : [[ | ||
|
@@ -387,6 +390,8 @@ | |
/applecoremedia\/[\w\.]+ \((ipad)/i, | ||
/\b(ipad)\d\d?,\d\d?[;\]].+ios/i | ||
], [MODEL, [VENDOR, APPLE], [TYPE, TABLET]], [ | ||
/(macintosh);/i | ||
], [MODEL, [VENDOR, APPLE]], [ | ||
|
||
// Huawei | ||
/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i | ||
|
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