Comparing version 5.3.0 to 5.4.0
@@ -154,2 +154,3 @@ 'use strict' | ||
process.nextTick(this._doStart) | ||
return this | ||
} | ||
@@ -156,0 +157,0 @@ |
{ | ||
"name": "avvio", | ||
"version": "5.3.0", | ||
"version": "5.4.0", | ||
"description": "Asynchronous bootstrapping of Node applications", | ||
@@ -5,0 +5,0 @@ "main": "boot.js", |
@@ -36,3 +36,8 @@ 'use strict' | ||
this.server = this.parent.override(server, func, this.opts) | ||
try { | ||
this.server = this.parent.override(server, func, this.opts) | ||
} catch (err) { | ||
debug('override errored', name) | ||
return cb(err) | ||
} | ||
@@ -39,0 +44,0 @@ debug('exec', name) |
@@ -313,2 +313,3 @@ # avvio | ||
Start the boot sequence, if it was not started yet. | ||
Returns the `app` instance. | ||
@@ -318,3 +319,3 @@ ------------------------------------------------------- | ||
### avioo.express(app) | ||
### avvio.express(app) | ||
@@ -321,0 +322,0 @@ Same as: |
@@ -15,2 +15,12 @@ 'use strict' | ||
test('start returns app', (t) => { | ||
t.plan(1) | ||
const app = boot({}, {autostart: false}) | ||
app | ||
.start() | ||
.ready((err) => { | ||
t.error(err) | ||
}) | ||
}) | ||
test('boot an app with a plugin', (t) => { | ||
@@ -17,0 +27,0 @@ t.plan(4) |
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
69530
19
2247
452