Comparing version 0.1.0 to 0.1.1
@@ -73,7 +73,18 @@ var chokidar, http, path, uncache; | ||
}).on("all", (e, filepath) => { | ||
var resetTimeout; | ||
if (busy) { | ||
return; | ||
if (busy !== true) { | ||
uncache(filepath, __filename); | ||
return busy(); | ||
} | ||
} else { | ||
uncache(filepath, __filename); | ||
busy = resetTimeout = () => { | ||
if (busy.timeoutObj != null) { | ||
clearTimeout(busy.timeoutObj); | ||
} | ||
return busy.timeoutObj = setTimeout(restart, 300); | ||
}; | ||
return busy(); | ||
} | ||
uncache(filepath, __filename); | ||
return restart(); | ||
}); | ||
@@ -80,0 +91,0 @@ } else { |
{ | ||
"name": "autodev", | ||
"description": "quick auto restart script for dev servers", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"homepage": "https://github.com/paulpflug/", | ||
@@ -31,3 +31,3 @@ "author": { | ||
"devDependencies": { | ||
"coffeescript": "^2.0.0-alpha1" | ||
"coffeescript": "^2.0.0-beta3" | ||
}, | ||
@@ -34,0 +34,0 @@ "keywords": [ |
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
5527
138