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.
@@ -10420,7 +10420,7 @@ var del = function del(http, params) {
10420
10420
  /*!*****************************************!*\
10421
10421
  !*** ./adapters/REST/endpoints/http.ts ***!
10422
10422
  \*****************************************/
10423
- /*! exports provided: get, post, put, del, request */
10423
+ /*! exports provided: get, post, put, patch, del, request */
10424
10424
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
10425
10425
 
10426
10426
  "use strict";
@@ -10428,6 +10428,7 @@ __webpack_require__.r(__webpack_exports__);
10428
10428
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "get", function() { return get; });
10429
10429
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "post", function() { return post; });
10430
10430
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "put", function() { return put; });
10431
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "patch", function() { return patch; });
10431
10432
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "del", function() { return del; });
10432
10433
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "request", function() { return request; });
10433
10434
  /* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts");
@@ -10448,14 +10449,19 @@ var put = function put(http, _ref3, payload) {
10448
10449
  config = _ref3.config;
10449
10450
  return _raw__WEBPACK_IMPORTED_MODULE_0__["put"](http, url, payload, config);
10450
10451
  };
10451
- var del = function del(http, _ref4) {
10452
+ var patch = function patch(http, _ref4, payload) {
10452
10453
  var url = _ref4.url,
10453
10454
  config = _ref4.config;
10454
- return _raw__WEBPACK_IMPORTED_MODULE_0__["del"](http, url, config);
10455
+ return _raw__WEBPACK_IMPORTED_MODULE_0__["patch"](http, url, payload, config);
10455
10456
  };
10456
- var request = function request(http, _ref5) {
10457
+ var del = function del(http, _ref5) {
10457
10458
  var url = _ref5.url,
10458
10459
  config = _ref5.config;
10460
+ return _raw__WEBPACK_IMPORTED_MODULE_0__["del"](http, url, config);
10461
+ };
10462
+ var request = function request(http, _ref6) {
10463
+ var url = _ref6.url,
10464
+ config = _ref6.config;
10459
10465
  return _raw__WEBPACK_IMPORTED_MODULE_0__["http"](http, url, config);
10460
10466
  };
10461
10467
 
@@ -12919,7 +12925,7 @@ function createClient(params) {
12919
12925
  var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
12920
12926
  var sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
12921
12927
  var userAgent = Object(contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__["getUserAgentHeader"])( // @ts-expect-error
12922
- "".concat(sdkMain, "/").concat("8.2.1"), params.application, params.integration, params.feature);
12928
+ "".concat(sdkMain, "/").concat("8.2.2"), params.application, params.integration, params.feature);
12923
12929
  var adapter = Object(_create_adapter__WEBPACK_IMPORTED_MODULE_1__["createAdapter"])(params); // Parameters<?> and ReturnType<?> only return the types of the last overload
12924
12930
  // https://github.com/microsoft/TypeScript/issues/26591
12925
12931
  // @ts-expect-error