Comparing version 1.3.4 to 1.3.5
{ | ||
"name": "platform", | ||
"version": "1.3.4", | ||
"version": "1.3.5", | ||
"description": "A platform detection library that works on nearly all JavaScript platforms.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
/*! | ||
* Platform.js <https://mths.be/platform> | ||
* Copyright 2014-2016 Benjamin Tan <https://demoneaux.github.io/> | ||
* Copyright 2014-2018 Benjamin Tan <https://bnjmnt4n.now.sh/> | ||
* Copyright 2011-2013 John-David Dalton <http://allyoucanleet.com/> | ||
@@ -745,13 +745,15 @@ * Available under MIT license <https://mths.be/mit> | ||
} | ||
if (isModuleScope && isHostType(context, 'system') && (data = [context.system])[0]) { | ||
os || (os = data[0].os || null); | ||
if (rhino) { | ||
try { | ||
data[1] = context.require('ringo/engine').version; | ||
version = data[1].join('.'); | ||
version = context.require('ringo/engine').version.join('.'); | ||
name = 'RingoJS'; | ||
} catch(e) { | ||
if (data[0].global.system == context.system) { | ||
if ((data = context.system) && data.global.system == context.system) { | ||
name = 'Narwhal'; | ||
os || (os = data[0].os || null); | ||
} | ||
} | ||
if (!name) { | ||
name = 'Rhino'; | ||
} | ||
} | ||
@@ -772,13 +774,11 @@ else if ( | ||
} | ||
} else { | ||
} | ||
if (!name) { | ||
name = 'Node.js'; | ||
arch = data.arch; | ||
os = data.platform; | ||
version = /[\d.]+/.exec(data.version) | ||
version = version ? version[0] : 'unknown'; | ||
version = /[\d.]+/.exec(data.version); | ||
version = version ? version[0] : null; | ||
} | ||
} | ||
else if (rhino) { | ||
name = 'Rhino'; | ||
} | ||
} | ||
@@ -785,0 +785,0 @@ // Detect Adobe AIR. |
@@ -1,2 +0,2 @@ | ||
# Platform.js v1.3.4 | ||
# Platform.js v1.3.5 | ||
@@ -71,3 +71,3 @@ A platform detection library that works on nearly all JavaScript platforms. | ||
Tested in Chrome 53-54, Firefox 48-49, IE 11, Edge 14, Safari 9-10, Node.js 4-7, & PhantomJS 2.1.1. | ||
Tested in Chrome 62-63, Firefox 56-57, IE 11, Edge 15-16, Safari 10-11, Node.js 4-8, & PhantomJS 2.1.1. | ||
@@ -74,0 +74,0 @@ ## BestieJS |
Sorry, the diff of this file is not supported yet
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
45022