From 045059eb76245223946730e781e3511841947677 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..5d57ad6a 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": "^0.7.1", "fastify-plugin": "^4.0.0", "pump": "^3.0.0", "tiny-lru": "^8.0.2",