Socket
Socket
Sign inDemoInstall

watchpack

Package Overview
Dependencies
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

watchpack - npm Package Compare versions

Comparing version 2.0.0-beta.5 to 2.0.0-beta.6

4

lib/DirectoryWatcher.js

@@ -485,3 +485,5 @@ /*

}
const itemPaths = new Set(items.map(item => path.join(this.path, item)));
const itemPaths = new Set(
items.map(item => path.join(this.path, item.normalize("NFC")))
);
for (const file of this.files.keys()) {

@@ -488,0 +490,0 @@ if (!itemPaths.has(file)) {

@@ -36,2 +36,3 @@ /*

const directory = path.dirname(p);
if (directory === p) return null;
return this.getDirectoryWatcher(directory, options).watch(p, startTime);

@@ -38,0 +39,0 @@ }

@@ -74,3 +74,4 @@ /*

)
);
)
.filter(Boolean);
this.dirWatchers = directories

@@ -142,8 +143,10 @@ .filter(filter)

_fileWatcher(file, watcher) {
watcher.on("change", (mtime, type) => {
this._onChange(file, mtime, file, type);
});
watcher.on("remove", type => {
this._onRemove(file, file, type);
});
if (watcher) {
watcher.on("change", (mtime, type) => {
this._onChange(file, mtime, file, type);
});
watcher.on("remove", type => {
this._onRemove(file, file, type);
});
}
return watcher;

@@ -150,0 +153,0 @@ }

{
"name": "watchpack",
"version": "2.0.0-beta.5",
"version": "2.0.0-beta.6",
"description": "",

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

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