@interopio/desktop 6.16.0 → 6.16.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.
@@ -20457,7 +20457,7 @@
20457
20457
  }
20458
20458
  }
20459
20459
 
20460
- var version = "6.16.0";
20460
+ var version = "6.16.2";
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
  });
@@ -24382,18 +24386,14 @@
24382
24386
  if (!result.returned || Object.keys(result.returned).length === 0) {
24383
24387
  return {
24384
24388
  imported: [],
24385
- updated: [],
24386
- failed: [],
24387
- warnings: []
24389
+ errors: []
24388
24390
  };
24389
24391
  }
24390
- const { imported, updated, failed, warnings } = result.returned;
24391
- this.logger.debug(`Import completed: ${imported.length} imported, ${(updated !== null && updated !== void 0 ? updated : []).length} updated, ${(failed !== null && failed !== void 0 ? failed : []).length} failed`);
24392
+ const { imported, errors } = result.returned;
24393
+ this.logger.debug(`Import completed: ${imported.length} imported, ${errors.length} errors`);
24392
24394
  return {
24393
24395
  imported: imported || [],
24394
- updated: updated || [],
24395
- failed: failed || [],
24396
- warnings: warnings || []
24396
+ errors: errors || []
24397
24397
  };
24398
24398
  }
24399
24399
  catch (error) {
@@ -24841,6 +24841,10 @@
24841
24841
  if (!logger) {
24842
24842
  throw new Error("Logger is required for Apps API initialization");
24843
24843
  }
24844
+ if (interop.methods(AppsCommandMethodName).length === 0) {
24845
+ logger.debug("Apps API method not registered in interop; skipping Apps API initialization");
24846
+ return;
24847
+ }
24844
24848
  logger.debug("Initializing new Apps API factory");
24845
24849
  let resolveCallback = () => {
24846
24850
  logger.debug("Apps API factory ready");
@@ -25122,6 +25126,9 @@
25122
25126
  }
25123
25127
  const logger = getLibLogger("apps", core.logger, glueConfig.apps);
25124
25128
  _apps = appsFactory(core.agm, logger);
25129
+ if (!_apps) {
25130
+ return;
25131
+ }
25125
25132
  debugLog(_apps);
25126
25133
  _appsController.setApps(_apps);
25127
25134
  return _apps;