Socket
Socket
Sign inDemoInstall

fastify

Package Overview
Dependencies
Maintainers
0
Versions
288
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fastify - npm Package Compare versions

Comparing version 5.0.0-alpha.2 to 5.0.0-alpha.3

.idea/fastify.iml

2

fastify.js
'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 @@

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