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

filewatcher

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

filewatcher - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

8

index.js

@@ -37,2 +37,10 @@ var fs = require('fs')

if (!self.watchers[file]) return
// close watcher and create a new one to work around fs.watch() bug
// see https://github.com/joyent/node/issues/3172
if (!self.polling) {
self.remove(file)
self.add(file)
}
if (!stat) return self.emit('change', file, -1)

@@ -39,0 +47,0 @@ if (stat.isDirectory() || stat.mtime > mtime) {

2

package.json
{
"name": "filewatcher",
"version": "1.1.0",
"version": "1.1.1",
"description": "Wrapper around fs.watch with fallback to fs.watchFile",

@@ -5,0 +5,0 @@ "author": "Felix Gnass",

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