redux-token-api-middleware
Advanced tools
Comparing version 0.7.0 to 0.8.1
@@ -172,3 +172,2 @@ 'use strict'; | ||
this.refreshAction = this.configOrDefault('refreshAction'); | ||
this.catchApiRequestError = this.configOrDefault('catchApiRequestError'); | ||
this.checkResponseIsOk = this.configOrDefault('checkResponseIsOk'); | ||
@@ -378,4 +377,8 @@ this.tokenStorageKey = this.config.tokenStorageKey || TOKEN_STORAGE_KEY; | ||
console.log(action, 'tokenApiMiddleware'); | ||
var apiAction = action[CALL_TOKEN_API]; | ||
console.log(apiAction); | ||
if (apiAction === undefined) { | ||
@@ -382,0 +385,0 @@ return next(action); |
{ | ||
"name": "redux-token-api-middleware", | ||
"version": "0.7.0", | ||
"version": "0.8.1", | ||
"description": "Redux middleware for calling APIs with token-based auth", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -122,3 +122,2 @@ import startsWith from 'lodash.startswith'; | ||
this.refreshAction = this.configOrDefault('refreshAction'); | ||
this.catchApiRequestError = this.configOrDefault('catchApiRequestError'); | ||
this.checkResponseIsOk = this.configOrDefault('checkResponseIsOk'); | ||
@@ -321,4 +320,8 @@ this.tokenStorageKey = this.config.tokenStorageKey || TOKEN_STORAGE_KEY; | ||
console.log(action, 'tokenApiMiddleware') | ||
const apiAction = action[CALL_TOKEN_API]; | ||
console.log(apiAction) | ||
if (apiAction === undefined) { | ||
@@ -325,0 +328,0 @@ return next(action); |
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
6352514
1714