Comparing version 1.3.0 to 1.3.1
{ | ||
"name": "platform", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "A platform detection library that works on nearly all JavaScript platforms.", | ||
@@ -8,7 +8,7 @@ "license": "MIT", | ||
"keywords": "environment, platform, ua, useragent", | ||
"author": "Benjamin Tan <demoneaux@gmail.com> (http://d10.github.io/)", | ||
"author": "Benjamin Tan <demoneaux@gmail.com> (https://d10.github.io/)", | ||
"contributors": [ | ||
"Benjamin Tan <demoneaux@gmail.com> (http://d10.github.io/)", | ||
"Benjamin Tan <demoneaux@gmail.com> (https://d10.github.io/)", | ||
"John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)", | ||
"Mathias Bynens <mathias@qiwi.be> (http://mathiasbynens.be/)" | ||
"Mathias Bynens <mathias@qiwi.be> (https://mathiasbynens.be/)" | ||
], | ||
@@ -18,21 +18,10 @@ "repository": "bestiejs/platform.js", | ||
"devDependencies": { | ||
"qunit-extras": "~1.3.0", | ||
"qunitjs": "~1.11.0", | ||
"requirejs": "~2.1.15" | ||
"docdown": "~0.3.0", | ||
"qunit-extras": "~1.4.0", | ||
"qunitjs": "~1.20.0", | ||
"requirejs": "^2.1.22" | ||
}, | ||
"engines": [ | ||
"node", | ||
"rhino" | ||
], | ||
"files": [ | ||
"LICENSE.txt", | ||
"platform.js" | ||
], | ||
"jam": { | ||
"main": "platform.js", | ||
"include": [ | ||
"LICENSE.txt", | ||
"platform.js" | ||
] | ||
} | ||
] | ||
} |
/*! | ||
* Platform.js v1.3.0 <http://mths.be/platform> | ||
* Copyright 2010-2014 John-David Dalton <http://allyoucanleet.com/> | ||
* Platform.js v1.3.1 <http://mths.be/platform> | ||
* Copyright 2014-2016 Benjamin Tan <https://d10.github.io/> | ||
* Copyright 2011-2013 John-David Dalton <http://allyoucanleet.com/> | ||
* Available under MIT license <http://mths.be/mit> | ||
@@ -701,8 +702,7 @@ */ | ||
} | ||
// detect IE Tech Preview | ||
// detect Microsoft Edge | ||
else if ((name == 'Chrome' || name != 'IE') && (data = /\bEdge\/([\d.]+)/.exec(ua))) { | ||
name = 'IE'; | ||
name = 'Microsoft Edge'; | ||
version = data[1]; | ||
layout = ['Trident']; | ||
description.unshift('platform preview'); | ||
} | ||
@@ -879,3 +879,3 @@ // leverage environment features | ||
// detect Blink layout engine | ||
if (data[0] == 537.36 && data[2] == 537.36 && parseFloat(data[1]) >= 28 && name != 'IE') { | ||
if (data[0] == 537.36 && data[2] == 537.36 && parseFloat(data[1]) >= 28 && name != 'IE' && name != 'Microsoft Edge') { | ||
layout = ['Blink']; | ||
@@ -882,0 +882,0 @@ } |
@@ -1,2 +0,2 @@ | ||
# Platform.js v1.3.0 | ||
# Platform.js v1.3.1 | ||
@@ -69,3 +69,3 @@ A platform detection library that works on nearly all JavaScript platforms. | ||
Tested in Chrome 38-39, Firefox 32-33, IE 6-11, Opera 25-26, Safari 5-8, Node.js 0.8.26~0.10.33, PhantomJS 1.9.7, RingoJS 0.9, & Rhino 1.7RC5. | ||
Tested in Chrome 46-47, Firefox 42-43, IE 8-11, MS Edge 13, Safari 8-9, Node.js 0.8.28, 0.10.41, 0.12.9, 4.2.4, & 5.3.0, & PhantomJS 1.9.8. | ||
@@ -75,13 +75,1 @@ ## BestieJS | ||
Platform.js is part of the BestieJS *“Best in Class”* module collection. This means we promote solid browser/environment support, ES5+ precedents, unit testing, & plenty of documentation. | ||
## Author | ||
| [![twitter/demoneaux](http://gravatar.com/avatar/029b19dba521584d83398ada3ecf6131?s=70)](https://twitter.com/demoneaux "Follow @demoneaux on Twitter") | | ||
|---| | ||
| [Benjamin Tan](http://d10.github.io/) | | ||
## Contributors | ||
| [![twitter/jdalton](http://gravatar.com/avatar/299a3d891ff1920b69c364d061007043?s=70)](https://twitter.com/jdalton "Follow @jdalton on Twitter") | [![twitter/mathias](http://gravatar.com/avatar/24e08a9ea84deb17ae121074d0f17125?s=70)](https://twitter.com/mathias "Follow @mathias on Twitter") | | ||
|---|---| | ||
| [John-David Dalton](http://allyoucanleet.com/) | [Mathias Bynens](http://mathiasbynens.be/) | |
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
40949
4
74