New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

configure-express-app

Package Overview
Dependencies
Maintainers
1
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

configure-express-app - npm Package Compare versions

Comparing version 3.2.25 to 3.2.26

6

index.js

@@ -143,5 +143,5 @@ #!/usr/bin/env node

const controllerContent = `const { logger } = require('../../config/logger');\nconst helloWorld = require('../models/helloWorld.model');
\nexports.helloWorld = async (req, res) => {\n\ttry {
\nexports.helloWorld = async (req, res, next) => {\n\ttry {
\n\t\tlogger.info({requestId: req.id, message: \`ip: \${req.ip} \ \${req.method}/ \${req.originalUrl} helloworld received\`})
\n\t\tconst data = await helloWorld.helloWorld();\n\t\tres.status(200).json({\n\t\t\tMessage: "Hello World",\n\t\t\tdata: data,\n\t\t});\n\t} catch (error) {\n\t\tconsole.log(error.message);\n\t}\n};`
\n\t\tconst data = await helloWorld.helloWorld();\n\t\tres.status(200).json({\n\t\t\tMessage: "Hello World",\n\t\t\tdata: data,\n\t\t});\n\t} catch (error) {\n\t\tnext(error)\n\t}\n};`

@@ -308,3 +308,3 @@ fs.writeFileSync('./app/controllers/helloWorld.controller.js', controllerContent);

`;
fs.writeFileSync('./middlewares/errorHanler.js', _500Middleware);
fs.writeFileSync('./middlewares/errorHandler.js', _500Middleware);

@@ -311,0 +311,0 @@

{
"name": "configure-express-app",
"version": "3.2.25",
"version": "3.2.26",
"description": "use npx configure-express-app",

@@ -5,0 +5,0 @@ "bin": {

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