Skip to content
This repository was archived by the owner on Jan 6, 2023. It is now read-only.

Commit b49fda4

Browse files
René Kalffjthoms1
authored andcommitted
fix(): update dependency glob-watcher to 3.0.0 fixing high cpu in docker (#117)
1 parent c84f130 commit b49fda4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/serve.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,10 +277,10 @@ Serve.runLivereload = function runLivereload(options, app) {
277277
// log.debug('Absolute watch paths:', absoluteWatchPaths);
278278

279279
var watcher = globWatch(options.watchPatterns);
280-
watcher.on('change', function(evt) {
280+
watcher.on('change', function(path) {
281281

282282
// TODO: Move prototype to Serve._changed
283-
Serve._changed(evt.path, options);
283+
Serve._changed(path, options);
284284
});
285285

286286
var liveReloadPort = process.env.CONNECT_LIVE_RELOAD_PORT || options.liveReloadPort;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"cross-spawn-async": "2.1.9",
5151
"finalhandler": "0.2.0",
5252
"form-data": "0.1.4",
53-
"glob-watcher": "2.0.0",
53+
"glob-watcher": "3.0.0",
5454
"open": "0.0.5",
5555
"optimist": "0.6.0",
5656
"progress": "1.1.7",

0 commit comments

Comments
 (0)