@enact/webos 4.7.4 → 4.7.6
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 +8 -0
- package/LS2Request/LS2Request.js +8 -7
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
The following is a curated list of changes in the Enact webos module, newest changes on the top.
|
|
4
4
|
|
|
5
|
+
## [4.7.6] - 2023-09-20
|
|
6
|
+
|
|
7
|
+
No significant changes.
|
|
8
|
+
|
|
9
|
+
## [4.7.5] - 2023-09-12
|
|
10
|
+
|
|
11
|
+
No significant changes.
|
|
12
|
+
|
|
5
13
|
## [4.7.4] - 2023-08-31
|
|
6
14
|
|
|
7
15
|
No significant changes.
|
package/LS2Request/LS2Request.js
CHANGED
|
@@ -86,6 +86,7 @@ var LS2Request = /*#__PURE__*/function () {
|
|
|
86
86
|
_createClass(LS2Request, [{
|
|
87
87
|
key: "send",
|
|
88
88
|
value: function send(_ref4) {
|
|
89
|
+
var _window$WebOSServiceB;
|
|
89
90
|
var _ref4$service = _ref4.service,
|
|
90
91
|
service = _ref4$service === void 0 ? '' : _ref4$service,
|
|
91
92
|
_ref4$method = _ref4.method,
|
|
@@ -104,23 +105,25 @@ var LS2Request = /*#__PURE__*/function () {
|
|
|
104
105
|
subscribe = _ref4$subscribe === void 0 ? false : _ref4$subscribe,
|
|
105
106
|
_ref4$timeout = _ref4.timeout,
|
|
106
107
|
timeout = _ref4$timeout === void 0 ? 0 : _ref4$timeout;
|
|
108
|
+
var WebOSServiceBridge = typeof window === 'object' ? (_window$WebOSServiceB = window.WebOSServiceBridge) !== null && _window$WebOSServiceB !== void 0 ? _window$WebOSServiceB : window.PalmServiceBridge : null;
|
|
107
109
|
this.cancelled = false;
|
|
108
110
|
if (!onFailure && !onComplete) {
|
|
109
111
|
onFailure = failureHandler;
|
|
110
112
|
}
|
|
111
|
-
if (typeof
|
|
113
|
+
if (typeof WebOSServiceBridge !== 'function') {
|
|
114
|
+
var errorText = 'WebOSServiceBridge not found.';
|
|
112
115
|
/* eslint no-unused-expressions: ["error", { "allowShortCircuit": true }]*/
|
|
113
116
|
if (onFailure) onFailure({
|
|
114
117
|
errorCode: -1,
|
|
115
|
-
errorText:
|
|
118
|
+
errorText: errorText,
|
|
116
119
|
returnValue: false
|
|
117
120
|
});
|
|
118
121
|
if (onComplete) onComplete({
|
|
119
122
|
errorCode: -1,
|
|
120
|
-
errorText:
|
|
123
|
+
errorText: errorText,
|
|
121
124
|
returnValue: false
|
|
122
125
|
});
|
|
123
|
-
console.error(
|
|
126
|
+
console.error(errorText);
|
|
124
127
|
return;
|
|
125
128
|
}
|
|
126
129
|
if (this.ts && refs[this.ts]) {
|
|
@@ -135,9 +138,7 @@ var LS2Request = /*#__PURE__*/function () {
|
|
|
135
138
|
}
|
|
136
139
|
this.ts = performance.now();
|
|
137
140
|
refs[this.ts] = this;
|
|
138
|
-
|
|
139
|
-
// eslint-disable-next-line no-undef
|
|
140
|
-
this.bridge = new PalmServiceBridge();
|
|
141
|
+
this.bridge = new WebOSServiceBridge();
|
|
141
142
|
this.bridge.onservicecallback = this.callback.bind(this, onSuccess, onFailure, onComplete);
|
|
142
143
|
if (timeout) {
|
|
143
144
|
this.timeoutJob.startAfter(timeout, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@enact/webos",
|
|
3
|
-
"version": "4.7.
|
|
3
|
+
"version": "4.7.6",
|
|
4
4
|
"description": "webOS support library",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@enact/core": "^4.7.
|
|
34
|
+
"@enact/core": "^4.7.6",
|
|
35
35
|
"prop-types": "^15.8.1",
|
|
36
36
|
"react": "^18.2.0",
|
|
37
37
|
"react-dom": "^18.2.0"
|