diff options
author | 2023-01-29 12:15:37 +0000 | |
---|---|---|
committer | 2023-01-29 12:15:37 +0000 | |
commit | 2a9908fe89a4683b13591a5323bdcefb134cf656 (patch) | |
tree | 63e8ec6fc4d71c9c3bf574d0aaf9042ef99f99b8 | |
parent | feat(i18n): New Crowdin translations (Chinese Simplified) [skip ci] (#895) (diff) | |
download | ferdium-app-2a9908fe89a4683b13591a5323bdcefb134cf656.tar.gz ferdium-app-2a9908fe89a4683b13591a5323bdcefb134cf656.tar.zst ferdium-app-2a9908fe89a4683b13591a5323bdcefb134cf656.zip |
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 <vraravam@users.noreply.github.com>
-rw-r--r-- | package.json | 4 | ||||
-rw-r--r-- | pnpm-lock.yaml | 17 | ||||
-rw-r--r-- | 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 @@ | |||
121 | "tar": "6.1.13", | 121 | "tar": "6.1.13", |
122 | "tslib": "2.5.0", | 122 | "tslib": "2.5.0", |
123 | "useragent-generator": "1.1.1-amkt-22079-finish.0", | 123 | "useragent-generator": "1.1.1-amkt-22079-finish.0", |
124 | "uuid": "8.3.2", | 124 | "uuid": "9.0.0", |
125 | "validator": "13.7.0", | 125 | "validator": "13.7.0", |
126 | "ws": "8.12.0" | 126 | "ws": "8.12.0" |
127 | }, | 127 | }, |
@@ -143,7 +143,7 @@ | |||
143 | "@types/route-parser": "0.1.4", | 143 | "@types/route-parser": "0.1.4", |
144 | "@types/sass": "1.43.1", | 144 | "@types/sass": "1.43.1", |
145 | "@types/tar": "6.1.3", | 145 | "@types/tar": "6.1.3", |
146 | "@types/uuid": "8.3.4", | 146 | "@types/uuid": "9.0.0", |
147 | "@types/validator": "13.7.11", | 147 | "@types/validator": "13.7.11", |
148 | "@typescript-eslint/eslint-plugin": "5.49.0", | 148 | "@typescript-eslint/eslint-plugin": "5.49.0", |
149 | "@typescript-eslint/parser": "5.49.0", | 149 | "@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: | |||
40 | '@types/route-parser': 0.1.4 | 40 | '@types/route-parser': 0.1.4 |
41 | '@types/sass': 1.43.1 | 41 | '@types/sass': 1.43.1 |
42 | '@types/tar': 6.1.3 | 42 | '@types/tar': 6.1.3 |
43 | '@types/uuid': 8.3.4 | 43 | '@types/uuid': 9.0.0 |
44 | '@types/validator': 13.7.11 | 44 | '@types/validator': 13.7.11 |
45 | '@typescript-eslint/eslint-plugin': 5.49.0 | 45 | '@typescript-eslint/eslint-plugin': 5.49.0 |
46 | '@typescript-eslint/parser': 5.49.0 | 46 | '@typescript-eslint/parser': 5.49.0 |
@@ -136,7 +136,7 @@ specifiers: | |||
136 | tslib: 2.5.0 | 136 | tslib: 2.5.0 |
137 | typescript: 4.9.4 | 137 | typescript: 4.9.4 |
138 | useragent-generator: 1.1.1-amkt-22079-finish.0 | 138 | useragent-generator: 1.1.1-amkt-22079-finish.0 |
139 | uuid: 8.3.2 | 139 | uuid: 9.0.0 |
140 | validator: 13.7.0 | 140 | validator: 13.7.0 |
141 | wait-on: 6.0.1 | 141 | wait-on: 6.0.1 |
142 | ws: 8.12.0 | 142 | ws: 8.12.0 |
@@ -220,7 +220,7 @@ dependencies: | |||
220 | tar: 6.1.13 | 220 | tar: 6.1.13 |
221 | tslib: 2.5.0 | 221 | tslib: 2.5.0 |
222 | useragent-generator: 1.1.1-amkt-22079-finish.0 | 222 | useragent-generator: 1.1.1-amkt-22079-finish.0 |
223 | uuid: 8.3.2 | 223 | uuid: 9.0.0 |
224 | validator: 13.7.0 | 224 | validator: 13.7.0 |
225 | ws: 8.12.0 | 225 | ws: 8.12.0 |
226 | 226 | ||
@@ -246,7 +246,7 @@ devDependencies: | |||
246 | '@types/route-parser': 0.1.4 | 246 | '@types/route-parser': 0.1.4 |
247 | '@types/sass': 1.43.1 | 247 | '@types/sass': 1.43.1 |
248 | '@types/tar': 6.1.3 | 248 | '@types/tar': 6.1.3 |
249 | '@types/uuid': 8.3.4 | 249 | '@types/uuid': 9.0.0 |
250 | '@types/validator': 13.7.11 | 250 | '@types/validator': 13.7.11 |
251 | '@typescript-eslint/eslint-plugin': 5.49.0_iu322prlnwsygkcra5kbpy22si | 251 | '@typescript-eslint/eslint-plugin': 5.49.0_iu322prlnwsygkcra5kbpy22si |
252 | '@typescript-eslint/parser': 5.49.0_7uibuqfxkfaozanbtbziikiqje | 252 | '@typescript-eslint/parser': 5.49.0_7uibuqfxkfaozanbtbziikiqje |
@@ -2341,8 +2341,8 @@ packages: | |||
2341 | minipass: 3.3.5 | 2341 | minipass: 3.3.5 |
2342 | dev: true | 2342 | dev: true |
2343 | 2343 | ||
2344 | /@types/uuid/8.3.4: | 2344 | /@types/uuid/9.0.0: |
2345 | resolution: {integrity: sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw==} | 2345 | resolution: {integrity: sha512-kr90f+ERiQtKWMz5rP32ltJ/BtULDI5RVO0uavn1HQUOwjx0R1h0rnDYNL0CepF1zL5bSY6FISAfd9tOdDhU5Q==} |
2346 | dev: true | 2346 | dev: true |
2347 | 2347 | ||
2348 | /@types/validator/13.7.11: | 2348 | /@types/validator/13.7.11: |
@@ -11680,6 +11680,11 @@ packages: | |||
11680 | hasBin: true | 11680 | hasBin: true |
11681 | dev: false | 11681 | dev: false |
11682 | 11682 | ||
11683 | /uuid/9.0.0: | ||
11684 | resolution: {integrity: sha512-MXcSTerfPa4uqyzStbRoTgt5XIe3x5+42+q1sDuy3R5MDk66URdLMOZe5aPX/SQd+kuYAh0FdP/pO28IkQyTeg==} | ||
11685 | hasBin: true | ||
11686 | dev: false | ||
11687 | |||
11683 | /v8-compile-cache-lib/3.0.1: | 11688 | /v8-compile-cache-lib/3.0.1: |
11684 | resolution: {integrity: sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==} | 11689 | resolution: {integrity: sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==} |
11685 | dev: true | 11690 | 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 @@ | |||
1 | import { ipcRenderer } from 'electron'; | 1 | import { ipcRenderer } from 'electron'; |
2 | 2 | ||
3 | import { v1 as uuidV1 } from 'uuid'; | 3 | import { v4 as uuidV4 } from 'uuid'; |
4 | 4 | ||
5 | const debug = require('../preload-safe-debug')('Ferdium:Notifications'); | 5 | const debug = require('../preload-safe-debug')('Ferdium:Notifications'); |
6 | 6 | ||
@@ -12,7 +12,7 @@ export class NotificationsHandler { | |||
12 | return new Promise(resolve => { | 12 | return new Promise(resolve => { |
13 | debug('New notification', title, options); | 13 | debug('New notification', title, options); |
14 | 14 | ||
15 | const notificationId = uuidV1(); | 15 | const notificationId = uuidV4(); |
16 | 16 | ||
17 | ipcRenderer.sendToHost( | 17 | ipcRenderer.sendToHost( |
18 | 'notification', | 18 | 'notification', |