@aws-amplify/pubsub 4.5.2 → 4.5.3
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 +11 -0
- package/dist/aws-amplify-pubsub.js +10 -8
- package/dist/aws-amplify-pubsub.js.map +1 -1
- package/dist/aws-amplify-pubsub.min.js +1 -1
- package/dist/aws-amplify-pubsub.min.js.map +1 -1
- package/lib/Providers/MqttOverWSProvider.js +1 -2
- package/lib/Providers/MqttOverWSProvider.js.map +1 -1
- package/lib/Providers/constants.d.ts +1 -0
- package/lib/Providers/constants.js +1 -0
- package/lib/Providers/constants.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +2 -1
- package/lib/index.js.map +1 -1
- package/lib-esm/Providers/MqttOverWSProvider.js +1 -2
- package/lib-esm/Providers/MqttOverWSProvider.js.map +1 -1
- package/lib-esm/Providers/constants.d.ts +1 -0
- package/lib-esm/Providers/constants.js +1 -0
- package/lib-esm/Providers/constants.js.map +1 -1
- package/lib-esm/index.d.ts +1 -1
- package/lib-esm/index.js +1 -1
- package/lib-esm/index.js.map +1 -1
- package/package.json +5 -5
- package/src/Providers/MqttOverWSProvider.ts +1 -2
- package/src/Providers/constants.ts +2 -0
- package/src/index.ts +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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.5.3](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/pubsub@4.5.2...@aws-amplify/pubsub@4.5.3) (2022-09-08)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **pubsub:** Fix vite build issue ([#10298](https://github.com/aws-amplify/amplify-js/issues/10298)) ([89cdfd3](https://github.com/aws-amplify/amplify-js/commit/89cdfd3d6e9686ebfe181ab23492fc9402535c85))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [4.5.2](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/pubsub@4.5.1...@aws-amplify/pubsub@4.5.2) (2022-09-01)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @aws-amplify/pubsub
|
|
@@ -9275,7 +9275,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9275
9275
|
/* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_4__);
|
|
9276
9276
|
/* harmony import */ var _utils_ConnectionStateMonitor__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/ConnectionStateMonitor */ "./lib-esm/utils/ConnectionStateMonitor.js");
|
|
9277
9277
|
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./constants */ "./lib-esm/Providers/constants.js");
|
|
9278
|
-
/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! .. */ "./lib-esm/index.js");
|
|
9279
9278
|
function _typeof(obj) {
|
|
9280
9279
|
"@babel/helpers - typeof";
|
|
9281
9280
|
|
|
@@ -9504,7 +9503,6 @@ var __rest = undefined && undefined.__rest || function (s, e) {
|
|
|
9504
9503
|
|
|
9505
9504
|
|
|
9506
9505
|
|
|
9507
|
-
|
|
9508
9506
|
var logger = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_4__["ConsoleLogger"]('MqttOverWSProvider');
|
|
9509
9507
|
function mqttTopicMatch(filter, topic) {
|
|
9510
9508
|
var filterArray = filter.split('/');
|
|
@@ -9600,7 +9598,7 @@ function (_super) {
|
|
|
9600
9598
|
_this._clientIdObservers = new Map(); // Monitor the connection health state and pass changes along to Hub
|
|
9601
9599
|
|
|
9602
9600
|
_this.connectionStateMonitor.connectionStateObservable.subscribe(function (connectionStateChange) {
|
|
9603
|
-
dispatchPubSubEvent(
|
|
9601
|
+
dispatchPubSubEvent(_constants__WEBPACK_IMPORTED_MODULE_6__["CONNECTION_STATE_CHANGE"], {
|
|
9604
9602
|
provider: _this,
|
|
9605
9603
|
connectionState: connectionStateChange
|
|
9606
9604
|
}, "Connection state is " + connectionStateChange);
|
|
@@ -10084,13 +10082,14 @@ function () {
|
|
|
10084
10082
|
/*!****************************************!*\
|
|
10085
10083
|
!*** ./lib-esm/Providers/constants.js ***!
|
|
10086
10084
|
\****************************************/
|
|
10087
|
-
/*! 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 */
|
|
10085
|
+
/*! 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 */
|
|
10088
10086
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
10089
10087
|
|
|
10090
10088
|
"use strict";
|
|
10091
10089
|
__webpack_require__.r(__webpack_exports__);
|
|
10092
10090
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MAX_DELAY_MS", function() { return MAX_DELAY_MS; });
|
|
10093
10091
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NON_RETRYABLE_CODES", function() { return NON_RETRYABLE_CODES; });
|
|
10092
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CONNECTION_STATE_CHANGE", function() { return CONNECTION_STATE_CHANGE; });
|
|
10094
10093
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MESSAGE_TYPES", function() { return MESSAGE_TYPES; });
|
|
10095
10094
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SUBSCRIPTION_STATUS", function() { return SUBSCRIPTION_STATUS; });
|
|
10096
10095
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SOCKET_STATUS", function() { return SOCKET_STATUS; });
|
|
@@ -10102,6 +10101,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
10102
10101
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DEFAULT_KEEP_ALIVE_ALERT_TIMEOUT", function() { return DEFAULT_KEEP_ALIVE_ALERT_TIMEOUT; });
|
|
10103
10102
|
var MAX_DELAY_MS = 5000;
|
|
10104
10103
|
var NON_RETRYABLE_CODES = [400, 401, 403];
|
|
10104
|
+
var CONNECTION_STATE_CHANGE = 'ConnectionStateChange';
|
|
10105
10105
|
var MESSAGE_TYPES;
|
|
10106
10106
|
|
|
10107
10107
|
(function (MESSAGE_TYPES) {
|
|
@@ -10647,7 +10647,6 @@ _aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__["Amplify"].register(PubSub);
|
|
|
10647
10647
|
|
|
10648
10648
|
"use strict";
|
|
10649
10649
|
__webpack_require__.r(__webpack_exports__);
|
|
10650
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CONNECTION_STATE_CHANGE", function() { return CONNECTION_STATE_CHANGE; });
|
|
10651
10650
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CONTROL_MSG", function() { return CONTROL_MSG; });
|
|
10652
10651
|
/* harmony import */ var _PubSub__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./PubSub */ "./lib-esm/PubSub.js");
|
|
10653
10652
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PubSub", function() { return _PubSub__WEBPACK_IMPORTED_MODULE_0__["PubSub"]; });
|
|
@@ -10665,8 +10664,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
10665
10664
|
|
|
10666
10665
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MqttOverWSProvider", function() { return _Providers__WEBPACK_IMPORTED_MODULE_1__["MqttOverWSProvider"]; });
|
|
10667
10666
|
|
|
10668
|
-
/* harmony import */ var
|
|
10669
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
10667
|
+
/* harmony import */ var _Providers_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Providers/constants */ "./lib-esm/Providers/constants.js");
|
|
10668
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CONNECTION_STATE_CHANGE", function() { return _Providers_constants__WEBPACK_IMPORTED_MODULE_2__["CONNECTION_STATE_CHANGE"]; });
|
|
10669
|
+
|
|
10670
|
+
/* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./types */ "./lib-esm/types/index.js");
|
|
10671
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ConnectionState", function() { return _types__WEBPACK_IMPORTED_MODULE_3__["ConnectionState"]; });
|
|
10670
10672
|
|
|
10671
10673
|
/*
|
|
10672
10674
|
* Copyright 2017-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
@@ -10692,7 +10694,7 @@ var CONTROL_MSG;
|
|
|
10692
10694
|
CONTROL_MSG["TIMEOUT_DISCONNECT"] = "Timeout disconnect";
|
|
10693
10695
|
})(CONTROL_MSG || (CONTROL_MSG = {}));
|
|
10694
10696
|
|
|
10695
|
-
|
|
10697
|
+
|
|
10696
10698
|
|
|
10697
10699
|
|
|
10698
10700
|
/**
|