redux-cache
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -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; |
@@ -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", |
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
189343
754