contentful-management 10.1.2 → 10.2.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 +26 -4
- package/dist/contentful-management.browser.js.map +1 -1
- package/dist/contentful-management.browser.min.js +2 -2
- package/dist/contentful-management.node.js +26 -4
- 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/typings/entities/app-action.d.ts +10 -0
- package/package.json +3 -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.
|
|
12576
|
+
"".concat(sdkMain, "/").concat("10.2.0"), 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
|