From ba40b4f3d9d914c0e5234a8421abe02066307611 Mon Sep 17 00:00:00 2001 From: Peter Savchenko Date: Mon, 12 Sep 2022 19:00:48 +0300 Subject: [PATCH] chore(hawk): fix hawk using the latest version (#255) that supports ESM nodejs projects --- package.json | 2 +- src/backend/app.ts | 2 +- yarn.lock | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 2745b62f..517ea2f7 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "dependencies": { "@codexteam/shortcuts": "^1.2.0", "@hawk.so/javascript": "^3.0.1", - "@hawk.so/nodejs": "^3.1.2", + "@hawk.so/nodejs": "^3.1.4", "config": "^3.3.6", "cookie-parser": "^1.4.5", "csurf": "^1.11.0", diff --git a/src/backend/app.ts b/src/backend/app.ts index 049ec81b..23e184dc 100644 --- a/src/backend/app.ts +++ b/src/backend/app.ts @@ -8,7 +8,7 @@ import routes from './routes/index.js'; import HttpException from './exceptions/httpException.js'; import * as dotenv from 'dotenv'; import config from 'config'; -import { default as HawkCatcher } from '@hawk.so/nodejs'; +import HawkCatcher from '@hawk.so/nodejs'; import os from 'os'; import appConfig from 'config'; import { downloadFavicon, FaviconData } from './utils/downloadFavicon.js'; diff --git a/yarn.lock b/yarn.lock index c5bf92de..c25a97df 100644 --- a/yarn.lock +++ b/yarn.lock @@ -922,9 +922,9 @@ "@hawk.so/types" "^0.1.13" error-stack-parser "^2.0.6" -"@hawk.so/nodejs@^3.1.2": - version "3.1.2" - resolved "https://registry.yarnpkg.com/@hawk.so/nodejs/-/nodejs-3.1.2.tgz#b06229f0c8a0d8676412329511f9f2b01e492211" +"@hawk.so/nodejs@^3.1.4": + version "3.1.4" + resolved "https://registry.yarnpkg.com/@hawk.so/nodejs/-/nodejs-3.1.4.tgz#62eb4ff1272559f0841a53d7931f6939b4c056fe" dependencies: "@hawk.so/types" "^0.1.15" axios "^0.21.1"