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

redux-cache

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redux-cache - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

7

lib/cacheEnhancer.d.ts

@@ -25,1 +25,8 @@ export interface Store {

export declare const liftReducer: (reducer: any, config: any) => (state: any, action: any) => any;
/**
* This is the store enhancer that you will add when you configureStore.
*
* @param {CacheEnhancerConfig} [config={}]
* @returns {Object} - returns the enhanced store
*/
export declare const cacheEnhancer: (config?: CacheEnhancerConfig) => (createStore: any) => (rootReducer: any, initialState: any, enhancer: any) => any;

2

lib/cacheEnhancer.js

@@ -76,3 +76,3 @@ "use strict";

*/
var cacheEnhancer = function (config) {
exports.cacheEnhancer = function (config) {
if (config === void 0) { config = {}; }

@@ -79,0 +79,0 @@ return function (createStore) { return function (rootReducer, initialState, enhancer) {

export { invalidateCache, INVALIDATE_CACHE } from "./actions";
export { checkCacheValid } from "./checkCacheValid";
export { cacheEnhancer } from "./cacheEnhancer";
export { DEFAULT_KEY } from "./constants";
export { generateCacheTTL } from "./generateCacheTTL";

@@ -8,2 +8,4 @@ "use strict";

exports.checkCacheValid = checkCacheValid_1.checkCacheValid;
var cacheEnhancer_1 = require("./cacheEnhancer");
exports.cacheEnhancer = cacheEnhancer_1.cacheEnhancer;
var constants_1 = require("./constants");

@@ -10,0 +12,0 @@ exports.DEFAULT_KEY = constants_1.DEFAULT_KEY;

{
"name": "redux-cache",
"version": "0.2.1",
"version": "0.2.2",
"description": "Client side TTL caching strategy for redux applications",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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