let fs_stat = util.promisify(fs.stat)
-let BuildCache = function() {
+let BuildCache = function(diag) {
if (!this instanceof BuildCache)
throw Error('BuildCache is a constructor')
this.map = new Map()
- this.diag = false
+ this.diag = diag || false
}
BuildCache.prototype.get = async function(key, build_func) {
{
- "name": "build_cache",
+ "name": "BuildCache",
"version": "1.0.0",
"description": "Simple caching scheme that checks for modified sources",
- "main": "build_cache.js",
+ "main": "BuildCache.js",
"directories": {},
"dependencies": {
"fs": "^0.0.1-security"