Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@enact/core

Package Overview
Dependencies
Maintainers
1
Versions
218
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@enact/core - npm Package Compare versions

Comparing version 1.3.1 to 1.4.0

4

CHANGELOG.md

@@ -5,2 +5,6 @@ # Change Log

## [1.4.0] - 2017-06-29
No significant changes.
## [1.3.1] - 2017-06-14

@@ -7,0 +11,0 @@

2

package.json
{
"name": "@enact/core",
"version": "1.3.1",
"version": "1.4.0",
"description": "Enact is an open source JavaScript framework containing everything you need to create a fast, scalable mobile or web application.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -95,3 +95,6 @@ 'use strict';

var detect = function detect() {
if (typeof window === 'undefined') {
if (_platform) {
// if we've already determined the platform, we'll use that determination
return _platform;
} else if (typeof window === 'undefined') {
return {

@@ -103,31 +106,32 @@ gesture: false,

};
} else if (!_platform) {
var userAgent = ua();
}
_platform = {
gesture: hasGesture(),
node: false,
touch: hasTouch(),
unknown: true
};
var userAgent = ua();
for (var i = 0, p, m, v; p = platforms[i]; i++) {
m = p.regex.exec(userAgent);
if (m) {
_platform.unknown = false;
_platform = {
gesture: hasGesture(),
node: false,
touch: hasTouch(),
unknown: true
};
if (p.forceVersion) {
v = p.forceVersion;
} else {
v = Number(m[1]);
}
_platform[p.platform] = v;
if (p.extra) {
_platform = _extends({}, _platform, p.extra);
}
_platform.platformName = p.platform;
break;
for (var i = 0, p, m, v; p = platforms[i]; i++) {
m = p.regex.exec(userAgent);
if (m) {
_platform.unknown = false;
if (p.forceVersion) {
v = p.forceVersion;
} else {
v = Number(m[1]);
}
_platform[p.platform] = v;
if (p.extra) {
_platform = _extends({}, _platform, p.extra);
}
_platform.platformName = p.platform;
break;
}
}
return _platform;

@@ -134,0 +138,0 @@ };

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