diff --git a/lib/application.js b/lib/application.js index 531ac46..f9e4fc0 100644 --- a/lib/application.js +++ b/lib/application.js @@ -163,8 +163,13 @@ class Application extends events.EventEmitter { if (exp === null && level.stop) await this.execute(level.stop); } } else { - next = depth === last ? iface : {}; - level[namespace] = iface.method || iface; + if (depth === last) { + next = iface; + level[namespace] = iface.method || iface; + } else { + next = {}; + level[namespace] = next; + } container.parent = level; if (depth === MODULE && namespace === 'start') { this.starts.push(iface.method); diff --git a/package.json b/package.json index b7218dc..53cc1d7 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,7 @@ "eslint": "^7.27.0" }, "dependencies": { - "pg": "^8.5.1", - "ws": "^7.4.0" + "pg": "^8.6.0", + "ws": "^7.4.6" } }