@meadow/redux-ensure-fsa
Advanced tools
Comparing version 1.0.5 to 1.1.0-alpha1
@@ -10,5 +10,11 @@ 'use strict'; | ||
function ensureFSAMiddleware() { | ||
function ensureFSAMiddleware(_ref) { | ||
var ignore = _ref.ignore; | ||
return function (next) { | ||
return function (action) { | ||
if (typeof ignore === 'function' && ignore(action)) { | ||
return next(action); | ||
} | ||
if (!(0, _fluxStandardAction.isFSA)(action)) { | ||
@@ -15,0 +21,0 @@ console.log(action); // eslint-disable-line |
@@ -5,4 +5,8 @@ 'use strict'; | ||
export default function ensureFSAMiddleware () { | ||
export default function ensureFSAMiddleware ({ ignore }) { | ||
return next => action => { | ||
if (typeof ignore === 'function' && ignore(action)) { | ||
return next(action); | ||
} | ||
if (!isFSA(action)) { | ||
@@ -9,0 +13,0 @@ console.log(action); // eslint-disable-line |
{ | ||
"name": "@meadow/redux-ensure-fsa", | ||
"version": "1.0.5", | ||
"version": "1.1.0-alpha1", | ||
"description": "Redux middleware to check for flux standard actions", | ||
@@ -9,3 +9,4 @@ "main": "build/middleware.js", | ||
"release": "node scripts/release.js", | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"lint": "eslint modules --ext .js --ext .jsx" | ||
}, | ||
@@ -36,5 +37,8 @@ "repository": { | ||
"devDependencies": { | ||
"@meadow/eslint-config": "^1.1.0", | ||
"babel-cli": "^6.1.18", | ||
"babel-preset-es2015": "^6.1.18" | ||
"babel-eslint": "^4.1.6", | ||
"babel-preset-es2015": "^6.1.18", | ||
"eslint": "^1.10.3" | ||
} | ||
} |
@@ -24,1 +24,5 @@ # Redux Ensure Flux Standard Action Middleware | ||
``` | ||
- - - | ||
[![ghit.me](https://ghit.me/badge.svg?repo=meadow/redux-ensure-fsa)](https://ghit.me/repo/meadow/redux-ensure-fsa) |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
4363
7
34
28
5
2
1