redux-supermodel
Advanced tools
Comparing version 0.8.0 to 0.9.0
@@ -77,3 +77,3 @@ 'use strict'; | ||
if (urlRoot) { | ||
const part = typeof urlRoot === 'function' && urlRoot.call(definition, method) || urlRoot; | ||
const part = typeof urlRoot === 'function' && urlRoot.call(definition, { data: data, method: method }) || urlRoot; | ||
const id = data[idAttribute || 'id']; | ||
@@ -88,3 +88,3 @@ | ||
const part = typeof url === 'function' && url.call(definition, method) || url; | ||
const part = typeof url === 'function' && url.call(definition, { data: data, method: method }) || url; | ||
return urlAppend(baseUrl, part); | ||
@@ -91,0 +91,0 @@ } |
{ | ||
"name": "redux-supermodel", | ||
"version": "0.8.0", | ||
"version": "0.9.0", | ||
"description": "A package of action creator functions and reducers that deal with the state management of REST-like APIs for you... all you need is a URL!", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/MrLeebo/redux-supermodel", |
@@ -75,3 +75,3 @@ # redux-supermodel | ||
``` | ||
npm install --save redux-supermodel | ||
npm install --save redux-supermodel redux-promise-middleware | ||
``` | ||
@@ -81,8 +81,2 @@ | ||
``` | ||
npm install --save redux-promise-middleware | ||
``` | ||
Add the `redux-promise-middleware` middleware and `redux-supermodel` reducers to your Redux Store: | ||
```js | ||
@@ -89,0 +83,0 @@ // store.js |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19419
2
92