@aws-amplify/interactions 4.0.50-unstable.4 → 4.0.51

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
@@ -3,6 +3,28 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [4.0.51](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/interactions@4.0.50...@aws-amplify/interactions@4.0.51) (2022-08-23)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **interactions:** fix addPluggable API ([#10250](https://github.com/aws-amplify/amplify-js/issues/10250)) ([01aad60](https://github.com/aws-amplify/amplify-js/commit/01aad60ff14c3db47761db819dd47def75bfcb9d))
12
+
13
+
14
+
15
+
16
+
17
+ ## [4.0.50](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/interactions@4.0.49...@aws-amplify/interactions@4.0.50) (2022-08-18)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * **interactions:** fix configure default provider ([#10215](https://github.com/aws-amplify/amplify-js/issues/10215)) ([d4c3955](https://github.com/aws-amplify/amplify-js/commit/d4c395520bc66f24325babbe53e6ab7ebdea4d3b))
23
+
24
+
25
+
26
+
27
+
6
28
  ## [4.0.49](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/interactions@4.0.48...@aws-amplify/interactions@4.0.49) (2022-08-16)
7
29
 
8
30
  **Note:** Version bump only for package @aws-amplify/interactions
@@ -11272,24 +11272,22 @@ function () {
11272
11272
  InteractionsClass.prototype.addPluggable = function (pluggable) {
11273
11273
  var _this = this;
11274
11274
 
11275
- if (!(pluggable && pluggable.getCategory() === 'Interactions')) {
11276
- throw new Error('Invalid pluggable');
11277
- }
11278
-
11279
- if (!this._pluggables[pluggable.getProviderName()]) {
11280
- // configure bots for the new plugin
11281
- Object.keys(this._options.bots).filter(function (botKey) {
11282
- return _this._options.bots[botKey].providerName === pluggable.getProviderName();
11283
- }).forEach(function (botKey) {
11284
- var _a;
11285
-
11286
- var bot = _this._options.bots[botKey];
11287
- pluggable.configure((_a = {}, _a[bot.name] = bot, _a));
11288
- });
11289
- this._pluggables[pluggable.getProviderName()] = pluggable;
11290
- return;
11291
- } else {
11292
- throw new Error('Pluggable ' + pluggable.getProviderName() + ' already plugged');
11275
+ if (pluggable && pluggable.getCategory() === 'Interactions') {
11276
+ if (!this._pluggables[pluggable.getProviderName()]) {
11277
+ // configure bots for the new plugin
11278
+ Object.keys(this._options.bots).filter(function (botKey) {
11279
+ return _this._options.bots[botKey].providerName === pluggable.getProviderName();
11280
+ }).forEach(function (botKey) {
11281
+ var _a;
11282
+
11283
+ var bot = _this._options.bots[botKey];
11284
+ pluggable.configure((_a = {}, _a[bot.name] = bot, _a));
11285
+ });
11286
+ this._pluggables[pluggable.getProviderName()] = pluggable;
11287
+ return;
11288
+ } else {
11289
+ throw new Error('Pluggable ' + pluggable.getProviderName() + ' already plugged');
11290
+ }
11293
11291
  }
11294
11292
  };
11295
11293