Socket
Socket
Sign inDemoInstall

keep-or-skip

Package Overview
Dependencies
0
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.3 to 1.0.4

6

CHANGELOG.md
# Changelog
## 1.0.4 / 2018-11-16
* Added *return* on wrapped middleware call.
## 1.0.3 / 2018-08-06

@@ -19,2 +23,2 @@

* Initial version of `keep-or-skip` - dynamically execute or skip express middlewares.
* Initial version of `keep-or-skip` - dynamically execute or skip express middlewares.

@@ -0,0 +0,0 @@ /*******************************************************************************

6

lib/keep-or-skip.js

@@ -51,3 +51,3 @@ /*******************************************************************************

* @returns {Function[]} An array of middlewares.
* @version 1.0.3
* @version 1.0.4
* @author Nicola Del Gobbo - Mauro Doganieri

@@ -82,3 +82,3 @@ */

} else {
middleware(req, res, next)
return middleware(req, res, next)
}

@@ -106,2 +106,2 @@ }

module.exports = keepOrSkip
module.exports = keepOrSkip

@@ -0,0 +0,0 @@ /*******************************************************************************

{
"name": "keep-or-skip",
"description": "Dynamically execute or skip express middlewares",
"version": "1.0.3",
"version": "1.0.4",
"contributors": [

@@ -6,0 +6,0 @@ {

@@ -36,3 +36,3 @@ # keep-or-skip

```json
"keep-or-skip": "1.0.3"
"keep-or-skip": "1.0.4"
```

@@ -76,2 +76,3 @@

const keepOrSkip = require('keep-or-skip')
const app = express()

@@ -185,2 +186,2 @@ function m1(req, res, next) {

keepOrSkip(myMiddlewares, myPredicate) // Debug ON because of the global debug variable.
```
```

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc