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.0.1 to 2.1.0

12

lib/DirectoryWatcher.js

@@ -239,3 +239,3 @@ /*

setDirectory(directoryPath, mtime, initial, type) {
setDirectory(directoryPath, birthtime, initial, type) {
if (this.checkIgnore(directoryPath)) return;

@@ -245,3 +245,3 @@ if (directoryPath === this.path) {

this.forEachWatcher(this.path, w =>
w.emit("change", directoryPath, mtime, type, initial)
w.emit("change", directoryPath, birthtime, type, initial)
);

@@ -263,3 +263,3 @@ }

if (initial) {
safeTime = Math.min(now, mtime) + FS_ACCURACY;
safeTime = Math.min(now, birthtime) + FS_ACCURACY;
} else {

@@ -271,3 +271,3 @@ safeTime = now;

if (!initial || w.checkStartTime(safeTime, false)) {
w.emit("change", mtime, type);
w.emit("change", birthtime, type);
}

@@ -444,3 +444,3 @@ });

filePath,
+stats.mtime || +stats.ctime || 1,
+stats.birthtime || 1,
false,

@@ -677,3 +677,3 @@ eventType

itemPath,
+stats.mtime || +stats.ctime || 1,
+stats.birthtime || 1,
initial,

@@ -680,0 +680,0 @@ "scan (dir)"

{
"name": "watchpack",
"version": "2.0.1",
"version": "2.1.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