Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

autodev

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

autodev - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

22

autodev.js

@@ -12,3 +12,3 @@ var chokidar, http, path, uncache;

module.exports = (program) => {
var busy, close, connections, entry, ref, restart, server, startup, unwatchedModules, watcher;
var busy, clearUnbusyTimeout, close, connections, entry, ref, restart, server, startup, unbusyTimeout, unwatchedModules, watcher;
if (((ref = program.args) != null ? ref[0] : void 0) == null) {

@@ -31,2 +31,9 @@ return;

busy = false;
unbusyTimeout = null;
clearUnbusyTimeout = () => {
if (unbusyTimeout != null) {
clearTimeout(unbusyTimeout);
return unbusyTimeout = null;
}
};
unwatchedModules = [];

@@ -75,3 +82,2 @@ connections = [];

}).on("all", (e, filepath) => {
var resetTimeout;
if (busy) {

@@ -84,3 +90,3 @@ if (busy !== true) {

uncache(filepath, __filename);
busy = resetTimeout = () => {
busy = () => {
if (busy.timeoutObj != null) {

@@ -97,3 +103,4 @@ clearTimeout(busy.timeoutObj);

}
return busy = false;
busy = false;
return clearUnbusyTimeout();
};

@@ -103,6 +110,11 @@ startup(false);

var con, i, len, promise;
if (busy) {
if (busy === true) {
return;
}
busy = true;
clearUnbusyTimeout();
unbusyTimeout = setTimeout((() => {
console.log("autodev: startup timed out");
return busy = false;
}), 3000);
console.log("autodev: tearing down\n");

@@ -109,0 +121,0 @@ promise = new Promise(async(resolve) => {

{
"name": "autodev",
"description": "quick auto restart script for dev servers",
"version": "0.1.1",
"version": "0.1.2",
"homepage": "https://github.com/paulpflug/",

@@ -6,0 +6,0 @@ "author": {

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