From 67cb3c89f596c03afb09400c2e694af238abbceb Mon Sep 17 00:00:00 2001 From: David Mehren Date: Tue, 16 Feb 2021 22:21:13 +0100 Subject: Use new uuid export Signed-off-by: David Mehren --- lib/csp.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/csp.js b/lib/csp.js index a5f0a4fc..616c1d21 100644 --- a/lib/csp.js +++ b/lib/csp.js @@ -1,5 +1,5 @@ const config = require('./config') -const uuid = require('uuid') +const { v4: uuidv4 } = require('uuid') const CspStrategy = {} @@ -98,7 +98,7 @@ function addReportURI (directives) { } CspStrategy.addNonceToLocals = function (req, res, next) { - res.locals.nonce = uuid.v4() + res.locals.nonce = uuidv4() next() } -- cgit v1.2.3