@oystehr/sdk 3.0.12 → 3.0.13

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.
@@ -220,7 +220,7 @@ function fetcher(baseUrlThunk, configThunk, path, methodParam) {
220
220
  };
221
221
  retryConfig.retryOn.push(...STATUS_CODES_TO_RETRY);
222
222
  return retry(() => __awaiter(this, void 0, void 0, function* () {
223
- var _r, _s, _t, _u, _v, _w;
223
+ var _r, _s, _t, _u, _v, _w, _x, _y, _z, _0;
224
224
  const response = yield fetchImpl(new Request(url, {
225
225
  method: method.toUpperCase(),
226
226
  body,
@@ -243,8 +243,8 @@ function fetcher(baseUrlThunk, configThunk, path, methodParam) {
243
243
  const isError = !response.ok || response.status >= 400;
244
244
  if (isError) {
245
245
  const errObj = {
246
- message: (_v = (_u = (_t = responseJson === null || responseJson === void 0 ? void 0 : responseJson.message) !== null && _t !== void 0 ? _t : responseJson) !== null && _u !== void 0 ? _u : responseBody) !== null && _v !== void 0 ? _v : response.statusText,
247
- code: (_w = responseJson === null || responseJson === void 0 ? void 0 : responseJson.code) !== null && _w !== void 0 ? _w : response.status,
246
+ message: (_x = (_w = (_v = (_u = (_t = responseJson === null || responseJson === void 0 ? void 0 : responseJson.output) === null || _t === void 0 ? void 0 : _t.message) !== null && _u !== void 0 ? _u : responseJson === null || responseJson === void 0 ? void 0 : responseJson.message) !== null && _v !== void 0 ? _v : responseJson) !== null && _w !== void 0 ? _w : responseBody) !== null && _x !== void 0 ? _x : response.statusText,
247
+ code: (_0 = (_z = (_y = responseJson === null || responseJson === void 0 ? void 0 : responseJson.output) === null || _y === void 0 ? void 0 : _y.code) !== null && _z !== void 0 ? _z : responseJson === null || responseJson === void 0 ? void 0 : responseJson.code) !== null && _0 !== void 0 ? _0 : response.status,
248
248
  response,
249
249
  };
250
250
  throw errObj;