@openfin/node-adapter 44.101.2 → 44.101.3
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 +9 -3
- package/package.json +2 -2
package/out/node-adapter.js
CHANGED
|
@@ -4999,13 +4999,15 @@ class System extends EmitterBase {
|
|
|
4999
4999
|
* * cookies: browser [cookies](https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies)
|
|
5000
5000
|
* * localStorage: browser data that can be used across sessions ([local storage](https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage))
|
|
5001
5001
|
* * appcache: html5 [application cache](https://developer.mozilla.org/en-US/docs/Web/HTML/Using_the_application_cache)
|
|
5002
|
+
* * windowState: clears data written for windows using `saveWindowState`; after clearing, previously saved bounds and state will not be restored until new state is written
|
|
5002
5003
|
* @example
|
|
5003
5004
|
* ```js
|
|
5004
5005
|
* const clearCacheOptions = {
|
|
5005
5006
|
* appcache: true,
|
|
5006
5007
|
* cache: true,
|
|
5007
5008
|
* cookies: true,
|
|
5008
|
-
* localStorage: true
|
|
5009
|
+
* localStorage: true,
|
|
5010
|
+
* windowState: true
|
|
5009
5011
|
* };
|
|
5010
5012
|
* fin.System.clearCache(clearCacheOptions).then(() => console.log('Cache cleared')).catch(err => console.log(err));
|
|
5011
5013
|
* ```
|
|
@@ -5034,12 +5036,16 @@ class System extends EmitterBase {
|
|
|
5034
5036
|
*
|
|
5035
5037
|
* @param options - Optional configuration for what data to clear
|
|
5036
5038
|
*
|
|
5039
|
+
* @remarks Set `windowState: true` to also clear data written for windows using `saveWindowState`.
|
|
5040
|
+
* After this data is cleared, previously saved bounds and state will not be restored until new state is written again.
|
|
5041
|
+
*
|
|
5037
5042
|
* @example
|
|
5038
5043
|
* ```js
|
|
5039
5044
|
* // Clear only cookies and localStorage for a specific origin
|
|
5040
5045
|
* await fin.System.clearCacheData({
|
|
5041
5046
|
* dataTypes: ['cookies', 'localStorage'],
|
|
5042
|
-
* origins: ['http://localhost:8081']
|
|
5047
|
+
* origins: ['http://localhost:8081'],
|
|
5048
|
+
* windowState: true
|
|
5043
5049
|
* });
|
|
5044
5050
|
*
|
|
5045
5051
|
* // Clear everything except for a specific origin
|
|
@@ -17152,7 +17158,7 @@ class NodeEnvironment extends BaseEnvironment {
|
|
|
17152
17158
|
};
|
|
17153
17159
|
}
|
|
17154
17160
|
getAdapterVersionSync() {
|
|
17155
|
-
return "44.101.
|
|
17161
|
+
return "44.101.3";
|
|
17156
17162
|
}
|
|
17157
17163
|
observeBounds(element, onChange) {
|
|
17158
17164
|
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.3",
|
|
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.3"
|
|
24
24
|
},
|
|
25
25
|
"scripts": {
|
|
26
26
|
"prebuild": "rimraf ./out",
|