@interopio/browser 3.5.0 → 3.5.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/dist/browser.es.js +12 -8
- package/dist/browser.es.js.map +1 -1
- package/dist/browser.umd.js +12 -8
- package/dist/browser.umd.js.map +1 -1
- package/dist/browser.umd.min.js +1 -1
- package/package.json +4 -4
package/changelog.md
CHANGED
package/dist/browser.es.js
CHANGED
|
@@ -4965,6 +4965,7 @@ class ChannelsController {
|
|
|
4965
4965
|
registry = CallbackRegistryFactory$1();
|
|
4966
4966
|
logger;
|
|
4967
4967
|
contexts;
|
|
4968
|
+
interop;
|
|
4968
4969
|
bridge;
|
|
4969
4970
|
windowsController;
|
|
4970
4971
|
sessionController;
|
|
@@ -4986,6 +4987,7 @@ class ChannelsController {
|
|
|
4986
4987
|
this.logger = coreGlue.logger.subLogger("channels.controller.web");
|
|
4987
4988
|
this.logger.trace("starting the web channels controller");
|
|
4988
4989
|
this.contexts = coreGlue.contexts;
|
|
4990
|
+
this.interop = coreGlue.interop;
|
|
4989
4991
|
this.addOperationsExecutors();
|
|
4990
4992
|
this.bridge = ioc.bridge;
|
|
4991
4993
|
this.windowsController = ioc.windowsController;
|
|
@@ -5031,7 +5033,7 @@ class ChannelsController {
|
|
|
5031
5033
|
const channelNames = this.getAllChannelNames();
|
|
5032
5034
|
runDecoderWithIOError(channelNameDecoder(channelNames), name);
|
|
5033
5035
|
runDecoderWithIOError(optionalNonEmptyStringDecoder, windowId);
|
|
5034
|
-
const forAnotherClient = windowId && windowId !== this.
|
|
5036
|
+
const forAnotherClient = windowId && windowId !== this.interop.instance.instance;
|
|
5035
5037
|
if (forAnotherClient) {
|
|
5036
5038
|
return await this.bridge.send("channels", operations$5.joinChannel, { channel: name, windowId }, undefined, { includeOperationCheck: true });
|
|
5037
5039
|
}
|
|
@@ -5052,7 +5054,8 @@ class ChannelsController {
|
|
|
5052
5054
|
const channelNames = this.getAllChannelNames();
|
|
5053
5055
|
runDecoderWithIOError(channelNameDecoder(channelNames), config.channel);
|
|
5054
5056
|
}
|
|
5055
|
-
|
|
5057
|
+
const forAnotherClient = config.windowId && config.windowId !== this.interop.instance.instance;
|
|
5058
|
+
if (config.windowId && forAnotherClient) {
|
|
5056
5059
|
const leaveData = { windowId: config.windowId, channelName: config.channel };
|
|
5057
5060
|
await this.bridge.send("channels", operations$5.leaveChannel, leaveData, undefined, { includeOperationCheck: true });
|
|
5058
5061
|
return;
|
|
@@ -5392,7 +5395,7 @@ class ChannelsController {
|
|
|
5392
5395
|
runDecoderWithIOError(channelRestrictionsDecoder, config);
|
|
5393
5396
|
const channelNames = this.getAllChannelNames();
|
|
5394
5397
|
runDecoderWithIOError(channelNameDecoder(channelNames), config.name);
|
|
5395
|
-
const forAnotherClient = config.windowId && config.windowId !== this.
|
|
5398
|
+
const forAnotherClient = config.windowId && config.windowId !== this.interop.instance.instance;
|
|
5396
5399
|
if (forAnotherClient) {
|
|
5397
5400
|
return this.bridge.send("channels", operations$5.restrict, { config }, undefined, { includeOperationCheck: true });
|
|
5398
5401
|
}
|
|
@@ -5408,15 +5411,16 @@ class ChannelsController {
|
|
|
5408
5411
|
}
|
|
5409
5412
|
async getRestrictions(windowId) {
|
|
5410
5413
|
runDecoderWithIOError(optionalNonEmptyStringDecoder, windowId);
|
|
5411
|
-
|
|
5412
|
-
|
|
5414
|
+
const forAnotherClient = windowId && windowId !== this.interop.instance.instance;
|
|
5415
|
+
if (windowId && forAnotherClient) {
|
|
5416
|
+
return this.bridge.send("channels", operations$5.getRestrictions, { windowId }, undefined, { includeOperationCheck: true });
|
|
5413
5417
|
}
|
|
5414
|
-
return this.
|
|
5418
|
+
return this.getMyRestrictions();
|
|
5415
5419
|
}
|
|
5416
5420
|
async restrictAll(restrictions) {
|
|
5417
5421
|
runDecoderWithIOError(restrictionsConfigDecoder, restrictions);
|
|
5418
5422
|
const allChannelNames = this.getAllChannelNames();
|
|
5419
|
-
const forAnotherClient = restrictions.windowId && restrictions.windowId !== this.
|
|
5423
|
+
const forAnotherClient = restrictions.windowId && restrictions.windowId !== this.interop.instance.instance;
|
|
5420
5424
|
if (forAnotherClient) {
|
|
5421
5425
|
return this.bridge.send("channels", operations$5.restrictAll, { restrictions }, undefined, { includeOperationCheck: true });
|
|
5422
5426
|
}
|
|
@@ -7012,7 +7016,7 @@ class IoC {
|
|
|
7012
7016
|
}
|
|
7013
7017
|
}
|
|
7014
7018
|
|
|
7015
|
-
var version$1 = "3.5.
|
|
7019
|
+
var version$1 = "3.5.2";
|
|
7016
7020
|
|
|
7017
7021
|
const createFactoryFunction = (coreFactoryFunction) => {
|
|
7018
7022
|
let cachedApiPromise;
|