Socket
Socket
Sign inDemoInstall

watchpack

Package Overview
Dependencies
120
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.0.1

10

lib/DirectoryWatcher.js

@@ -81,6 +81,7 @@ /*

this.files[filePath] = [initial ? Math.min(now, mtime) : now, mtime];
// we add the fs accurency to reach the maximum possible mtime
mtime = mtime + FS_ACCURENCY;
this.files[filePath] = [initial ? Math.min(now, mtime) : now, mtime];
if(!old) {

@@ -203,4 +204,5 @@ if(mtime) {

if(data) {
if(data[0] > startTime)
watcher.emit("change", data[1]);
var ts = data[0] === data[1] ? data[0] + FS_ACCURENCY : data[0];
if(ts > startTime)
watcher.emit("change", data[1] + FS_ACCURENCY);
} else if(this.initialScan && this.initialScanRemoved.indexOf(filePath) >= 0) {

@@ -300,3 +302,3 @@ watcher.emit("remove");

if(data[1]) {
var time = Math.max(data[0], data[1]);
var time = Math.max(data[0], data[1] + FS_ACCURENCY);
obj[file] = time;

@@ -303,0 +305,0 @@ if(time > selfTime)

2

package.json
{
"name": "watchpack",
"version": "1.0.0",
"version": "1.0.1",
"description": "",

@@ -5,0 +5,0 @@ "main": "./lib/watchpack.js",

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc