Comparing version 1.0.0 to 1.1.0
{ | ||
"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, |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
18852
22
462
0