Socket
Socket
Sign inDemoInstall

avvio

Package Overview
Dependencies
Maintainers
0
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 8.3.2 to 9.0.0-pre.fv5.1

test/on-ready-timeout-await.test.js

13

boot.js

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

function timeoutCall (func, rootErr, context, cb) {
const name = func.name
const name = func.unwrappedName ?? func.name
debug('setting up ready timeout', name, this._opts.timeout)

@@ -575,3 +575,5 @@ let timer = setTimeout(() => {

function encapsulateThreeParam (func, that) {
return _encapsulateThreeParam.bind(that)
const wrapped = _encapsulateThreeParam.bind(that)
wrapped.unwrappedName = func.name
return wrapped
function _encapsulateThreeParam (err, cb) {

@@ -608,8 +610,1 @@ let res

module.exports = Boot
module.exports.express = function (app) {
return Boot(app, {
expose: {
use: 'load'
}
})
}

@@ -23,2 +23,4 @@ import { EventEmitter } from "events";

ready?: string;
close?: string;
onClose?: string;
};

@@ -25,0 +27,0 @@ autostart?: boolean;

{
"name": "avvio",
"version": "8.3.2",
"version": "9.0.0-pre.fv5.1",
"description": "Asynchronous bootstrapping of Node applications",

@@ -41,13 +41,12 @@ "main": "boot.js",

"devDependencies": {
"@fastify/pre-commit": "^2.0.2",
"@types/node": "^20.1.0",
"express": "^4.17.1",
"standard": "^17.0.0",
"tap": "^16.0.0",
"typescript": "^5.0.2"
"@fastify/pre-commit": "^2.1.0",
"@types/node": "^20.11.29",
"standard": "^17.1.0",
"tap": "^18.7.1",
"typescript": "^5.4.2"
},
"dependencies": {
"@fastify/error": "^3.3.0",
"@fastify/error": "^4.0.0",
"fastq": "^1.17.1"
}
}

@@ -86,3 +86,2 @@ # avvio

* <a href="#close"><code>instance.<b>close()</b></code></a>
* <a href="#express"><code>avvio.<b>express()</b></code></a>
* <a href="#toJSON"><code>avvio.<b>toJSON()</b></code></a>

@@ -449,20 +448,2 @@ * <a href="#prettyPrint"><code>avvio.<b>prettyPrint()</b></code></a>

-------------------------------------------------------
<a name="express"></a>
### avvio.express(app)
Same as:
```js
const app = express()
const avvio = require('avvio')
avvio(app, {
expose: {
use: 'load'
}
})
```
-------------------------------------------------------
<a name="override"></a>

@@ -469,0 +450,0 @@

@@ -389,3 +389,3 @@ import * as avvio from "../../";

autostart: false,
expose: { after: "after", ready: "ready", use: "use" }
expose: { after: "after", ready: "ready", use: "use", close: "close", onClose : "onClose" }
};

@@ -392,0 +392,0 @@ // avvio with server and options

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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