From 2453e723597fb07b1a19634a0ba451fd52bc5edb Mon Sep 17 00:00:00 2001 From: counterweight Date: Thu, 6 Feb 2025 19:26:07 +0100 Subject: [PATCH] change uuid version --- index.js | 4 ++++ package-lock.json | 20 ++++++++------------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/index.js b/index.js index 9d87482..24e06e6 100644 --- a/index.js +++ b/index.js @@ -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'); }); diff --git a/package-lock.json b/package-lock.json index 2335865..59c1251 100644 --- a/package-lock.json +++ b/package-lock.json @@ -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",