@enact/webos 5.4.1 → 5.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/package.json +2 -2
- package/platform/platform.js +5 -0
- package/platform/tests/platform-specs.js +9 -0
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@enact/webos",
|
|
3
|
-
"version": "5.4.
|
|
3
|
+
"version": "5.4.2",
|
|
4
4
|
"description": "webOS support library",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@enact/core": "^5.4.
|
|
35
|
+
"@enact/core": "^5.4.2",
|
|
36
36
|
"prop-types": "^15.8.1",
|
|
37
37
|
"react": "^19.2.3",
|
|
38
38
|
"react-dom": "^19.2.3"
|
package/platform/platform.js
CHANGED
|
@@ -60,6 +60,11 @@ var webOSVersion = [
|
|
|
60
60
|
{
|
|
61
61
|
chrome: 120,
|
|
62
62
|
version: 25
|
|
63
|
+
},
|
|
64
|
+
// Mozilla/5.0 (Web0S; Linux/SmartTV) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.6834.159 Safari/537.36 WebAppManager
|
|
65
|
+
{
|
|
66
|
+
chrome: 132,
|
|
67
|
+
version: 26
|
|
63
68
|
}];
|
|
64
69
|
var platforms = [].concat(_toConsumableArray(webOSVersion.map(function (_ref) {
|
|
65
70
|
var chrome = _ref.chrome,
|
|
@@ -12,6 +12,7 @@ describe('platform', function () {
|
|
|
12
12
|
var webOSTV23 = 'Mozilla/5.0 (Web0S; Linux/SmartTV) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.128 Safari/537.36 WebAppManager';
|
|
13
13
|
var webOSTV24 = 'Mozilla/5.0 (Web0S; Linux/SmartTV) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.5359.211 Safari/537.36 WebAppManager';
|
|
14
14
|
var webOSTV25 = 'Mozilla/5.0 (Web0S; Linux/SmartTV) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.6099.270 Safari/537.36 WebAppManager';
|
|
15
|
+
var webOSTV26 = 'Mozilla/5.0 (Web0S; Linux/SmartTV) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.6834.159 Safari/537.36 WebAppManager';
|
|
15
16
|
var webOSTVChrome = 'Mozilla/5.0 (Web0S; Linux/SmartTV) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36 WebAppManager';
|
|
16
17
|
var webOSOther = 'Mozilla/5.0 (Web0S; Linux) AppleWebKit/537.36 (KHTML, like Gecko) Safari/537.36 WebAppManager';
|
|
17
18
|
test('should detect webOS 3', function () {
|
|
@@ -74,6 +75,14 @@ describe('platform', function () {
|
|
|
74
75
|
var actual = (0, _platform.parseUserAgent)(webOSTV25);
|
|
75
76
|
expect(actual).toMatchObject(expected);
|
|
76
77
|
});
|
|
78
|
+
test('should detect webOS 26', function () {
|
|
79
|
+
var expected = {
|
|
80
|
+
version: 26,
|
|
81
|
+
chrome: 132
|
|
82
|
+
};
|
|
83
|
+
var actual = (0, _platform.parseUserAgent)(webOSTV26);
|
|
84
|
+
expect(actual).toMatchObject(expected);
|
|
85
|
+
});
|
|
77
86
|
test('should detect webOS with Chrome', function () {
|
|
78
87
|
var expected = {
|
|
79
88
|
chrome: 108
|