Skip to content

Commit

Permalink
Updated dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
giovannicalo committed Apr 18, 2022
1 parent 8b3256f commit 455597c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -12,9 +12,9 @@
},
"description": "Log",
"devDependencies": {
"eslint": "^7.32.0",
"eslint": "^8.13.0",
"eslint-config-giovanni": "giovannicalo/eslint-config",
"jest": "^27.2.0"
"jest": "^27.5.1"
},
"engines": {
"node": ">=17.9.0"
Expand Down
2 changes: 1 addition & 1 deletion source/enhance/error.js
Expand Up @@ -14,7 +14,7 @@ const enhanceError = ({ message, name, stack }) => {
if (match) {
const { groups: { column, line, method, path } } = match;
if (existsSync(path)) {
const code = readFileSync(path, "utf-8").split("\n").slice(line - 1, line)[0]; // TODO: Make asynchronous
const code = readFileSync(path, "utf8").split("\n").slice(line - 1, line)[0];
return `${
trace
}${
Expand Down

0 comments on commit 455597c

Please sign in to comment.