From 2a9908fe89a4683b13591a5323bdcefb134cf656 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 29 Jan 2023 12:15:37 +0000 Subject: Bump uuid from 8.3.2 to 9.0.0 (#884) Use new version of 'uuid' module and also refer to v4 of the uuid spec for generating unique notificationId Co-authored-by: Vijay A --- package.json | 4 ++-- pnpm-lock.yaml | 17 +++++++++++------ src/webview/notifications.ts | 4 ++-- 3 files changed, 15 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index 091eeba82..1483b1ddd 100644 --- a/package.json +++ b/package.json @@ -121,7 +121,7 @@ "tar": "6.1.13", "tslib": "2.5.0", "useragent-generator": "1.1.1-amkt-22079-finish.0", - "uuid": "8.3.2", + "uuid": "9.0.0", "validator": "13.7.0", "ws": "8.12.0" }, @@ -143,7 +143,7 @@ "@types/route-parser": "0.1.4", "@types/sass": "1.43.1", "@types/tar": "6.1.3", - "@types/uuid": "8.3.4", + "@types/uuid": "9.0.0", "@types/validator": "13.7.11", "@typescript-eslint/eslint-plugin": "5.49.0", "@typescript-eslint/parser": "5.49.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 56cd6a931..e5c45e702 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -40,7 +40,7 @@ specifiers: '@types/route-parser': 0.1.4 '@types/sass': 1.43.1 '@types/tar': 6.1.3 - '@types/uuid': 8.3.4 + '@types/uuid': 9.0.0 '@types/validator': 13.7.11 '@typescript-eslint/eslint-plugin': 5.49.0 '@typescript-eslint/parser': 5.49.0 @@ -136,7 +136,7 @@ specifiers: tslib: 2.5.0 typescript: 4.9.4 useragent-generator: 1.1.1-amkt-22079-finish.0 - uuid: 8.3.2 + uuid: 9.0.0 validator: 13.7.0 wait-on: 6.0.1 ws: 8.12.0 @@ -220,7 +220,7 @@ dependencies: tar: 6.1.13 tslib: 2.5.0 useragent-generator: 1.1.1-amkt-22079-finish.0 - uuid: 8.3.2 + uuid: 9.0.0 validator: 13.7.0 ws: 8.12.0 @@ -246,7 +246,7 @@ devDependencies: '@types/route-parser': 0.1.4 '@types/sass': 1.43.1 '@types/tar': 6.1.3 - '@types/uuid': 8.3.4 + '@types/uuid': 9.0.0 '@types/validator': 13.7.11 '@typescript-eslint/eslint-plugin': 5.49.0_iu322prlnwsygkcra5kbpy22si '@typescript-eslint/parser': 5.49.0_7uibuqfxkfaozanbtbziikiqje @@ -2341,8 +2341,8 @@ packages: minipass: 3.3.5 dev: true - /@types/uuid/8.3.4: - resolution: {integrity: sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw==} + /@types/uuid/9.0.0: + resolution: {integrity: sha512-kr90f+ERiQtKWMz5rP32ltJ/BtULDI5RVO0uavn1HQUOwjx0R1h0rnDYNL0CepF1zL5bSY6FISAfd9tOdDhU5Q==} dev: true /@types/validator/13.7.11: @@ -11680,6 +11680,11 @@ packages: hasBin: true dev: false + /uuid/9.0.0: + resolution: {integrity: sha512-MXcSTerfPa4uqyzStbRoTgt5XIe3x5+42+q1sDuy3R5MDk66URdLMOZe5aPX/SQd+kuYAh0FdP/pO28IkQyTeg==} + hasBin: true + dev: false + /v8-compile-cache-lib/3.0.1: resolution: {integrity: sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==} dev: true diff --git a/src/webview/notifications.ts b/src/webview/notifications.ts index 8b2831754..7f6ce01fd 100644 --- a/src/webview/notifications.ts +++ b/src/webview/notifications.ts @@ -1,6 +1,6 @@ import { ipcRenderer } from 'electron'; -import { v1 as uuidV1 } from 'uuid'; +import { v4 as uuidV4 } from 'uuid'; const debug = require('../preload-safe-debug')('Ferdium:Notifications'); @@ -12,7 +12,7 @@ export class NotificationsHandler { return new Promise(resolve => { debug('New notification', title, options); - const notificationId = uuidV1(); + const notificationId = uuidV4(); ipcRenderer.sendToHost( 'notification', -- cgit v1.2.3-70-g09d2