@naturalcycles/backend-lib 4.17.0 → 4.17.1

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.
@@ -84,7 +84,7 @@ async function deployHealthCheck(url, opt = {}) {
84
84
  attempt++;
85
85
  console.log([`>>`, (0, colors_1.dimGrey)(url), (0, node_util_1.inspect)({ attempt }, inspectOpt)].join(' '));
86
86
  const started = Date.now();
87
- const { err, fetchResponse } = await fetcher.rawFetch(url, {
87
+ const { err, fetchResponse } = await fetcher.doFetch(url, {
88
88
  mode: 'json',
89
89
  timeoutSeconds: timeoutSec,
90
90
  retry: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturalcycles/backend-lib",
3
- "version": "4.17.0",
3
+ "version": "4.17.1",
4
4
  "scripts": {
5
5
  "prepare": "husky install && patch-package",
6
6
  "serve": "APP_ENV=dev nodemon",
@@ -126,7 +126,7 @@ export async function deployHealthCheck(
126
126
 
127
127
  const started = Date.now()
128
128
 
129
- const { err, fetchResponse } = await fetcher.rawFetch(url, {
129
+ const { err, fetchResponse } = await fetcher.doFetch(url, {
130
130
  mode: 'json',
131
131
  timeoutSeconds: timeoutSec,
132
132
  retry: {
@@ -95,7 +95,7 @@ export function respondWithError(req: BackendRequest, res: BackendResponse, err:
95
95
 
96
96
  res.status(httpError.data.httpStatusCode).json({
97
97
  error: httpError,
98
- } as HttpErrorResponse)
98
+ } satisfies HttpErrorResponse)
99
99
  }
100
100
 
101
101
  function shouldReportToSentry(err: Error): boolean {