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 4.0.0 to 4.0.1

6

CHANGELOG.md

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

## [4.0.1] - 2021-05-21
### Fixed
- `core/platform` to detect chromium version for webOS
## [4.0.0] - 2021-03-26

@@ -7,0 +13,0 @@

2

kind/tests/kind-specs.js

@@ -23,3 +23,3 @@ "use strict";

function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
function _iterableToArrayLimit(arr, i) { var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]); if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }

@@ -26,0 +26,0 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }

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

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

"react-is": "^17.0.1",
"recompose": "^0.26.0",
"recompose": "^0.30.0",
"warning": "^4.0.3"
}
}

@@ -18,3 +18,3 @@ "use strict";

function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }

@@ -49,2 +49,8 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }

var webOSVersion = {
38: 3,
53: 4,
68: 5,
79: 6
};
var platforms = [// Windows Phone 7 - 10

@@ -115,13 +121,4 @@ {

platform: 'webos',
regex: /Web0S;.*Chrome\/38/,
forceVersion: 3
}, {
platform: 'webos',
regex: /Web0S;.*Chrome\/53/,
forceVersion: 4
}, {
platform: 'webos',
regex: /Web0S;.*Chrome\/68/,
forceVersion: 5
}, // LG webOS of indeterminate version
regex: /Web0S;.*Chrome\/(\d+)/
}, // LG webOS of indeterminate versionre
{

@@ -226,2 +223,8 @@ platform: 'webos',

v = p.forceVersion;
} else if (p.platform === 'webos') {
v = webOSVersion[m[1]] || -1;
if (v >= 7 || v === -1) {
plat.chrome = Number(m[1]);
}
} else {

@@ -228,0 +231,0 @@ v = Number(m[1]);

@@ -8,2 +8,4 @@ "use strict";

// From http://webostv.developer.lge.com/discover/specifications/web-engine/
var webOSTVNext = 'Mozilla/5.0 (Web0S; Linux/SmartTV) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36 WebAppManager';
var webOSTV6 = 'Mozilla/5.0 (Web0S; Linux/SmartTV) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3440.106 Safari/537.36 WebAppManager';
var webOSTV5 = 'Mozilla/5.0 (Web0S; Linux/SmartTV) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36 WebAppManager';

@@ -23,3 +25,3 @@ var webOSTV4 = 'Mozilla/5.0 (Web0S; Linux/SmartTV) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.1785.34 Safari/537.36 WebAppManager';

var webOS2 = 'Mozilla/5.0 (webOS/2.0.1; U; en-US) AppleWebKit/532.2 (KHTML, like Gecko) Version/1.0 Safari/532.2 Pre/1.2';
var webOSOther = 'Mozilla/5.0 (Web0S; Linux) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3440.106 Safari/537.36 WebAppManager';
var webOSOther = 'Mozilla/5.0 (Web0S; Linux) AppleWebKit/537.36 (KHTML, like Gecko) Safari/537.36 WebAppManager';
test('should return webOS 1', function () {

@@ -60,2 +62,17 @@ var expected = {

});
test('should return webOS 6', function () {
var expected = {
webos: 6
};
var actual = (0, _platform.parseUserAgent)(webOSTV6);
expect(actual).toMatchObject(expected);
});
test('should return webOS Next and chrome 87', function () {
var expected = {
webos: -1,
chrome: 87
};
var actual = (0, _platform.parseUserAgent)(webOSTVNext);
expect(actual).toMatchObject(expected);
});
test('should return webOS -1', function () {

@@ -62,0 +79,0 @@ var expected = {

@@ -19,3 +19,3 @@ "use strict";

function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }

@@ -22,0 +22,0 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }

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