Skip to content

Commit ffbc92c

Browse files
committed
Bumped v4.26.1
Signed-off-by: Matteo Collina <hello@matteocollina.com>
1 parent 3a646b8 commit ffbc92c

File tree

3 files changed

+30
-31
lines changed

3 files changed

+30
-31
lines changed

fastify.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict'
22

3-
const VERSION = '4.26.0'
3+
const VERSION = '4.26.1'
44

55
const Avvio = require('avvio')
66
const http = require('node:http')

lib/error-serializer.js

+28-29
Original file line numberDiff line numberDiff line change
@@ -25,35 +25,34 @@
2525

2626
if (obj === null) return '{}'
2727

28-
29-
let addComma = false
30-
let json = '{'
31-
32-
if (obj["statusCode"] !== undefined) {
33-
!addComma && (addComma = true) || (json += ',')
34-
json += "\"statusCode\":"
35-
json += serializer.asNumber(obj["statusCode"])
36-
}
37-
38-
if (obj["code"] !== undefined) {
39-
!addComma && (addComma = true) || (json += ',')
40-
json += "\"code\":"
41-
json += serializer.asString(obj["code"])
42-
}
43-
44-
if (obj["error"] !== undefined) {
45-
!addComma && (addComma = true) || (json += ',')
46-
json += "\"error\":"
47-
json += serializer.asString(obj["error"])
48-
}
49-
50-
if (obj["message"] !== undefined) {
51-
!addComma && (addComma = true) || (json += ',')
52-
json += "\"message\":"
53-
json += serializer.asString(obj["message"])
54-
}
55-
56-
return json + '}'
28+
let json = '{'
29+
let addComma = false
30+
31+
if (obj["statusCode"] !== undefined) {
32+
!addComma && (addComma = true) || (json += ',')
33+
json += "\"statusCode\":"
34+
json += serializer.asNumber(obj["statusCode"])
35+
}
36+
37+
if (obj["code"] !== undefined) {
38+
!addComma && (addComma = true) || (json += ',')
39+
json += "\"code\":"
40+
json += serializer.asString(obj["code"])
41+
}
42+
43+
if (obj["error"] !== undefined) {
44+
!addComma && (addComma = true) || (json += ',')
45+
json += "\"error\":"
46+
json += serializer.asString(obj["error"])
47+
}
48+
49+
if (obj["message"] !== undefined) {
50+
!addComma && (addComma = true) || (json += ',')
51+
json += "\"message\":"
52+
json += serializer.asString(obj["message"])
53+
}
54+
55+
return json + '}'
5756

5857
}
5958

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "fastify",
3-
"version": "4.26.0",
3+
"version": "4.26.1",
44
"description": "Fast and low overhead web framework, for Node.js",
55
"main": "fastify.js",
66
"type": "commonjs",

0 commit comments

Comments
 (0)