Socket
Socket
Sign inDemoInstall

fastify

Package Overview
Dependencies
Maintainers
2
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 0.15.2 to 0.15.3

test/listen.test.js

8

docs/Server-Methods.md

@@ -28,2 +28,10 @@ <h1 align="center">Fastify</h1>

Specifying an address is also supported:
```js
fastify.listen(3000, '127.0.0.1', err => {
if (err) throw err
})
```
<a name="route"></a>

@@ -30,0 +38,0 @@ #### route

12

fastify.js

@@ -156,6 +156,12 @@ 'use strict'

function listen (port, cb) {
function listen (port, address, cb) {
const hasAddress = arguments.length === 3
const _cb = (hasAddress) ? cb : address
fastify.ready(function (err) {
if (err) return cb(err)
server.listen(port, cb)
if (err) return _cb(err)
if (hasAddress) {
server.listen(port, address, _cb)
} else {
server.listen(port, _cb)
}
})

@@ -162,0 +168,0 @@ }

{
"name": "fastify",
"version": "0.15.2",
"version": "0.15.3",
"description": "Fast and low overhead web framework, for Node.js",

@@ -5,0 +5,0 @@ "main": "fastify.js",

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