@interopio/desktop 6.16.0 → 6.16.1

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/changelog.md CHANGED
@@ -1,3 +1,6 @@
1
+ 6.16.1
2
+ - fix: apps: if the method is not available, do not initialize the apps API
3
+ - fix: prefs - when calling `io.prefs.get()`, the returned object looks like an unparsed fetch response
1
4
  6.16.0
2
5
  - feat: layouts - restoreWorkspacesByReference option added
3
6
  - chore: increase the timeout for streams in io.CD from 30 to 90 seconds
@@ -20457,7 +20457,7 @@
20457
20457
  }
20458
20458
  }
20459
20459
 
20460
- var version = "6.16.0";
20460
+ var version = "6.16.1";
20461
20461
 
20462
20462
  var prepareConfig = (options) => {
20463
20463
  function getLibConfig(value, defaultMode, trueMode) {
@@ -23828,9 +23828,13 @@
23828
23828
  return this.set(data, { app });
23829
23829
  }
23830
23830
  async update(data, options) {
23831
- var _a;
23832
23831
  this.verifyDataObject(data);
23833
- await this.interop.invoke(Prefs.T42SetPrefsMethodName, { app: (_a = options === null || options === void 0 ? void 0 : options.app) !== null && _a !== void 0 ? _a : this.appName, data, merge: true }, "best", {
23832
+ let app = this.appName;
23833
+ if (!isUndefinedOrNull(options) && "app" in options) {
23834
+ this.verifyApp(options.app);
23835
+ app = options.app;
23836
+ }
23837
+ await this.interop.invoke(Prefs.T42SetPrefsMethodName, { app, data, merge: true }, "best", {
23834
23838
  waitTimeoutMs: INTEROP_METHOD_WAIT_TIMEOUT_MS,
23835
23839
  methodResponseTimeoutMs: INTEROP_METHOD_WAIT_TIMEOUT_MS
23836
23840
  });
@@ -24841,6 +24845,10 @@
24841
24845
  if (!logger) {
24842
24846
  throw new Error("Logger is required for Apps API initialization");
24843
24847
  }
24848
+ if (interop.methods(AppsCommandMethodName).length === 0) {
24849
+ logger.debug("Apps API method not registered in interop; skipping Apps API initialization");
24850
+ return;
24851
+ }
24844
24852
  logger.debug("Initializing new Apps API factory");
24845
24853
  let resolveCallback = () => {
24846
24854
  logger.debug("Apps API factory ready");
@@ -25122,6 +25130,9 @@
25122
25130
  }
25123
25131
  const logger = getLibLogger("apps", core.logger, glueConfig.apps);
25124
25132
  _apps = appsFactory(core.agm, logger);
25133
+ if (!_apps) {
25134
+ return;
25135
+ }
25125
25136
  debugLog(_apps);
25126
25137
  _appsController.setApps(_apps);
25127
25138
  return _apps;