@aws-amplify/core 4.6.1 → 4.6.2-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.
@@ -32746,7 +32746,7 @@ var getAmplifyUserAgent = function getAmplifyUserAgent(content) {
32746
32746
  __webpack_require__.r(__webpack_exports__);
32747
32747
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "version", function() { return version; });
32748
32748
  // generated by genversion
32749
- var version = '4.6.0';
32749
+ var version = '4.6.1';
32750
32750
 
32751
32751
  /***/ }),
32752
32752
 
@@ -34412,7 +34412,12 @@ function () {
34412
34412
  service_info = null;
34413
34413
  }
34414
34414
 
34415
- request.headers = request.headers || {}; // datetime string and date string
34415
+ request.headers = request.headers || {};
34416
+
34417
+ if (request.body && !request.data) {
34418
+ throw new Error('The attribute "body" was found on the request object. Please use the attribute "data" instead.');
34419
+ } // datetime string and date string
34420
+
34416
34421
 
34417
34422
  var dt = _Util__WEBPACK_IMPORTED_MODULE_4__["DateUtils"].getDateWithClockOffset(),
34418
34423
  dt_str = dt.toISOString().replace(/[:\-]|\.\d{3}/g, ''),