@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.
@@ -20451,7 +20451,7 @@ class Platform {
20451
20451
  }
20452
20452
  }
20453
20453
 
20454
- var version = "6.16.0";
20454
+ var version = "6.16.1";
20455
20455
 
20456
20456
  var prepareConfig = (options) => {
20457
20457
  function getLibConfig(value, defaultMode, trueMode) {
@@ -23822,9 +23822,13 @@ class Prefs {
23822
23822
  return this.set(data, { app });
23823
23823
  }
23824
23824
  async update(data, options) {
23825
- var _a;
23826
23825
  this.verifyDataObject(data);
23827
- 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", {
23826
+ let app = this.appName;
23827
+ if (!isUndefinedOrNull(options) && "app" in options) {
23828
+ this.verifyApp(options.app);
23829
+ app = options.app;
23830
+ }
23831
+ await this.interop.invoke(Prefs.T42SetPrefsMethodName, { app, data, merge: true }, "best", {
23828
23832
  waitTimeoutMs: INTEROP_METHOD_WAIT_TIMEOUT_MS,
23829
23833
  methodResponseTimeoutMs: INTEROP_METHOD_WAIT_TIMEOUT_MS
23830
23834
  });
@@ -24835,6 +24839,10 @@ function appsFactory(interop, logger) {
24835
24839
  if (!logger) {
24836
24840
  throw new Error("Logger is required for Apps API initialization");
24837
24841
  }
24842
+ if (interop.methods(AppsCommandMethodName).length === 0) {
24843
+ logger.debug("Apps API method not registered in interop; skipping Apps API initialization");
24844
+ return;
24845
+ }
24838
24846
  logger.debug("Initializing new Apps API factory");
24839
24847
  let resolveCallback = () => {
24840
24848
  logger.debug("Apps API factory ready");
@@ -25116,6 +25124,9 @@ const factoryCore = async (options, glue42gd) => {
25116
25124
  }
25117
25125
  const logger = getLibLogger("apps", core.logger, glueConfig.apps);
25118
25126
  _apps = appsFactory(core.agm, logger);
25127
+ if (!_apps) {
25128
+ return;
25129
+ }
25119
25130
  debugLog(_apps);
25120
25131
  _appsController.setApps(_apps);
25121
25132
  return _apps;