contentful-management 8.2.0 → 8.3.0
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 +48 -26
- package/dist/contentful-management.browser.js.map +1 -1
- package/dist/contentful-management.browser.min.js +1 -1
- package/dist/contentful-management.legacy.js +48 -26
- package/dist/contentful-management.legacy.js.map +1 -1
- package/dist/contentful-management.legacy.min.js +1 -1
- package/dist/contentful-management.node.js +47 -24
- 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/dist/typings/entities/app-definition.d.ts +1 -1
- package/package.json +7 -7
|
@@ -125,7 +125,7 @@ var buildFullPath = __webpack_require__(/*! ../core/buildFullPath */ "../node_mo
|
|
|
125
125
|
var parseHeaders = __webpack_require__(/*! ./../helpers/parseHeaders */ "../node_modules/axios/lib/helpers/parseHeaders.js");
|
|
126
126
|
var isURLSameOrigin = __webpack_require__(/*! ./../helpers/isURLSameOrigin */ "../node_modules/axios/lib/helpers/isURLSameOrigin.js");
|
|
127
127
|
var createError = __webpack_require__(/*! ../core/createError */ "../node_modules/axios/lib/core/createError.js");
|
|
128
|
-
var
|
|
128
|
+
var transitionalDefaults = __webpack_require__(/*! ../defaults/transitional */ "../node_modules/axios/lib/defaults/transitional.js");
|
|
129
129
|
var Cancel = __webpack_require__(/*! ../cancel/Cancel */ "../node_modules/axios/lib/cancel/Cancel.js");
|
|
130
130
|
|
|
131
131
|
module.exports = function xhrAdapter(config) {
|
|
@@ -240,7 +240,7 @@ module.exports = function xhrAdapter(config) {
|
|
|
240
240
|
// Handle timeout
|
|
241
241
|
request.ontimeout = function handleTimeout() {
|
|
242
242
|
var timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded';
|
|
243
|
-
var transitional = config.transitional ||
|
|
243
|
+
var transitional = config.transitional || transitionalDefaults;
|
|
244
244
|
if (config.timeoutErrorMessage) {
|
|
245
245
|
timeoutErrorMessage = config.timeoutErrorMessage;
|
|
246
246
|
}
|
|
@@ -345,7 +345,7 @@ var utils = __webpack_require__(/*! ./utils */ "../node_modules/axios/lib/utils.
|
|
|
345
345
|
var bind = __webpack_require__(/*! ./helpers/bind */ "../node_modules/axios/lib/helpers/bind.js");
|
|
346
346
|
var Axios = __webpack_require__(/*! ./core/Axios */ "../node_modules/axios/lib/core/Axios.js");
|
|
347
347
|
var mergeConfig = __webpack_require__(/*! ./core/mergeConfig */ "../node_modules/axios/lib/core/mergeConfig.js");
|
|
348
|
-
var defaults = __webpack_require__(/*! ./defaults */ "../node_modules/axios/lib/defaults.js");
|
|
348
|
+
var defaults = __webpack_require__(/*! ./defaults */ "../node_modules/axios/lib/defaults/index.js");
|
|
349
349
|
|
|
350
350
|
/**
|
|
351
351
|
* Create an instance of Axios
|
|
@@ -880,7 +880,7 @@ module.exports = function createError(message, config, code, request, response)
|
|
|
880
880
|
var utils = __webpack_require__(/*! ./../utils */ "../node_modules/axios/lib/utils.js");
|
|
881
881
|
var transformData = __webpack_require__(/*! ./transformData */ "../node_modules/axios/lib/core/transformData.js");
|
|
882
882
|
var isCancel = __webpack_require__(/*! ../cancel/isCancel */ "../node_modules/axios/lib/cancel/isCancel.js");
|
|
883
|
-
var defaults = __webpack_require__(/*! ../defaults */ "../node_modules/axios/lib/defaults.js");
|
|
883
|
+
var defaults = __webpack_require__(/*! ../defaults */ "../node_modules/axios/lib/defaults/index.js");
|
|
884
884
|
var Cancel = __webpack_require__(/*! ../cancel/Cancel */ "../node_modules/axios/lib/cancel/Cancel.js");
|
|
885
885
|
|
|
886
886
|
/**
|
|
@@ -1180,7 +1180,7 @@ module.exports = function settle(resolve, reject, response) {
|
|
|
1180
1180
|
|
|
1181
1181
|
|
|
1182
1182
|
var utils = __webpack_require__(/*! ./../utils */ "../node_modules/axios/lib/utils.js");
|
|
1183
|
-
var defaults = __webpack_require__(/*!
|
|
1183
|
+
var defaults = __webpack_require__(/*! ../defaults */ "../node_modules/axios/lib/defaults/index.js");
|
|
1184
1184
|
|
|
1185
1185
|
/**
|
|
1186
1186
|
* Transform the data for a request or a response
|
|
@@ -1203,19 +1203,20 @@ module.exports = function transformData(data, headers, fns) {
|
|
|
1203
1203
|
|
|
1204
1204
|
/***/ }),
|
|
1205
1205
|
|
|
1206
|
-
/***/ "../node_modules/axios/lib/defaults.js":
|
|
1207
|
-
|
|
1208
|
-
!*** ../node_modules/axios/lib/defaults.js ***!
|
|
1209
|
-
|
|
1206
|
+
/***/ "../node_modules/axios/lib/defaults/index.js":
|
|
1207
|
+
/*!***************************************************!*\
|
|
1208
|
+
!*** ../node_modules/axios/lib/defaults/index.js ***!
|
|
1209
|
+
\***************************************************/
|
|
1210
1210
|
/*! no static exports found */
|
|
1211
1211
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1212
1212
|
|
|
1213
1213
|
"use strict";
|
|
1214
1214
|
/* WEBPACK VAR INJECTION */(function(process) {
|
|
1215
1215
|
|
|
1216
|
-
var utils = __webpack_require__(/*!
|
|
1217
|
-
var normalizeHeaderName = __webpack_require__(/*!
|
|
1218
|
-
var enhanceError = __webpack_require__(/*!
|
|
1216
|
+
var utils = __webpack_require__(/*! ../utils */ "../node_modules/axios/lib/utils.js");
|
|
1217
|
+
var normalizeHeaderName = __webpack_require__(/*! ../helpers/normalizeHeaderName */ "../node_modules/axios/lib/helpers/normalizeHeaderName.js");
|
|
1218
|
+
var enhanceError = __webpack_require__(/*! ../core/enhanceError */ "../node_modules/axios/lib/core/enhanceError.js");
|
|
1219
|
+
var transitionalDefaults = __webpack_require__(/*! ./transitional */ "../node_modules/axios/lib/defaults/transitional.js");
|
|
1219
1220
|
|
|
1220
1221
|
var DEFAULT_CONTENT_TYPE = {
|
|
1221
1222
|
'Content-Type': 'application/x-www-form-urlencoded'
|
|
@@ -1231,10 +1232,10 @@ function getDefaultAdapter() {
|
|
|
1231
1232
|
var adapter;
|
|
1232
1233
|
if (typeof XMLHttpRequest !== 'undefined') {
|
|
1233
1234
|
// For browsers use XHR adapter
|
|
1234
|
-
adapter = __webpack_require__(/*!
|
|
1235
|
+
adapter = __webpack_require__(/*! ../adapters/xhr */ "../node_modules/axios/lib/adapters/xhr.js");
|
|
1235
1236
|
} else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') {
|
|
1236
1237
|
// For node use HTTP adapter
|
|
1237
|
-
adapter = __webpack_require__(/*!
|
|
1238
|
+
adapter = __webpack_require__(/*! ../adapters/http */ "../node_modules/axios/lib/adapters/xhr.js");
|
|
1238
1239
|
}
|
|
1239
1240
|
return adapter;
|
|
1240
1241
|
}
|
|
@@ -1256,11 +1257,7 @@ function stringifySafely(rawValue, parser, encoder) {
|
|
|
1256
1257
|
|
|
1257
1258
|
var defaults = {
|
|
1258
1259
|
|
|
1259
|
-
transitional:
|
|
1260
|
-
silentJSONParsing: true,
|
|
1261
|
-
forcedJSONParsing: true,
|
|
1262
|
-
clarifyTimeoutError: false
|
|
1263
|
-
},
|
|
1260
|
+
transitional: transitionalDefaults,
|
|
1264
1261
|
|
|
1265
1262
|
adapter: getDefaultAdapter(),
|
|
1266
1263
|
|
|
@@ -1346,7 +1343,26 @@ utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
|
|
|
1346
1343
|
|
|
1347
1344
|
module.exports = defaults;
|
|
1348
1345
|
|
|
1349
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*!
|
|
1346
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../process/browser.js */ "../node_modules/process/browser.js")))
|
|
1347
|
+
|
|
1348
|
+
/***/ }),
|
|
1349
|
+
|
|
1350
|
+
/***/ "../node_modules/axios/lib/defaults/transitional.js":
|
|
1351
|
+
/*!**********************************************************!*\
|
|
1352
|
+
!*** ../node_modules/axios/lib/defaults/transitional.js ***!
|
|
1353
|
+
\**********************************************************/
|
|
1354
|
+
/*! no static exports found */
|
|
1355
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1356
|
+
|
|
1357
|
+
"use strict";
|
|
1358
|
+
|
|
1359
|
+
|
|
1360
|
+
module.exports = {
|
|
1361
|
+
silentJSONParsing: true,
|
|
1362
|
+
forcedJSONParsing: true,
|
|
1363
|
+
clarifyTimeoutError: false
|
|
1364
|
+
};
|
|
1365
|
+
|
|
1350
1366
|
|
|
1351
1367
|
/***/ }),
|
|
1352
1368
|
|
|
@@ -1358,7 +1374,7 @@ module.exports = defaults;
|
|
|
1358
1374
|
/***/ (function(module, exports) {
|
|
1359
1375
|
|
|
1360
1376
|
module.exports = {
|
|
1361
|
-
"version": "0.26.
|
|
1377
|
+
"version": "0.26.1"
|
|
1362
1378
|
};
|
|
1363
1379
|
|
|
1364
1380
|
/***/ }),
|
|
@@ -7633,7 +7649,7 @@ var del = function del(http, params) {
|
|
|
7633
7649
|
/*!*****************************************!*\
|
|
7634
7650
|
!*** ./adapters/REST/endpoints/http.ts ***!
|
|
7635
7651
|
\*****************************************/
|
|
7636
|
-
/*! exports provided: get, post, put, del, request */
|
|
7652
|
+
/*! exports provided: get, post, put, patch, del, request */
|
|
7637
7653
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
7638
7654
|
|
|
7639
7655
|
"use strict";
|
|
@@ -7641,6 +7657,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7641
7657
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "get", function() { return get; });
|
|
7642
7658
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "post", function() { return post; });
|
|
7643
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; });
|
|
7644
7661
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "del", function() { return del; });
|
|
7645
7662
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "request", function() { return request; });
|
|
7646
7663
|
/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts");
|
|
@@ -7661,14 +7678,19 @@ var put = function put(http, _ref3, payload) {
|
|
|
7661
7678
|
config = _ref3.config;
|
|
7662
7679
|
return _raw__WEBPACK_IMPORTED_MODULE_0__["put"](http, url, payload, config);
|
|
7663
7680
|
};
|
|
7664
|
-
var
|
|
7681
|
+
var patch = function patch(http, _ref4, payload) {
|
|
7665
7682
|
var url = _ref4.url,
|
|
7666
7683
|
config = _ref4.config;
|
|
7667
|
-
return _raw__WEBPACK_IMPORTED_MODULE_0__["
|
|
7684
|
+
return _raw__WEBPACK_IMPORTED_MODULE_0__["patch"](http, url, payload, config);
|
|
7668
7685
|
};
|
|
7669
|
-
var
|
|
7686
|
+
var del = function del(http, _ref5) {
|
|
7670
7687
|
var url = _ref5.url,
|
|
7671
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;
|
|
7672
7694
|
return _raw__WEBPACK_IMPORTED_MODULE_0__["http"](http, url, config);
|
|
7673
7695
|
};
|
|
7674
7696
|
|
|
@@ -10132,7 +10154,7 @@ function createClient(params) {
|
|
|
10132
10154
|
var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
10133
10155
|
var sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
|
|
10134
10156
|
var userAgent = Object(contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__["getUserAgentHeader"])( // @ts-expect-error
|
|
10135
|
-
"".concat(sdkMain, "/").concat("8.
|
|
10157
|
+
"".concat(sdkMain, "/").concat("8.3.0"), params.application, params.integration, params.feature);
|
|
10136
10158
|
var adapter = Object(_create_adapter__WEBPACK_IMPORTED_MODULE_1__["createAdapter"])(params); // Parameters<?> and ReturnType<?> only return the types of the last overload
|
|
10137
10159
|
// https://github.com/microsoft/TypeScript/issues/26591
|
|
10138
10160
|
// @ts-expect-error
|