@openfin/remote-adapter 43.102.2 → 43.103.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.
@@ -8034,6 +8034,48 @@ class System extends base_1$h.EmitterBase {
8034
8034
  clearCache(options) {
8035
8035
  return this.wire.sendAction('clear-cache', options).then(() => undefined);
8036
8036
  }
8037
+ /**
8038
+ * Clears only the HTTP cache (browser cache for HTML, CSS, JS, images).
8039
+ * Service workers and other storage data are preserved.
8040
+ *
8041
+ * This is useful when you need to clear stale content without breaking offline functionality.
8042
+ *
8043
+ * @example
8044
+ * ```js
8045
+ * // Clear HTTP cache without affecting service workers
8046
+ * await fin.System.clearHTTPCache();
8047
+ * ```
8048
+ */
8049
+ clearHTTPCache() {
8050
+ return this.wire.sendAction('clear-http-cache').then(() => undefined);
8051
+ }
8052
+ /**
8053
+ * Clears browsing data with granular control over what to clear and which origins to target.
8054
+ *
8055
+ * @param options - Optional configuration for what data to clear
8056
+ *
8057
+ * @example
8058
+ * ```js
8059
+ * // Clear only cookies and localStorage for a specific origin
8060
+ * await fin.System.clearCacheData({
8061
+ * dataTypes: ['cookies', 'localStorage'],
8062
+ * origins: ['http://localhost:8081']
8063
+ * });
8064
+ *
8065
+ * // Clear everything except for a specific origin
8066
+ * await fin.System.clearCacheData({
8067
+ * excludeOrigins: ['http://example.com']
8068
+ * });
8069
+ *
8070
+ * // Clear all service workers across all origins
8071
+ * await fin.System.clearCacheData({
8072
+ * dataTypes: ['serviceWorkers']
8073
+ * });
8074
+ * ```
8075
+ */
8076
+ clearCacheData(options) {
8077
+ return this.wire.sendAction('clear-cache-data', options || {}).then(() => undefined);
8078
+ }
8037
8079
  /**
8038
8080
  * Clears all cached data when OpenFin Runtime exits.
8039
8081
  *
@@ -16571,7 +16613,6 @@ fdc3Channels2_0.createV2Channel = createV2Channel;
16571
16613
  // Generate an ID to make a session context group with. We will pass that ID to the Broker.
16572
16614
  // The broker will then setContext on that session context group later with our Intent Result,
16573
16615
  const guid = (0, utils_1.generateId)(); // TODO make this undefined in web
16574
- let isPromiseSettled = false;
16575
16616
  // Adding the intentResolutionResultId to the intentObj. Because fireIntent only accepts a single arg, we have to slap it in here.
16576
16617
  const metadata = app ? { target: app, intentResolutionResultId: guid } : { intentResolutionResultId: guid };
16577
16618
  const intentObj = intent ? { name: intent, context, metadata } : { ...context, metadata };
@@ -16587,21 +16628,11 @@ fdc3Channels2_0.createV2Channel = createV2Channel;
16587
16628
  reject(new Error('getResult is not supported in this environment'));
16588
16629
  });
16589
16630
  });
16590
- getResultPromise
16591
- .then(() => {
16592
- isPromiseSettled = true;
16593
- })
16594
- .catch(() => {
16595
- isPromiseSettled = true;
16596
- });
16597
16631
  // Set up the getResult call.
16598
16632
  const getResult = async () => {
16599
- // All this mumbo jumbo is needed to make sure that getResult resolves correctly and conforms to the FDC3 spec.
16600
- if (!isPromiseSettled) {
16601
- return undefined;
16602
- }
16603
16633
  let intentResult = await getResultPromise;
16604
- if (isPromiseSettled && !intentResult) {
16634
+ // void / no payload, or web path where subscribe resolves undefined (see getResultPromise above)
16635
+ if (intentResult == null) {
16605
16636
  return undefined;
16606
16637
  }
16607
16638
  if (typeof intentResult !== 'object') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/remote-adapter",
3
- "version": "43.102.2",
3
+ "version": "43.103.2",
4
4
  "description": "Establish intermachine runtime connections using webRTC.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "private": false,
@@ -20,6 +20,6 @@
20
20
  "author": "OpenFin",
21
21
  "dependencies": {
22
22
  "lodash": "^4.17.21",
23
- "@openfin/core": "43.102.2"
23
+ "@openfin/core": "43.103.2"
24
24
  }
25
25
  }