Skip to content

Commit 8f4b71b

Browse files
authored
Drop uuid dependecy (#127)
1 parent 90e4cfe commit 8f4b71b

File tree

3 files changed

+4
-14
lines changed

3 files changed

+4
-14
lines changed

index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
const { name, version, homepage } = require('./package');
44

55
const urlParser = require('url');
6-
const { v1 } = require('uuid');
6+
const crypto = require('crypto');
77
const dayjs = require('dayjs');
88
const debug = require('debug')(name);
99
const ignoredEvents = require('./lib/ignoredEvents');
@@ -89,7 +89,7 @@ module.exports = {
8989
if (pages.some(page => page.__frameId === rootFrame)) {
9090
continue;
9191
}
92-
currentPageId = v1();
92+
currentPageId = crypto.randomUUID();
9393
const title =
9494
method === 'Page.navigatedWithinDocument' ? params.url : '';
9595
const page = {

package-lock.json

+1-10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
"dependencies": {
4646
"dayjs": "1.11.7",
4747
"debug": "4.3.4",
48-
"tough-cookie": "5.0.0",
49-
"uuid": "9.0.0"
48+
"tough-cookie": "5.0.0"
5049
}
5150
}

0 commit comments

Comments
 (0)