Comparing version 0.2.1 to 0.2.2
{ | ||
"name": "redux-arc", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "Declarative way to make api calls in redux", | ||
@@ -24,2 +24,3 @@ "main": "lib/index.js", | ||
"test:cov": "yarn test -- --coverage", | ||
"coveralls": "cat ./coverage/lcov.info | ./node_modules/.bin/coveralls", | ||
"build:commonjs": "cross-env BABEL_ENV=commonjs babel src --out-dir lib", | ||
@@ -67,2 +68,3 @@ "build:es": "cross-env BABEL_ENV=es babel src --out-dir es", | ||
"babel-register": "^6.3.13", | ||
"coveralls": "^2.13.1", | ||
"cross-env": "^5.0.1", | ||
@@ -91,2 +93,3 @@ "eslint": "^3.19.0", | ||
"jest": { | ||
"coverageDirectory": "./coverage", | ||
"testRegex": "(/test/.*\\.spec.js)$" | ||
@@ -93,0 +96,0 @@ }, |
@@ -6,2 +6,3 @@ <img src="https://github.com/viniciusdacal/redux-arc/blob/master/arc-64.png?raw=true" height="64" /> | ||
[](https://travis-ci.org/viniciusdacal/redux-arc) [](https://www.npmjs.com/package/redux-arc) | ||
[](https://coveralls.io/github/viniciusdacal/redux-arc?branch=master) | ||
@@ -223,3 +224,3 @@ ## Why | ||
```js | ||
const policy store => done => (action, error, response) => | ||
const policy = store => done => (action, error, response) => | ||
done(action, error, response); | ||
@@ -250,4 +251,4 @@ ``` | ||
// this is the policy | ||
function omitId(options) { | ||
return store => done => (action, ...params) => { | ||
function omitId(store) { | ||
return done => (action, ...params) => { | ||
const { id, ...restAction } = action; | ||
@@ -254,0 +255,0 @@ return done(restAction, ...params); |
53082
277
45