Skip to content

Commit ba40b4f

Browse files
authored
chore(hawk): fix hawk using the latest version (#255)
that supports ESM nodejs projects
1 parent 0aeab51 commit ba40b4f

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"dependencies": {
2121
"@codexteam/shortcuts": "^1.2.0",
2222
"@hawk.so/javascript": "^3.0.1",
23-
"@hawk.so/nodejs": "^3.1.2",
23+
"@hawk.so/nodejs": "^3.1.4",
2424
"config": "^3.3.6",
2525
"cookie-parser": "^1.4.5",
2626
"csurf": "^1.11.0",

src/backend/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import routes from './routes/index.js';
88
import HttpException from './exceptions/httpException.js';
99
import * as dotenv from 'dotenv';
1010
import config from 'config';
11-
import { default as HawkCatcher } from '@hawk.so/nodejs';
11+
import HawkCatcher from '@hawk.so/nodejs';
1212
import os from 'os';
1313
import appConfig from 'config';
1414
import { downloadFavicon, FaviconData } from './utils/downloadFavicon.js';

yarn.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -922,9 +922,9 @@
922922
"@hawk.so/types" "^0.1.13"
923923
error-stack-parser "^2.0.6"
924924

925-
"@hawk.so/nodejs@^3.1.2":
926-
version "3.1.2"
927-
resolved "https://registry.yarnpkg.com/@hawk.so/nodejs/-/nodejs-3.1.2.tgz#b06229f0c8a0d8676412329511f9f2b01e492211"
925+
"@hawk.so/nodejs@^3.1.4":
926+
version "3.1.4"
927+
resolved "https://registry.yarnpkg.com/@hawk.so/nodejs/-/nodejs-3.1.4.tgz#62eb4ff1272559f0841a53d7931f6939b4c056fe"
928928
dependencies:
929929
"@hawk.so/types" "^0.1.15"
930930
axios "^0.21.1"

0 commit comments

Comments
 (0)