Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hot-file-cache

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hot-file-cache - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

CHANGELOG.md

6

index.js

@@ -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"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc