From a9bfb506ff792645b1d64563ee1e8956210186b2 Mon Sep 17 00:00:00 2001 From: Jan Oberhauser Date: Tue, 1 Sep 2020 17:50:51 +0200 Subject: [PATCH] :zap: Update buffer code to not get deprecation message --- packages/cli/src/Server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cli/src/Server.ts b/packages/cli/src/Server.ts index aa3a30a6f4..43886323a7 100644 --- a/packages/cli/src/Server.ts +++ b/packages/cli/src/Server.ts @@ -298,7 +298,7 @@ class App { this.app.use((req: express.Request, res: express.Response, next: express.NextFunction) => { (req as ICustomRequest).parsedUrl = parseUrl(req); // @ts-ignore - req.rawBody = new Buffer('', 'base64'); + req.rawBody = Buffer.from('', 'base64'); next(); });