@openfin/node-adapter 46.100.85 → 47.100.2
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 +14 -1
- package/package.json +2 -2
package/out/node-adapter.js
CHANGED
|
@@ -17592,11 +17592,15 @@ class NodeEnvironment extends BaseEnvironment {
|
|
|
17592
17592
|
};
|
|
17593
17593
|
}
|
|
17594
17594
|
getAdapterVersionSync() {
|
|
17595
|
-
return "
|
|
17595
|
+
return "47.100.2";
|
|
17596
17596
|
}
|
|
17597
17597
|
observeBounds(element, onChange) {
|
|
17598
17598
|
throw new Error('Method not implemented.');
|
|
17599
17599
|
}
|
|
17600
|
+
onBFCacheRestore(listener) {
|
|
17601
|
+
// There is no page to restore in a Node.js process.
|
|
17602
|
+
return () => undefined;
|
|
17603
|
+
}
|
|
17600
17604
|
getDefaultChannelOptions() {
|
|
17601
17605
|
return { create: {}, connect: {} };
|
|
17602
17606
|
}
|
|
@@ -17751,6 +17755,15 @@ class Transport extends events.EventEmitter {
|
|
|
17751
17755
|
const { uuid, name } = config;
|
|
17752
17756
|
const entityType = this.environment.getCurrentEntityType();
|
|
17753
17757
|
this.me = getBaseMe(entityType, uuid, name);
|
|
17758
|
+
// Registered here rather than per-caller so that a restoration is logged exactly once,
|
|
17759
|
+
// however many parts of the adapter go on to subscribe.
|
|
17760
|
+
this.environment.onBFCacheRestore(async () => {
|
|
17761
|
+
await this.sendAction('write-to-log', {
|
|
17762
|
+
level: 'verbose',
|
|
17763
|
+
message: `Page restored from the back/forward cache for ${uuid}/${name}`,
|
|
17764
|
+
target: {}
|
|
17765
|
+
});
|
|
17766
|
+
});
|
|
17754
17767
|
}
|
|
17755
17768
|
getFin() {
|
|
17756
17769
|
if (!__classPrivateFieldGet(this, _Transport_fin, "f")) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openfin/node-adapter",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "47.100.2",
|
|
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": "
|
|
23
|
+
"@openfin/core": "47.100.2"
|
|
24
24
|
},
|
|
25
25
|
"scripts": {
|
|
26
26
|
"prebuild": "rimraf ./out",
|