superagent-cache
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -7,4 +7,4 @@ /******************************************************** | ||
var cs = require('cache-service').cacheService; | ||
module.exports = function(superagent, config){ | ||
@@ -21,7 +21,6 @@ | ||
else if(config.cacheServiceConfig && config.cacheModuleConfig){ | ||
var cs = require('cache-service'); | ||
superagent.cacheService = new cs(config.cacheServiceConfig, config.cacheModuleConfig); | ||
} | ||
else{ | ||
//Throw error | ||
superagent.cacheService = new cs(); | ||
} | ||
@@ -28,0 +27,0 @@ |
{ | ||
"name": "superagent-cache", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Superagent with tiered caching provided by cache-service.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -68,3 +68,3 @@ var expect = require('expect'); | ||
beforeEach(function(){ | ||
cacheService.flushKeys(); | ||
superagent.cacheService.flushKeys(); | ||
}); | ||
@@ -71,0 +71,0 @@ |
Sorry, the diff of this file is not supported yet
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
15873
6
0
35