@oystehr/sdk 3.0.12 → 3.0.14
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/dist/cjs/index.cjs +3 -3
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.min.cjs +1 -1
- package/dist/cjs/index.min.cjs.map +1 -1
- package/dist/esm/client/client.js +3 -3
- package/dist/esm/client/client.js.map +1 -1
- package/dist/esm/index.min.js +1 -1
- package/dist/esm/index.min.js.map +1 -1
- package/package.json +1 -1
- package/src/client/client.ts +10 -2
- package/dist/esm/node_modules/tslib/package.json +0 -1
- package/dist/esm/node_modules/tslib/tslib.es6.js +0 -40
- package/dist/esm/node_modules/tslib/tslib.es6.js.map +0 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -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 &&
|
|
247
|
-
code: (
|
|
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;
|