@interopio/desktop 6.9.0 → 6.9.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.
- package/changelog.md +4 -0
- package/desktop.d.ts +0 -1
- package/dist/desktop.browser.js +29 -13
- package/dist/desktop.browser.js.map +1 -1
- package/dist/desktop.browser.min.js +1 -1
- package/dist/desktop.browser.min.js.map +1 -1
- package/dist/desktop.es.js +29 -13
- package/dist/desktop.es.js.map +1 -1
- package/dist/desktop.umd.js +29 -13
- package/dist/desktop.umd.js.map +1 -1
- package/dist/desktop.umd.min.js +1 -1
- package/dist/desktop.umd.min.js.map +1 -1
- package/package.json +4 -4
package/changelog.md
CHANGED
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.
|
package/dist/desktop.browser.js
CHANGED
|
@@ -1680,12 +1680,16 @@
|
|
|
1680
1680
|
child.source.postMessage(event.data, child.origin, [data.port]);
|
|
1681
1681
|
return;
|
|
1682
1682
|
}
|
|
1683
|
-
handleConnectionRejected() {
|
|
1683
|
+
handleConnectionRejected(event) {
|
|
1684
1684
|
this.logger.debug("handling a connection rejection. Most likely the reason is that this window was not created by a glue API call");
|
|
1685
|
-
if (this.connectionReject) {
|
|
1686
|
-
|
|
1687
|
-
delete this.connectionReject;
|
|
1685
|
+
if (!this.connectionReject) {
|
|
1686
|
+
return;
|
|
1688
1687
|
}
|
|
1688
|
+
const errorMsg = typeof event.data.glue42core?.error === "string"
|
|
1689
|
+
? `Connection was rejected. ${event.data.glue42core?.error}`
|
|
1690
|
+
: "The platform connection was rejected. Most likely because this window was not created by a glue API call";
|
|
1691
|
+
this.connectionReject(errorMsg);
|
|
1692
|
+
delete this.connectionReject;
|
|
1689
1693
|
}
|
|
1690
1694
|
handleConnectionRequest(event) {
|
|
1691
1695
|
if (this.extContentConnecting) {
|
|
@@ -1869,7 +1873,7 @@
|
|
|
1869
1873
|
await this.requestConnectionPermissionFromExt();
|
|
1870
1874
|
}
|
|
1871
1875
|
getPossibleParentsInWindow(currentWindow) {
|
|
1872
|
-
return (!currentWindow || currentWindow === currentWindow.
|
|
1876
|
+
return (!currentWindow?.parent || currentWindow === currentWindow.parent) ? [] : [currentWindow.parent, ...this.getPossibleParentsInWindow(currentWindow.parent)];
|
|
1873
1877
|
}
|
|
1874
1878
|
getPossibleParentsOutsideWindow(opener, current) {
|
|
1875
1879
|
return (!opener || !current || opener === current) ? [] : [opener, ...this.getPossibleParentsInWindow(opener), ...this.getPossibleParentsOutsideWindow(opener.opener, opener)];
|
|
@@ -2825,7 +2829,7 @@
|
|
|
2825
2829
|
this.log(message, "warn");
|
|
2826
2830
|
}
|
|
2827
2831
|
error(message, err) {
|
|
2828
|
-
this.log(message, "error");
|
|
2832
|
+
this.log(message, "error", err);
|
|
2829
2833
|
}
|
|
2830
2834
|
canPublish(level, compareWith) {
|
|
2831
2835
|
const levelIdx = order.indexOf(level);
|
|
@@ -2842,7 +2846,7 @@
|
|
|
2842
2846
|
"\n" +
|
|
2843
2847
|
e.stack
|
|
2844
2848
|
.split("\n")
|
|
2845
|
-
.slice(
|
|
2849
|
+
.slice(4)
|
|
2846
2850
|
.join("\n");
|
|
2847
2851
|
}
|
|
2848
2852
|
}
|
|
@@ -2851,11 +2855,18 @@
|
|
|
2851
2855
|
if (interop) {
|
|
2852
2856
|
try {
|
|
2853
2857
|
if (interop.methods({ name: Logger.InteropMethodName }).length > 0) {
|
|
2854
|
-
|
|
2855
|
-
msg:
|
|
2858
|
+
const args = {
|
|
2859
|
+
msg: message,
|
|
2856
2860
|
logger: loggerName,
|
|
2857
2861
|
level
|
|
2858
|
-
}
|
|
2862
|
+
};
|
|
2863
|
+
if (error && error instanceof Error) {
|
|
2864
|
+
args.error = {
|
|
2865
|
+
message: error.message,
|
|
2866
|
+
stack: error.stack ?? ""
|
|
2867
|
+
};
|
|
2868
|
+
}
|
|
2869
|
+
interop.invoke(Logger.InteropMethodName, args);
|
|
2859
2870
|
}
|
|
2860
2871
|
}
|
|
2861
2872
|
catch {
|
|
@@ -2933,7 +2944,7 @@
|
|
|
2933
2944
|
}
|
|
2934
2945
|
};
|
|
2935
2946
|
|
|
2936
|
-
var version$1 = "6.
|
|
2947
|
+
var version$1 = "6.5.0";
|
|
2937
2948
|
|
|
2938
2949
|
function prepareConfig$1 (configuration, ext, glue42gd) {
|
|
2939
2950
|
let nodeStartingContext;
|
|
@@ -18549,7 +18560,7 @@
|
|
|
18549
18560
|
};
|
|
18550
18561
|
}
|
|
18551
18562
|
|
|
18552
|
-
var version = "6.9.
|
|
18563
|
+
var version = "6.9.2";
|
|
18553
18564
|
|
|
18554
18565
|
var prepareConfig = (options) => {
|
|
18555
18566
|
function getLibConfig(value, defaultMode, trueMode) {
|
|
@@ -20299,9 +20310,14 @@
|
|
|
20299
20310
|
if (request.target === "startNew") {
|
|
20300
20311
|
return handlers.filter((handler) => handler.type === "app").length > 1;
|
|
20301
20312
|
}
|
|
20302
|
-
if (
|
|
20313
|
+
if (request.target.instance) {
|
|
20303
20314
|
return false;
|
|
20304
20315
|
}
|
|
20316
|
+
if (request.target.app) {
|
|
20317
|
+
const searchedAppName = request.target.app;
|
|
20318
|
+
const instanceHandlersByAppName = handlers.filter((handler) => handler.applicationName === searchedAppName && handler.instanceId);
|
|
20319
|
+
return instanceHandlersByAppName.length > 1;
|
|
20320
|
+
}
|
|
20305
20321
|
return false;
|
|
20306
20322
|
}
|
|
20307
20323
|
async removeSingletons(handlers) {
|