@aofl/api-request
Advanced tools
Comparing version
@@ -56,2 +56,13 @@ import FormatterManager from '../formatter-manager'; | ||
purgeCache(namespace) { | ||
if (typeof namespace === 'undefined') { // purge all | ||
for (const key in this.cacheManagers) { | ||
if (!this.cacheManagers.hasOwnProperty(key)) continue; | ||
this.cacheManagers[key].clear(); | ||
} | ||
} else { | ||
this.cacheManagers[namespace].clear(); | ||
} | ||
} | ||
/** | ||
@@ -58,0 +69,0 @@ * Makes a network call using fetch API. |
{ | ||
"name": "@aofl/api-request", | ||
"version": "3.0.0-alpha.5", | ||
"version": "3.0.0-alpha.9", | ||
"description": "A module for simplifying api calls", | ||
@@ -29,3 +29,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "09f43882b317744481f4b6845b1cfae0461775d6" | ||
"gitHead": "af4670fc661aeb5d8cb38bc049ed149e776972fb" | ||
} |
13242
2.4%306
3.38%