hot-file-cache
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -29,3 +29,3 @@ var path = require('path'); | ||
this.watcher.then(function (watcher) { | ||
watcher.on('all', this.fileChangeHandler.bind(this)); | ||
watcher.on('all', this.invalidateCache.bind(this)); | ||
}.bind(this)); | ||
@@ -74,5 +74,5 @@ } | ||
/** | ||
* @invalidate cache | ||
* invalidate cache | ||
*/ | ||
HotFileCache.prototype.fileChangeHandler = function (reason, filepath) { | ||
HotFileCache.prototype.invalidateCache = function (reason, filepath) { | ||
this.emit('cache-revoked', filepath); | ||
@@ -79,0 +79,0 @@ delete this.cache[filepath]; |
{ | ||
"name": "hot-file-cache", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "A file cache for development which will invalidate automatically if the source changes", | ||
@@ -32,4 +32,5 @@ "main": "index.js", | ||
"ncp": "^2.0.0", | ||
"rimraf": "^2.5.2" | ||
"rimraf": "^2.5.2", | ||
"semistandard": "^8.0.0" | ||
} | ||
} |
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
5351
4
5