contentful-management 11.24.3 → 11.24.5

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.
@@ -24956,7 +24956,8 @@ function getCleanClone(prototype) {
24956
24956
  if (Constructor === Object) {
24957
24957
  return prototype === Object.prototype ? {} : create(prototype);
24958
24958
  }
24959
- if (~toStringFunction.call(Constructor).indexOf('[native code]')) {
24959
+ if (Constructor &&
24960
+ ~toStringFunction.call(Constructor).indexOf('[native code]')) {
24960
24961
  try {
24961
24962
  return new Constructor();
24962
24963
  }
@@ -25469,7 +25470,7 @@ function createClient(params) {
25469
25470
  var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
25470
25471
  var sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
25471
25472
  var userAgent = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.getUserAgentHeader)( // @ts-expect-error
25472
- "".concat(sdkMain, "/").concat("11.24.3"), params.application, params.integration, params.feature);
25473
+ "".concat(sdkMain, "/").concat("11.24.5"), params.application, params.integration, params.feature);
25473
25474
  var adapter = (0,_create_adapter__WEBPACK_IMPORTED_MODULE_1__.createAdapter)(_objectSpread(_objectSpread({}, params), {}, {
25474
25475
  userAgent: userAgent
25475
25476
  }));