1
0
mirror of https://github.com/lancedikson/bowser synced 2024-10-27 20:34:22 +00:00

Merge branch 'release/1.6.0' into production

This commit is contained in:
Denis Demchenko 2016-12-05 22:44:56 +02:00
commit 5bf35ac340
6 changed files with 23 additions and 6 deletions

View File

@ -1,6 +1,6 @@
language: node_js language: node_js
node_js: node_js:
- "0.10" - "4.4.7"
notifications: notifications:
email: email:
- dustin@dustindiaz.com - dustin@dustindiaz.com

View File

@ -1,5 +1,10 @@
# Bowser Changelog # Bowser Changelog
### 1.6.0 (December 5, 2016)
- [ADD] Add some tests for Windows devices (#89)
- [ADD] Add `root` to initialization process (#170)
- [FIX] Upgrade .travis.yml config
### 1.5.0 (October 31, 2016) ### 1.5.0 (October 31, 2016)
- [ADD] Throw an error when `minVersion` map has not a string as a version and fix readme (#165) - [ADD] Throw an error when `minVersion` map has not a string as a version and fix readme (#165)
- [FIX] Fix truly detection of Windows Phones (#167) - [FIX] Fix truly detection of Windows Phones (#167)

View File

@ -7,7 +7,7 @@
"sniff", "sniff",
"detection" "detection"
], ],
"version": "1.4.6", "version": "1.6.0",
"homepage": "https://github.com/ded/bowser", "homepage": "https://github.com/ded/bowser",
"scripts": [ "scripts": [
"src/bowser.js" "src/bowser.js"

View File

@ -7,7 +7,7 @@
"sniff", "sniff",
"detection" "detection"
], ],
"version": "1.5.0", "version": "1.6.0",
"homepage": "https://github.com/ded/bowser", "homepage": "https://github.com/ded/bowser",
"author": "Dustin Diaz <dustin@dustindiaz.com> (http://dustindiaz.com)", "author": "Dustin Diaz <dustin@dustindiaz.com> (http://dustindiaz.com)",
"main": "./src/bowser.js", "main": "./src/bowser.js",

View File

@ -4,11 +4,11 @@
* MIT License | (c) Dustin Diaz 2015 * MIT License | (c) Dustin Diaz 2015
*/ */
!function (name, definition) { !function (root, name, definition) {
if (typeof module != 'undefined' && module.exports) module.exports = definition() if (typeof module != 'undefined' && module.exports) module.exports = definition()
else if (typeof define == 'function' && define.amd) define(name, definition) else if (typeof define == 'function' && define.amd) define(name, definition)
else this[name] = definition() else root[name] = definition()
}('bowser', function () { }(this, 'bowser', function () {
/** /**
* See useragents.js for examples of navigator.userAgent * See useragents.js for examples of navigator.userAgent
*/ */

View File

@ -649,6 +649,18 @@ module.exports.useragents = {
, version: '10.0' , version: '10.0'
, a: true , a: true
} }
, 'Mozilla/5.0 (Windows NT 6.3; ARM; Trident/7.0; Touch; rv:11.0) like Gecko': {
msie: true
, version: '11.0'
, a: true
, windows: true
}
, 'Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; Touch; LCTE; rv:11.0)': {
msie: true
, version: '11.0'
, a: true
, windows: true
}
} }
, 'Microsoft Edge': { , 'Microsoft Edge': {
'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36 Edge/12.0': { 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36 Edge/12.0': {