@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.
@@ -20451,7 +20451,7 @@ class Platform {
20451
20451
  }
20452
20452
  }
20453
20453
 
20454
- var version = "6.16.0";
20454
+ var version = "6.16.2";
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
  });
@@ -24376,18 +24380,14 @@ class InMemoryStoreImpl {
24376
24380
  if (!result.returned || Object.keys(result.returned).length === 0) {
24377
24381
  return {
24378
24382
  imported: [],
24379
- updated: [],
24380
- failed: [],
24381
- warnings: []
24383
+ errors: []
24382
24384
  };
24383
24385
  }
24384
- const { imported, updated, failed, warnings } = result.returned;
24385
- this.logger.debug(`Import completed: ${imported.length} imported, ${(updated !== null && updated !== void 0 ? updated : []).length} updated, ${(failed !== null && failed !== void 0 ? failed : []).length} failed`);
24386
+ const { imported, errors } = result.returned;
24387
+ this.logger.debug(`Import completed: ${imported.length} imported, ${errors.length} errors`);
24386
24388
  return {
24387
24389
  imported: imported || [],
24388
- updated: updated || [],
24389
- failed: failed || [],
24390
- warnings: warnings || []
24390
+ errors: errors || []
24391
24391
  };
24392
24392
  }
24393
24393
  catch (error) {
@@ -24835,6 +24835,10 @@ function appsFactory(interop, logger) {
24835
24835
  if (!logger) {
24836
24836
  throw new Error("Logger is required for Apps API initialization");
24837
24837
  }
24838
+ if (interop.methods(AppsCommandMethodName).length === 0) {
24839
+ logger.debug("Apps API method not registered in interop; skipping Apps API initialization");
24840
+ return;
24841
+ }
24838
24842
  logger.debug("Initializing new Apps API factory");
24839
24843
  let resolveCallback = () => {
24840
24844
  logger.debug("Apps API factory ready");
@@ -25116,6 +25120,9 @@ const factoryCore = async (options, glue42gd) => {
25116
25120
  }
25117
25121
  const logger = getLibLogger("apps", core.logger, glueConfig.apps);
25118
25122
  _apps = appsFactory(core.agm, logger);
25123
+ if (!_apps) {
25124
+ return;
25125
+ }
25119
25126
  debugLog(_apps);
25120
25127
  _appsController.setApps(_apps);
25121
25128
  return _apps;