@enact/webos
Advanced tools
Comparing version 4.7.4 to 4.7.5
@@ -5,2 +5,6 @@ # Change Log | ||
## [4.7.5] - 2023-09-12 | ||
No significant changes. | ||
## [4.7.4] - 2023-08-31 | ||
@@ -7,0 +11,0 @@ |
@@ -89,2 +89,3 @@ "use strict"; | ||
value: function send(_ref4) { | ||
var _window$WebOSServiceB; | ||
var _ref4$service = _ref4.service, | ||
@@ -108,2 +109,3 @@ service = _ref4$service === void 0 ? '' : _ref4$service, | ||
timeout = _ref4$timeout === void 0 ? 0 : _ref4$timeout; | ||
var WebOSServiceBridge = typeof window === 'object' ? (_window$WebOSServiceB = window.WebOSServiceBridge) !== null && _window$WebOSServiceB !== void 0 ? _window$WebOSServiceB : window.PalmServiceBridge : null; | ||
this.cancelled = false; | ||
@@ -113,7 +115,8 @@ if (!onFailure && !onComplete) { | ||
} | ||
if (typeof window !== 'object' || !window.PalmServiceBridge) { | ||
if (typeof WebOSServiceBridge !== 'function') { | ||
var errorText = 'WebOSServiceBridge not found.'; | ||
/* eslint no-unused-expressions: ["error", { "allowShortCircuit": true }]*/ | ||
if (onFailure) onFailure({ | ||
errorCode: -1, | ||
errorText: 'PalmServiceBridge not found.', | ||
errorText: errorText, | ||
returnValue: false | ||
@@ -123,6 +126,6 @@ }); | ||
errorCode: -1, | ||
errorText: 'PalmServiceBridge not found.', | ||
errorText: errorText, | ||
returnValue: false | ||
}); | ||
console.error('PalmServiceBridge not found.'); | ||
console.error(errorText); | ||
return; | ||
@@ -142,5 +145,3 @@ } | ||
refs[this.ts] = this; | ||
// eslint-disable-next-line no-undef | ||
this.bridge = new PalmServiceBridge(); | ||
this.bridge = new WebOSServiceBridge(); | ||
this.bridge.onservicecallback = this.callback.bind(this, onSuccess, onFailure, onComplete); | ||
@@ -147,0 +148,0 @@ if (timeout) { |
{ | ||
"name": "@enact/webos", | ||
"version": "4.7.4", | ||
"version": "4.7.5", | ||
"description": "webOS support library", | ||
@@ -34,3 +34,3 @@ "repository": { | ||
"dependencies": { | ||
"@enact/core": "^4.7.4", | ||
"@enact/core": "^4.7.5", | ||
"prop-types": "^15.8.1", | ||
@@ -37,0 +37,0 @@ "react": "^18.2.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
71114
1257
Updated@enact/core@^4.7.5