@aws-amplify/api-graphql 2.3.16 → 2.3.18-baby-fix.10

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,22 @@
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
+ ## [2.3.18](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api-graphql@2.3.17...@aws-amplify/api-graphql@2.3.18) (2022-09-20)
7
+
8
+ **Note:** Version bump only for package @aws-amplify/api-graphql
9
+
10
+
11
+
12
+
13
+
14
+ ## [2.3.17](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api-graphql@2.3.16...@aws-amplify/api-graphql@2.3.17) (2022-09-08)
15
+
16
+ **Note:** Version bump only for package @aws-amplify/api-graphql
17
+
18
+
19
+
20
+
21
+
6
22
  ## [2.3.16](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api-graphql@2.3.15...@aws-amplify/api-graphql@2.3.16) (2022-09-01)
7
23
 
8
24
  **Note:** Version bump only for package @aws-amplify/api-graphql
@@ -11242,7 +11242,7 @@ __webpack_require__.r(__webpack_exports__);
11242
11242
  /* harmony import */ var _aws_amplify_auth__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @aws-amplify/auth */ "@aws-amplify/auth");
11243
11243
  /* harmony import */ var _aws_amplify_auth__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_aws_amplify_auth__WEBPACK_IMPORTED_MODULE_7__);
11244
11244
  /* harmony import */ var _PubSubProvider__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../PubSubProvider */ "../pubsub/lib-esm/Providers/PubSubProvider.js");
11245
- /* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../index */ "../pubsub/lib-esm/index.js");
11245
+ /* harmony import */ var _types_PubSub__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../types/PubSub */ "../pubsub/lib-esm/types/PubSub.js");
11246
11246
  /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../constants */ "../pubsub/lib-esm/Providers/constants.js");
11247
11247
  /* harmony import */ var _utils_ConnectionStateMonitor__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../utils/ConnectionStateMonitor */ "../pubsub/lib-esm/utils/ConnectionStateMonitor.js");
11248
11248
  var __extends = undefined && undefined.__extends || function () {
@@ -11514,7 +11514,7 @@ function (_super) {
11514
11514
  _this.connectionStateMonitor = new _utils_ConnectionStateMonitor__WEBPACK_IMPORTED_MODULE_11__["ConnectionStateMonitor"](); // Monitor the connection state and pass changes along to Hub
11515
11515
 
11516
11516
  _this.connectionStateMonitor.connectionStateObservable.subscribe(function (ConnectionState) {
11517
- dispatchApiEvent(_index__WEBPACK_IMPORTED_MODULE_9__["CONNECTION_STATE_CHANGE"], {
11517
+ dispatchApiEvent(_constants__WEBPACK_IMPORTED_MODULE_10__["CONNECTION_STATE_CHANGE"], {
11518
11518
  provider: _this,
11519
11519
  connectionState: ConnectionState
11520
11520
  }, "Connection state is " + ConnectionState);
@@ -11567,7 +11567,7 @@ function (_super) {
11567
11567
  subscriptionId: subscriptionId_1
11568
11568
  })["catch"](function (err) {
11569
11569
  observer.error({
11570
- errors: [__assign({}, new graphql__WEBPACK_IMPORTED_MODULE_1__["GraphQLError"](_index__WEBPACK_IMPORTED_MODULE_9__["CONTROL_MSG"].REALTIME_SUBSCRIPTION_INIT_ERROR + ": " + err))]
11570
+ errors: [__assign({}, new graphql__WEBPACK_IMPORTED_MODULE_1__["GraphQLError"](_types_PubSub__WEBPACK_IMPORTED_MODULE_9__["CONTROL_MSG"].REALTIME_SUBSCRIPTION_INIT_ERROR + ": " + err))]
11571
11571
  });
11572
11572
 
11573
11573
  _this.connectionStateMonitor.record(_utils_ConnectionStateMonitor__WEBPACK_IMPORTED_MODULE_11__["CONNECTION_CHANGE"].CLOSED);
@@ -11742,7 +11742,7 @@ function (_super) {
11742
11742
  message = (_b = err_2['message']) !== null && _b !== void 0 ? _b : '';
11743
11743
  this.connectionStateMonitor.record(_utils_ConnectionStateMonitor__WEBPACK_IMPORTED_MODULE_11__["CONNECTION_CHANGE"].CLOSED);
11744
11744
  observer.error({
11745
- errors: [__assign({}, new graphql__WEBPACK_IMPORTED_MODULE_1__["GraphQLError"](_index__WEBPACK_IMPORTED_MODULE_9__["CONTROL_MSG"].CONNECTION_FAILED + ": " + message))]
11745
+ errors: [__assign({}, new graphql__WEBPACK_IMPORTED_MODULE_1__["GraphQLError"](_types_PubSub__WEBPACK_IMPORTED_MODULE_9__["CONTROL_MSG"].CONNECTION_FAILED + ": " + message))]
11746
11746
  });
11747
11747
  observer.complete();
11748
11748
  subscriptionFailedCallback_1 = (this.subscriptionObserverMap.get(subscriptionId) || {}).subscriptionFailedCallback; // Notify concurrent unsubscription
@@ -11936,7 +11936,7 @@ function (_super) {
11936
11936
  }
11937
11937
 
11938
11938
  if (startAckTimeoutId) clearTimeout(startAckTimeoutId);
11939
- dispatchApiEvent(_index__WEBPACK_IMPORTED_MODULE_9__["CONTROL_MSG"].SUBSCRIPTION_ACK, {
11939
+ dispatchApiEvent(_types_PubSub__WEBPACK_IMPORTED_MODULE_9__["CONTROL_MSG"].SUBSCRIPTION_ACK, {
11940
11940
  query: query,
11941
11941
  variables: variables
11942
11942
  }, 'Connection established for subscription');
@@ -11962,7 +11962,7 @@ function (_super) {
11962
11962
  if (this.keepAliveTimeoutId) clearTimeout(this.keepAliveTimeoutId);
11963
11963
  if (this.keepAliveAlertTimeoutId) clearTimeout(this.keepAliveAlertTimeoutId);
11964
11964
  this.keepAliveTimeoutId = setTimeout(function () {
11965
- return _this._errorDisconnect(_index__WEBPACK_IMPORTED_MODULE_9__["CONTROL_MSG"].TIMEOUT_DISCONNECT);
11965
+ return _this._errorDisconnect(_types_PubSub__WEBPACK_IMPORTED_MODULE_9__["CONTROL_MSG"].TIMEOUT_DISCONNECT);
11966
11966
  }, this.keepAliveTimeout);
11967
11967
  this.keepAliveAlertTimeoutId = setTimeout(function () {
11968
11968
  _this.connectionStateMonitor.record(_utils_ConnectionStateMonitor__WEBPACK_IMPORTED_MODULE_11__["CONNECTION_CHANGE"].KEEP_ALIVE_MISSED);
@@ -11985,7 +11985,7 @@ function (_super) {
11985
11985
  subscriptionState: subscriptionState
11986
11986
  });
11987
11987
  observer.error({
11988
- errors: [__assign({}, new graphql__WEBPACK_IMPORTED_MODULE_1__["GraphQLError"](_index__WEBPACK_IMPORTED_MODULE_9__["CONTROL_MSG"].CONNECTION_FAILED + ": " + JSON.stringify(payload)))]
11988
+ errors: [__assign({}, new graphql__WEBPACK_IMPORTED_MODULE_1__["GraphQLError"](_types_PubSub__WEBPACK_IMPORTED_MODULE_9__["CONTROL_MSG"].CONNECTION_FAILED + ": " + JSON.stringify(payload)))]
11989
11989
  });
11990
11990
  if (startAckTimeoutId) clearTimeout(startAckTimeoutId);
11991
11991
  observer.complete();
@@ -12260,13 +12260,13 @@ function (_super) {
12260
12260
  _this.awsRealTimeSocket.onerror = function (err) {
12261
12261
  logger.debug(err);
12262
12262
 
12263
- _this._errorDisconnect(_index__WEBPACK_IMPORTED_MODULE_9__["CONTROL_MSG"].CONNECTION_CLOSED);
12263
+ _this._errorDisconnect(_types_PubSub__WEBPACK_IMPORTED_MODULE_9__["CONTROL_MSG"].CONNECTION_CLOSED);
12264
12264
  };
12265
12265
 
12266
12266
  _this.awsRealTimeSocket.onclose = function (event) {
12267
12267
  logger.debug("WebSocket closed " + event.reason);
12268
12268
 
12269
- _this._errorDisconnect(_index__WEBPACK_IMPORTED_MODULE_9__["CONTROL_MSG"].CONNECTION_CLOSED);
12269
+ _this._errorDisconnect(_types_PubSub__WEBPACK_IMPORTED_MODULE_9__["CONTROL_MSG"].CONNECTION_CLOSED);
12270
12270
  };
12271
12271
  }
12272
12272
 
@@ -12877,7 +12877,6 @@ __webpack_require__.r(__webpack_exports__);
12877
12877
  /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_4__);
12878
12878
  /* harmony import */ var _utils_ConnectionStateMonitor__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/ConnectionStateMonitor */ "../pubsub/lib-esm/utils/ConnectionStateMonitor.js");
12879
12879
  /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./constants */ "../pubsub/lib-esm/Providers/constants.js");
12880
- /* harmony import */ var ___WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! .. */ "../pubsub/lib-esm/index.js");
12881
12880
  function _typeof(obj) {
12882
12881
  "@babel/helpers - typeof";
12883
12882
 
@@ -13106,7 +13105,6 @@ var __rest = undefined && undefined.__rest || function (s, e) {
13106
13105
 
13107
13106
 
13108
13107
 
13109
-
13110
13108
  var logger = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_4__["ConsoleLogger"]('MqttOverWSProvider');
13111
13109
  function mqttTopicMatch(filter, topic) {
13112
13110
  var filterArray = filter.split('/');
@@ -13202,7 +13200,7 @@ function (_super) {
13202
13200
  _this._clientIdObservers = new Map(); // Monitor the connection health state and pass changes along to Hub
13203
13201
 
13204
13202
  _this.connectionStateMonitor.connectionStateObservable.subscribe(function (connectionStateChange) {
13205
- dispatchPubSubEvent(___WEBPACK_IMPORTED_MODULE_7__["CONNECTION_STATE_CHANGE"], {
13203
+ dispatchPubSubEvent(_constants__WEBPACK_IMPORTED_MODULE_6__["CONNECTION_STATE_CHANGE"], {
13206
13204
  provider: _this,
13207
13205
  connectionState: connectionStateChange
13208
13206
  }, "Connection state is " + connectionStateChange);
@@ -13686,13 +13684,14 @@ function () {
13686
13684
  /*!************************************************!*\
13687
13685
  !*** ../pubsub/lib-esm/Providers/constants.js ***!
13688
13686
  \************************************************/
13689
- /*! exports provided: MAX_DELAY_MS, NON_RETRYABLE_CODES, MESSAGE_TYPES, SUBSCRIPTION_STATUS, SOCKET_STATUS, AMPLIFY_SYMBOL, AWS_APPSYNC_REALTIME_HEADERS, CONNECTION_INIT_TIMEOUT, START_ACK_TIMEOUT, DEFAULT_KEEP_ALIVE_TIMEOUT, DEFAULT_KEEP_ALIVE_ALERT_TIMEOUT */
13687
+ /*! exports provided: MAX_DELAY_MS, NON_RETRYABLE_CODES, CONNECTION_STATE_CHANGE, MESSAGE_TYPES, SUBSCRIPTION_STATUS, SOCKET_STATUS, AMPLIFY_SYMBOL, AWS_APPSYNC_REALTIME_HEADERS, CONNECTION_INIT_TIMEOUT, START_ACK_TIMEOUT, DEFAULT_KEEP_ALIVE_TIMEOUT, DEFAULT_KEEP_ALIVE_ALERT_TIMEOUT */
13690
13688
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
13691
13689
 
13692
13690
  "use strict";
13693
13691
  __webpack_require__.r(__webpack_exports__);
13694
13692
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MAX_DELAY_MS", function() { return MAX_DELAY_MS; });
13695
13693
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NON_RETRYABLE_CODES", function() { return NON_RETRYABLE_CODES; });
13694
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CONNECTION_STATE_CHANGE", function() { return CONNECTION_STATE_CHANGE; });
13696
13695
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MESSAGE_TYPES", function() { return MESSAGE_TYPES; });
13697
13696
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SUBSCRIPTION_STATUS", function() { return SUBSCRIPTION_STATUS; });
13698
13697
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SOCKET_STATUS", function() { return SOCKET_STATUS; });
@@ -13704,6 +13703,7 @@ __webpack_require__.r(__webpack_exports__);
13704
13703
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DEFAULT_KEEP_ALIVE_ALERT_TIMEOUT", function() { return DEFAULT_KEEP_ALIVE_ALERT_TIMEOUT; });
13705
13704
  var MAX_DELAY_MS = 5000;
13706
13705
  var NON_RETRYABLE_CODES = [400, 401, 403];
13706
+ var CONNECTION_STATE_CHANGE = 'ConnectionStateChange';
13707
13707
  var MESSAGE_TYPES;
13708
13708
 
13709
13709
  (function (MESSAGE_TYPES) {
@@ -14244,13 +14244,11 @@ _aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__["Amplify"].register(PubSub);
14244
14244
  /*!**********************************!*\
14245
14245
  !*** ../pubsub/lib-esm/index.js ***!
14246
14246
  \**********************************/
14247
- /*! exports provided: AbstractPubSubProvider, AWSAppSyncProvider, AWSAppSyncRealTimeProvider, AWSIoTProvider, mqttTopicMatch, MqttOverWSProvider, CONNECTION_STATE_CHANGE, ConnectionState, PubSub, CONTROL_MSG, default */
14247
+ /*! exports provided: AbstractPubSubProvider, AWSAppSyncProvider, AWSAppSyncRealTimeProvider, AWSIoTProvider, mqttTopicMatch, MqttOverWSProvider, CONNECTION_STATE_CHANGE, ConnectionState, CONTROL_MSG, PubSub, default */
14248
14248
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
14249
14249
 
14250
14250
  "use strict";
14251
14251
  __webpack_require__.r(__webpack_exports__);
14252
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CONNECTION_STATE_CHANGE", function() { return CONNECTION_STATE_CHANGE; });
14253
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CONTROL_MSG", function() { return CONTROL_MSG; });
14254
14252
  /* harmony import */ var _PubSub__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./PubSub */ "../pubsub/lib-esm/PubSub.js");
14255
14253
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PubSub", function() { return _PubSub__WEBPACK_IMPORTED_MODULE_0__["PubSub"]; });
14256
14254
 
@@ -14267,8 +14265,13 @@ __webpack_require__.r(__webpack_exports__);
14267
14265
 
14268
14266
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MqttOverWSProvider", function() { return _Providers__WEBPACK_IMPORTED_MODULE_1__["MqttOverWSProvider"]; });
14269
14267
 
14270
- /* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./types */ "../pubsub/lib-esm/types/index.js");
14271
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ConnectionState", function() { return _types__WEBPACK_IMPORTED_MODULE_2__["ConnectionState"]; });
14268
+ /* harmony import */ var _Providers_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Providers/constants */ "../pubsub/lib-esm/Providers/constants.js");
14269
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CONNECTION_STATE_CHANGE", function() { return _Providers_constants__WEBPACK_IMPORTED_MODULE_2__["CONNECTION_STATE_CHANGE"]; });
14270
+
14271
+ /* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./types */ "../pubsub/lib-esm/types/index.js");
14272
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ConnectionState", function() { return _types__WEBPACK_IMPORTED_MODULE_3__["ConnectionState"]; });
14273
+
14274
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CONTROL_MSG", function() { return _types__WEBPACK_IMPORTED_MODULE_3__["CONTROL_MSG"]; });
14272
14275
 
14273
14276
  /*
14274
14277
  * Copyright 2017-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
@@ -14284,17 +14287,7 @@ __webpack_require__.r(__webpack_exports__);
14284
14287
  */
14285
14288
 
14286
14289
 
14287
- var CONTROL_MSG;
14288
14290
 
14289
- (function (CONTROL_MSG) {
14290
- CONTROL_MSG["CONNECTION_CLOSED"] = "Connection closed";
14291
- CONTROL_MSG["CONNECTION_FAILED"] = "Connection failed";
14292
- CONTROL_MSG["REALTIME_SUBSCRIPTION_INIT_ERROR"] = "AppSync Realtime subscription init error";
14293
- CONTROL_MSG["SUBSCRIPTION_ACK"] = "Subscription ack";
14294
- CONTROL_MSG["TIMEOUT_DISCONNECT"] = "Timeout disconnect";
14295
- })(CONTROL_MSG || (CONTROL_MSG = {}));
14296
-
14297
- var CONNECTION_STATE_CHANGE = 'ConnectionStateChange';
14298
14291
 
14299
14292
 
14300
14293
  /**
@@ -14305,17 +14298,41 @@ var CONNECTION_STATE_CHANGE = 'ConnectionStateChange';
14305
14298
 
14306
14299
  /***/ }),
14307
14300
 
14308
- /***/ "../pubsub/lib-esm/types/index.js":
14309
- /*!****************************************!*\
14310
- !*** ../pubsub/lib-esm/types/index.js ***!
14311
- \****************************************/
14312
- /*! exports provided: ConnectionState */
14301
+ /***/ "../pubsub/lib-esm/types/PubSub.js":
14302
+ /*!*****************************************!*\
14303
+ !*** ../pubsub/lib-esm/types/PubSub.js ***!
14304
+ \*****************************************/
14305
+ /*! exports provided: CONTROL_MSG, ConnectionState */
14313
14306
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
14314
14307
 
14315
14308
  "use strict";
14316
14309
  __webpack_require__.r(__webpack_exports__);
14310
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CONTROL_MSG", function() { return CONTROL_MSG; });
14317
14311
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConnectionState", function() { return ConnectionState; });
14312
+ /*
14313
+ * Copyright 2017-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
14314
+ *
14315
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
14316
+ * the License. A copy of the License is located at
14317
+ *
14318
+ * http://aws.amazon.com/apache2.0/
14319
+ *
14320
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
14321
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
14322
+ * and limitations under the License.
14323
+ */
14324
+ var CONTROL_MSG;
14325
+
14326
+ (function (CONTROL_MSG) {
14327
+ CONTROL_MSG["CONNECTION_CLOSED"] = "Connection closed";
14328
+ CONTROL_MSG["CONNECTION_FAILED"] = "Connection failed";
14329
+ CONTROL_MSG["REALTIME_SUBSCRIPTION_INIT_ERROR"] = "AppSync Realtime subscription init error";
14330
+ CONTROL_MSG["SUBSCRIPTION_ACK"] = "Subscription ack";
14331
+ CONTROL_MSG["TIMEOUT_DISCONNECT"] = "Timeout disconnect";
14332
+ })(CONTROL_MSG || (CONTROL_MSG = {}));
14318
14333
  /** @enum {string} */
14334
+
14335
+
14319
14336
  var ConnectionState;
14320
14337
 
14321
14338
  (function (ConnectionState) {
@@ -14360,6 +14377,24 @@ var ConnectionState;
14360
14377
  ConnectionState["ConnectedPendingKeepAlive"] = "ConnectedPendingKeepAlive";
14361
14378
  })(ConnectionState || (ConnectionState = {}));
14362
14379
 
14380
+ /***/ }),
14381
+
14382
+ /***/ "../pubsub/lib-esm/types/index.js":
14383
+ /*!****************************************!*\
14384
+ !*** ../pubsub/lib-esm/types/index.js ***!
14385
+ \****************************************/
14386
+ /*! exports provided: CONTROL_MSG, ConnectionState */
14387
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
14388
+
14389
+ "use strict";
14390
+ __webpack_require__.r(__webpack_exports__);
14391
+ /* harmony import */ var _PubSub__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./PubSub */ "../pubsub/lib-esm/types/PubSub.js");
14392
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CONTROL_MSG", function() { return _PubSub__WEBPACK_IMPORTED_MODULE_0__["CONTROL_MSG"]; });
14393
+
14394
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ConnectionState", function() { return _PubSub__WEBPACK_IMPORTED_MODULE_0__["ConnectionState"]; });
14395
+
14396
+
14397
+
14363
14398
  /***/ }),
14364
14399
 
14365
14400
  /***/ "../pubsub/lib-esm/utils/ConnectionStateMonitor.js":
@@ -14374,7 +14409,7 @@ __webpack_require__.r(__webpack_exports__);
14374
14409
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CONNECTION_CHANGE", function() { return CONNECTION_CHANGE; });
14375
14410
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConnectionStateMonitor", function() { return ConnectionStateMonitor; });
14376
14411
  /* harmony import */ var zen_observable_ts__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zen-observable-ts */ "../../node_modules/zen-observable-ts/lib/bundle.esm.js");
14377
- /* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../index */ "../pubsub/lib-esm/index.js");
14412
+ /* harmony import */ var _types_PubSub__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../types/PubSub */ "../pubsub/lib-esm/types/PubSub.js");
14378
14413
  /* harmony import */ var _ReachabilityMonitor__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ReachabilityMonitor */ "../pubsub/lib-esm/utils/ReachabilityMonitor/index.js");
14379
14414
  /*
14380
14415
  * Copyright 2017-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
@@ -14540,15 +14575,15 @@ function () {
14540
14575
  networkState = _a.networkState,
14541
14576
  intendedConnectionState = _a.intendedConnectionState,
14542
14577
  keepAliveState = _a.keepAliveState;
14543
- if (connectionState === 'connected' && networkState === 'disconnected') return _index__WEBPACK_IMPORTED_MODULE_1__["ConnectionState"].ConnectedPendingNetwork;
14544
- if (connectionState === 'connected' && intendedConnectionState === 'disconnected') return _index__WEBPACK_IMPORTED_MODULE_1__["ConnectionState"].ConnectedPendingDisconnect;
14545
- if (connectionState === 'disconnected' && intendedConnectionState === 'connected' && networkState === 'disconnected') return _index__WEBPACK_IMPORTED_MODULE_1__["ConnectionState"].ConnectionDisruptedPendingNetwork;
14546
- if (connectionState === 'disconnected' && intendedConnectionState === 'connected') return _index__WEBPACK_IMPORTED_MODULE_1__["ConnectionState"].ConnectionDisrupted;
14547
- if (connectionState === 'connected' && keepAliveState === 'unhealthy') return _index__WEBPACK_IMPORTED_MODULE_1__["ConnectionState"].ConnectedPendingKeepAlive; // All remaining states directly correspond to the connection state
14548
-
14549
- if (connectionState === 'connecting') return _index__WEBPACK_IMPORTED_MODULE_1__["ConnectionState"].Connecting;
14550
- if (connectionState === 'disconnected') return _index__WEBPACK_IMPORTED_MODULE_1__["ConnectionState"].Disconnected;
14551
- return _index__WEBPACK_IMPORTED_MODULE_1__["ConnectionState"].Connected;
14578
+ if (connectionState === 'connected' && networkState === 'disconnected') return _types_PubSub__WEBPACK_IMPORTED_MODULE_1__["ConnectionState"].ConnectedPendingNetwork;
14579
+ if (connectionState === 'connected' && intendedConnectionState === 'disconnected') return _types_PubSub__WEBPACK_IMPORTED_MODULE_1__["ConnectionState"].ConnectedPendingDisconnect;
14580
+ if (connectionState === 'disconnected' && intendedConnectionState === 'connected' && networkState === 'disconnected') return _types_PubSub__WEBPACK_IMPORTED_MODULE_1__["ConnectionState"].ConnectionDisruptedPendingNetwork;
14581
+ if (connectionState === 'disconnected' && intendedConnectionState === 'connected') return _types_PubSub__WEBPACK_IMPORTED_MODULE_1__["ConnectionState"].ConnectionDisrupted;
14582
+ if (connectionState === 'connected' && keepAliveState === 'unhealthy') return _types_PubSub__WEBPACK_IMPORTED_MODULE_1__["ConnectionState"].ConnectedPendingKeepAlive; // All remaining states directly correspond to the connection state
14583
+
14584
+ if (connectionState === 'connecting') return _types_PubSub__WEBPACK_IMPORTED_MODULE_1__["ConnectionState"].Connecting;
14585
+ if (connectionState === 'disconnected') return _types_PubSub__WEBPACK_IMPORTED_MODULE_1__["ConnectionState"].Disconnected;
14586
+ return _types_PubSub__WEBPACK_IMPORTED_MODULE_1__["ConnectionState"].Connected;
14552
14587
  };
14553
14588
 
14554
14589
  return ConnectionStateMonitor;
@@ -15381,8 +15416,8 @@ function () {
15381
15416
  } : _c;
15382
15417
  var authenticationType = defaultAuthenticationType || aws_appsync_authenticationType || 'AWS_IAM';
15383
15418
 
15384
- if (_aws_amplify_pubsub__WEBPACK_IMPORTED_MODULE_2__["default"] && typeof _aws_amplify_pubsub__WEBPACK_IMPORTED_MODULE_2__["default"].subscribe === 'function') {
15385
- return _aws_amplify_pubsub__WEBPACK_IMPORTED_MODULE_2__["default"].subscribe('', {
15419
+ if (_aws_amplify_pubsub__WEBPACK_IMPORTED_MODULE_2__["PubSub"] && typeof _aws_amplify_pubsub__WEBPACK_IMPORTED_MODULE_2__["PubSub"].subscribe === 'function') {
15420
+ return _aws_amplify_pubsub__WEBPACK_IMPORTED_MODULE_2__["PubSub"].subscribe('', {
15386
15421
  provider: _aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__["INTERNAL_AWS_APPSYNC_REALTIME_PUBSUB_PROVIDER"],
15387
15422
  appSyncGraphqlEndpoint: appSyncGraphqlEndpoint,
15388
15423
  authenticationType: authenticationType,