@aws-amplify/predictions 4.0.33-unstable.9 → 4.0.34-cloud-logging.8
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,97 +3,76 @@
|
|
|
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.
|
|
6
|
+
## [4.0.38](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/predictions@4.0.37...@aws-amplify/predictions@4.0.38) (2022-04-14)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @aws-amplify/predictions
|
|
9
9
|
|
|
10
|
+
## [4.0.37](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/predictions@4.0.36...@aws-amplify/predictions@4.0.37) (2022-04-04)
|
|
10
11
|
|
|
12
|
+
**Note:** Version bump only for package @aws-amplify/predictions
|
|
11
13
|
|
|
14
|
+
## [4.0.36](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/predictions@4.0.35...@aws-amplify/predictions@4.0.36) (2022-03-28)
|
|
12
15
|
|
|
16
|
+
**Note:** Version bump only for package @aws-amplify/predictions
|
|
13
17
|
|
|
14
|
-
## [4.0.
|
|
18
|
+
## [4.0.35](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/predictions@4.0.34...@aws-amplify/predictions@4.0.35) (2022-03-22)
|
|
15
19
|
|
|
16
20
|
**Note:** Version bump only for package @aws-amplify/predictions
|
|
17
21
|
|
|
22
|
+
## [4.0.34](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/predictions@4.0.33...@aws-amplify/predictions@4.0.34) (2022-03-10)
|
|
18
23
|
|
|
24
|
+
**Note:** Version bump only for package @aws-amplify/predictions
|
|
19
25
|
|
|
26
|
+
## [4.0.33](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/predictions@4.0.32...@aws-amplify/predictions@4.0.33) (2022-02-28)
|
|
20
27
|
|
|
28
|
+
**Note:** Version bump only for package @aws-amplify/predictions
|
|
21
29
|
|
|
22
|
-
## [4.0.
|
|
30
|
+
## [4.0.32](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/predictions@4.0.31...@aws-amplify/predictions@4.0.32) (2022-02-03)
|
|
23
31
|
|
|
24
32
|
**Note:** Version bump only for package @aws-amplify/predictions
|
|
25
33
|
|
|
34
|
+
## [4.0.31](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/predictions@4.0.30...@aws-amplify/predictions@4.0.31) (2022-01-27)
|
|
26
35
|
|
|
36
|
+
**Note:** Version bump only for package @aws-amplify/predictions
|
|
27
37
|
|
|
38
|
+
## [4.0.30](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/predictions@4.0.29...@aws-amplify/predictions@4.0.30) (2022-01-07)
|
|
28
39
|
|
|
40
|
+
**Note:** Version bump only for package @aws-amplify/predictions
|
|
29
41
|
|
|
30
42
|
## [4.0.29](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/predictions@4.0.28...@aws-amplify/predictions@4.0.29) (2021-12-16)
|
|
31
43
|
|
|
32
44
|
**Note:** Version bump only for package @aws-amplify/predictions
|
|
33
45
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
46
|
## [4.0.28](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/predictions@4.0.27...@aws-amplify/predictions@4.0.28) (2021-12-03)
|
|
39
47
|
|
|
40
48
|
**Note:** Version bump only for package @aws-amplify/predictions
|
|
41
49
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
50
|
## [4.0.27](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/predictions@4.0.26...@aws-amplify/predictions@4.0.27) (2021-12-02)
|
|
47
51
|
|
|
48
52
|
**Note:** Version bump only for package @aws-amplify/predictions
|
|
49
53
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
54
|
## [4.0.26](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/predictions@4.0.25...@aws-amplify/predictions@4.0.26) (2021-11-18)
|
|
55
55
|
|
|
56
56
|
**Note:** Version bump only for package @aws-amplify/predictions
|
|
57
57
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
58
|
## [4.0.25](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/predictions@4.0.24...@aws-amplify/predictions@4.0.25) (2021-11-16)
|
|
63
59
|
|
|
64
60
|
**Note:** Version bump only for package @aws-amplify/predictions
|
|
65
61
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
62
|
## [4.0.24](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/predictions@4.0.23...@aws-amplify/predictions@4.0.24) (2021-11-12)
|
|
71
63
|
|
|
72
64
|
**Note:** Version bump only for package @aws-amplify/predictions
|
|
73
65
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
66
|
## [4.0.23](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/predictions@4.0.22...@aws-amplify/predictions@4.0.23) (2021-11-09)
|
|
79
67
|
|
|
80
|
-
|
|
81
68
|
### Reverts
|
|
82
69
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
70
|
+
- uuid dependency upgrade ([#9159](https://github.com/aws-amplify/amplify-js/issues/9159)) ([4ef8aa9](https://github.com/aws-amplify/amplify-js/commit/4ef8aa9c7c25dbe921fd02b6205b8defb93fbaec))
|
|
88
71
|
|
|
89
72
|
## [4.0.22](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/predictions@4.0.21...@aws-amplify/predictions@4.0.22) (2021-10-28)
|
|
90
73
|
|
|
91
74
|
**Note:** Version bump only for package @aws-amplify/predictions
|
|
92
75
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
76
|
## [4.0.21](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/predictions@4.0.20...@aws-amplify/predictions@4.0.21) (2021-10-21)
|
|
98
77
|
|
|
99
78
|
**Note:** Version bump only for package @aws-amplify/predictions
|
|
@@ -95510,6 +95510,11 @@ function () {
|
|
|
95510
95510
|
var _this = this;
|
|
95511
95511
|
|
|
95512
95512
|
this._config = config ? config : {};
|
|
95513
|
+
|
|
95514
|
+
if (!_aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["StorageHelper"]) {
|
|
95515
|
+
return;
|
|
95516
|
+
}
|
|
95517
|
+
|
|
95513
95518
|
this._storage = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["StorageHelper"]().getStorage();
|
|
95514
95519
|
_aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Hub"].listen('auth', function (data) {
|
|
95515
95520
|
var payload = data.payload;
|
|
@@ -98022,6 +98027,10 @@ function isBlob(body) {
|
|
|
98022
98027
|
return typeof Blob !== 'undefined' && body instanceof Blob;
|
|
98023
98028
|
}
|
|
98024
98029
|
|
|
98030
|
+
function hasErrorResponse(error) {
|
|
98031
|
+
return typeof error !== 'undefined' && Object.prototype.hasOwnProperty.call(error, 'response') && typeof error.response !== 'undefined' && Object.prototype.hasOwnProperty.call(error.response, 'status') && typeof error.response.status === 'number';
|
|
98032
|
+
}
|
|
98033
|
+
|
|
98025
98034
|
var normalizeHeaders = function normalizeHeaders(headers, normalizedName) {
|
|
98026
98035
|
var e_1, _a;
|
|
98027
98036
|
|
|
@@ -98165,16 +98174,20 @@ function () {
|
|
|
98165
98174
|
})
|
|
98166
98175
|
};
|
|
98167
98176
|
})["catch"](function (error) {
|
|
98168
|
-
var _a, _b
|
|
98177
|
+
var _a, _b; // Error
|
|
98169
98178
|
|
|
98170
98179
|
|
|
98171
98180
|
if (error.message !== _common_StorageErrorStrings__WEBPACK_IMPORTED_MODULE_4__["AWSS3ProviderUploadErrorStrings"].UPLOAD_PAUSED_MESSAGE) {
|
|
98172
98181
|
logger.error(error.message);
|
|
98173
98182
|
} // for axios' cancel error, we should re-throw it back so it's not considered an s3client error
|
|
98174
|
-
// if we return empty, or an abitrary error HttpResponse, it will be hard to debug down the line
|
|
98183
|
+
// if we return empty, or an abitrary error HttpResponse, it will be hard to debug down the line.
|
|
98184
|
+
//
|
|
98185
|
+
// for errors that does not have a 'response' object, it's very likely that it is an unexpected error for
|
|
98186
|
+
// example a disconnect. Without it we cannot meaningfully reconstruct a HttpResponse, and the AWS SDK might
|
|
98187
|
+
// consider the request successful by mistake. In this case we should also re-throw the error.
|
|
98175
98188
|
|
|
98176
98189
|
|
|
98177
|
-
if (axios__WEBPACK_IMPORTED_MODULE_2___default.a.isCancel(error)) {
|
|
98190
|
+
if (axios__WEBPACK_IMPORTED_MODULE_2___default.a.isCancel(error) || !hasErrorResponse(error)) {
|
|
98178
98191
|
throw error;
|
|
98179
98192
|
} // otherwise, we should re-construct an HttpResponse from the error, so that it can be passed down to other
|
|
98180
98193
|
// aws sdk middleware (e.g retry, clock skew correction, error message serializing)
|
|
@@ -98182,9 +98195,9 @@ function () {
|
|
|
98182
98195
|
|
|
98183
98196
|
return {
|
|
98184
98197
|
response: new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_0__["HttpResponse"]({
|
|
98185
|
-
statusCode:
|
|
98186
|
-
body: (
|
|
98187
|
-
headers: (
|
|
98198
|
+
statusCode: error.response.status,
|
|
98199
|
+
body: (_a = error.response) === null || _a === void 0 ? void 0 : _a.data,
|
|
98200
|
+
headers: (_b = error.response) === null || _b === void 0 ? void 0 : _b.headers
|
|
98188
98201
|
})
|
|
98189
98202
|
};
|
|
98190
98203
|
}), requestTimeout(requestTimeoutInMs)];
|