contentful-management 7.42.3 → 7.42.4
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 +10 -4
- package/dist/contentful-management.browser.js.map +1 -1
- package/dist/contentful-management.browser.min.js +1 -1
- package/dist/contentful-management.legacy.js +10 -4
- package/dist/contentful-management.legacy.js.map +1 -1
- package/dist/contentful-management.legacy.min.js +1 -1
- package/dist/contentful-management.node.js +10 -4
- package/dist/contentful-management.node.js.map +1 -1
- package/dist/contentful-management.node.min.js +1 -1
- package/dist/es-modules/contentful-management.js +1 -1
- package/package.json +1 -1
|
@@ -2646,7 +2646,9 @@ var rateLimitThrottle = (function (axiosInstance) {
|
|
|
2646
2646
|
return throttle(function () {
|
|
2647
2647
|
return config;
|
|
2648
2648
|
})();
|
|
2649
|
-
},
|
|
2649
|
+
}, function (error) {
|
|
2650
|
+
return Promise.reject(error);
|
|
2651
|
+
});
|
|
2650
2652
|
var responseInterceptorId = axiosInstance.interceptors.response.use(function (response) {
|
|
2651
2653
|
if (!isCalculated && lodash_isstring__WEBPACK_IMPORTED_MODULE_2___default()(type) && (type === 'auto' || PERCENTAGE_REGEX.test(type)) && response.headers && response.headers['x-contentful-ratelimit-second-limit']) {
|
|
2652
2654
|
var rawLimit = parseInt(response.headers['x-contentful-ratelimit-second-limit']);
|
|
@@ -2663,14 +2665,18 @@ var rateLimitThrottle = (function (axiosInstance) {
|
|
|
2663
2665
|
return throttle(function () {
|
|
2664
2666
|
return config;
|
|
2665
2667
|
})();
|
|
2666
|
-
},
|
|
2668
|
+
}, function (error) {
|
|
2669
|
+
return Promise.reject(error);
|
|
2670
|
+
});
|
|
2667
2671
|
}
|
|
2668
2672
|
|
|
2669
2673
|
isCalculated = true;
|
|
2670
2674
|
}
|
|
2671
2675
|
|
|
2672
2676
|
return response;
|
|
2673
|
-
},
|
|
2677
|
+
}, function (error) {
|
|
2678
|
+
return Promise.reject(error);
|
|
2679
|
+
});
|
|
2674
2680
|
return function () {
|
|
2675
2681
|
axiosInstance.interceptors.request.eject(requestInterceptorId);
|
|
2676
2682
|
axiosInstance.interceptors.response.eject(responseInterceptorId);
|
|
@@ -9630,7 +9636,7 @@ function createClient(params) {
|
|
|
9630
9636
|
var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
9631
9637
|
var sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
|
|
9632
9638
|
var userAgent = Object(contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__["getUserAgentHeader"])( // @ts-expect-error
|
|
9633
|
-
"".concat(sdkMain, "/").concat("7.42.
|
|
9639
|
+
"".concat(sdkMain, "/").concat("7.42.4"), params.application, params.integration, params.feature);
|
|
9634
9640
|
var adapter = Object(_create_adapter__WEBPACK_IMPORTED_MODULE_1__["createAdapter"])(params); // Parameters<?> and ReturnType<?> only return the types of the last overload
|
|
9635
9641
|
// https://github.com/microsoft/TypeScript/issues/26591
|
|
9636
9642
|
// @ts-expect-error
|