change uuid version

This commit is contained in:
counterweight 2025-02-06 19:26:07 +01:00
parent e57ab407a5
commit 2453e72359
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C
2 changed files with 12 additions and 12 deletions

View file

@ -1,11 +1,15 @@
const express = require('express');
const app = express();
const port = 3000;
const uuid = require('uuid');
app.set('view engine', 'ejs');
app.set('views', './views');
app.get('/', (req, res) => {
const requestUuid = uuid.v7();
console.log(requestUuid); // just to see the generated UUID
res.render('index');
});

20
package-lock.json generated
View file

@ -11,7 +11,7 @@
"dependencies": {
"ejs": "^3.1.10",
"express": "^4.17.1",
"uuid": "^11.0.5"
"uuid": "^8.3.2"
}
},
"node_modules/accepts": {
@ -912,15 +912,11 @@
}
},
"node_modules/uuid": {
"version": "11.0.5",
"resolved": "https://registry.npmjs.org/uuid/-/uuid-11.0.5.tgz",
"integrity": "sha512-508e6IcKLrhxKdBbcA2b4KQZlLVp2+J5UwQ6F7Drckkc5N9ZJwFa4TgWtsww9UG8fGHbm6gbV19TdM5pQ4GaIA==",
"funding": [
"https://github.com/sponsors/broofa",
"https://github.com/sponsors/ctavan"
],
"version": "8.3.2",
"resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz",
"integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==",
"bin": {
"uuid": "dist/esm/bin/uuid"
"uuid": "dist/bin/uuid"
}
},
"node_modules/vary": {
@ -1575,9 +1571,9 @@
"integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA=="
},
"uuid": {
"version": "11.0.5",
"resolved": "https://registry.npmjs.org/uuid/-/uuid-11.0.5.tgz",
"integrity": "sha512-508e6IcKLrhxKdBbcA2b4KQZlLVp2+J5UwQ6F7Drckkc5N9ZJwFa4TgWtsww9UG8fGHbm6gbV19TdM5pQ4GaIA=="
"version": "8.3.2",
"resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz",
"integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg=="
},
"vary": {
"version": "1.1.2",