@openfin/remote-adapter 40.104.4 → 40.104.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/out/remote-adapter.js +7 -5
- package/package.json +2 -2
package/out/remote-adapter.js
CHANGED
|
@@ -4167,7 +4167,9 @@ function requireInteropBroker () {
|
|
|
4167
4167
|
});
|
|
4168
4168
|
channel.afterAction((action, payload, clientIdentity) => {
|
|
4169
4169
|
if (this.logging?.afterAction?.enabled) {
|
|
4170
|
-
|
|
4170
|
+
// afterAction can result in payload being undefined
|
|
4171
|
+
const logArgs = payload ? [action, payload, clientIdentity] : [action, clientIdentity];
|
|
4172
|
+
console.log(...logArgs);
|
|
4171
4173
|
}
|
|
4172
4174
|
});
|
|
4173
4175
|
// Client functions
|
|
@@ -11970,9 +11972,9 @@ class ChannelBase {
|
|
|
11970
11972
|
}
|
|
11971
11973
|
async processAction(topic, payload, senderIdentity) {
|
|
11972
11974
|
try {
|
|
11973
|
-
const
|
|
11974
|
-
|
|
11975
|
-
|
|
11975
|
+
const registeredAction = this.subscriptions.get(topic);
|
|
11976
|
+
const defaultAction = (currentPayload, id) => (this.defaultAction ?? ChannelBase.defaultAction)(topic, currentPayload, id);
|
|
11977
|
+
const mainAction = registeredAction ?? defaultAction;
|
|
11976
11978
|
const preActionProcessed = this.preAction ? await this.preAction(topic, payload, senderIdentity) : payload;
|
|
11977
11979
|
const actionProcessed = await mainAction(preActionProcessed, senderIdentity);
|
|
11978
11980
|
return this.postAction ? await this.postAction(topic, actionProcessed, senderIdentity) : actionProcessed;
|
|
@@ -14571,7 +14573,7 @@ class Clipboard extends base_1$7.Base {
|
|
|
14571
14573
|
clipboard.Clipboard = Clipboard;
|
|
14572
14574
|
_Clipboard_securedApiWarningCount = new WeakMap(), _Clipboard_instances = new WeakSet(), _Clipboard_warnSecuredApi = async function _Clipboard_warnSecuredApi(apiName) {
|
|
14573
14575
|
if (__classPrivateFieldGet$5(this, _Clipboard_securedApiWarningCount, "f") <= maxSecuredApiWarnings) {
|
|
14574
|
-
console.warn(`Clipboard APIs will
|
|
14576
|
+
console.warn(`Here's Clipboard APIs will become secured APIs starting in v42. To continue using this API without interruption, make sure to grant explicit API permissions for ${apiName} in the Desktop Owner Settings, and in the Application, Window, View, or Domain Settings. For more information, see https://resources.here.io/docs/core/develop/security/api-security/`);
|
|
14575
14577
|
__classPrivateFieldSet$4(this, _Clipboard_securedApiWarningCount, __classPrivateFieldGet$5(this, _Clipboard_securedApiWarningCount, "f") + 1, "f");
|
|
14576
14578
|
}
|
|
14577
14579
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openfin/remote-adapter",
|
|
3
|
-
"version": "40.104.
|
|
3
|
+
"version": "40.104.6",
|
|
4
4
|
"description": "Establish intermachine runtime connections using webRTC.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"private": false,
|
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
"author": "OpenFin",
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"lodash": "^4.17.21",
|
|
23
|
-
"@openfin/core": "40.104.
|
|
23
|
+
"@openfin/core": "40.104.6"
|
|
24
24
|
}
|
|
25
25
|
}
|