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 express = require('express');
const app = express(); const app = express();
const port = 3000; const port = 3000;
const uuid = require('uuid');
app.set('view engine', 'ejs'); app.set('view engine', 'ejs');
app.set('views', './views'); app.set('views', './views');
app.get('/', (req, res) => { app.get('/', (req, res) => {
const requestUuid = uuid.v7();
console.log(requestUuid); // just to see the generated UUID
res.render('index'); res.render('index');
}); });

20
package-lock.json generated
View file

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