Skip to content
Permalink
Browse files

Update dependencies and eslint fixes

  • Loading branch information...
YasharF committed Sep 17, 2018
1 parent 72a787d commit 1cf3e385b442c15fed0bb7301ab5a666049e2ab5
Showing with 321 additions and 222 deletions.
  1. +1 −0 .eslintrc
  2. +1 −1 app.js
  3. +1 −1 controllers/api.js
  4. +306 −208 package-lock.json
  5. +12 −12 package.json
@@ -17,6 +17,7 @@
"no-console": 0,
"no-plusplus": 0,
"no-unused-expressions": 0,
"no-unused-vars": ["error", { "argsIgnorePattern": "next" }],
"chai-friendly/no-unused-expressions": 2
}
}
2 app.js
@@ -228,7 +228,7 @@ if (process.env.NODE_ENV === 'development') {
// only use in development
app.use(errorHandler());
} else {
app.use(function(err, req, res, next) {
app.use((err, req, res, next) => {
console.error(err);
res.status(500).send('Server Error');
});
@@ -230,7 +230,7 @@ exports.getLastfm = async (req, res, next) => {
if (err.error !== undefined) {
console.error(err);
// see error code list: https://www.last.fm/api/errorcodes
switch(err.error) {
switch (err.error) {
// potentially handle each code uniquely
case 10: // Invalid API key
res.render('api/lastfm', {

0 comments on commit 1cf3e38

Please sign in to comment.
You can’t perform that action at this time.