Socket
Socket
Sign inDemoInstall

cleaner-node

Package Overview
Dependencies
Maintainers
1
Versions
175
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cleaner-node - npm Package Compare versions

Comparing version 0.17.10 to 0.17.11

8

package.json
{
"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 @@ };

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc