contentful-management 7.45.1 → 7.45.2

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.
@@ -12485,7 +12485,7 @@ function createClient(params) {
12485
12485
  var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
12486
12486
  var sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
12487
12487
  var userAgent = Object(contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__["getUserAgentHeader"])( // @ts-expect-error
12488
- "".concat(sdkMain, "/").concat("7.45.1"), params.application, params.integration, params.feature);
12488
+ "".concat(sdkMain, "/").concat("7.45.2"), params.application, params.integration, params.feature);
12489
12489
  var adapter = Object(_create_adapter__WEBPACK_IMPORTED_MODULE_1__["createAdapter"])(params); // Parameters<?> and ReturnType<?> only return the types of the last overload
12490
12490
  // https://github.com/microsoft/TypeScript/issues/26591
12491
12491
  // @ts-expect-error
@@ -21925,7 +21925,7 @@ var asIterator = function asIterator(fn, params) {
21925
21925
  var _this = this;
21926
21926
 
21927
21927
  return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
21928
- var _yield$currentResult, total, items, skip, limit, value, endOfPage, endOfList;
21928
+ var _yield$currentResult, _yield$currentResult$, total, _yield$currentResult$2, items, _yield$currentResult$3, skip, _yield$currentResult$4, limit, value, endOfPage, endOfList;
21929
21929
 
21930
21930
  return regeneratorRuntime.wrap(function _callee$(_context) {
21931
21931
  while (1) {
@@ -21936,13 +21936,17 @@ var asIterator = function asIterator(fn, params) {
21936
21936
 
21937
21937
  case 2:
21938
21938
  _yield$currentResult = _context.sent;
21939
- total = _yield$currentResult.total;
21940
- items = _yield$currentResult.items;
21941
- skip = _yield$currentResult.skip;
21942
- limit = _yield$currentResult.limit;
21939
+ _yield$currentResult$ = _yield$currentResult.total;
21940
+ total = _yield$currentResult$ === void 0 ? 0 : _yield$currentResult$;
21941
+ _yield$currentResult$2 = _yield$currentResult.items;
21942
+ items = _yield$currentResult$2 === void 0 ? [] : _yield$currentResult$2;
21943
+ _yield$currentResult$3 = _yield$currentResult.skip;
21944
+ skip = _yield$currentResult$3 === void 0 ? 0 : _yield$currentResult$3;
21945
+ _yield$currentResult$4 = _yield$currentResult.limit;
21946
+ limit = _yield$currentResult$4 === void 0 ? 100 : _yield$currentResult$4;
21943
21947
 
21944
21948
  if (!(total === _this.current)) {
21945
- _context.next = 9;
21949
+ _context.next = 13;
21946
21950
  break;
21947
21951
  }
21948
21952
 
@@ -21951,7 +21955,7 @@ var asIterator = function asIterator(fn, params) {
21951
21955
  value: null
21952
21956
  });
21953
21957
 
21954
- case 9:
21958
+ case 13:
21955
21959
  value = items[_this.current++ - skip];
21956
21960
  endOfPage = _this.current % limit === 0;
21957
21961
  endOfList = _this.current === total;
@@ -21970,7 +21974,7 @@ var asIterator = function asIterator(fn, params) {
21970
21974
  value: value
21971
21975
  });
21972
21976
 
21973
- case 14:
21977
+ case 18:
21974
21978
  case "end":
21975
21979
  return _context.stop();
21976
21980
  }