fastify 4.24.1 → 4.24.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,5 @@
1
+ 'use strict'
2
+
1
3
  const fastify = require('../fastify')({ logger: true })
2
4
 
3
5
  const opts = {
package/fastify.js CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict'
2
2
 
3
- const VERSION = '4.24.1'
3
+ const VERSION = '4.24.3'
4
4
 
5
5
  const Avvio = require('avvio')
6
6
  const http = require('node:http')
@@ -1,3 +1,5 @@
1
+ 'use strict'
2
+
1
3
  const Fastify = require('../fastify')
2
4
 
3
5
  const fastify = Fastify()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fastify",
3
- "version": "4.24.1",
3
+ "version": "4.24.3",
4
4
  "description": "Fast and low overhead web framework, for Node.js",
5
5
  "main": "fastify.js",
6
6
  "type": "commonjs",
@@ -29,7 +29,7 @@
29
29
  "unit": "c8 tap",
30
30
  "unit:junit": "tap-mocha-reporter xunit < out.tap > test/junit-testresults.xml",
31
31
  "unit:report": "tap --cov --coverage-report=html --coverage-report=cobertura | tee out.tap",
32
- "citgm": "tap --jobs=1"
32
+ "citgm": "tap --jobs=1 --timeout=120"
33
33
  },
34
34
  "repository": {
35
35
  "type": "git",
@@ -1,3 +1,5 @@
1
+ 'use strict'
2
+
1
3
  const t = require('tap')
2
4
  const test = t.test
3
5
  const Fastify = require('..')
@@ -1,3 +1,5 @@
1
+ 'use strict'
2
+
1
3
  const fp = require('fastify-plugin')
2
4
  const fastify = require('../../../../')()
3
5
 
@@ -1,3 +1,5 @@
1
+ 'use strict'
2
+
1
3
  const fastify = require('../../../../')()
2
4
  // Declare a route
3
5
  fastify.get('/', function (request, reply) {
@@ -1,3 +1,5 @@
1
+ 'use strict'
2
+
1
3
  const fp = require('fastify-plugin')
2
4
  const fastify = require('../../../../')()
3
5
 
@@ -1,3 +1,5 @@
1
+ 'use strict'
2
+
1
3
  const fastify = require('../../../../')()
2
4
  // Declare a route
3
5
  fastify.get('/', function (request, reply) {
@@ -1,3 +1,5 @@
1
+ 'use strict'
2
+
1
3
  const path = require('node:path')
2
4
 
3
5
  module.exports = {
@@ -143,6 +143,8 @@ export interface FastifyInstance<
143
143
  close(closeListener: () => void): undefined;
144
144
 
145
145
  /** Alias for {@linkcode FastifyInstance.close()} */
146
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
147
+ // @ts-ignore - type only available for @types/node >=17 or typescript >= 5.2
146
148
  [Symbol.asyncDispose](): Promise<undefined>;
147
149
 
148
150
  // should be able to define something useful with the decorator getter/setter pattern using Generics to enforce the users function returns what they expect it to