@interopio/browser 3.3.0 → 3.3.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 CHANGED
@@ -1,3 +1,15 @@
1
+ 3.3.2
2
+ feat: added rename(), onRenamed() and updateMetadata() methods to the layouts API
3
+ feat: Introduce add() and remove() methods in Channels API
4
+ feat: Channels restrictions: introduce restrict(), restrictAll() and getRestrictions() methods in Channels API
5
+ feat: Introduce widget library
6
+ 3.2.3
7
+ feat: Connect Prefs API to IndexedDB
8
+ feat: Connect prefs api to ioManager.
9
+ feat: Implement missing notifications methods.
10
+ feat: Create getIntents method.
11
+ feat: Introduce new 'filterHandlers' method in Intents API.
12
+ feat: Update handler filter in intents.
1
13
  3.1.2
2
14
  feat: caller interop instance is now passed to the intent handler
3
15
  fix: added missing optional arg to channels.join
@@ -4150,14 +4150,13 @@ const operations$6 = {
4150
4150
  stateChange: { name: "stateChange", resultDecoder: notificationSetStateRequestDecoder }
4151
4151
  };
4152
4152
 
4153
- const urlAlphabet$1 =
4153
+ let urlAlphabet$1 =
4154
4154
  'useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict';
4155
-
4156
4155
  let nanoid$1 = (size = 21) => {
4157
4156
  let id = '';
4158
- let bytes = crypto.getRandomValues(new Uint8Array(size));
4159
- while (size--) {
4160
- id += urlAlphabet$1[bytes[size] & 63];
4157
+ let i = size;
4158
+ while (i--) {
4159
+ id += urlAlphabet$1[(Math.random() * 64) | 0];
4161
4160
  }
4162
4161
  return id
4163
4162
  };
@@ -6113,7 +6112,7 @@ class IoC {
6113
6112
  }
6114
6113
  }
6115
6114
 
6116
- var version$1 = "3.3.0";
6115
+ var version$1 = "3.3.2";
6117
6116
 
6118
6117
  const createFactoryFunction = (coreFactoryFunction) => {
6119
6118
  return async (userConfig) => {
@@ -7220,7 +7219,7 @@ function timer (timerName) {
7220
7219
  return timerObj;
7221
7220
  }
7222
7221
 
7223
- const WebSocketConstructor = Utils.isNode() ? require("ws") : window.WebSocket;
7222
+ const WebSocketConstructor = Utils.isNode() ? null : window.WebSocket;
7224
7223
  class WS {
7225
7224
  ws;
7226
7225
  logger;
@@ -7449,14 +7448,13 @@ class MessageReplayerImpl {
7449
7448
  }
7450
7449
  }
7451
7450
 
7452
- const urlAlphabet =
7451
+ let urlAlphabet =
7453
7452
  'useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict';
7454
-
7455
7453
  let nanoid = (size = 21) => {
7456
7454
  let id = '';
7457
- let bytes = crypto.getRandomValues(new Uint8Array(size));
7458
- while (size--) {
7459
- id += urlAlphabet[bytes[size] & 63];
7455
+ let i = size;
7456
+ while (i--) {
7457
+ id += urlAlphabet[(Math.random() * 64) | 0];
7460
7458
  }
7461
7459
  return id
7462
7460
  };
@@ -8282,7 +8280,7 @@ function domainSession (domain, connection, logger, successMessages, errorMessag
8282
8280
  resolve(successMsg);
8283
8281
  },
8284
8282
  error: (errorMsg) => {
8285
- logger.warn(`GW error - ${JSON.stringify(errorMsg)} for request ${JSON.stringify(msg)}`);
8283
+ logger.warn(`Gateway error - ${JSON.stringify(errorMsg)}`);
8286
8284
  delete requestsMap[requestId];
8287
8285
  errorMsg._tag = tag;
8288
8286
  reject(errorMsg);
@@ -9071,7 +9069,7 @@ const ContextMessageReplaySpec = {
9071
9069
  }
9072
9070
  };
9073
9071
 
9074
- var version = "6.3.0";
9072
+ var version = "6.3.2";
9075
9073
 
9076
9074
  function prepareConfig (configuration, ext, glue42gd) {
9077
9075
  let nodeStartingContext;
@@ -11509,7 +11507,7 @@ class GW3Bridge {
11509
11507
  hadCallbacks &&
11510
11508
  !contextData.hasCallbacks() &&
11511
11509
  contextData.sentExplicitSubscription) {
11512
- this.sendUnsubscribe(contextData);
11510
+ this.sendUnsubscribe(contextData).catch(() => { });
11513
11511
  }
11514
11512
  if (!contextData.isAnnounced &&
11515
11513
  !contextData.hasCallbacks()) {