From 1cca08b7b66ebf4a8795bac31dd8b89d31a3bbd4 Mon Sep 17 00:00:00 2001 From: Yagiz Nizipli Date: Fri, 9 Sep 2022 10:42:09 -0400 Subject: [PATCH] perf: replace querystring with fast-querystring --- index.js | 2 +- package.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index f30e1c30..ba134f95 100644 --- a/index.js +++ b/index.js @@ -2,7 +2,7 @@ const fp = require('fastify-plugin') const lru = require('tiny-lru') -const querystring = require('querystring') +const querystring = require('fast-querystring') const Stream = require('stream') const buildRequest = require('./lib/request') const { diff --git a/package.json b/package.json index 31206d26..a4f2ab33 100644 --- a/package.json +++ b/package.json @@ -51,6 +51,7 @@ "dependencies": { "@fastify/error": "^3.0.0", "end-of-stream": "^1.4.4", + "fast-querystring": "^1.0.0", "fastify-plugin": "^4.0.0", "pump": "^3.0.0", "tiny-lru": "^8.0.2",