Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

redux-token-api-middleware

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redux-token-api-middleware - npm Package Compare versions

Comparing version 0.7.0 to 0.8.1

5

lib/index.js

@@ -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);

2

package.json
{
"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);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc