Comparing version 2.0.0-beta.5 to 2.0.0-beta.6
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29856
836