contentful-management 11.14.1 → 11.14.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 +29 -8
- package/dist/contentful-management.browser.js.map +1 -1
- package/dist/contentful-management.browser.min.js +1 -1
- package/dist/contentful-management.node.js +31 -10
- 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/app-bundle.js +2 -2
- package/dist/es-modules/contentful-management.js +1 -1
- package/dist/typings/entities/app-bundle.d.ts +2 -2
- package/package.json +1 -1
|
@@ -484,7 +484,7 @@ var create = function create(http, params, payload) {
|
|
|
484
484
|
var appUploadId = payload.appUploadId,
|
|
485
485
|
comment = payload.comment,
|
|
486
486
|
actions = payload.actions,
|
|
487
|
-
|
|
487
|
+
functions = payload.functions;
|
|
488
488
|
var data = {
|
|
489
489
|
upload: {
|
|
490
490
|
sys: {
|
|
@@ -495,7 +495,7 @@ var create = function create(http, params, payload) {
|
|
|
495
495
|
},
|
|
496
496
|
comment: comment,
|
|
497
497
|
actions: actions,
|
|
498
|
-
|
|
498
|
+
functions: functions
|
|
499
499
|
};
|
|
500
500
|
return _raw__WEBPACK_IMPORTED_MODULE_0__.post(http, getBaseUrl(params), data);
|
|
501
501
|
};
|
|
@@ -21498,7 +21498,31 @@ class Axios {
|
|
|
21498
21498
|
*
|
|
21499
21499
|
* @returns {Promise} The Promise to be fulfilled
|
|
21500
21500
|
*/
|
|
21501
|
-
request(configOrUrl, config) {
|
|
21501
|
+
async request(configOrUrl, config) {
|
|
21502
|
+
try {
|
|
21503
|
+
return await this._request(configOrUrl, config);
|
|
21504
|
+
} catch (err) {
|
|
21505
|
+
if (err instanceof Error) {
|
|
21506
|
+
let dummy;
|
|
21507
|
+
|
|
21508
|
+
Error.captureStackTrace ? Error.captureStackTrace(dummy = {}) : (dummy = new Error());
|
|
21509
|
+
|
|
21510
|
+
// slice off the Error: ... line
|
|
21511
|
+
const stack = dummy.stack ? dummy.stack.replace(/^.+\n/, '') : '';
|
|
21512
|
+
|
|
21513
|
+
if (!err.stack) {
|
|
21514
|
+
err.stack = stack;
|
|
21515
|
+
// match without the 2 top stack lines
|
|
21516
|
+
} else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\n.+\n/, ''))) {
|
|
21517
|
+
err.stack += '\n' + stack
|
|
21518
|
+
}
|
|
21519
|
+
}
|
|
21520
|
+
|
|
21521
|
+
throw err;
|
|
21522
|
+
}
|
|
21523
|
+
}
|
|
21524
|
+
|
|
21525
|
+
_request(configOrUrl, config) {
|
|
21502
21526
|
/*eslint no-param-reassign:0*/
|
|
21503
21527
|
// Allow for axios('example/url'[, config]) a la fetch API
|
|
21504
21528
|
if (typeof configOrUrl === 'string') {
|
|
@@ -22607,9 +22631,6 @@ const defaults = {
|
|
|
22607
22631
|
const isFormData = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFormData(data);
|
|
22608
22632
|
|
|
22609
22633
|
if (isFormData) {
|
|
22610
|
-
if (!hasJSONContentType) {
|
|
22611
|
-
return data;
|
|
22612
|
-
}
|
|
22613
22634
|
return hasJSONContentType ? JSON.stringify((0,_helpers_formDataToJSON_js__WEBPACK_IMPORTED_MODULE_2__["default"])(data)) : data;
|
|
22614
22635
|
}
|
|
22615
22636
|
|
|
@@ -22750,7 +22771,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
22750
22771
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
22751
22772
|
/* harmony export */ VERSION: () => (/* binding */ VERSION)
|
|
22752
22773
|
/* harmony export */ });
|
|
22753
|
-
const VERSION = "1.6.
|
|
22774
|
+
const VERSION = "1.6.7";
|
|
22754
22775
|
|
|
22755
22776
|
/***/ }),
|
|
22756
22777
|
|
|
@@ -25444,7 +25465,7 @@ function createClient(params) {
|
|
|
25444
25465
|
var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
25445
25466
|
var sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
|
|
25446
25467
|
var userAgent = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.getUserAgentHeader)( // @ts-expect-error
|
|
25447
|
-
"".concat(sdkMain, "/").concat("11.14.
|
|
25468
|
+
"".concat(sdkMain, "/").concat("11.14.2"), params.application, params.integration, params.feature);
|
|
25448
25469
|
var adapter = (0,_create_adapter__WEBPACK_IMPORTED_MODULE_1__.createAdapter)(params);
|
|
25449
25470
|
|
|
25450
25471
|
// Parameters<?> and ReturnType<?> only return the types of the last overload
|