contentful-management 10.1.4 → 10.3.1
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 +34 -12
- package/dist/contentful-management.browser.js.map +1 -1
- package/dist/contentful-management.browser.min.js +2 -2
- package/dist/contentful-management.node.js +34 -12
- package/dist/contentful-management.node.js.map +1 -1
- package/dist/contentful-management.node.min.js +2 -2
- package/dist/es-modules/contentful-management.js +1 -1
- package/dist/es-modules/entities/app-action.js +6 -6
- package/dist/typings/create-organization-api.d.ts +6 -6
- package/dist/typings/entities/app-action.d.ts +16 -6
- package/dist/typings/entities/workflow.d.ts +6 -0
- package/dist/typings/export-types.d.ts +1 -1
- package/package.json +2 -2
|
@@ -127,6 +127,7 @@ var isURLSameOrigin = __webpack_require__(/*! ./../helpers/isURLSameOrigin */ ".
|
|
|
127
127
|
var transitionalDefaults = __webpack_require__(/*! ../defaults/transitional */ "../node_modules/axios/lib/defaults/transitional.js");
|
|
128
128
|
var AxiosError = __webpack_require__(/*! ../core/AxiosError */ "../node_modules/axios/lib/core/AxiosError.js");
|
|
129
129
|
var CanceledError = __webpack_require__(/*! ../cancel/CanceledError */ "../node_modules/axios/lib/cancel/CanceledError.js");
|
|
130
|
+
var parseProtocol = __webpack_require__(/*! ../helpers/parseProtocol */ "../node_modules/axios/lib/helpers/parseProtocol.js");
|
|
130
131
|
|
|
131
132
|
module.exports = function xhrAdapter(config) {
|
|
132
133
|
return new Promise(function dispatchXhrRequest(resolve, reject) {
|
|
@@ -144,6 +145,10 @@ module.exports = function xhrAdapter(config) {
|
|
|
144
145
|
}
|
|
145
146
|
}
|
|
146
147
|
|
|
148
|
+
if (utils.isFormData(requestData) && utils.isStandardBrowserEnv()) {
|
|
149
|
+
delete requestHeaders['Content-Type']; // Let the browser set it
|
|
150
|
+
}
|
|
151
|
+
|
|
147
152
|
var request = new XMLHttpRequest();
|
|
148
153
|
|
|
149
154
|
// HTTP basic authentication
|
|
@@ -320,8 +325,7 @@ module.exports = function xhrAdapter(config) {
|
|
|
320
325
|
requestData = null;
|
|
321
326
|
}
|
|
322
327
|
|
|
323
|
-
var
|
|
324
|
-
var protocol = tokens.length > 1 && tokens[0];
|
|
328
|
+
var protocol = parseProtocol(fullPath);
|
|
325
329
|
|
|
326
330
|
if (protocol && [ 'http', 'https', 'file' ].indexOf(protocol) === -1) {
|
|
327
331
|
reject(new AxiosError('Unsupported protocol ' + protocol + ':', AxiosError.ERR_BAD_REQUEST, config));
|
|
@@ -1431,7 +1435,7 @@ module.exports = {
|
|
|
1431
1435
|
/***/ (function(module, exports) {
|
|
1432
1436
|
|
|
1433
1437
|
module.exports = {
|
|
1434
|
-
"version": "0.27.
|
|
1438
|
+
"version": "0.27.2"
|
|
1435
1439
|
};
|
|
1436
1440
|
|
|
1437
1441
|
/***/ }),
|
|
@@ -1863,6 +1867,24 @@ module.exports = function parseHeaders(headers) {
|
|
|
1863
1867
|
};
|
|
1864
1868
|
|
|
1865
1869
|
|
|
1870
|
+
/***/ }),
|
|
1871
|
+
|
|
1872
|
+
/***/ "../node_modules/axios/lib/helpers/parseProtocol.js":
|
|
1873
|
+
/*!**********************************************************!*\
|
|
1874
|
+
!*** ../node_modules/axios/lib/helpers/parseProtocol.js ***!
|
|
1875
|
+
\**********************************************************/
|
|
1876
|
+
/*! no static exports found */
|
|
1877
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1878
|
+
|
|
1879
|
+
"use strict";
|
|
1880
|
+
|
|
1881
|
+
|
|
1882
|
+
module.exports = function parseProtocol(url) {
|
|
1883
|
+
var match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
|
|
1884
|
+
return match && match[1] || '';
|
|
1885
|
+
};
|
|
1886
|
+
|
|
1887
|
+
|
|
1866
1888
|
/***/ }),
|
|
1867
1889
|
|
|
1868
1890
|
/***/ "../node_modules/axios/lib/helpers/spread.js":
|
|
@@ -12551,7 +12573,7 @@ function createClient(params) {
|
|
|
12551
12573
|
var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
12552
12574
|
var sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
|
|
12553
12575
|
var userAgent = Object(contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__["getUserAgentHeader"])( // @ts-expect-error
|
|
12554
|
-
"".concat(sdkMain, "/").concat("10.1
|
|
12576
|
+
"".concat(sdkMain, "/").concat("10.3.1"), params.application, params.integration, params.feature);
|
|
12555
12577
|
var adapter = Object(_create_adapter__WEBPACK_IMPORTED_MODULE_1__["createAdapter"])(params); // Parameters<?> and ReturnType<?> only return the types of the last overload
|
|
12556
12578
|
// https://github.com/microsoft/TypeScript/issues/26591
|
|
12557
12579
|
// @ts-expect-error
|
|
@@ -18761,12 +18783,12 @@ function wrapAppActionCall(_makeRequest, data) {
|
|
|
18761
18783
|
/*!********************************!*\
|
|
18762
18784
|
!*** ./entities/app-action.ts ***!
|
|
18763
18785
|
\********************************/
|
|
18764
|
-
/*! exports provided:
|
|
18786
|
+
/*! exports provided: AppActionCategoryType, wrapAppAction, wrapAppActionCollection */
|
|
18765
18787
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
18766
18788
|
|
|
18767
18789
|
"use strict";
|
|
18768
18790
|
__webpack_require__.r(__webpack_exports__);
|
|
18769
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
18791
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AppActionCategoryType", function() { return AppActionCategoryType; });
|
|
18770
18792
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wrapAppAction", function() { return wrapAppAction; });
|
|
18771
18793
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wrapAppActionCollection", function() { return wrapAppActionCollection; });
|
|
18772
18794
|
/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js");
|
|
@@ -18778,13 +18800,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18778
18800
|
|
|
18779
18801
|
|
|
18780
18802
|
|
|
18781
|
-
var
|
|
18803
|
+
var AppActionCategoryType;
|
|
18782
18804
|
|
|
18783
|
-
(function (
|
|
18784
|
-
|
|
18785
|
-
|
|
18786
|
-
|
|
18787
|
-
})(
|
|
18805
|
+
(function (AppActionCategoryType) {
|
|
18806
|
+
AppActionCategoryType["EntryListV1Beta"] = "EntryList.v1.0-beta";
|
|
18807
|
+
AppActionCategoryType["NotificationV1Beta"] = "Notification.v1.0-beta";
|
|
18808
|
+
AppActionCategoryType["Custom"] = "Custom";
|
|
18809
|
+
})(AppActionCategoryType || (AppActionCategoryType = {}));
|
|
18788
18810
|
|
|
18789
18811
|
/**
|
|
18790
18812
|
* @private
|