under-pressure
Advanced tools
Comparing version 5.8.1 to 6.0.0
@@ -255,3 +255,3 @@ 'use strict' | ||
module.exports = fp(underPressure, { | ||
fastify: '3.x', | ||
fastify: '4.x', | ||
name: 'under-pressure' | ||
@@ -258,0 +258,0 @@ }) |
{ | ||
"name": "under-pressure", | ||
"version": "5.8.1", | ||
"version": "6.0.0", | ||
"description": "Measure process load with automatic handling of 'Service Unavailable' plugin for Fastify.", | ||
@@ -34,3 +34,3 @@ "main": "index.js", | ||
"@types/node": "^17.0.7", | ||
"fastify": "^3.0.0", | ||
"fastify": "^4.0.0-rc.2", | ||
"pre-commit": "^1.2.2", | ||
@@ -41,9 +41,6 @@ "semver": "^7.3.2", | ||
"standard": "^17.0.0", | ||
"tap": "^15.0.10", | ||
"tap": "^16.2.0", | ||
"tsd": "^0.20.0", | ||
"typescript": "^4.0.3" | ||
}, | ||
"engines": { | ||
"node": ">=10" | ||
} | ||
} |
@@ -124,3 +124,3 @@ 'use strict' | ||
fastify.listen(0, async (err, address) => { | ||
fastify.listen({ port: 0 }, async (err, address) => { | ||
t.error(err) | ||
@@ -158,3 +158,3 @@ fastify.server.unref() | ||
fastify.listen(0, (err, address) => { | ||
fastify.listen({ port: 0 }, (err, address) => { | ||
t.error(err) | ||
@@ -191,3 +191,3 @@ fastify.server.unref() | ||
fastify.listen(0, (err, address) => { | ||
fastify.listen({ port: 0 }, (err, address) => { | ||
t.error(err) | ||
@@ -224,3 +224,3 @@ fastify.server.unref() | ||
fastify.listen(0, (err, address) => { | ||
fastify.listen({ port: 0 }, (err, address) => { | ||
t.error(err) | ||
@@ -270,3 +270,3 @@ fastify.server.unref() | ||
fastify.listen(0, (err, address) => { | ||
fastify.listen({ port: 0 }, (err, address) => { | ||
t.error(err) | ||
@@ -273,0 +273,0 @@ fastify.server.unref() |
@@ -23,3 +23,3 @@ 'use strict' | ||
fastify.listen(0, (err, address) => { | ||
fastify.listen({ port: 0 }, (err, address) => { | ||
t.error(err) | ||
@@ -74,3 +74,3 @@ fastify.server.unref() | ||
} | ||
const fastify = Fastify() | ||
const fastify = Fastify({ exposeHeadRoutes: false }) | ||
@@ -102,3 +102,3 @@ fastify.addHook('onRoute', (routeOptions) => { | ||
const fastify = Fastify() | ||
const fastify = Fastify({ exposeHeadRoutes: false }) | ||
@@ -127,3 +127,3 @@ fastify.addHook('onRoute', (routeOptions) => { | ||
const fastify = Fastify() | ||
const fastify = Fastify({ exposeHeadRoutes: false }) | ||
@@ -165,3 +165,3 @@ fastify.addHook('onRoute', (routeOptions) => { | ||
const fastify = Fastify() | ||
const fastify = Fastify({ exposeHeadRoutes: false }) | ||
@@ -168,0 +168,0 @@ fastify.addHook('onRoute', (routeOptions) => { |
@@ -25,3 +25,3 @@ 'use strict' | ||
fastify.listen(0, async (err, address) => { | ||
fastify.listen({ port: 0 }, async (err, address) => { | ||
t.error(err) | ||
@@ -69,3 +69,3 @@ fastify.server.unref() | ||
fastify.listen(0, async (err, address) => { | ||
fastify.listen({ port: 0 }, async (err, address) => { | ||
t.error(err) | ||
@@ -107,3 +107,3 @@ fastify.server.unref() | ||
fastify.listen(0, (err, address) => { | ||
fastify.listen({ port: 0 }, (err, address) => { | ||
t.error(err) | ||
@@ -144,3 +144,3 @@ fastify.server.unref() | ||
fastify.listen(0, (err, address) => { | ||
fastify.listen({ port: 0 }, (err, address) => { | ||
t.error(err) | ||
@@ -183,3 +183,3 @@ fastify.server.unref() | ||
fastify.listen(0, (err, address) => { | ||
fastify.listen({ port: 0 }, (err, address) => { | ||
t.error(err) | ||
@@ -235,3 +235,3 @@ fastify.server.unref() | ||
fastify.listen(0, (err, address) => { | ||
fastify.listen({ port: 0 }, (err, address) => { | ||
t.error(err) | ||
@@ -278,3 +278,3 @@ fastify.server.unref() | ||
fastify.listen(0, async (err, address) => { | ||
fastify.listen({ port: 0 }, async (err, address) => { | ||
t.error(err) | ||
@@ -318,3 +318,3 @@ t.equal(typeof fastify.memoryUsage, 'function') | ||
fastify.listen(0, async (err, address) => { | ||
fastify.listen({ port: 0 }, async (err, address) => { | ||
t.error(err) | ||
@@ -362,3 +362,3 @@ t.equal(typeof fastify.memoryUsage, 'function') | ||
fastify.listen(0, (err, address) => { | ||
fastify.listen({ port: 0 }, (err, address) => { | ||
t.error(err) | ||
@@ -398,3 +398,3 @@ fastify.server.unref() | ||
fastify.listen(0, (err, address) => { | ||
fastify.listen({ port: 0 }, (err, address) => { | ||
t.error(err) | ||
@@ -432,3 +432,3 @@ fastify.server.unref() | ||
fastify.listen(0, (err, address) => { | ||
fastify.listen({ port: 0 }, (err, address) => { | ||
t.error(err) | ||
@@ -482,3 +482,3 @@ fastify.server.unref() | ||
fastify.listen(0, (err) => { | ||
fastify.listen({ port: 0 }, (err) => { | ||
t.error(err) | ||
@@ -503,3 +503,3 @@ t.ok(called) | ||
fastify.listen(0, (err, address) => { | ||
fastify.listen({ port: 0 }, (err, address) => { | ||
t.error(err) | ||
@@ -543,3 +543,3 @@ fastify.server.unref() | ||
fastify.listen(0, (err, address) => { | ||
fastify.listen({ port: 0 }, (err, address) => { | ||
t.error(err) | ||
@@ -588,3 +588,3 @@ fastify.server.unref() | ||
fastify.listen(0, (err, address) => { | ||
fastify.listen({ port: 0 }, (err, address) => { | ||
t.error(err) | ||
@@ -628,3 +628,3 @@ fastify.server.unref() | ||
fastify.listen(0, (err, address) => { | ||
fastify.listen({ port: 0 }, (err, address) => { | ||
t.error(err) | ||
@@ -631,0 +631,0 @@ fastify.server.unref() |
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
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
0
49175