@aws-amplify/datastore 3.12.5 → 3.12.6-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.
@@ -71421,7 +71421,7 @@ var getAmplifyUserAgent = function getAmplifyUserAgent(content) {
71421
71421
  __webpack_require__.r(__webpack_exports__);
71422
71422
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "version", function() { return version; });
71423
71423
  // generated by genversion
71424
- var version = '4.6.0';
71424
+ var version = '4.6.1';
71425
71425
 
71426
71426
  /***/ }),
71427
71427
 
@@ -73087,7 +73087,12 @@ function () {
73087
73087
  service_info = null;
73088
73088
  }
73089
73089
 
73090
- request.headers = request.headers || {}; // datetime string and date string
73090
+ request.headers = request.headers || {};
73091
+
73092
+ if (request.body && !request.data) {
73093
+ throw new Error('The attribute "body" was found on the request object. Please use the attribute "data" instead.');
73094
+ } // datetime string and date string
73095
+
73091
73096
 
73092
73097
  var dt = _Util__WEBPACK_IMPORTED_MODULE_4__["DateUtils"].getDateWithClockOffset(),
73093
73098
  dt_str = dt.toISOString().replace(/[:\-]|\.\d{3}/g, ''),