Socket
Socket
Sign inDemoInstall

watchpack

Package Overview
Dependencies
2
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.3.1 to 2.4.0

5

lib/DirectoryWatcher.js

@@ -15,3 +15,3 @@ /*

let FS_ACCURACY = 1000;
let FS_ACCURACY = 2000;

@@ -185,3 +185,3 @@ const IS_OSX = require("os").platform() === "darwin";

if (old && old.timestamp === mtime && mtime + FS_ACCURACY < now - 1000) {
if (old && old.timestamp === mtime && mtime + FS_ACCURACY < now) {
// We are sure that mtime is untouched

@@ -787,2 +787,3 @@ // This can be caused by some file attribute change

else if (FS_ACCURACY > 100 && mtime % 100 !== 0) FS_ACCURACY = 100;
else if (FS_ACCURACY > 1000 && mtime % 1000 !== 0) FS_ACCURACY = 1000;
}

2

package.json
{
"name": "watchpack",
"version": "2.3.1",
"version": "2.4.0",
"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