contentful 11.8.13 → 11.9.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.
@@ -22883,9 +22883,9 @@ const isValidTimelinePreviewConfig = timelinePreview => {
22883
22883
  return hasRelease || hasTimestamp;
22884
22884
  };
22885
22885
  const getTimelinePreviewParams = params => {
22886
- var _a;
22886
+ var _a, _b;
22887
22887
  const host = params === null || params === void 0 ? void 0 : params.host;
22888
- const timelinePreview = (_a = params === null || params === void 0 ? void 0 : params.alphaFeatures) === null || _a === void 0 ? void 0 : _a.timelinePreview;
22888
+ const timelinePreview = (_a = params === null || params === void 0 ? void 0 : params.timelinePreview) !== null && _a !== void 0 ? _a : (_b = params === null || params === void 0 ? void 0 : params.alphaFeatures) === null || _b === void 0 ? void 0 : _b.timelinePreview;
22889
22889
  const enabled = checkEnableTimelinePreviewIsAllowed(host, timelinePreview);
22890
22890
  return {
22891
22891
  enabled,
@@ -23422,7 +23422,7 @@ function createContentfulApi({
23422
23422
  http.defaults.baseURL = getGlobalOptions().environmentBaseUrl;
23423
23423
  }
23424
23424
  return {
23425
- version: "11.8.13",
23425
+ version: "11.9.0",
23426
23426
  getSpace,
23427
23427
  getContentType,
23428
23428
  getContentTypes,
@@ -23547,7 +23547,7 @@ function createClient(params) {
23547
23547
  environment: 'master'
23548
23548
  };
23549
23549
  const config = Object.assign(Object.assign({}, defaultConfig), params);
23550
- const userAgentHeader = getUserAgentHeader(`contentful.js/${"11.8.13"}`, config.application, config.integration);
23550
+ const userAgentHeader = getUserAgentHeader(`contentful.js/${"11.9.0"}`, config.application, config.integration);
23551
23551
  config.headers = Object.assign(Object.assign({}, config.headers), {
23552
23552
  'Content-Type': 'application/vnd.contentful.delivery.v1+json',
23553
23553
  'X-Contentful-User-Agent': userAgentHeader
@@ -37,7 +37,7 @@ function createClient(params) {
37
37
  environment: 'master',
38
38
  };
39
39
  const config = Object.assign(Object.assign({}, defaultConfig), params);
40
- const userAgentHeader = getUserAgentHeader(`contentful.js/${"11.8.13"}`, config.application, config.integration);
40
+ const userAgentHeader = getUserAgentHeader(`contentful.js/${"11.9.0"}`, config.application, config.integration);
41
41
  config.headers = Object.assign(Object.assign({}, config.headers), { 'Content-Type': 'application/vnd.contentful.delivery.v1+json', 'X-Contentful-User-Agent': userAgentHeader });
42
42
  const http = createHttpClient(axios, config);
43
43
  if (!http.defaults.baseURL) {
@@ -425,7 +425,7 @@ function createContentfulApi({ http, getGlobalOptions }, options) {
425
425
  http.defaults.baseURL = getGlobalOptions().environmentBaseUrl;
426
426
  }
427
427
  return {
428
- version: "11.8.13",
428
+ version: "11.9.0",
429
429
  getSpace,
430
430
  getContentType,
431
431
  getContentTypes,
@@ -23,9 +23,9 @@ const isValidTimelinePreviewConfig = (timelinePreview) => {
23
23
  return hasRelease || hasTimestamp;
24
24
  };
25
25
  const getTimelinePreviewParams = (params) => {
26
- var _a;
26
+ var _a, _b;
27
27
  const host = params === null || params === void 0 ? void 0 : params.host;
28
- const timelinePreview = (_a = params === null || params === void 0 ? void 0 : params.alphaFeatures) === null || _a === void 0 ? void 0 : _a.timelinePreview;
28
+ const timelinePreview = (_a = params === null || params === void 0 ? void 0 : params.timelinePreview) !== null && _a !== void 0 ? _a : (_b = params === null || params === void 0 ? void 0 : params.alphaFeatures) === null || _b === void 0 ? void 0 : _b.timelinePreview;
29
29
  const enabled = checkEnableTimelinePreviewIsAllowed(host, timelinePreview);
30
30
  return { enabled, timelinePreview };
31
31
  };