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.0.1 to 0.0.2

15

autodev.js

@@ -13,3 +13,3 @@ (function() {

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

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

watcher = null;
busy = false;
unwatchedModules = [];

@@ -61,5 +62,8 @@ ref1 = require.cache;

if (watcher == null) {
return watcher = chokidar.watch(filesToWatch, {
watcher = chokidar.watch(filesToWatch, {
ignoreInitial: true
}).on("all", (e, filepath) => {
if (busy) {
return;
}
uncache(filepath, __filename);

@@ -69,4 +73,5 @@ return restart();

} else {
return watcher.add(filesToWatch);
watcher.add(filesToWatch);
}
return busy = false;
};

@@ -76,2 +81,6 @@ startup(false);

var con, i, len;
if (busy) {
return;
}
busy = true;
if (typeof close === "function") {

@@ -78,0 +87,0 @@ close();

4

package.json
{
"name": "autodev",
"description": "recursively uncache required files",
"version": "0.0.1",
"description": "quick auto restart script for dev servers",
"version": "0.0.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