Comparing version 5.0.0-alpha.2 to 5.0.0-alpha.3
'use strict' | ||
const VERSION = '5.0.0-alpha.2' | ||
const VERSION = '5.0.0-alpha.3' | ||
@@ -5,0 +5,0 @@ const Avvio = require('avvio') |
{ | ||
"name": "fastify", | ||
"version": "5.0.0-alpha.2", | ||
"version": "5.0.0-alpha.3", | ||
"description": "Fast and low overhead web framework, for Node.js", | ||
@@ -179,3 +179,3 @@ "main": "fastify.js", | ||
"markdownlint-cli2": "^0.13.0", | ||
"neostandard": "^0.7.0", | ||
"neostandard": "^0.8.0", | ||
"node-forge": "^1.3.1", | ||
@@ -195,3 +195,3 @@ "proxyquire": "^2.1.3", | ||
"@fastify/ajv-compiler": "^3.5.0", | ||
"@fastify/error": "^3.4.1", | ||
"@fastify/error": "^4.0.0", | ||
"@fastify/fast-json-stringify-compiler": "^4.3.0", | ||
@@ -201,3 +201,3 @@ "abstract-logging": "^2.0.1", | ||
"dc-polyfill": "^0.1.6", | ||
"fast-json-stringify": "^5.14.1", | ||
"fast-json-stringify": "^6.0.0", | ||
"find-my-way": "^8.1.0", | ||
@@ -204,0 +204,0 @@ "light-my-request": "^5.13.0", |
@@ -8,2 +8,10 @@ 'use strict' | ||
function createDeferredPromise () { | ||
const promise = {} | ||
promise.promise = new Promise((resolve) => { | ||
promise.resolve = resolve | ||
}) | ||
return promise | ||
} | ||
test('same port conflict and success should not fire callback multiple times - callback', async (t) => { | ||
@@ -17,2 +25,3 @@ t.plan(7) | ||
const fastify = Fastify() | ||
const promise = createDeferredPromise() | ||
function callback (err) { | ||
@@ -25,2 +34,3 @@ switch (count) { | ||
t.error(err) | ||
promise.resolve() | ||
}) | ||
@@ -47,2 +57,3 @@ break | ||
fastify.listen(option, callback) | ||
await promise.promise | ||
}) | ||
@@ -49,0 +60,0 @@ |
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
2478424
351
59675
9
+ Added@fastify/error@4.0.0(transitive)
+ Addedfast-json-stringify@6.0.0(transitive)
Updated@fastify/error@^4.0.0
Updatedfast-json-stringify@^6.0.0