@openfin/node-adapter 45.102.10 → 45.102.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
|
@@ -3646,6 +3646,9 @@ class _Window extends WebContents {
|
|
|
3646
3646
|
/**
|
|
3647
3647
|
* Removes focus from the window.
|
|
3648
3648
|
*
|
|
3649
|
+
* @remarks On macOS, a modal window (created with `modalParentIdentity`) is hidden instead, because
|
|
3650
|
+
* moving a modal sheet behind its parent would leave the parent unable to show other dialogs.
|
|
3651
|
+
*
|
|
3649
3652
|
* @example
|
|
3650
3653
|
* ```js
|
|
3651
3654
|
* async function blurWindow() {
|
|
@@ -9458,16 +9461,21 @@ class InterApplicationBus extends Base {
|
|
|
9458
9461
|
* Subscribes to messages from the specified application on the specified topic.
|
|
9459
9462
|
* @param source This object is described in the Identity in the typedef
|
|
9460
9463
|
* @param topic The topic on which the message is sent
|
|
9461
|
-
* @param listener A function that is called when a message has
|
|
9462
|
-
*
|
|
9464
|
+
* @param listener A function that is called when a message has been received. It is passed
|
|
9465
|
+
* two arguments: the message, and the identity (`{ uuid, name }`) of the sender.
|
|
9463
9466
|
* The message can be either a primitive data type (string, number, or boolean) or
|
|
9464
9467
|
* composite data type (object, array) that is composed of other primitive or composite
|
|
9465
9468
|
* data types
|
|
9466
9469
|
*
|
|
9470
|
+
* @remarks This differs from the legacy `fin.desktop.InterApplicationBus.subscribe` API,
|
|
9471
|
+
* which passes `(message, uuid, name)` as separate arguments.
|
|
9472
|
+
*
|
|
9467
9473
|
* @example
|
|
9468
9474
|
* ```js
|
|
9469
9475
|
* // subscribe to a specified application
|
|
9470
|
-
* fin.InterApplicationBus.subscribe(fin.me, 'topic',
|
|
9476
|
+
* fin.InterApplicationBus.subscribe(fin.me, 'topic', (message, sender) => {
|
|
9477
|
+
* console.log(`Received from ${sender.uuid}/${sender.name}:`, message);
|
|
9478
|
+
* }).then(() => console.log('Subscribed to the specified application')).catch(err => console.log(err));
|
|
9471
9479
|
*
|
|
9472
9480
|
* // subscribe to wildcard
|
|
9473
9481
|
* fin.InterApplicationBus.subscribe({ uuid: '*' }, 'topic', sub_msg => console.log(sub_msg)).then(() => console.log('Subscribed to *')).catch(err => console.log(err));
|
|
@@ -17592,7 +17600,7 @@ class NodeEnvironment extends BaseEnvironment {
|
|
|
17592
17600
|
};
|
|
17593
17601
|
}
|
|
17594
17602
|
getAdapterVersionSync() {
|
|
17595
|
-
return "45.102.
|
|
17603
|
+
return "45.102.11";
|
|
17596
17604
|
}
|
|
17597
17605
|
observeBounds(element, onChange) {
|
|
17598
17606
|
throw new Error('Method not implemented.');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openfin/node-adapter",
|
|
3
|
-
"version": "45.102.
|
|
3
|
+
"version": "45.102.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.11",
|
|
22
22
|
"tslib": "2.8.1",
|
|
23
|
-
"@openfin/core": "45.102.
|
|
23
|
+
"@openfin/core": "45.102.11"
|
|
24
24
|
},
|
|
25
25
|
"scripts": {
|
|
26
26
|
"prebuild": "rimraf ./out",
|