smart-restart
Advanced tools
Comparing version 2.6.0-beta.2 to 2.6.0-beta.3
@@ -38,9 +38,8 @@ "use strict"; | ||
} | ||
if (parentId === id) { | ||
throw new Error(`parentId === id`); | ||
const mod = this.getOrCreate(id); | ||
if (parentId !== id) { | ||
const parent = this.getOrCreate(parentId); | ||
mod.parents.add(parent); | ||
parent.children.add(mod); | ||
} | ||
const mod = this.getOrCreate(id); | ||
const parent = this.getOrCreate(parentId); | ||
mod.parents.add(parent); | ||
parent.children.add(mod); | ||
} | ||
@@ -47,0 +46,0 @@ delete(ids) { |
{ | ||
"name": "smart-restart", | ||
"version": "2.6.0-beta.2", | ||
"version": "2.6.0-beta.3", | ||
"description": "Like nodemon but only watches require()d files. Like piping but easy to use with node-inspector.", | ||
@@ -5,0 +5,0 @@ "engines": { |
23346
503