Skip to content

Commit 1b56b8b

Browse files
committed
Bumped v5.3.0
Signed-off-by: Matteo Collina <hello@matteocollina.com>
1 parent a155457 commit 1b56b8b

3 files changed

Lines changed: 15 additions & 15 deletions

File tree

fastify.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict'
22

3-
const VERSION = '5.2.2'
3+
const VERSION = '5.3.0'
44

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

lib/error-serializer.js

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@
2424
const JSON_STR_EMPTY_ARRAY = JSON_STR_BEGIN_ARRAY + JSON_STR_END_ARRAY
2525
const JSON_STR_EMPTY_STRING = JSON_STR_QUOTE + JSON_STR_QUOTE
2626
const JSON_STR_NULL = 'null'
27-
28-
29-
27+
28+
29+
3030
// #
3131
function anonymous0 (input) {
3232
const obj = (input && typeof input.toJSON === 'function')
3333
? input.toJSON()
3434
: input
35-
35+
3636
if (obj === null) return JSON_STR_EMPTY_OBJECT
3737

3838
let value
@@ -50,7 +50,7 @@ let addComma = false
5050
if (value !== undefined) {
5151
!addComma && (addComma = true) || (json += JSON_STR_COMMA)
5252
json += "\"code\":"
53-
53+
5454
if (typeof value !== 'string') {
5555
if (value === null) {
5656
json += JSON_STR_EMPTY_STRING
@@ -64,14 +64,14 @@ let addComma = false
6464
} else {
6565
json += serializer.asString(value)
6666
}
67-
67+
6868
}
6969

7070
value = obj["error"]
7171
if (value !== undefined) {
7272
!addComma && (addComma = true) || (json += JSON_STR_COMMA)
7373
json += "\"error\":"
74-
74+
7575
if (typeof value !== 'string') {
7676
if (value === null) {
7777
json += JSON_STR_EMPTY_STRING
@@ -85,14 +85,14 @@ let addComma = false
8585
} else {
8686
json += serializer.asString(value)
8787
}
88-
88+
8989
}
9090

9191
value = obj["message"]
9292
if (value !== undefined) {
9393
!addComma && (addComma = true) || (json += JSON_STR_COMMA)
9494
json += "\"message\":"
95-
95+
9696
if (typeof value !== 'string') {
9797
if (value === null) {
9898
json += JSON_STR_EMPTY_STRING
@@ -106,15 +106,15 @@ let addComma = false
106106
} else {
107107
json += serializer.asString(value)
108108
}
109-
109+
110110
}
111111

112112
return json + JSON_STR_END_OBJECT
113-
113+
114114
}
115-
115+
116116
const main = anonymous0
117117
return main
118-
118+
119119
}(validator, serializer)
120120
/* c8 ignore stop */

package.json

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

0 commit comments

Comments
 (0)