@aws-amplify/core 4.2.10 → 4.2.11-unstable.4

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.
@@ -32679,7 +32679,7 @@ var getAmplifyUserAgent = function getAmplifyUserAgent() {
32679
32679
  __webpack_require__.r(__webpack_exports__);
32680
32680
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "version", function() { return version; });
32681
32681
  // generated by genversion
32682
- var version = '4.2.9';
32682
+ var version = '4.2.10';
32683
32683
 
32684
32684
  /***/ }),
32685
32685
 
@@ -32949,8 +32949,7 @@ var AWSCloudWatchProvider = function () {
32949
32949
  credentialsOK = _a.sent();
32950
32950
 
32951
32951
  if (!credentialsOK) {
32952
- logger.error(_Util_Constants__WEBPACK_IMPORTED_MODULE_5__["NO_CREDS_ERROR_STRING"]);
32953
- throw Error;
32952
+ throw new Error(_Util_Constants__WEBPACK_IMPORTED_MODULE_5__["NO_CREDS_ERROR_STRING"]);
32954
32953
  }
32955
32954
 
32956
32955
  client = this._initCloudWatchLogs();
@@ -32999,8 +32998,7 @@ var AWSCloudWatchProvider = function () {
32999
32998
  credentialsOK = _a.sent();
33000
32999
 
33001
33000
  if (!credentialsOK) {
33002
- logger.error(_Util_Constants__WEBPACK_IMPORTED_MODULE_5__["NO_CREDS_ERROR_STRING"]);
33003
- throw Error;
33001
+ throw new Error(_Util_Constants__WEBPACK_IMPORTED_MODULE_5__["NO_CREDS_ERROR_STRING"]);
33004
33002
  }
33005
33003
 
33006
33004
  client = this._initCloudWatchLogs();
@@ -33049,8 +33047,7 @@ var AWSCloudWatchProvider = function () {
33049
33047
  credentialsOK = _a.sent();
33050
33048
 
33051
33049
  if (!credentialsOK) {
33052
- logger.error(_Util_Constants__WEBPACK_IMPORTED_MODULE_5__["NO_CREDS_ERROR_STRING"]);
33053
- throw Error;
33050
+ throw new Error(_Util_Constants__WEBPACK_IMPORTED_MODULE_5__["NO_CREDS_ERROR_STRING"]);
33054
33051
  }
33055
33052
 
33056
33053
  client = this._initCloudWatchLogs();
@@ -33099,8 +33096,7 @@ var AWSCloudWatchProvider = function () {
33099
33096
  credentialsOK = _a.sent();
33100
33097
 
33101
33098
  if (!credentialsOK) {
33102
- logger.error(_Util_Constants__WEBPACK_IMPORTED_MODULE_5__["NO_CREDS_ERROR_STRING"]);
33103
- throw Error;
33099
+ throw new Error(_Util_Constants__WEBPACK_IMPORTED_MODULE_5__["NO_CREDS_ERROR_STRING"]);
33104
33100
  }
33105
33101
 
33106
33102
  client = this._initCloudWatchLogs();
@@ -33149,8 +33145,7 @@ var AWSCloudWatchProvider = function () {
33149
33145
  credentialsOK = _a.sent();
33150
33146
 
33151
33147
  if (!credentialsOK) {
33152
- logger.error(_Util_Constants__WEBPACK_IMPORTED_MODULE_5__["NO_CREDS_ERROR_STRING"]);
33153
- throw Error;
33148
+ throw new Error(_Util_Constants__WEBPACK_IMPORTED_MODULE_5__["NO_CREDS_ERROR_STRING"]);
33154
33149
  }
33155
33150
 
33156
33151
  client = this._initCloudWatchLogs();
@@ -33208,8 +33203,7 @@ var AWSCloudWatchProvider = function () {
33208
33203
  credentialsOK = _a.sent();
33209
33204
 
33210
33205
  if (!credentialsOK) {
33211
- logger.error(_Util_Constants__WEBPACK_IMPORTED_MODULE_5__["NO_CREDS_ERROR_STRING"]);
33212
- throw Error;
33206
+ throw new Error(_Util_Constants__WEBPACK_IMPORTED_MODULE_5__["NO_CREDS_ERROR_STRING"]);
33213
33207
  }
33214
33208
 
33215
33209
  return [4
@@ -33287,8 +33281,7 @@ var AWSCloudWatchProvider = function () {
33287
33281
  credentialsOK = _a.sent();
33288
33282
 
33289
33283
  if (!credentialsOK) {
33290
- logger.error(_Util_Constants__WEBPACK_IMPORTED_MODULE_5__["NO_CREDS_ERROR_STRING"]);
33291
- throw Error;
33284
+ throw new Error(_Util_Constants__WEBPACK_IMPORTED_MODULE_5__["NO_CREDS_ERROR_STRING"]);
33292
33285
  }
33293
33286
 
33294
33287
  return [4
@@ -33368,8 +33361,7 @@ var AWSCloudWatchProvider = function () {
33368
33361
  credentialsOK = _a.sent();
33369
33362
 
33370
33363
  if (!credentialsOK) {
33371
- logger.error(_Util_Constants__WEBPACK_IMPORTED_MODULE_5__["NO_CREDS_ERROR_STRING"]);
33372
- throw Error;
33364
+ throw new Error(_Util_Constants__WEBPACK_IMPORTED_MODULE_5__["NO_CREDS_ERROR_STRING"]);
33373
33365
  }
33374
33366
 
33375
33367
  logger.debug('sending log events to stream - ', params.logStreamName);