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.8.2 to 1.9.0

2

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

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

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

module.exports = (condition, workflow) => async (container, request, executeChunk) => {
if (condition(container, request)) await executeChunk(workflow, container, request);
};
module.exports = (condition, workflow, elseWorkflow) => (
async (container, request, executeChunk) => {
if (condition(container, request)) {
await executeChunk(workflow, container, request);
return;
}
if (!elseWorkflow) return;
await executeChunk(elseWorkflow, container, request);
}
);
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