broccoli-persistent-filter
Advanced tools
Comparing version 1.0.8 to 1.0.9
@@ -73,3 +73,9 @@ 'use strict'; | ||
this._cache.deleteExcept(paths).forEach(function(key) { | ||
fs.unlinkSync(this.cachePath + '/' + key); | ||
try { | ||
fs.unlinkSync(this.cachePath + '/' + key); | ||
} catch (e) { | ||
if(e.code !== 'ENOENT') { | ||
throw e; | ||
} | ||
} | ||
}, this); | ||
@@ -76,0 +82,0 @@ |
@@ -29,4 +29,6 @@ var AsyncDiskCache = require('async-disk-cache'); | ||
if (entry.isCached) { | ||
ctx._debug('persistent cache hit: %s', relativePath); | ||
return entry.value; | ||
} else { | ||
ctx._debug('persistent cache prime: %s', relativePath); | ||
var string = Promise.resolve(ctx.processString(contents, relativePath)); | ||
@@ -33,0 +35,0 @@ |
{ | ||
"name": "broccoli-persistent-filter", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"description": "broccoli filter but with a persistent cache", | ||
@@ -5,0 +5,0 @@ "author": "Stefan Penner <stefan.penner@gmail.com>", |
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
19448
323