@aws-amplify/api 4.0.48-unstable.4 → 4.0.49-unstable.11
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,14 @@
|
|
|
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.48](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api@4.0.47...@aws-amplify/api@4.0.48) (2022-08-01)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-amplify/api
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [4.0.47](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api@4.0.46...@aws-amplify/api@4.0.47) (2022-07-28)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @aws-amplify/api
|
package/dist/aws-amplify-api.js
CHANGED
|
@@ -15257,10 +15257,9 @@ var ConnectionState;
|
|
|
15257
15257
|
__webpack_require__.r(__webpack_exports__);
|
|
15258
15258
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CONNECTION_CHANGE", function() { return CONNECTION_CHANGE; });
|
|
15259
15259
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConnectionStateMonitor", function() { return ConnectionStateMonitor; });
|
|
15260
|
-
/* harmony import */ var
|
|
15261
|
-
/* harmony import */ var
|
|
15262
|
-
/* harmony import */ var
|
|
15263
|
-
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../index */ "../pubsub/lib-esm/index.js");
|
|
15260
|
+
/* harmony import */ var zen_observable_ts__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zen-observable-ts */ "../../node_modules/zen-observable-ts/lib/bundle.esm.js");
|
|
15261
|
+
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../index */ "../pubsub/lib-esm/index.js");
|
|
15262
|
+
/* harmony import */ var _ReachabilityMonitor__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ReachabilityMonitor */ "../pubsub/lib-esm/utils/ReachabilityMonitor/index.js");
|
|
15264
15263
|
/*
|
|
15265
15264
|
* Copyright 2017-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
15266
15265
|
*
|
|
@@ -15337,7 +15336,7 @@ function () {
|
|
|
15337
15336
|
intendedConnectionState: 'disconnected',
|
|
15338
15337
|
keepAliveState: 'healthy'
|
|
15339
15338
|
};
|
|
15340
|
-
this._linkedConnectionStateObservable = new
|
|
15339
|
+
this._linkedConnectionStateObservable = new zen_observable_ts__WEBPACK_IMPORTED_MODULE_0__["default"](function (connectionStateObserver) {
|
|
15341
15340
|
connectionStateObserver.next(_this._linkedConnectionState);
|
|
15342
15341
|
_this._linkedConnectionStateObserver = connectionStateObserver;
|
|
15343
15342
|
});
|
|
@@ -15352,7 +15351,7 @@ function () {
|
|
|
15352
15351
|
|
|
15353
15352
|
|
|
15354
15353
|
if (this._networkMonitoringSubscription === undefined) {
|
|
15355
|
-
this._networkMonitoringSubscription =
|
|
15354
|
+
this._networkMonitoringSubscription = Object(_ReachabilityMonitor__WEBPACK_IMPORTED_MODULE_2__["ReachabilityMonitor"])().subscribe(function (_a) {
|
|
15356
15355
|
var online = _a.online;
|
|
15357
15356
|
|
|
15358
15357
|
_this.record(online ? CONNECTION_CHANGE.ONLINE : CONNECTION_CHANGE.OFFLINE);
|
|
@@ -15425,15 +15424,15 @@ function () {
|
|
|
15425
15424
|
networkState = _a.networkState,
|
|
15426
15425
|
intendedConnectionState = _a.intendedConnectionState,
|
|
15427
15426
|
keepAliveState = _a.keepAliveState;
|
|
15428
|
-
if (connectionState === 'connected' && networkState === 'disconnected') return
|
|
15429
|
-
if (connectionState === 'connected' && intendedConnectionState === 'disconnected') return
|
|
15430
|
-
if (connectionState === 'disconnected' && intendedConnectionState === 'connected' && networkState === 'disconnected') return
|
|
15431
|
-
if (connectionState === 'disconnected' && intendedConnectionState === 'connected') return
|
|
15432
|
-
if (connectionState === 'connected' && keepAliveState === 'unhealthy') return
|
|
15427
|
+
if (connectionState === 'connected' && networkState === 'disconnected') return _index__WEBPACK_IMPORTED_MODULE_1__["ConnectionState"].ConnectedPendingNetwork;
|
|
15428
|
+
if (connectionState === 'connected' && intendedConnectionState === 'disconnected') return _index__WEBPACK_IMPORTED_MODULE_1__["ConnectionState"].ConnectedPendingDisconnect;
|
|
15429
|
+
if (connectionState === 'disconnected' && intendedConnectionState === 'connected' && networkState === 'disconnected') return _index__WEBPACK_IMPORTED_MODULE_1__["ConnectionState"].ConnectionDisruptedPendingNetwork;
|
|
15430
|
+
if (connectionState === 'disconnected' && intendedConnectionState === 'connected') return _index__WEBPACK_IMPORTED_MODULE_1__["ConnectionState"].ConnectionDisrupted;
|
|
15431
|
+
if (connectionState === 'connected' && keepAliveState === 'unhealthy') return _index__WEBPACK_IMPORTED_MODULE_1__["ConnectionState"].ConnectedPendingKeepAlive; // All remaining states directly correspond to the connection state
|
|
15433
15432
|
|
|
15434
|
-
if (connectionState === 'connecting') return
|
|
15435
|
-
if (connectionState === 'disconnected') return
|
|
15436
|
-
return
|
|
15433
|
+
if (connectionState === 'connecting') return _index__WEBPACK_IMPORTED_MODULE_1__["ConnectionState"].Connecting;
|
|
15434
|
+
if (connectionState === 'disconnected') return _index__WEBPACK_IMPORTED_MODULE_1__["ConnectionState"].Disconnected;
|
|
15435
|
+
return _index__WEBPACK_IMPORTED_MODULE_1__["ConnectionState"].Connected;
|
|
15437
15436
|
};
|
|
15438
15437
|
|
|
15439
15438
|
return ConnectionStateMonitor;
|
|
@@ -15441,6 +15440,25 @@ function () {
|
|
|
15441
15440
|
|
|
15442
15441
|
|
|
15443
15442
|
|
|
15443
|
+
/***/ }),
|
|
15444
|
+
|
|
15445
|
+
/***/ "../pubsub/lib-esm/utils/ReachabilityMonitor/index.js":
|
|
15446
|
+
/*!************************************************************!*\
|
|
15447
|
+
!*** ../pubsub/lib-esm/utils/ReachabilityMonitor/index.js ***!
|
|
15448
|
+
\************************************************************/
|
|
15449
|
+
/*! exports provided: ReachabilityMonitor */
|
|
15450
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
15451
|
+
|
|
15452
|
+
"use strict";
|
|
15453
|
+
__webpack_require__.r(__webpack_exports__);
|
|
15454
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReachabilityMonitor", function() { return ReachabilityMonitor; });
|
|
15455
|
+
/* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-amplify/core */ "@aws-amplify/core");
|
|
15456
|
+
/* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__);
|
|
15457
|
+
|
|
15458
|
+
var ReachabilityMonitor = function ReachabilityMonitor() {
|
|
15459
|
+
return new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Reachability"]().networkMonitor();
|
|
15460
|
+
};
|
|
15461
|
+
|
|
15444
15462
|
/***/ }),
|
|
15445
15463
|
|
|
15446
15464
|
/***/ "./lib-esm/API.js":
|