@aws-amplify/api-graphql 2.2.19-custom-pk.98 → 2.2.19-custom-pk.158

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,136 +3,296 @@
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.19](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api-graphql@2.3.17...@aws-amplify/api-graphql@2.3.19) (2022-09-30)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **api-graphql:** use named PubSub export ([#10344](https://github.com/aws-amplify/amplify-js/issues/10344)) ([3798cea](https://github.com/aws-amplify/amplify-js/commit/3798cea4d015f245e3b1a8008feb42d35850b860))
12
+
13
+
14
+
15
+
16
+
17
+ ## [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)
18
+
19
+ **Note:** Version bump only for package @aws-amplify/api-graphql
20
+
21
+
22
+
23
+
24
+
25
+ ## [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)
26
+
27
+ **Note:** Version bump only for package @aws-amplify/api-graphql
28
+
29
+
30
+
31
+
32
+
33
+ ## [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)
34
+
35
+ **Note:** Version bump only for package @aws-amplify/api-graphql
36
+
37
+
38
+
39
+
40
+
6
41
  ## [2.3.15](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api-graphql@2.3.14...@aws-amplify/api-graphql@2.3.15) (2022-08-23)
7
42
 
8
43
  **Note:** Version bump only for package @aws-amplify/api-graphql
9
44
 
45
+
46
+
47
+
48
+
10
49
  ## [2.3.14](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api-graphql@2.3.13...@aws-amplify/api-graphql@2.3.14) (2022-08-18)
11
50
 
12
51
  **Note:** Version bump only for package @aws-amplify/api-graphql
13
52
 
53
+
54
+
55
+
56
+
14
57
  ## [2.3.13](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api-graphql@2.3.12...@aws-amplify/api-graphql@2.3.13) (2022-08-16)
15
58
 
16
59
  **Note:** Version bump only for package @aws-amplify/api-graphql
17
60
 
61
+
62
+
63
+
64
+
18
65
  ## [2.3.12](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api-graphql@2.3.11...@aws-amplify/api-graphql@2.3.12) (2022-08-01)
19
66
 
20
67
  **Note:** Version bump only for package @aws-amplify/api-graphql
21
68
 
69
+
70
+
71
+
72
+
22
73
  ## [2.3.11](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api-graphql@2.3.10...@aws-amplify/api-graphql@2.3.11) (2022-07-28)
23
74
 
24
75
  **Note:** Version bump only for package @aws-amplify/api-graphql
25
76
 
77
+
78
+
79
+
80
+
26
81
  ## [2.3.10](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api-graphql@2.3.9...@aws-amplify/api-graphql@2.3.10) (2022-07-21)
27
82
 
28
83
  **Note:** Version bump only for package @aws-amplify/api-graphql
29
84
 
85
+
86
+
87
+
88
+
30
89
  ## [2.3.9](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api-graphql@2.3.8...@aws-amplify/api-graphql@2.3.9) (2022-07-07)
31
90
 
32
91
  **Note:** Version bump only for package @aws-amplify/api-graphql
33
92
 
93
+
94
+
95
+
96
+
34
97
  ## [2.3.8](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api-graphql@2.3.7...@aws-amplify/api-graphql@2.3.8) (2022-06-18)
35
98
 
36
99
  **Note:** Version bump only for package @aws-amplify/api-graphql
37
100
 
101
+
102
+
103
+
104
+
38
105
  ## [2.3.7](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api-graphql@2.3.6...@aws-amplify/api-graphql@2.3.7) (2022-06-15)
39
106
 
40
107
  **Note:** Version bump only for package @aws-amplify/api-graphql
41
108
 
109
+
110
+
111
+
112
+
42
113
  ## [2.3.6](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api-graphql@2.3.5...@aws-amplify/api-graphql@2.3.6) (2022-05-24)
43
114
 
44
115
  **Note:** Version bump only for package @aws-amplify/api-graphql
45
116
 
117
+
118
+
119
+
120
+
46
121
  ## [2.3.5](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api-graphql@2.3.4...@aws-amplify/api-graphql@2.3.5) (2022-05-23)
47
122
 
48
123
  **Note:** Version bump only for package @aws-amplify/api-graphql
49
124
 
125
+
126
+
127
+
128
+
50
129
  ## [2.3.4](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api-graphql@2.3.3...@aws-amplify/api-graphql@2.3.4) (2022-05-12)
51
130
 
131
+
52
132
  ### Bug Fixes
53
133
 
54
- - **@aws-amplify/api:** graphql API.cancel fix ([#9578](https://github.com/aws-amplify/amplify-js/issues/9578)) ([a9ae27f](https://github.com/aws-amplify/amplify-js/commit/a9ae27f65e1a782321c0be87556f92d2ee432352))
134
+ * **@aws-amplify/api:** graphql API.cancel fix ([#9578](https://github.com/aws-amplify/amplify-js/issues/9578)) ([a9ae27f](https://github.com/aws-amplify/amplify-js/commit/a9ae27f65e1a782321c0be87556f92d2ee432352))
135
+
136
+
137
+
138
+
55
139
 
56
140
  ## [2.3.3](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api-graphql@2.3.2...@aws-amplify/api-graphql@2.3.3) (2022-05-03)
57
141
 
58
142
  **Note:** Version bump only for package @aws-amplify/api-graphql
59
143
 
144
+
145
+
146
+
147
+
60
148
  ## [2.3.2](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api-graphql@2.3.1...@aws-amplify/api-graphql@2.3.2) (2022-04-14)
61
149
 
62
150
  **Note:** Version bump only for package @aws-amplify/api-graphql
63
151
 
152
+
153
+
154
+
155
+
64
156
  ## [2.3.1](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api-graphql@2.3.0...@aws-amplify/api-graphql@2.3.1) (2022-04-04)
65
157
 
66
158
  **Note:** Version bump only for package @aws-amplify/api-graphql
67
159
 
160
+
161
+
162
+
163
+
68
164
  # [2.3.0](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api-graphql@2.2.24...@aws-amplify/api-graphql@2.3.0) (2022-03-28)
69
165
 
166
+
70
167
  ### Features
71
168
 
72
- - PubSub Add Options objects for all Providers and fix: Spelling error and deprecation of old exports ([#9683](https://github.com/aws-amplify/amplify-js/issues/9683)) ([b535af2](https://github.com/aws-amplify/amplify-js/commit/b535af2133b5460c6e8e2fcfd89e1fe235872c27))
169
+ * PubSub Add Options objects for all Providers and fix: Spelling error and deprecation of old exports ([#9683](https://github.com/aws-amplify/amplify-js/issues/9683)) ([b535af2](https://github.com/aws-amplify/amplify-js/commit/b535af2133b5460c6e8e2fcfd89e1fe235872c27))
170
+
171
+
172
+
173
+
73
174
 
74
175
  ## [2.2.24](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api-graphql@2.2.23...@aws-amplify/api-graphql@2.2.24) (2022-03-22)
75
176
 
76
177
  **Note:** Version bump only for package @aws-amplify/api-graphql
77
178
 
179
+
180
+
181
+
182
+
78
183
  ## [2.2.23](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api-graphql@2.2.22...@aws-amplify/api-graphql@2.2.23) (2022-03-10)
79
184
 
80
185
  **Note:** Version bump only for package @aws-amplify/api-graphql
81
186
 
187
+
188
+
189
+
190
+
82
191
  ## [2.2.22](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api-graphql@2.2.21...@aws-amplify/api-graphql@2.2.22) (2022-02-28)
83
192
 
193
+
84
194
  ### Bug Fixes
85
195
 
86
- - **@aws-amplify/api:** Improve API.graphql return type ([#9197](https://github.com/aws-amplify/amplify-js/issues/9197)) ([9a0531b](https://github.com/aws-amplify/amplify-js/commit/9a0531b11e9eb6659d36ca0c51c642b3d947f63c))
196
+ * **@aws-amplify/api:** Improve API.graphql return type ([#9197](https://github.com/aws-amplify/amplify-js/issues/9197)) ([9a0531b](https://github.com/aws-amplify/amplify-js/commit/9a0531b11e9eb6659d36ca0c51c642b3d947f63c))
197
+
198
+
199
+
200
+
87
201
 
88
202
  ## [2.2.21](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api-graphql@2.2.20...@aws-amplify/api-graphql@2.2.21) (2022-02-03)
89
203
 
90
204
  **Note:** Version bump only for package @aws-amplify/api-graphql
91
205
 
206
+
207
+
208
+
209
+
92
210
  ## [2.2.20](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api-graphql@2.2.19...@aws-amplify/api-graphql@2.2.20) (2022-01-27)
93
211
 
94
212
  **Note:** Version bump only for package @aws-amplify/api-graphql
95
213
 
214
+
215
+
216
+
217
+
96
218
  ## [2.2.19](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api-graphql@2.2.18...@aws-amplify/api-graphql@2.2.19) (2022-01-07)
97
219
 
98
220
  **Note:** Version bump only for package @aws-amplify/api-graphql
99
221
 
222
+
223
+
224
+
225
+
100
226
  ## [2.2.18](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api-graphql@2.2.17...@aws-amplify/api-graphql@2.2.18) (2021-12-16)
101
227
 
228
+
102
229
  ### Bug Fixes
103
230
 
104
- - **@aws-amplify/api-graphql:** Fix webpack build ([#9358](https://github.com/aws-amplify/amplify-js/issues/9358)) ([73587d7](https://github.com/aws-amplify/amplify-js/commit/73587d78fc4feba39d5a527bfe2c790935653fd3))
231
+ * **@aws-amplify/api-graphql:** Fix webpack build ([#9358](https://github.com/aws-amplify/amplify-js/issues/9358)) ([73587d7](https://github.com/aws-amplify/amplify-js/commit/73587d78fc4feba39d5a527bfe2c790935653fd3))
232
+
233
+
234
+
235
+
105
236
 
106
237
  ## [2.2.17](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api-graphql@2.2.16...@aws-amplify/api-graphql@2.2.17) (2021-12-03)
107
238
 
108
239
  **Note:** Version bump only for package @aws-amplify/api-graphql
109
240
 
241
+
242
+
243
+
244
+
110
245
  ## [2.2.16](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api-graphql@2.2.15...@aws-amplify/api-graphql@2.2.16) (2021-12-02)
111
246
 
112
247
  **Note:** Version bump only for package @aws-amplify/api-graphql
113
248
 
249
+
250
+
251
+
252
+
114
253
  ## [2.2.15](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api-graphql@2.2.14...@aws-amplify/api-graphql@2.2.15) (2021-11-18)
115
254
 
116
255
  **Note:** Version bump only for package @aws-amplify/api-graphql
117
256
 
257
+
258
+
259
+
260
+
118
261
  ## [2.2.14](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api-graphql@2.2.13...@aws-amplify/api-graphql@2.2.14) (2021-11-16)
119
262
 
120
263
  **Note:** Version bump only for package @aws-amplify/api-graphql
121
264
 
265
+
266
+
267
+
268
+
122
269
  ## [2.2.13](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api-graphql@2.2.12...@aws-amplify/api-graphql@2.2.13) (2021-11-12)
123
270
 
124
271
  **Note:** Version bump only for package @aws-amplify/api-graphql
125
272
 
273
+
274
+
275
+
276
+
126
277
  ## [2.2.12](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api-graphql@2.2.11...@aws-amplify/api-graphql@2.2.12) (2021-11-09)
127
278
 
279
+
128
280
  ### Reverts
129
281
 
130
- - uuid dependency upgrade ([#9159](https://github.com/aws-amplify/amplify-js/issues/9159)) ([4ef8aa9](https://github.com/aws-amplify/amplify-js/commit/4ef8aa9c7c25dbe921fd02b6205b8defb93fbaec))
282
+ * uuid dependency upgrade ([#9159](https://github.com/aws-amplify/amplify-js/issues/9159)) ([4ef8aa9](https://github.com/aws-amplify/amplify-js/commit/4ef8aa9c7c25dbe921fd02b6205b8defb93fbaec))
283
+
284
+
285
+
286
+
131
287
 
132
288
  ## [2.2.11](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api-graphql@2.2.10...@aws-amplify/api-graphql@2.2.11) (2021-10-28)
133
289
 
134
290
  **Note:** Version bump only for package @aws-amplify/api-graphql
135
291
 
292
+
293
+
294
+
295
+
136
296
  ## [2.2.10](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api-graphql@2.2.9...@aws-amplify/api-graphql@2.2.10) (2021-10-21)
137
297
 
138
298
  **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,