Skip to content

Commit

Permalink
dropped flatstrt (#3016)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcollina committed Apr 20, 2021
1 parent 67a5dee commit 2d39fec
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
4 changes: 0 additions & 4 deletions lib/reply.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

const eos = require('readable-stream').finished
const statusCodes = require('http').STATUS_CODES
const flatstr = require('flatstr')
const FJS = require('fast-json-stringify')
const {
kSchemaResponse,
Expand Down Expand Up @@ -361,8 +360,6 @@ function preserializeHookEnd (err, request, reply, payload) {
payload = serialize(reply.context, payload, reply.raw.statusCode)
}

flatstr(payload)

onSendHook(reply, payload)
}

Expand Down Expand Up @@ -552,7 +549,6 @@ function handleError (reply, error, cb) {
})
}

flatstr(payload)
reply[kReplyHeaders]['content-type'] = CONTENT_TYPE.JSON
reply[kReplyHeaders]['content-length'] = '' + Buffer.byteLength(payload)

Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@
"fastify-error": "^0.3.0",
"fastify-warning": "^0.2.0",
"find-my-way": "^4.0.0",
"flatstr": "^1.0.12",
"light-my-request": "^4.2.0",
"pino": "^6.2.1",
"readable-stream": "^3.4.0",
Expand Down

0 comments on commit 2d39fec

Please sign in to comment.