Socket
Socket
Sign inDemoInstall

avvio

Package Overview
Dependencies
Maintainers
2
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

avvio - npm Package Compare versions

Comparing version 7.0.0-alpha.6 to 7.0.0-alpha.7

2

boot.js

@@ -424,3 +424,3 @@ 'use strict'

clearTimeout(timer)
this._error = rootErr || err
this._error = err
cb(this._error)

@@ -427,0 +427,0 @@ } else {

{
"name": "avvio",
"version": "7.0.0-alpha.6",
"version": "7.0.0-alpha.7",
"description": "Asynchronous bootstrapping of Node applications",

@@ -5,0 +5,0 @@ "main": "boot.js",

@@ -790,1 +790,25 @@ 'use strict'

})
test('after 1 param swallows errors with server and timeout', (t) => {
t.plan(3)
const server = {}
boot(server, { autostart: false, timeout: 1000 })
server.use(function first (server, opts, done) {
t.pass('first called')
done(new Error('kaboom'))
})
server.use(function second (server, opts, done) {
t.fail('We should not be here')
})
server.after(function (err) {
t.ok(err)
})
server.ready(function (err) {
t.error(err)
})
})
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