Socket
Socket
Sign inDemoInstall

platform

Package Overview
Dependencies
Maintainers
3
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

platform - npm Package Compare versions

Comparing version 1.3.4 to 1.3.5

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc