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

nightframe

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nightframe - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

14

lib/app.js

@@ -62,5 +62,7 @@ const path = require('path');

.setupSecuritySettings()
.setupCookieParserMiddleware()
.setupExpressMiddleware()
.setupRequestLogging()
.setupRoutes()
.setupBodyParserMiddleware()
.setupErrorHandling();

@@ -100,5 +102,11 @@

this.app.enable('trust proxy');
this.app.disable('x-powered-by');
return this;
}
setupBodyParserMiddleware() {
const {bodyParser} = this.settings.app;
const parser = require('body-parser');
if (bodyParser) {

@@ -113,3 +121,5 @@ Object.keys(bodyParser).forEach(type => {

}
}
setupCookieParserMiddleware() {
const {cookieSecret} = this.settings.app;

@@ -120,6 +130,2 @@ if (cookieSecret) {

}
this.app.disable('x-powered-by');
return this;
}

@@ -126,0 +132,0 @@

{
"name": "nightframe",
"version": "0.0.4",
"version": "0.0.5",
"description": "A small Node.js web application framework built on top of Express",

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

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