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.
@@ -9714,7 +9714,7 @@ function createClient(params) {
9714
9714
  var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
9715
9715
  var sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
9716
9716
  var userAgent = Object(contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__["getUserAgentHeader"])( // @ts-expect-error
9717
- "".concat(sdkMain, "/").concat("7.45.1"), params.application, params.integration, params.feature);
9717
+ "".concat(sdkMain, "/").concat("7.45.2"), params.application, params.integration, params.feature);
9718
9718
  var adapter = Object(_create_adapter__WEBPACK_IMPORTED_MODULE_1__["createAdapter"])(params); // Parameters<?> and ReturnType<?> only return the types of the last overload
9719
9719
  // https://github.com/microsoft/TypeScript/issues/26591
9720
9720
  // @ts-expect-error
@@ -19154,7 +19154,7 @@ var asIterator = function asIterator(fn, params) {
19154
19154
  var _this = this;
19155
19155
 
19156
19156
  return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
19157
- var _yield$currentResult, total, items, skip, limit, value, endOfPage, endOfList;
19157
+ var _yield$currentResult, _yield$currentResult$, total, _yield$currentResult$2, items, _yield$currentResult$3, skip, _yield$currentResult$4, limit, value, endOfPage, endOfList;
19158
19158
 
19159
19159
  return regeneratorRuntime.wrap(function _callee$(_context) {
19160
19160
  while (1) {
@@ -19165,13 +19165,17 @@ var asIterator = function asIterator(fn, params) {
19165
19165
 
19166
19166
  case 2:
19167
19167
  _yield$currentResult = _context.sent;
19168
- total = _yield$currentResult.total;
19169
- items = _yield$currentResult.items;
19170
- skip = _yield$currentResult.skip;
19171
- limit = _yield$currentResult.limit;
19168
+ _yield$currentResult$ = _yield$currentResult.total;
19169
+ total = _yield$currentResult$ === void 0 ? 0 : _yield$currentResult$;
19170
+ _yield$currentResult$2 = _yield$currentResult.items;
19171
+ items = _yield$currentResult$2 === void 0 ? [] : _yield$currentResult$2;
19172
+ _yield$currentResult$3 = _yield$currentResult.skip;
19173
+ skip = _yield$currentResult$3 === void 0 ? 0 : _yield$currentResult$3;
19174
+ _yield$currentResult$4 = _yield$currentResult.limit;
19175
+ limit = _yield$currentResult$4 === void 0 ? 100 : _yield$currentResult$4;
19172
19176
 
19173
19177
  if (!(total === _this.current)) {
19174
- _context.next = 9;
19178
+ _context.next = 13;
19175
19179
  break;
19176
19180
  }
19177
19181
 
@@ -19180,7 +19184,7 @@ var asIterator = function asIterator(fn, params) {
19180
19184
  value: null
19181
19185
  });
19182
19186
 
19183
- case 9:
19187
+ case 13:
19184
19188
  value = items[_this.current++ - skip];
19185
19189
  endOfPage = _this.current % limit === 0;
19186
19190
  endOfList = _this.current === total;
@@ -19199,7 +19203,7 @@ var asIterator = function asIterator(fn, params) {
19199
19203
  value: value
19200
19204
  });
19201
19205
 
19202
- case 14:
19206
+ case 18:
19203
19207
  case "end":
19204
19208
  return _context.stop();
19205
19209
  }