diff options
author | David Mehren | 2021-02-16 22:21:13 +0100 |
---|---|---|
committer | David Mehren | 2021-02-16 22:25:38 +0100 |
commit | 67cb3c89f596c03afb09400c2e694af238abbceb (patch) | |
tree | 617b8e4c83f28443e104d3248e11df5d52273934 /lib | |
parent | b9ae440d538522b94589ee8a356fe911ada1e144 (diff) |
Use new uuid export
Signed-off-by: David Mehren <git@herrmehren.de>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/csp.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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() } |