@openfin/node-adapter 40.100.3 → 40.100.6
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +8 -18
- package/out/node-adapter.js +24 -4
- package/package.json +2 -2
- package/resources/darwin/OpenFinRVM.app/Contents/CodeResources +0 -0
- package/resources/darwin/OpenFinRVM.app/Contents/Helpers/FinLinksHandler.app/Contents/Info.plist +2 -2
- package/resources/darwin/OpenFinRVM.app/Contents/Helpers/FinLinksHandler.app/Contents/MacOS/FinLinksHandler +0 -0
- package/resources/darwin/OpenFinRVM.app/Contents/Info.plist +2 -2
- package/resources/darwin/OpenFinRVM.app/Contents/MacOS/OpenFinRVM +0 -0
- package/resources/darwin/OpenFinRVM.app/Contents/_CodeSignature/CodeResources +1 -1
- package/resources/win/OpenFinRVM.exe +0 -0
package/README.md
CHANGED
@@ -16,7 +16,7 @@ A `uuid` value must be provided to identify the connection. Multiple connections
|
|
16
16
|
|
17
17
|
A Runtime version or manifest URL must also be specified.
|
18
18
|
|
19
|
-
> Note:
|
19
|
+
> Note: `connect` instantiates a Runtime instance if one does not exist for the given configuration. If a Runtime is already running, `connect` simply establishes a new connection.
|
20
20
|
|
21
21
|
### Connecting via Runtime Version
|
22
22
|
|
@@ -34,7 +34,7 @@ import { connect } from '@openfin/node-adapter';
|
|
34
34
|
})();
|
35
35
|
```
|
36
36
|
|
37
|
-
### Connecting via Manifest URL
|
37
|
+
### Connecting via Manifest URL
|
38
38
|
|
39
39
|
```javascript
|
40
40
|
import { connect } from '@openfin/node-adapter';
|
@@ -101,7 +101,7 @@ import OpenFin, { connect } from '@openfin/node-adapter';
|
|
101
101
|
|
102
102
|
---
|
103
103
|
|
104
|
-
# Migrating from openfin-adapter
|
104
|
+
# Migrating from openfin-adapter to @openfin/node-adapter
|
105
105
|
|
106
106
|
For users of the `connect` and `launch` functions in `openfin-adapter`, no changes are necessary, other than updating the dependency name.
|
107
107
|
|
@@ -114,8 +114,8 @@ import { launch, connect, Application, Fin } from 'openfin-adapter';
|
|
114
114
|
|
115
115
|
(async () => {
|
116
116
|
const fin: Fin = await connect({
|
117
|
-
uuid: 'external-connection-1',
|
118
|
-
runtime: { version: 'stable' }
|
117
|
+
uuid: 'external-connection-1',
|
118
|
+
runtime: { version: 'stable' }
|
119
119
|
});
|
120
120
|
const app: Application = await fin.Application.start({...});
|
121
121
|
})()
|
@@ -126,9 +126,9 @@ import { launch, connect, Application, Fin } from 'openfin-adapter';
|
|
126
126
|
```typescript
|
127
127
|
import OpenFin, { launch, connect } from '@openfin/node-adapter';
|
128
128
|
(async () => {
|
129
|
-
const fin: OpenFin.Fin<'external connection'> = await connect({
|
130
|
-
uuid: 'external-connection-1',
|
131
|
-
runtime: { version: 'stable' }
|
129
|
+
const fin: OpenFin.Fin<'external connection'> = await connect({
|
130
|
+
uuid: 'external-connection-1',
|
131
|
+
runtime: { version: 'stable' }
|
132
132
|
});
|
133
133
|
const app: OpenFin.Application = await fin.Application.start({...});
|
134
134
|
})()
|
@@ -141,13 +141,3 @@ import OpenFin, { launch, connect } from '@openfin/node-adapter';
|
|
141
141
|
|
142
142
|
- [Developer guide](https://developers.openfin.co/of-docs/docs/container-overview)
|
143
143
|
- [API reference](https://developer.openfin.co/docs/javascript/stable)
|
144
|
-
|
145
|
-
## License
|
146
|
-
|
147
|
-
Copyright 2020-2023 OpenFin
|
148
|
-
|
149
|
-
The code in this package is distributed under the Apache License, Version 2.0.
|
150
|
-
|
151
|
-
However, if you run this code, it may call on the OpenFin RVM or OpenFin Runtime, which are covered by OpenFin's Developer, Community, and Enterprise licenses. You can learn more about OpenFin licensing at the links listed below or email us at support@openfin.co with questions.
|
152
|
-
|
153
|
-
- [Developer agreement](https://openfin.co/developer-agreement/)
|
package/out/node-adapter.js
CHANGED
@@ -2942,6 +2942,25 @@ function requireInstance$1 () {
|
|
2942
2942
|
})
|
2943
2943
|
.then(() => undefined);
|
2944
2944
|
}
|
2945
|
+
/**
|
2946
|
+
* Set hover text for this application's system tray icon.
|
2947
|
+
* Note: Application must first set a tray icon with {@link Application.setTrayIcon}.
|
2948
|
+
* @param toolTip
|
2949
|
+
*
|
2950
|
+
* @example
|
2951
|
+
*
|
2952
|
+
* ```js
|
2953
|
+
* const app = fin.Application.getCurrentSync();
|
2954
|
+
* const iconUrl = "http://cdn.openfin.co/assets/testing/icons/circled-digit-one.png";
|
2955
|
+
*
|
2956
|
+
* await app.setTrayIcon(iconUrl);
|
2957
|
+
*
|
2958
|
+
* await app.setTrayIconToolTip('My Application');
|
2959
|
+
* ```
|
2960
|
+
*/
|
2961
|
+
async setTrayIconToolTip(toolTip) {
|
2962
|
+
await this.wire.sendAction('set-tray-icon-tooltip', { ...this.identity, toolTip });
|
2963
|
+
}
|
2945
2964
|
/**
|
2946
2965
|
* Sets new application's shortcut configuration. Windows only.
|
2947
2966
|
* @param config New application's shortcut configuration.
|
@@ -8150,11 +8169,12 @@ class ChannelProvider extends channel_1.ChannelBase {
|
|
8150
8169
|
return [...__classPrivateFieldGet$9(this, _ChannelProvider_connections, "f")];
|
8151
8170
|
}
|
8152
8171
|
static handleClientDisconnection(channel, payload) {
|
8153
|
-
|
8154
|
-
|
8155
|
-
__classPrivateFieldGet$9(channel, _ChannelProvider_removeEndpoint, "f").call(channel,
|
8172
|
+
if (payload?.endpointId) {
|
8173
|
+
const { uuid, name, endpointId, isLocalEndpointId } = payload;
|
8174
|
+
__classPrivateFieldGet$9(channel, _ChannelProvider_removeEndpoint, "f").call(channel, { uuid, name, endpointId, isLocalEndpointId });
|
8156
8175
|
}
|
8157
8176
|
else {
|
8177
|
+
// this is here to support older runtimes that did not have endpointId
|
8158
8178
|
const multipleRemoves = channel.connections.filter((identity) => {
|
8159
8179
|
return identity.uuid === payload.uuid && identity.name === payload.name;
|
8160
8180
|
});
|
@@ -17760,7 +17780,7 @@ class NodeEnvironment extends BaseEnvironment_1 {
|
|
17760
17780
|
};
|
17761
17781
|
}
|
17762
17782
|
getAdapterVersionSync() {
|
17763
|
-
return "40.100.
|
17783
|
+
return "40.100.6";
|
17764
17784
|
}
|
17765
17785
|
observeBounds(element, onChange) {
|
17766
17786
|
throw new Error('Method not implemented.');
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@openfin/node-adapter",
|
3
|
-
"version": "40.100.
|
3
|
+
"version": "40.100.6",
|
4
4
|
"description": "See README.md",
|
5
5
|
"main": "out/node-adapter.js",
|
6
6
|
"types": "out/node-adapter.d.ts",
|
@@ -24,7 +24,7 @@
|
|
24
24
|
"author": "OpenFin",
|
25
25
|
"dependencies": {
|
26
26
|
"@types/node": "^20.14.2",
|
27
|
-
"@openfin/core": "40.100.
|
27
|
+
"@openfin/core": "40.100.6",
|
28
28
|
"lodash": "^4.17.21",
|
29
29
|
"ws": "^7.3.0"
|
30
30
|
}
|
Binary file
|
package/resources/darwin/OpenFinRVM.app/Contents/Helpers/FinLinksHandler.app/Contents/Info.plist
CHANGED
@@ -11,11 +11,11 @@
|
|
11
11
|
<key>CFBundlePackageType</key>
|
12
12
|
<string>APPL</string>
|
13
13
|
<key>CFBundleShortVersionString</key>
|
14
|
-
<string>
|
14
|
+
<string>15.1.0.2</string>
|
15
15
|
<key>CFBundleSignature</key>
|
16
16
|
<string>????</string>
|
17
17
|
<key>CFBundleVersion</key>
|
18
|
-
<string>
|
18
|
+
<string>15.1.0.2</string>
|
19
19
|
<key>LSUIElement</key>
|
20
20
|
<true/>
|
21
21
|
<key>NSAppTransportSecurity</key>
|
Binary file
|
@@ -11,11 +11,11 @@
|
|
11
11
|
<key>CFBundlePackageType</key>
|
12
12
|
<string>APPL</string>
|
13
13
|
<key>CFBundleShortVersionString</key>
|
14
|
-
<string>
|
14
|
+
<string>15.1.0.2</string>
|
15
15
|
<key>CFBundleSignature</key>
|
16
16
|
<string>ORVM</string>
|
17
17
|
<key>CFBundleVersion</key>
|
18
|
-
<string>
|
18
|
+
<string>15.1.0.2</string>
|
19
19
|
<key>LSUIElement</key>
|
20
20
|
<true/>
|
21
21
|
<key>NSAppTransportSecurity</key>
|
Binary file
|
@@ -15,7 +15,7 @@
|
|
15
15
|
<dict>
|
16
16
|
<key>cdhash</key>
|
17
17
|
<data>
|
18
|
-
|
18
|
+
/Hb64aWF/Isx7Chu1El7wKSeBuo=
|
19
19
|
</data>
|
20
20
|
<key>requirement</key>
|
21
21
|
<string>identifier "com.openfin.finlinks-handler" and anchor apple generic and certificate 1[field.1.2.840.113635.100.6.2.6] /* exists */ and certificate leaf[field.1.2.840.113635.100.6.1.13] /* exists */ and certificate leaf[subject.OU] = W2JK4V99Y5</string>
|
Binary file
|