Comparing version 8.3.2 to 9.0.0-pre.fv5.1
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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
5
180306
6140
1
670
1
+ Added@fastify/error@4.0.0(transitive)
- Removed@fastify/error@3.4.1(transitive)
Updated@fastify/error@^4.0.0