Merge branch 'master' into develop

This commit is contained in:
Faisal Salman 2021-04-12 12:12:10 +07:00
commit 75620c7b6c
7 changed files with 36 additions and 24 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "ua-parser-js", "name": "ua-parser-js",
"version": "0.7.27", "version": "0.7.28",
"authors": [ "authors": [
"Faisal Salman <f@faisalman.com>" "Faisal Salman <f@faisalman.com>"
], ],

13
dist/ua-parser.min.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
Package.describe({ Package.describe({
name: 'faisalman:ua-parser-js', name: 'faisalman:ua-parser-js',
version: '0.7.27', version: '0.7.28',
summary: 'Lightweight JavaScript-based user-agent string parser', summary: 'Lightweight JavaScript-based user-agent string parser',
git: 'https://github.com/faisalman/ua-parser-js.git', git: 'https://github.com/faisalman/ua-parser-js.git',
documentation: 'readme.md' documentation: 'readme.md'

View File

@ -1,7 +1,7 @@
{ {
"title": "UAParser.js", "title": "UAParser.js",
"name": "ua-parser-js", "name": "ua-parser-js",
"version": "0.7.27", "version": "0.7.28",
"author": "Faisal Salman <f@faisalman.com> (http://faisalman.com)", "author": "Faisal Salman <f@faisalman.com> (http://faisalman.com)",
"description": "Detect Browser, Engine, OS, CPU, and Device type/model from User-Agent data. Supports browser & node.js environment", "description": "Detect Browser, Engine, OS, CPU, and Device type/model from User-Agent data. Supports browser & node.js environment",
"keywords": [ "keywords": [

View File

@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////
/* UAParser.js v0.7.27 /* UAParser.js v0.7.28
Copyright © 2012-2021 Faisal Salman <f@faisalman.com> Copyright © 2012-2021 Faisal Salman <f@faisalman.com>
MIT License *//* MIT License *//*
Detect Browser, Engine, OS, CPU, and Device type/model from User-Agent data. Detect Browser, Engine, OS, CPU, and Device type/model from User-Agent data.
@ -16,7 +16,8 @@
// Constants // Constants
///////////// /////////////
var LIBVERSION = '0.7.27',
var LIBVERSION = '0.7.28',
EMPTY = '', EMPTY = '',
UNKNOWN = '?', UNKNOWN = '?',
FUNC_TYPE = 'function', FUNC_TYPE = 'function',
@ -213,11 +214,12 @@
browser : [[ browser : [[
/\b(?:crmo|crios)\/([\w\.]+)/i // Chrome for Android/iOS /\b(?:crmo|crios)\/([\w\.]+)/i // Chrome for Android/iOS
], [VERSION, [NAME, CHROME]], [ ], [VERSION, [NAME, 'Chrome']], [
/(?:edgios|edga|edg)\/([\w\.]+)/i // Microsoft Edge /edg(?:e|ios|a)?\/([\w\.]+)/i // Microsoft Edge
], [VERSION, [NAME, EDGE]], [ ], [VERSION, [NAME, 'Edge']], [
/edge\/([\w\.]+)/i // Old Edge (Trident) // breaking change (reserved for next major release):
], [[VERSION, strMapper, oldEdgeMap], [NAME, EDGE]], [ ///edge\/([\w\.]+)/i // Old Edge (Trident)
//], [[VERSION, mapper.str, maps.browser.oldEdge.version], [NAME, 'Edge']], [
// Presto based // Presto based
/(opera mini)\/([\w\.-]+)/i, // Opera Mini /(opera mini)\/([\w\.-]+)/i, // Opera Mini

View File

@ -1184,8 +1184,8 @@
"expect" : "expect" :
{ {
"name" : "Edge", "name" : "Edge",
"version" : "0.1", "version" : "12.0",
"major" : "0" "major" : "12"
} }
}, },
{ {
@ -1194,8 +1194,8 @@
"expect" : "expect" :
{ {
"name" : "Edge", "name" : "Edge",
"version" : "42", "version" : "17.17134",
"major" : "42" "major" : "17"
} }
}, },
{ {
@ -1204,8 +1204,8 @@
"expect" : "expect" :
{ {
"name" : "Edge", "name" : "Edge",
"version" : "44", "version" : "18.17763",
"major" : "44" "major" : "18"
} }
}, },
{ {