Actualizacion de seguridad
This commit is contained in:
5
node_modules/nodemon/lib/monitor/watch.js
generated
vendored
5
node_modules/nodemon/lib/monitor/watch.js
generated
vendored
@@ -69,6 +69,10 @@ function watch() {
|
||||
watchOptions.disableGlobbing = true;
|
||||
}
|
||||
|
||||
if (utils.isIBMi) {
|
||||
watchOptions.usePolling = true;
|
||||
}
|
||||
|
||||
if (process.env.TEST) {
|
||||
watchOptions.useFsEvents = false;
|
||||
}
|
||||
@@ -83,6 +87,7 @@ function watch() {
|
||||
var total = 0;
|
||||
|
||||
watcher.on('change', filterAndRestart);
|
||||
watcher.on('unlink', filterAndRestart);
|
||||
watcher.on('add', function (file) {
|
||||
if (watcher.ready) {
|
||||
return filterAndRestart(file);
|
||||
|
||||
Reference in New Issue
Block a user