Skip to content

Commit

Permalink
Fix: bug option validation
Browse files Browse the repository at this point in the history
  • Loading branch information
lexich committed Sep 29, 2015
1 parent 28ba97c commit c53e84b
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "redux-api",
"version": "0.6.2",
"version": "0.6.3",
"main": "dist/redux-api.min.js",
"dependencies": {}
}
3 changes: 2 additions & 1 deletion dist/redux-api.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/redux-api.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/redux-api.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/redux-api.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "redux-api",
"version": "0.6.2",
"version": "0.6.3",
"author": {
"name": "Efremov Alex",
"email": "[email protected]",
Expand Down
6 changes: 3 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ export default function reduxApi(config) {
{ ...defaultEndpointConfig, reducerName: key, url: value };

const {
url, options, transformer,
broadcast, reducerName, prefetch
url, options, transformer, broadcast,
reducerName, prefetch, validation
} = opts;

const ACTIONS = {
Expand All @@ -109,7 +109,7 @@ export default function reduxApi(config) {
broadcast,
virtual: !!opts.virtual,
actions: memo.actions,
prefetch
prefetch, validation
};

memo.actions[key] = actionFn(url, key, options, ACTIONS, meta);
Expand Down

0 comments on commit c53e84b

Please sign in to comment.