redux-api-petitioner
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -46,2 +46,9 @@ 'use strict'; | ||
}; | ||
var getRequestTypeAction = function getRequestTypeAction(reqType, options) { | ||
var action = { type: reqType }; | ||
if (options) { | ||
action.options = options; | ||
} | ||
return action; | ||
}; | ||
@@ -99,5 +106,6 @@ var apiMiddleware = function apiMiddleware(reqClient) { | ||
// dispatch starting of request | ||
// allow to pass options | ||
next(fireAction({ type: requestType })); | ||
next(fireAction(getRequestTypeAction(requestType, options))); | ||
@@ -104,0 +112,0 @@ var methodFunc = reqClient[requestMethod.toLowerCase()]; |
{ | ||
"name": "redux-api-petitioner", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Simple redux API middleware", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.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
12593
162