Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nodegate

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nodegate - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

workers/remove.js

2

package.json
{
"name": "nodegate",
"description": "API gateway made simple, fast and easy to configure.",
"version": "1.0.0",
"version": "1.1.0",
"author": "Julien Martin <martin.julien82@gmail.com>",

@@ -6,0 +6,0 @@ "license": "MIT",

@@ -14,3 +14,3 @@ /**

const buildExpressApp = () => {
const buildExpressApp = (options) => {
const app = express();

@@ -22,3 +22,5 @@ const configuration = getConfiguration().express;

}
app.use(bodyParser.json());
app.use(bodyParser.json({
limit: options.payloadSizeLimit || '1mb',
}));

@@ -40,4 +42,4 @@ app.use((_, res, next) => {

const nodegate = () => {
const expressApp = buildExpressApp();
const nodegate = (options = {}) => {
const expressApp = buildExpressApp(options);
const beforeEach = [];

@@ -44,0 +46,0 @@ const app = (req, res, next) => {

@@ -14,2 +14,3 @@ /**

const mergeHeaders = require('./mergeHeaders');
const remove = require('./remove');
const routeMatch = require('./routeMatch');

@@ -26,2 +27,3 @@ const statusCode = require('./statusCode');

mergeHeaders,
remove,
routeMatch,

@@ -28,0 +30,0 @@ statusCode,

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