contentful 10.12.0 → 11.0.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.
|
@@ -5061,7 +5061,7 @@ function createClient(params) {
|
|
|
5061
5061
|
environment: 'master',
|
|
5062
5062
|
};
|
|
5063
5063
|
const config = Object.assign(Object.assign({}, defaultConfig), params);
|
|
5064
|
-
const userAgentHeader = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.getUserAgentHeader)(`contentful.js/${"
|
|
5064
|
+
const userAgentHeader = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.getUserAgentHeader)(`contentful.js/${"11.0.1"}`, config.application, config.integration);
|
|
5065
5065
|
config.headers = Object.assign(Object.assign({}, config.headers), { 'Content-Type': 'application/vnd.contentful.delivery.v1+json', 'X-Contentful-User-Agent': userAgentHeader });
|
|
5066
5066
|
const http = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.createHttpClient)(axios__WEBPACK_IMPORTED_MODULE_4__["default"], config);
|
|
5067
5067
|
if (!http.defaults.baseURL) {
|
|
@@ -5407,7 +5407,7 @@ function createContentfulApi({ http, getGlobalOptions }, options) {
|
|
|
5407
5407
|
http.defaults.baseURL = getGlobalOptions().environmentBaseUrl;
|
|
5408
5408
|
}
|
|
5409
5409
|
return {
|
|
5410
|
-
version: "
|
|
5410
|
+
version: "11.0.1",
|
|
5411
5411
|
getSpace,
|
|
5412
5412
|
getContentType,
|
|
5413
5413
|
getContentTypes,
|