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.2.0 to 1.3.0

workers/keepHeaders.js

11

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

@@ -10,3 +10,4 @@ "license": "MIT",

"lint": "eslint .",
"jekyll": "cd docs && bundle exec jekyll serve"
"doc:start": "cd docs && bundle exec jekyll serve",
"doc:install": "cd docs && bundle install"
},

@@ -25,5 +26,5 @@ "dependencies": {

"eslint-config-airbnb-base": "^14.0.0",
"eslint-plugin-import": "^2.17.2",
"jest": "^24.7.1",
"nock": "^11.4.0",
"eslint-plugin-import": "^2.20.1",
"jest": "^25.1.0",
"nock": "^11.8.2",
"supertest": "^4.0.2"

@@ -30,0 +31,0 @@ },

@@ -1,2 +0,2 @@

![nodegate](assets/images/logo-readme.png)
![nodegate](docs/assets/images/readme-logo.png)

@@ -30,7 +30,7 @@ The easy plugin to programmatically manage a horizontally scalable JSON API Gateway. Built on top of

![Nodegate usage](assets/images/schema-readme.png)
![Nodegate usage](docs/assets/images/readme-schema.png)
This plugin will help you to solve the well known problem of [API management][url-wiki-api-management].
Some people are doing this by themselves, others by using complex tools or services. But even with
this kind of systems you will have to program some mechanics. **Nodegate** helps you to
this kind of systems you will have to program some mechanics. Nodegate helps you to
programmatically configure, develop and run your API gateway, in the simple way.

@@ -45,3 +45,3 @@

[The complete documentation can be found here](assets/documentation/README.md)
[The complete documentation can be found here](https://weekendesk.github.io/nodegate)

@@ -48,0 +48,0 @@ ## License

@@ -11,10 +11,4 @@ /**

const defaultConfiguration = {
express: {
useCors: true,
poweredBy: 'nodegate',
},
request: {
json: true,
resolveWithFullResponse: true,
},
useCors: true,
poweredBy: 'nodegate',
workers: {

@@ -26,2 +20,6 @@ waitFor: {

},
request: {
json: true,
resolveWithFullResponse: true,
},
};

@@ -28,0 +26,0 @@

@@ -14,5 +14,5 @@ /**

const buildExpressApp = (options) => {
const buildExpressApp = () => {
const app = express();
const configuration = getConfiguration().express;
const configuration = getConfiguration();

@@ -23,3 +23,3 @@ if (configuration.useCors) {

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

@@ -42,4 +42,4 @@

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

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

@@ -65,4 +65,5 @@ /**

const { request: configuration } = getConfiguration();
const { request: requestConfiguration, ...configuration } = getConfiguration();
const requestOptions = {
...requestConfiguration,
...configuration,

@@ -69,0 +70,0 @@ ...options,

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

const forwardedHost = require('./forwardedHost');
const keepHeaders = require('./keepHeaders');
const mergeBody = require('./mergeBody');

@@ -24,2 +25,3 @@ const project = require('./project');

forwardedHost,
keepHeaders,
mergeBody,

@@ -26,0 +28,0 @@ project,

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