contentful 11.4.6 → 11.5.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.
@@ -7,11 +7,12 @@ var require$$3 = require('http');
7
7
  var require$$4 = require('https');
8
8
  var require$$0$2 = require('url');
9
9
  var require$$6 = require('fs');
10
+ var require$$1$2 = require('crypto');
10
11
  var require$$4$1 = require('assert');
11
12
  var require$$0$4 = require('tty');
12
13
  var require$$0$3 = require('os');
13
- var require$$7 = require('zlib');
14
- var require$$9 = require('events');
14
+ var require$$8 = require('zlib');
15
+ var require$$10 = require('events');
15
16
  var process$1 = require('process');
16
17
 
17
18
  function _OverloadYield(e, d) {
@@ -72,14 +73,14 @@ function AsyncFromSyncIterator(r) {
72
73
  },
73
74
  return: function (r) {
74
75
  var n = this.s.return;
75
- return undefined === n ? Promise.resolve({
76
+ return void 0 === n ? Promise.resolve({
76
77
  value: r,
77
78
  done: true
78
79
  }) : AsyncFromSyncIteratorContinuation(n.apply(this.s, arguments));
79
80
  },
80
81
  throw: function (r) {
81
82
  var n = this.s.return;
82
- return undefined === n ? Promise.reject(r) : AsyncFromSyncIteratorContinuation(n.apply(this.s, arguments));
83
+ return void 0 === n ? Promise.reject(r) : AsyncFromSyncIteratorContinuation(n.apply(this.s, arguments));
83
84
  }
84
85
  }, new AsyncFromSyncIterator(r);
85
86
  }
@@ -135,7 +136,7 @@ function _setPrototypeOf(t, e) {
135
136
  function _toPrimitive(t, r) {
136
137
  if ("object" != typeof t || !t) return t;
137
138
  var e = t[Symbol.toPrimitive];
138
- if (undefined !== e) {
139
+ if (void 0 !== e) {
139
140
  var i = e.call(t, r);
140
141
  if ("object" != typeof i) return i;
141
142
  throw new TypeError("@@toPrimitive must return a primitive value.");
@@ -202,7 +203,7 @@ function AsyncGenerator(e) {
202
203
  };
203
204
  t ? t = t.next = i : (r = t = i, resume(e, n));
204
205
  });
205
- }, "function" != typeof e.return && (this.return = undefined);
206
+ }, "function" != typeof e.return && (this.return = void 0);
206
207
  }
207
208
  AsyncGenerator.prototype["function" == typeof Symbol && Symbol.asyncIterator || "@@asyncIterator"] = function () {
208
209
  return this;
@@ -215,7 +216,7 @@ AsyncGenerator.prototype["function" == typeof Symbol && Symbol.asyncIterator ||
215
216
  };
216
217
  function _wrapRegExp() {
217
218
  _wrapRegExp = function (e, r) {
218
- return new BabelRegExp(e, undefined, r);
219
+ return new BabelRegExp(e, void 0, r);
219
220
  };
220
221
  var e = RegExp.prototype,
221
222
  r = new WeakMap();
@@ -228,7 +229,7 @@ function _wrapRegExp() {
228
229
  return Object.keys(p).reduce(function (r, t) {
229
230
  var o = p[t];
230
231
  if ("number" == typeof o) r[t] = e[o];else {
231
- for (var i = 0; undefined === e[o[i]] && i + 1 < o.length;) i++;
232
+ for (var i = 0; void 0 === e[o[i]] && i + 1 < o.length;) i++;
232
233
  r[t] = e[o[i]];
233
234
  }
234
235
  return r;
@@ -13878,21 +13879,23 @@ followRedirects$1.exports.wrap = wrap;
13878
13879
  var followRedirectsExports = followRedirects$1.exports;
13879
13880
 
13880
13881
  const FormData$1 = form_data;
13882
+ const crypto = require$$1$2;
13881
13883
  const url = require$$0$2;
13882
13884
  const proxyFromEnv = proxyFromEnv$1;
13883
13885
  const http = require$$3;
13884
13886
  const https = require$$4;
13885
13887
  const util = require$$1;
13886
13888
  const followRedirects = followRedirectsExports;
13887
- const zlib = require$$7;
13889
+ const zlib = require$$8;
13888
13890
  const stream = require$$0$1;
13889
- const events = require$$9;
13891
+ const events = require$$10;
13890
13892
  function _interopDefaultLegacy(e) {
13891
13893
  return e && typeof e === 'object' && 'default' in e ? e : {
13892
13894
  'default': e
13893
13895
  };
13894
13896
  }
13895
13897
  const FormData__default = /*#__PURE__*/_interopDefaultLegacy(FormData$1);
13898
+ const crypto__default = /*#__PURE__*/_interopDefaultLegacy(crypto);
13896
13899
  const url__default = /*#__PURE__*/_interopDefaultLegacy(url);
13897
13900
  const proxyFromEnv__default = /*#__PURE__*/_interopDefaultLegacy(proxyFromEnv);
13898
13901
  const http__default = /*#__PURE__*/_interopDefaultLegacy(http);
@@ -14476,23 +14479,6 @@ const noop$1 = () => {};
14476
14479
  const toFiniteNumber = (value, defaultValue) => {
14477
14480
  return value != null && Number.isFinite(value = +value) ? value : defaultValue;
14478
14481
  };
14479
- const ALPHA = 'abcdefghijklmnopqrstuvwxyz';
14480
- const DIGIT = '0123456789';
14481
- const ALPHABET = {
14482
- DIGIT,
14483
- ALPHA,
14484
- ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
14485
- };
14486
- const generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
14487
- let str = '';
14488
- const {
14489
- length
14490
- } = alphabet;
14491
- while (size--) {
14492
- str += alphabet[Math.random() * length | 0];
14493
- }
14494
- return str;
14495
- };
14496
14482
 
14497
14483
  /**
14498
14484
  * If the thing is a FormData object, return true, otherwise return false.
@@ -14606,8 +14592,6 @@ const utils$1$1 = {
14606
14592
  findKey,
14607
14593
  global: _global,
14608
14594
  isContextDefined,
14609
- ALPHABET,
14610
- generateString,
14611
14595
  isSpecCompliantForm,
14612
14596
  toJSONObject,
14613
14597
  isAsyncFn,
@@ -15042,6 +15026,25 @@ const transitionalDefaults = {
15042
15026
  clarifyTimeoutError: false
15043
15027
  };
15044
15028
  const URLSearchParams = url__default["default"].URLSearchParams;
15029
+ const ALPHA = 'abcdefghijklmnopqrstuvwxyz';
15030
+ const DIGIT = '0123456789';
15031
+ const ALPHABET = {
15032
+ DIGIT,
15033
+ ALPHA,
15034
+ ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
15035
+ };
15036
+ const generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
15037
+ let str = '';
15038
+ const {
15039
+ length
15040
+ } = alphabet;
15041
+ const randomValues = new Uint32Array(size);
15042
+ crypto__default["default"].randomFillSync(randomValues);
15043
+ for (let i = 0; i < size; i++) {
15044
+ str += alphabet[randomValues[i] % length];
15045
+ }
15046
+ return str;
15047
+ };
15045
15048
  const platform$1 = {
15046
15049
  isNode: true,
15047
15050
  classes: {
@@ -15049,6 +15052,8 @@ const platform$1 = {
15049
15052
  FormData: FormData__default["default"],
15050
15053
  Blob: typeof Blob !== 'undefined' && Blob || null
15051
15054
  },
15055
+ ALPHABET,
15056
+ generateString,
15052
15057
  protocols: ['http', 'https', 'file', 'data']
15053
15058
  };
15054
15059
  const hasBrowserEnv = typeof window !== 'undefined' && typeof document !== 'undefined';
@@ -15664,13 +15669,14 @@ function combineURLs(baseURL, relativeURL) {
15664
15669
  *
15665
15670
  * @returns {string} The combined full path
15666
15671
  */
15667
- function buildFullPath(baseURL, requestedURL) {
15668
- if (baseURL && !isAbsoluteURL(requestedURL)) {
15672
+ function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
15673
+ let isRelativeUrl = !isAbsoluteURL(requestedURL);
15674
+ if (baseURL && isRelativeUrl || allowAbsoluteUrls == false) {
15669
15675
  return combineURLs(baseURL, requestedURL);
15670
15676
  }
15671
15677
  return requestedURL;
15672
15678
  }
15673
- const VERSION = "1.7.9";
15679
+ const VERSION = "1.8.1";
15674
15680
  function parseProtocol(url) {
15675
15681
  const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
15676
15682
  return match && match[1] || '';
@@ -15848,7 +15854,7 @@ const readBlob = /*#__PURE__*/function () {
15848
15854
  };
15849
15855
  }();
15850
15856
  const readBlob$1 = readBlob;
15851
- const BOUNDARY_ALPHABET = utils$1$1.ALPHABET.ALPHA_DIGIT + '-_';
15857
+ const BOUNDARY_ALPHABET = platform.ALPHABET.ALPHA_DIGIT + '-_';
15852
15858
  const textEncoder = typeof TextEncoder === 'function' ? new TextEncoder() : new util__default["default"].TextEncoder();
15853
15859
  const CRLF = '\r\n';
15854
15860
  const CRLF_BYTES = textEncoder.encode(CRLF);
@@ -15898,7 +15904,7 @@ const formDataToStream = (form, headersHandler, options) => {
15898
15904
  const {
15899
15905
  tag = 'form-data-boundary',
15900
15906
  size = 25,
15901
- boundary = tag + '-' + utils$1$1.generateString(size, BOUNDARY_ALPHABET)
15907
+ boundary = tag + '-' + platform.generateString(size, BOUNDARY_ALPHABET)
15902
15908
  } = options || {};
15903
15909
  if (!utils$1$1.isFormData(form)) {
15904
15910
  throw TypeError('FormData instance required');
@@ -17554,6 +17560,13 @@ class Axios {
17554
17560
  }, true);
17555
17561
  }
17556
17562
  }
17563
+
17564
+ // Set config.allowAbsoluteUrls
17565
+ if (config.allowAbsoluteUrls !== undefined) ;else if (this.defaults.allowAbsoluteUrls !== undefined) {
17566
+ config.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;
17567
+ } else {
17568
+ config.allowAbsoluteUrls = true;
17569
+ }
17557
17570
  validator.assertOptions(config, {
17558
17571
  baseUrl: validators.spelling('baseURL'),
17559
17572
  withXsrfToken: validators.spelling('withXSRFToken')
@@ -17624,7 +17637,7 @@ class Axios {
17624
17637
  }
17625
17638
  getUri(config) {
17626
17639
  config = mergeConfig(this.defaults, config);
17627
- const fullPath = buildFullPath(config.baseURL, config.url);
17640
+ const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
17628
17641
  return buildURL(fullPath, config.params, config.paramsSerializer);
17629
17642
  }
17630
17643
  }
@@ -18057,7 +18070,7 @@ var getStrictProperties = SUPPORTS_SYMBOL ? getStrictPropertiesModern : getOwnPr
18057
18070
  */
18058
18071
  function copyOwnPropertiesStrict(value, clone, state) {
18059
18072
  var properties = getStrictProperties(value);
18060
- for (var index = 0, length_1 = properties.length, property = undefined, descriptor = undefined; index < length_1; ++index) {
18073
+ for (var index = 0, length_1 = properties.length, property = void 0, descriptor = void 0; index < length_1; ++index) {
18061
18074
  property = properties[index];
18062
18075
  if (property === 'callee' || property === 'caller') {
18063
18076
  continue;
@@ -18166,7 +18179,7 @@ function copyObjectLooseModern(object, state) {
18166
18179
  }
18167
18180
  }
18168
18181
  var symbols = getOwnPropertySymbols$1(object);
18169
- for (var index = 0, length_3 = symbols.length, symbol = undefined; index < length_3; ++index) {
18182
+ for (var index = 0, length_3 = symbols.length, symbol = void 0; index < length_3; ++index) {
18170
18183
  symbol = symbols[index];
18171
18184
  if (propertyIsEnumerable$1.call(object, symbol)) {
18172
18185
  clone[symbol] = state.copier(object[symbol], state);
@@ -18698,7 +18711,7 @@ function pThrottle({
18698
18711
  if (delay > 0) {
18699
18712
  timeoutId = setTimeout(execute, delay);
18700
18713
  queue.set(timeoutId, reject);
18701
- onDelay === null || onDelay === undefined || onDelay(...arguments_);
18714
+ onDelay === null || onDelay === void 0 || onDelay(...arguments_);
18702
18715
  } else {
18703
18716
  execute();
18704
18717
  }
@@ -18728,7 +18741,7 @@ function calculateLimit(type, max = 7) {
18728
18741
  let limit = max;
18729
18742
  if (PERCENTAGE_REGEX.test(type)) {
18730
18743
  var _type$match;
18731
- const groups = (_type$match = type.match(PERCENTAGE_REGEX)) === null || _type$match === undefined ? undefined : _type$match.groups;
18744
+ const groups = (_type$match = type.match(PERCENTAGE_REGEX)) === null || _type$match === void 0 ? void 0 : _type$match.groups;
18732
18745
  if (groups && groups.value) {
18733
18746
  const percentage = parseInt(groups.value) / 100;
18734
18747
  limit = Math.round(max * percentage);
@@ -19262,7 +19275,7 @@ var getIntrinsic = function GetIntrinsic(name, allowMissing) {
19262
19275
  if (!allowMissing) {
19263
19276
  throw new $TypeError$3('base intrinsic for ' + name + ' exists, but the property is not available.');
19264
19277
  }
19265
- return undefined;
19278
+ return void 0;
19266
19279
  }
19267
19280
  if ($gOPD$1 && i + 1 >= parts.length) {
19268
19281
  var desc = $gOPD$1(value, part);
@@ -20425,7 +20438,7 @@ var stringify$2 = function stringify(object, prefix, generateArrayPrefix, commaR
20425
20438
  var tmpSc = sideChannel;
20426
20439
  var step = 0;
20427
20440
  var findFlag = false;
20428
- while ((tmpSc = tmpSc.get(sentinel)) !== undefined && !findFlag) {
20441
+ while ((tmpSc = tmpSc.get(sentinel)) !== void 0 && !findFlag) {
20429
20442
  // Where object last appeared in the ref tree
20430
20443
  var pos = tmpSc.get(object);
20431
20444
  step += 1;
@@ -20476,7 +20489,7 @@ var stringify$2 = function stringify(object, prefix, generateArrayPrefix, commaR
20476
20489
  obj = utils$1.maybeMap(obj, encoder);
20477
20490
  }
20478
20491
  objKeys = [{
20479
- value: obj.length > 0 ? obj.join(',') || null : undefined
20492
+ value: obj.length > 0 ? obj.join(',') || null : void 0
20480
20493
  }];
20481
20494
  } else if (isArray$2(filter)) {
20482
20495
  objKeys = filter;
@@ -21240,10 +21253,10 @@ function errorHandler(errorResponse) {
21240
21253
  if (!isPlainObject$1(response) || !isPlainObject$1(config)) {
21241
21254
  throw errorResponse;
21242
21255
  }
21243
- const data = response === null || response === undefined ? undefined : response.data;
21256
+ const data = response === null || response === void 0 ? void 0 : response.data;
21244
21257
  const errorData = {
21245
- status: response === null || response === undefined ? undefined : response.status,
21246
- statusText: response === null || response === undefined ? undefined : response.statusText,
21258
+ status: response === null || response === void 0 ? void 0 : response.status,
21259
+ statusText: response === null || response === void 0 ? void 0 : response.statusText,
21247
21260
  message: '',
21248
21261
  details: {}
21249
21262
  };
@@ -21266,15 +21279,15 @@ function errorHandler(errorResponse) {
21266
21279
  if ('details' in data) {
21267
21280
  errorData.details = data.details || {};
21268
21281
  }
21269
- errorName = (_data$sys = data.sys) === null || _data$sys === undefined ? undefined : _data$sys.id;
21282
+ errorName = (_data$sys = data.sys) === null || _data$sys === void 0 ? void 0 : _data$sys.id;
21270
21283
  }
21271
21284
  const error = new Error();
21272
- error.name = errorName && errorName !== 'Unknown' ? errorName : `${response === null || response === undefined ? undefined : response.status} ${response === null || response === undefined ? undefined : response.statusText}`;
21285
+ error.name = errorName && errorName !== 'Unknown' ? errorName : `${response === null || response === void 0 ? void 0 : response.status} ${response === null || response === void 0 ? void 0 : response.statusText}`;
21273
21286
  try {
21274
21287
  error.message = JSON.stringify(errorData, null, ' ');
21275
21288
  } catch (_unused) {
21276
21289
  var _errorData$message;
21277
- error.message = (_errorData$message = errorData === null || errorData === undefined ? undefined : errorData.message) !== null && _errorData$message !== undefined ? _errorData$message : '';
21290
+ error.message = (_errorData$message = errorData === null || errorData === void 0 ? void 0 : errorData.message) !== null && _errorData$message !== void 0 ? _errorData$message : '';
21278
21291
  }
21279
21292
  throw error;
21280
21293
  }
@@ -21352,10 +21365,10 @@ Object.fromEntries(Object.entries(L).map(t => t.reverse()));
21352
21365
  function w(t, n) {
21353
21366
  return G(t, n);
21354
21367
  }
21355
- var x, F;
21368
+ var x, k;
21356
21369
  function ne() {
21357
- if (F) return x;
21358
- F = 1;
21370
+ if (k) return x;
21371
+ k = 1;
21359
21372
  var t = Object.prototype.hasOwnProperty,
21360
21373
  n = Object.prototype.toString;
21361
21374
  return x = function (e, r, s) {
@@ -21396,7 +21409,7 @@ function re() {
21396
21409
  }, n.remove = function (o, e) {
21397
21410
  var r = Array.isArray(e) ? e : n.parse(e),
21398
21411
  s = r[r.length - 1];
21399
- if (s === undefined) throw new Error('Invalid JSON pointer for remove: "' + e + '"');
21412
+ if (s === void 0) throw new Error('Invalid JSON pointer for remove: "' + e + '"');
21400
21413
  var c = n.get(o, r.slice(0, -1));
21401
21414
  if (Array.isArray(c)) {
21402
21415
  var i = +s;
@@ -21447,7 +21460,7 @@ const oe = ({
21447
21460
  const r = n[t];
21448
21461
  if (r) {
21449
21462
  delete n[t];
21450
- const s = C(o, t);
21463
+ const s = b(o, t);
21451
21464
  for (const c of s) {
21452
21465
  n[c] = r;
21453
21466
  const i = p.get(o, c),
@@ -21455,7 +21468,7 @@ const oe = ({
21455
21468
  p.set(o, c, u);
21456
21469
  }
21457
21470
  } else {
21458
- const s = C(o, t);
21471
+ const s = b(o, t);
21459
21472
  for (const c of s) {
21460
21473
  const i = p.get(o, c),
21461
21474
  u = w(i, e);
@@ -21463,13 +21476,13 @@ const oe = ({
21463
21476
  }
21464
21477
  }
21465
21478
  },
21466
- C = (t, n = "") => {
21479
+ b = (t, n = "") => {
21467
21480
  const o = [],
21468
21481
  e = p.get(t, n);
21469
- if (e.content) for (let r = 0; r < e.content.length; r++) e.content[r].nodeType === "text" ? o.push(`${n}/content/${r}/value`) : o.push(...C(t, `${n}/content/${r}`));
21482
+ if (e.content) for (let r = 0; r < e.content.length; r++) e.content[r].nodeType === "text" ? o.push(`${n}/content/${r}/value`) : o.push(...b(t, `${n}/content/${r}`));
21470
21483
  return o;
21471
21484
  },
21472
- b = ({
21485
+ C = ({
21473
21486
  entityId: t,
21474
21487
  entityType: n,
21475
21488
  space: o,
@@ -21540,10 +21553,7 @@ const $ = (t, n, o, e, r) => {
21540
21553
  const {
21541
21554
  contentSourceMaps: s
21542
21555
  } = t.sys;
21543
- if (!s) {
21544
- console.error("Content source maps data is missing");
21545
- return;
21546
- }
21556
+ if (!s) return;
21547
21557
  const {
21548
21558
  mappings: c
21549
21559
  } = s;
@@ -21569,7 +21579,7 @@ const $ = (t, n, o, e, r) => {
21569
21579
  }
21570
21580
  const A = t.sys.locale;
21571
21581
  if (A) {
21572
- const E = b({
21582
+ const E = C({
21573
21583
  entityId: m,
21574
21584
  entityType: v,
21575
21585
  space: a,
@@ -21583,7 +21593,7 @@ const $ = (t, n, o, e, r) => {
21583
21593
  });
21584
21594
  P(y, h, E, t, f, c);
21585
21595
  } else Object.keys(h).forEach(S => {
21586
- const T = b({
21596
+ const T = C({
21587
21597
  entityId: m,
21588
21598
  entityType: v,
21589
21599
  space: a,
@@ -21605,7 +21615,7 @@ const $ = (t, n, o, e, r) => {
21605
21615
  const e = Q(t);
21606
21616
  if (e.sys && "items" in e) {
21607
21617
  const s = e;
21608
- if (!((r = s.sys) != null && r.contentSourceMapsLookup)) return console.error("Content source maps lookup data is missing"), s;
21618
+ if (!((r = s.sys) != null && r.contentSourceMapsLookup)) return s;
21609
21619
  const {
21610
21620
  contentSourceMapsLookup: {
21611
21621
  fieldTypes: c,
@@ -21721,7 +21731,7 @@ var getObjectCloneLoose = function (object, realm, handleCopy, cache) {
21721
21731
  }
21722
21732
  if (SYMBOL_PROPERTIES) {
21723
21733
  var symbols = getOwnPropertySymbols(object);
21724
- for (var index = 0, length_1 = symbols.length, symbol = undefined; index < length_1; ++index) {
21734
+ for (var index = 0, length_1 = symbols.length, symbol = void 0; index < length_1; ++index) {
21725
21735
  symbol = symbols[index];
21726
21736
  if (propertyIsEnumerable.call(object, symbol)) {
21727
21737
  clone[symbol] = handleCopy(object[symbol], cache);
@@ -21747,7 +21757,7 @@ var getObjectCloneStrict = function (object, realm, handleCopy, cache) {
21747
21757
  // set in the cache immediately to be able to reuse the object recursively
21748
21758
  cache.set(object, clone);
21749
21759
  var properties = SYMBOL_PROPERTIES ? getOwnPropertyNames(object).concat(getOwnPropertySymbols(object)) : getOwnPropertyNames(object);
21750
- for (var index = 0, length_2 = properties.length, property = undefined, descriptor = undefined; index < length_2; ++index) {
21760
+ for (var index = 0, length_2 = properties.length, property = void 0, descriptor = void 0; index < length_2; ++index) {
21751
21761
  property = properties[index];
21752
21762
  if (property !== 'callee' && property !== 'caller') {
21753
21763
  descriptor = getOwnPropertyDescriptor(object, property);
@@ -21970,7 +21980,7 @@ copy.default = copy;
21970
21980
  copy.strict = function strictCopy(value, options) {
21971
21981
  return copy(value, {
21972
21982
  isStrict: true,
21973
- realm: options ? options.realm : undefined
21983
+ realm: options ? options.realm : void 0
21974
21984
  });
21975
21985
  };
21976
21986
 
@@ -22605,8 +22615,8 @@ function createContentfulApi({
22605
22615
  function maybeEnableSourceMaps(query = {}) {
22606
22616
  var _a, _b;
22607
22617
  const params = http.httpClientParams;
22608
- const includeContentSourceMaps = (_a = params === null || params === undefined ? undefined : params.includeContentSourceMaps) !== null && _a !== undefined ? _a : (_b = params === null || params === undefined ? undefined : params.alphaFeatures) === null || _b === undefined ? undefined : _b.includeContentSourceMaps;
22609
- const host = params === null || params === undefined ? undefined : params.host;
22618
+ const includeContentSourceMaps = (_a = params === null || params === void 0 ? void 0 : params.includeContentSourceMaps) !== null && _a !== void 0 ? _a : (_b = params === null || params === void 0 ? void 0 : params.alphaFeatures) === null || _b === void 0 ? void 0 : _b.includeContentSourceMaps;
22619
+ const host = params === null || params === void 0 ? void 0 : params.host;
22610
22620
  const areAllowed = checkIncludeContentSourceMapsParamIsAllowed(host, includeContentSourceMaps);
22611
22621
  if (areAllowed) {
22612
22622
  query.includeContentSourceMaps = true;
@@ -22621,7 +22631,7 @@ function createContentfulApi({
22621
22631
  }
22622
22632
  function maybeEncodeCPAResponse(data, config) {
22623
22633
  var _a;
22624
- const includeContentSourceMaps = (_a = config === null || config === undefined ? undefined : config.params) === null || _a === undefined ? undefined : _a.includeContentSourceMaps;
22634
+ const includeContentSourceMaps = (_a = config === null || config === void 0 ? void 0 : config.params) === null || _a === void 0 ? void 0 : _a.includeContentSourceMaps;
22625
22635
  if (includeContentSourceMaps) {
22626
22636
  return fe(data);
22627
22637
  }
@@ -22891,7 +22901,7 @@ function createContentfulApi({
22891
22901
  } = options;
22892
22902
  return resolveCircular(data, {
22893
22903
  resolveLinks: !withoutLinkResolution,
22894
- removeUnresolved: withoutUnresolvableLinks !== null && withoutUnresolvableLinks !== undefined ? withoutUnresolvableLinks : false
22904
+ removeUnresolved: withoutUnresolvableLinks !== null && withoutUnresolvableLinks !== void 0 ? withoutUnresolvableLinks : false
22895
22905
  });
22896
22906
  }
22897
22907
  function getConceptScheme(id, query = {}) {
@@ -22965,7 +22975,7 @@ function createContentfulApi({
22965
22975
  http.defaults.baseURL = getGlobalOptions().environmentBaseUrl;
22966
22976
  }
22967
22977
  return {
22968
- version: "11.4.6",
22978
+ version: "11.5.1",
22969
22979
  getSpace,
22970
22980
  getContentType,
22971
22981
  getContentTypes,
@@ -23088,7 +23098,7 @@ function createClient(params) {
23088
23098
  environment: 'master'
23089
23099
  };
23090
23100
  const config = Object.assign(Object.assign({}, defaultConfig), params);
23091
- const userAgentHeader = getUserAgentHeader(`contentful.js/${"11.4.6"}`, config.application, config.integration);
23101
+ const userAgentHeader = getUserAgentHeader(`contentful.js/${"11.5.1"}`, config.application, config.integration);
23092
23102
  config.headers = Object.assign(Object.assign({}, config.headers), {
23093
23103
  'Content-Type': 'application/vnd.contentful.delivery.v1+json',
23094
23104
  '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.4.6"}`, config.application, config.integration);
40
+ const userAgentHeader = getUserAgentHeader(`contentful.js/${"11.5.1"}`, 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) {
@@ -46,8 +46,8 @@ function createContentfulApi({ http, getGlobalOptions }, options) {
46
46
  function maybeEnableSourceMaps(query = {}) {
47
47
  var _a, _b;
48
48
  const params = http.httpClientParams;
49
- const includeContentSourceMaps = (_a = params === null || params === undefined ? undefined : params.includeContentSourceMaps) !== null && _a !== undefined ? _a : (_b = params === null || params === undefined ? undefined : params.alphaFeatures) === null || _b === undefined ? undefined : _b.includeContentSourceMaps;
50
- const host = params === null || params === undefined ? undefined : params.host;
49
+ const includeContentSourceMaps = (_a = params === null || params === void 0 ? void 0 : params.includeContentSourceMaps) !== null && _a !== void 0 ? _a : (_b = params === null || params === void 0 ? void 0 : params.alphaFeatures) === null || _b === void 0 ? void 0 : _b.includeContentSourceMaps;
50
+ const host = params === null || params === void 0 ? void 0 : params.host;
51
51
  const areAllowed = checkIncludeContentSourceMapsParamIsAllowed(host, includeContentSourceMaps);
52
52
  if (areAllowed) {
53
53
  query.includeContentSourceMaps = true;
@@ -62,7 +62,7 @@ function createContentfulApi({ http, getGlobalOptions }, options) {
62
62
  }
63
63
  function maybeEncodeCPAResponse(data, config) {
64
64
  var _a;
65
- const includeContentSourceMaps = (_a = config === null || config === undefined ? undefined : config.params) === null || _a === undefined ? undefined : _a.includeContentSourceMaps;
65
+ const includeContentSourceMaps = (_a = config === null || config === void 0 ? void 0 : config.params) === null || _a === void 0 ? void 0 : _a.includeContentSourceMaps;
66
66
  if (includeContentSourceMaps) {
67
67
  return encodeCPAResponse(data);
68
68
  }
@@ -290,7 +290,7 @@ function createContentfulApi({ http, getGlobalOptions }, options) {
290
290
  const { withoutLinkResolution, withoutUnresolvableLinks } = options;
291
291
  return resolveCircular(data, {
292
292
  resolveLinks: !withoutLinkResolution,
293
- removeUnresolved: withoutUnresolvableLinks !== null && withoutUnresolvableLinks !== undefined ? withoutUnresolvableLinks : false,
293
+ removeUnresolved: withoutUnresolvableLinks !== null && withoutUnresolvableLinks !== void 0 ? withoutUnresolvableLinks : false,
294
294
  });
295
295
  }
296
296
  function getConceptScheme(id, query = {}) {
@@ -368,7 +368,7 @@ function createContentfulApi({ http, getGlobalOptions }, options) {
368
368
  http.defaults.baseURL = getGlobalOptions().environmentBaseUrl;
369
369
  }
370
370
  return {
371
- version: "11.4.6",
371
+ version: "11.5.1",
372
372
  getSpace,
373
373
  getContentType,
374
374
  getContentTypes,