Skip to content

Commit

Permalink
Merge pull request #416 from mStirner/dev
Browse files Browse the repository at this point in the history
Switched to husky & removed `console.log`
  • Loading branch information
mStirner committed Jan 16, 2024
2 parents 5209ec9 + 7c33eac commit cd8f231
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

#npm test
npm run lint
22 changes: 22 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
"release": "grunt release",
"db:export": "mongodump --db OpenHaus --archive=./demo-database.gz",
"db:import": "mongorestore --db OpenHaus --archive=./demo-database.gz",
"postinstall": "scripts/post-install.sh",
"publish": "grunt publish"
"publish": "grunt publish",
"prepare": "husky install"
},
"engines": {
"node": ">=0.16.0"
Expand Down Expand Up @@ -55,6 +55,7 @@
"mocha.parallel": "^0.15.6",
"newman": "^6.0.0",
"nodemon": "^3.0.1",
"sinon": "^14.0.2"
"sinon": "^14.0.2",
"husky": "^8.0.0"
}
}
}
2 changes: 1 addition & 1 deletion routes/auth-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ module.exports = (C_USERS, router) => {
return;
}

console.log("User request:", req.user, req.authenticated, process.env.API_AUTH_ENABLED, req.ip, req.socket.remoteAddress, req.method, req.url, req.headers);
//console.log("User request:", req.user, req.authenticated, process.env.API_AUTH_ENABLED, req.ip, req.socket.remoteAddress, req.method, req.url, req.headers);

next();

Expand Down

0 comments on commit cd8f231

Please sign in to comment.