@atlaskit/editor-card-provider 6.8.3 → 6.8.4

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @atlaskit/editor-card-provider
2
2
 
3
+ ## 6.8.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [`b0378b1a1762f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b0378b1a1762f) -
8
+ Cleanup platform_sl_fix_cache_unresolved
9
+ - Updated dependencies
10
+
3
11
  ## 6.8.3
4
12
 
5
13
  ### Patch Changes
package/dist/cjs/api.js CHANGED
@@ -38,8 +38,8 @@ function _request() {
38
38
  _request = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(method, url,
39
39
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
40
40
  data, headers) {
41
- var requestConfig, response;
42
- return _regenerator.default.wrap(function _callee$(_context) {
41
+ var requestConfig, response, _t;
42
+ return _regenerator.default.wrap(function (_context) {
43
43
  while (1) switch (_context.prev = _context.next) {
44
44
  case 0:
45
45
  requestConfig = _objectSpread({
@@ -54,35 +54,35 @@ function _request() {
54
54
  body: JSON.stringify(data)
55
55
  } : {});
56
56
  _context.prev = 1;
57
- _context.next = 4;
57
+ _context.next = 2;
58
58
  return fetch(url, requestConfig);
59
- case 4:
59
+ case 2:
60
60
  response = _context.sent;
61
61
  if (!(response.ok || ALLOWED_RESPONSE_STATUS_CODES.includes(response.status))) {
62
- _context.next = 9;
62
+ _context.next = 4;
63
63
  break;
64
64
  }
65
- _context.next = 8;
65
+ _context.next = 3;
66
66
  return response.json();
67
- case 8:
67
+ case 3:
68
68
  return _context.abrupt("return", _context.sent);
69
- case 9:
69
+ case 4:
70
70
  throw response;
71
- case 12:
72
- _context.prev = 12;
73
- _context.t0 = _context["catch"](1);
74
- if (!(typeof _context.t0 === 'string' || _context.t0 instanceof TypeError)) {
75
- _context.next = 16;
71
+ case 5:
72
+ _context.prev = 5;
73
+ _t = _context["catch"](1);
74
+ if (!(typeof _t === 'string' || _t instanceof TypeError)) {
75
+ _context.next = 6;
76
76
  break;
77
77
  }
78
- throw new NetworkError(_context.t0);
79
- case 16:
80
- throw _context.t0;
81
- case 17:
78
+ throw new NetworkError(_t);
79
+ case 6:
80
+ throw _t;
81
+ case 7:
82
82
  case "end":
83
83
  return _context.stop();
84
84
  }
85
- }, _callee, null, [[1, 12]]);
85
+ }, _callee, null, [[1, 5]]);
86
86
  }));
87
87
  return _request.apply(this, arguments);
88
88
  }