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

sane

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sane - npm Package Compare versions

Comparing version 0.5.1 to 0.5.2

lol.js

12

index.js

@@ -144,3 +144,3 @@ var fs = require('fs');

var filename = path.basename(filepath);
this.dirRegistery[dir][filename] = null;
delete this.dirRegistery[dir][filename];
}

@@ -158,3 +158,3 @@ };

if (this.dirRegistery[dirpath]) {
this.dirRegistery[dirpath] = null;
delete this.dirRegistery[dirpath];
}

@@ -199,2 +199,6 @@ };

}
if (this.root !== dir) {
this.register(dir);
}
};

@@ -215,3 +219,3 @@

this.watched[filepath].close();
this.watched[filepath] = null;
delete this.watched[filepath];
}

@@ -342,3 +346,3 @@ };

this.changeTimers[key] = setTimeout(function() {
this.changeTimers[key] = null;
delete this.changeTimers[key];
this.emit(type, file);

@@ -345,0 +349,0 @@ }.bind(this), DEFAULT_DELAY);

{
"name": "sane",
"version": "0.5.1",
"version": "0.5.2",
"description": "Sane aims to be fast, small, and reliable file system watcher.",
"main": "index.js",
"repository" : {
"type" : "git",
"url" : "https://github.com/amasad/sane.git"
},
"scripts": {

@@ -7,0 +11,0 @@ "test": "mocha --bail"

@@ -8,4 +8,5 @@ sane

* Always use fs.watch (unless polling is forced) and sensibly workaround the various issues with it
* Not introducing native components
* Not use polling by default and be very slow
* Sane is all JavaScript, no native components
* Stay away from polling because it's very slow and cpu intensive
* Support polling for environments like Vagrant shared directory where there are no native filesystem events

@@ -12,0 +13,0 @@ ## Install

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