@interopio/desktop 6.9.0 → 6.9.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/desktop.d.ts CHANGED
@@ -7950,7 +7950,6 @@ export declare namespace IOConnectDesktop {
7950
7950
 
7951
7951
  /**
7952
7952
  * @intro
7953
- * @since io.Connect Desktop 9.6
7954
7953
  * The Interception API enables apps to register interception handlers with which to modify the low-level platform operations.
7955
7954
  * Interception handlers can be executed before and/or after the default implementations of the platform operations,
7956
7955
  * and the execution of the default implementation for a platform operation can be prevented entirely.
@@ -2825,7 +2825,7 @@
2825
2825
  this.log(message, "warn");
2826
2826
  }
2827
2827
  error(message, err) {
2828
- this.log(message, "error");
2828
+ this.log(message, "error", err);
2829
2829
  }
2830
2830
  canPublish(level, compareWith) {
2831
2831
  const levelIdx = order.indexOf(level);
@@ -2842,7 +2842,7 @@
2842
2842
  "\n" +
2843
2843
  e.stack
2844
2844
  .split("\n")
2845
- .slice(3)
2845
+ .slice(4)
2846
2846
  .join("\n");
2847
2847
  }
2848
2848
  }
@@ -2851,11 +2851,18 @@
2851
2851
  if (interop) {
2852
2852
  try {
2853
2853
  if (interop.methods({ name: Logger.InteropMethodName }).length > 0) {
2854
- interop.invoke(Logger.InteropMethodName, {
2855
- msg: `${message}`,
2854
+ const args = {
2855
+ msg: message,
2856
2856
  logger: loggerName,
2857
2857
  level
2858
- });
2858
+ };
2859
+ if (error && error instanceof Error) {
2860
+ args.error = {
2861
+ message: error.message,
2862
+ stack: error.stack ?? ""
2863
+ };
2864
+ }
2865
+ interop.invoke(Logger.InteropMethodName, args);
2859
2866
  }
2860
2867
  }
2861
2868
  catch {
@@ -2933,7 +2940,7 @@
2933
2940
  }
2934
2941
  };
2935
2942
 
2936
- var version$1 = "6.4.2";
2943
+ var version$1 = "6.4.3";
2937
2944
 
2938
2945
  function prepareConfig$1 (configuration, ext, glue42gd) {
2939
2946
  let nodeStartingContext;
@@ -18549,7 +18556,7 @@
18549
18556
  };
18550
18557
  }
18551
18558
 
18552
- var version = "6.9.0";
18559
+ var version = "6.9.1";
18553
18560
 
18554
18561
  var prepareConfig = (options) => {
18555
18562
  function getLibConfig(value, defaultMode, trueMode) {