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.
- package/dist/contentful-management.browser.js +11 -5
- package/dist/contentful-management.browser.js.map +1 -1
- package/dist/contentful-management.browser.min.js +1 -1
- package/dist/contentful-management.legacy.js +11 -5
- package/dist/contentful-management.legacy.js.map +1 -1
- package/dist/contentful-management.legacy.min.js +1 -1
- package/dist/contentful-management.node.js +9 -2
- package/dist/contentful-management.node.js.map +1 -1
- package/dist/contentful-management.node.min.js +1 -1
- package/dist/es-modules/adapters/REST/endpoints/http.js +8 -3
- package/dist/es-modules/contentful-management.js +1 -1
- package/dist/typings/adapters/REST/endpoints/http.d.ts +1 -0
- package/package.json +1 -1
|
@@ -9331,7 +9331,7 @@ const del = (http, params) => {
|
|
|
9331
9331
|
/*!*****************************************!*\
|
|
9332
9332
|
!*** ./adapters/REST/endpoints/http.ts ***!
|
|
9333
9333
|
\*****************************************/
|
|
9334
|
-
/*! exports provided: get, post, put, del, request */
|
|
9334
|
+
/*! exports provided: get, post, put, patch, del, request */
|
|
9335
9335
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
9336
9336
|
|
|
9337
9337
|
"use strict";
|
|
@@ -9339,6 +9339,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9339
9339
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "get", function() { return get; });
|
|
9340
9340
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "post", function() { return post; });
|
|
9341
9341
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "put", function() { return put; });
|
|
9342
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "patch", function() { return patch; });
|
|
9342
9343
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "del", function() { return del; });
|
|
9343
9344
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "request", function() { return request; });
|
|
9344
9345
|
/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts");
|
|
@@ -9362,6 +9363,12 @@ const put = (http, {
|
|
|
9362
9363
|
}, payload) => {
|
|
9363
9364
|
return _raw__WEBPACK_IMPORTED_MODULE_0__["put"](http, url, payload, config);
|
|
9364
9365
|
};
|
|
9366
|
+
const patch = (http, {
|
|
9367
|
+
url,
|
|
9368
|
+
config
|
|
9369
|
+
}, payload) => {
|
|
9370
|
+
return _raw__WEBPACK_IMPORTED_MODULE_0__["patch"](http, url, payload, config);
|
|
9371
|
+
};
|
|
9365
9372
|
const del = (http, {
|
|
9366
9373
|
url,
|
|
9367
9374
|
config
|
|
@@ -11639,7 +11646,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
11639
11646
|
function createClient(params, opts = {}) {
|
|
11640
11647
|
const sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
|
|
11641
11648
|
const userAgent = Object(contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__["getUserAgentHeader"])( // @ts-expect-error
|
|
11642
|
-
`${sdkMain}/${"8.2.
|
|
11649
|
+
`${sdkMain}/${"8.2.2"}`, params.application, params.integration, params.feature);
|
|
11643
11650
|
const adapter = Object(_create_adapter__WEBPACK_IMPORTED_MODULE_1__["createAdapter"])(params); // Parameters<?> and ReturnType<?> only return the types of the last overload
|
|
11644
11651
|
// https://github.com/microsoft/TypeScript/issues/26591
|
|
11645
11652
|
// @ts-expect-error
|