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.0.0 to 1.1.0

7

index.js

@@ -36,5 +36,6 @@ var fs = require('fs')

fs.stat(file, function(err, stat) {
var changed = err || stat.mtime > mtime
if (changed && self.watchers[file]) {
mtime = err ? -1 : stat.mtime
if (!self.watchers[file]) return
if (!stat) return self.emit('change', file, -1)
if (stat.isDirectory() || stat.mtime > mtime) {
mtime = stat.mtime
self.emit('change', file, mtime)

@@ -41,0 +42,0 @@ }

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

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

Sorry, the diff of this file is not supported yet

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