cleaner-node
Advanced tools
Comparing version 0.17.10 to 0.17.11
{ | ||
"name": "cleaner-node", | ||
"version": "0.17.10", | ||
"version": "0.17.11", | ||
"description": "Helpful utilities and scripts to make Node projects more legible and easier for the next developer to take over.", | ||
@@ -39,3 +39,3 @@ "main": "index.js", | ||
"html-to-text": "^8.1.0", | ||
"is-html": "^2.0.0", | ||
"is-html": "2.x.x", | ||
"jsonwebtoken": "^8.5.1", | ||
@@ -50,3 +50,3 @@ "know-your-http-well": "^0.5.0", | ||
"devDependencies": { | ||
"eslint": "^8.6.0", | ||
"eslint": "^8.10.0", | ||
"eslint-config-airbnb": "^19.0.4", | ||
@@ -59,3 +59,3 @@ "eslint-config-airbnb-base": "^15.0.0", | ||
"eslint-plugin-promise": "^6.0.0", | ||
"eslint-plugin-react": "^7.28.0", | ||
"eslint-plugin-react": "^7.29.2", | ||
"eslint-plugin-react-hooks": "^4.3.0", | ||
@@ -62,0 +62,0 @@ "eslint-plugin-standard": "^4.1.0" |
@@ -6,4 +6,11 @@ const arrays = require('./arrays'); | ||
const asyncMiddleware = (fn) => { | ||
return (req, res, next) => { | ||
Promise.resolve(fn(req, res, next)).catch(next); | ||
// return (req, res, next) => { | ||
// Promise.resolve(fn(req, res, next)).catch(next); | ||
// }; | ||
return async (req, res, next) => { | ||
try { | ||
await fn(req, res, next); | ||
} catch (err) { | ||
next(err); | ||
} | ||
}; | ||
@@ -10,0 +17,0 @@ }; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
84715
2131
Updatedis-html@2.x.x