contentful-management 8.2.1 → 8.2.2

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.
@@ -7649,7 +7649,7 @@ var del = function del(http, params) {
7649
7649
  /*!*****************************************!*\
7650
7650
  !*** ./adapters/REST/endpoints/http.ts ***!
7651
7651
  \*****************************************/
7652
- /*! exports provided: get, post, put, del, request */
7652
+ /*! exports provided: get, post, put, patch, del, request */
7653
7653
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
7654
7654
 
7655
7655
  "use strict";
@@ -7657,6 +7657,7 @@ __webpack_require__.r(__webpack_exports__);
7657
7657
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "get", function() { return get; });
7658
7658
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "post", function() { return post; });
7659
7659
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "put", function() { return put; });
7660
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "patch", function() { return patch; });
7660
7661
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "del", function() { return del; });
7661
7662
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "request", function() { return request; });
7662
7663
  /* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts");
@@ -7677,14 +7678,19 @@ var put = function put(http, _ref3, payload) {
7677
7678
  config = _ref3.config;
7678
7679
  return _raw__WEBPACK_IMPORTED_MODULE_0__["put"](http, url, payload, config);
7679
7680
  };
7680
- var del = function del(http, _ref4) {
7681
+ var patch = function patch(http, _ref4, payload) {
7681
7682
  var url = _ref4.url,
7682
7683
  config = _ref4.config;
7683
- return _raw__WEBPACK_IMPORTED_MODULE_0__["del"](http, url, config);
7684
+ return _raw__WEBPACK_IMPORTED_MODULE_0__["patch"](http, url, payload, config);
7684
7685
  };
7685
- var request = function request(http, _ref5) {
7686
+ var del = function del(http, _ref5) {
7686
7687
  var url = _ref5.url,
7687
7688
  config = _ref5.config;
7689
+ return _raw__WEBPACK_IMPORTED_MODULE_0__["del"](http, url, config);
7690
+ };
7691
+ var request = function request(http, _ref6) {
7692
+ var url = _ref6.url,
7693
+ config = _ref6.config;
7688
7694
  return _raw__WEBPACK_IMPORTED_MODULE_0__["http"](http, url, config);
7689
7695
  };
7690
7696
 
@@ -10148,7 +10154,7 @@ function createClient(params) {
10148
10154
  var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
10149
10155
  var sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
10150
10156
  var userAgent = Object(contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__["getUserAgentHeader"])( // @ts-expect-error
10151
- "".concat(sdkMain, "/").concat("8.2.1"), params.application, params.integration, params.feature);
10157
+ "".concat(sdkMain, "/").concat("8.2.2"), params.application, params.integration, params.feature);
10152
10158
  var adapter = Object(_create_adapter__WEBPACK_IMPORTED_MODULE_1__["createAdapter"])(params); // Parameters<?> and ReturnType<?> only return the types of the last overload
10153
10159
  // https://github.com/microsoft/TypeScript/issues/26591
10154
10160
  // @ts-expect-error