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 to 7.0.1

2

boot.js

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

instance.use(fn, opts)
return instance
return this
}

@@ -36,0 +36,0 @@

{
"name": "avvio",
"version": "7.0.0",
"version": "7.0.1",
"description": "Asynchronous bootstrapping of Node applications",

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

@@ -72,1 +72,27 @@ 'use strict'

})
test('chainable standalone with server', (t) => {
t.plan(6)
const server = {}
boot(server, {
expose: {
use: 'register'
}
})
const readyResult = server.register(function (ctx, opts, done) {
t.pass('1st plugin')
done()
}).after(function (err, done) {
t.error(err)
t.pass('2nd after')
done()
}).register(function (ctx, opts, done) {
t.pass('3rd plugin')
done()
}).ready(function () {
t.pass('we are ready')
})
t.equal(readyResult, undefined)
})
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