Comparing version 8.3.2 to 8.4.0
@@ -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) { | ||
@@ -578,0 +580,0 @@ let res |
@@ -23,4 +23,7 @@ import { EventEmitter } from "events"; | ||
ready?: string; | ||
close?: string; | ||
onClose?: string; | ||
}; | ||
autostart?: boolean; | ||
timeout?: number; | ||
} | ||
@@ -27,0 +30,0 @@ |
{ | ||
"name": "avvio", | ||
"version": "8.3.2", | ||
"version": "8.4.0", | ||
"description": "Asynchronous bootstrapping of Node applications", | ||
@@ -5,0 +5,0 @@ "main": "boot.js", |
@@ -389,3 +389,4 @@ import * as avvio from "../../"; | ||
autostart: false, | ||
expose: { after: "after", ready: "ready", use: "use" } | ||
expose: { after: "after", ready: "ready", use: "use", close: "close", onClose : "onClose" }, | ||
timeout: 50000 | ||
}; | ||
@@ -392,0 +393,0 @@ // avvio with server and options |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
181742
69
6191
1