@openfin/node-adapter 44.101.9 → 44.101.11
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/node-adapter.js +12 -4
- package/package.json +2 -2
package/out/node-adapter.js
CHANGED
|
@@ -3578,6 +3578,9 @@ class _Window extends WebContents {
|
|
|
3578
3578
|
/**
|
|
3579
3579
|
* Removes focus from the window.
|
|
3580
3580
|
*
|
|
3581
|
+
* @remarks On macOS, a modal window (created with `modalParentIdentity`) is hidden instead, because
|
|
3582
|
+
* moving a modal sheet behind its parent would leave the parent unable to show other dialogs.
|
|
3583
|
+
*
|
|
3581
3584
|
* @example
|
|
3582
3585
|
* ```js
|
|
3583
3586
|
* async function blurWindow() {
|
|
@@ -9285,16 +9288,21 @@ class InterApplicationBus extends Base {
|
|
|
9285
9288
|
* Subscribes to messages from the specified application on the specified topic.
|
|
9286
9289
|
* @param source This object is described in the Identity in the typedef
|
|
9287
9290
|
* @param topic The topic on which the message is sent
|
|
9288
|
-
* @param listener A function that is called when a message has
|
|
9289
|
-
*
|
|
9291
|
+
* @param listener A function that is called when a message has been received. It is passed
|
|
9292
|
+
* two arguments: the message, and the identity (`{ uuid, name }`) of the sender.
|
|
9290
9293
|
* The message can be either a primitive data type (string, number, or boolean) or
|
|
9291
9294
|
* composite data type (object, array) that is composed of other primitive or composite
|
|
9292
9295
|
* data types
|
|
9293
9296
|
*
|
|
9297
|
+
* @remarks This differs from the legacy `fin.desktop.InterApplicationBus.subscribe` API,
|
|
9298
|
+
* which passes `(message, uuid, name)` as separate arguments.
|
|
9299
|
+
*
|
|
9294
9300
|
* @example
|
|
9295
9301
|
* ```js
|
|
9296
9302
|
* // subscribe to a specified application
|
|
9297
|
-
* fin.InterApplicationBus.subscribe(fin.me, 'topic',
|
|
9303
|
+
* fin.InterApplicationBus.subscribe(fin.me, 'topic', (message, sender) => {
|
|
9304
|
+
* console.log(`Received from ${sender.uuid}/${sender.name}:`, message);
|
|
9305
|
+
* }).then(() => console.log('Subscribed to the specified application')).catch(err => console.log(err));
|
|
9298
9306
|
*
|
|
9299
9307
|
* // subscribe to wildcard
|
|
9300
9308
|
* fin.InterApplicationBus.subscribe({ uuid: '*' }, 'topic', sub_msg => console.log(sub_msg)).then(() => console.log('Subscribed to *')).catch(err => console.log(err));
|
|
@@ -17217,7 +17225,7 @@ class NodeEnvironment extends BaseEnvironment {
|
|
|
17217
17225
|
};
|
|
17218
17226
|
}
|
|
17219
17227
|
getAdapterVersionSync() {
|
|
17220
|
-
return "44.101.
|
|
17228
|
+
return "44.101.11";
|
|
17221
17229
|
}
|
|
17222
17230
|
observeBounds(element, onChange) {
|
|
17223
17231
|
throw new Error('Method not implemented.');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openfin/node-adapter",
|
|
3
|
-
"version": "44.101.
|
|
3
|
+
"version": "44.101.11",
|
|
4
4
|
"description": "See README.md",
|
|
5
5
|
"main": "out/node-adapter.js",
|
|
6
6
|
"types": "out/node-adapter.d.ts",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"es-toolkit": "^1.39.3",
|
|
21
21
|
"ws": "^7.5.10",
|
|
22
22
|
"tslib": "2.8.1",
|
|
23
|
-
"@openfin/core": "44.101.
|
|
23
|
+
"@openfin/core": "44.101.11"
|
|
24
24
|
},
|
|
25
25
|
"scripts": {
|
|
26
26
|
"prebuild": "rimraf ./out",
|