summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Mehren2021-02-25 20:49:03 +0100
committerGitHub2021-02-25 20:49:03 +0100
commitd98393e431c324290066078ace4c2e4b60af0dad (patch)
tree78bd902dffac4c413f6514e55b7a17865fe33d8b
parentdc702a15971d33a1d5eb80693ec8dd9d6dc5f27c (diff)
parent67cb3c89f596c03afb09400c2e694af238abbceb (diff)
Merge pull request #889 from hedgedoc/renovate/master-uuid-8.x
Diffstat (limited to '')
-rw-r--r--lib/csp.js4
-rw-r--r--package.json2
-rw-r--r--yarn.lock5
3 files changed, 8 insertions, 3 deletions
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()
}
diff --git a/package.json b/package.json
index bd83a162..71fc5ab1 100644
--- a/package.json
+++ b/package.json
@@ -128,7 +128,7 @@
"tedious": "^6.6.0",
"toobusy-js": "^0.5.1",
"turndown": "^7.0.0",
- "uuid": "^3.1.0",
+ "uuid": "^8.0.0",
"validator": "^13.0.0",
"velocity-animate": "^1.4.0",
"visibilityjs": "^2.0.0",
diff --git a/yarn.lock b/yarn.lock
index f31e183f..c28f529c 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -11003,6 +11003,11 @@ uuid@^3.0.0, uuid@^3.1.0, uuid@^3.2.1, uuid@^3.3.2, uuid@^3.3.3:
resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.4.0.tgz#b23e4358afa8a202fe7a100af1f5f883f02007ee"
integrity sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==
+uuid@^8.0.0:
+ version "8.3.2"
+ resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.3.2.tgz#80d5b5ced271bb9af6c445f21a1a04c606cefbe2"
+ integrity sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==
+
v8-compile-cache@^2.0.3, v8-compile-cache@^2.2.0:
version "2.2.0"
resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-2.2.0.tgz#9471efa3ef9128d2f7c6a7ca39c4dd6b5055b132"