Skip to content

Commit

Permalink
Drop uuid dependecy (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
soulgalore authored Oct 5, 2024
1 parent 90e4cfe commit 8f4b71b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 14 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const { name, version, homepage } = require('./package');

const urlParser = require('url');
const { v1 } = require('uuid');
const crypto = require('crypto');
const dayjs = require('dayjs');
const debug = require('debug')(name);
const ignoredEvents = require('./lib/ignoredEvents');
Expand Down Expand Up @@ -89,7 +89,7 @@ module.exports = {
if (pages.some(page => page.__frameId === rootFrame)) {
continue;
}
currentPageId = v1();
currentPageId = crypto.randomUUID();
const title =
method === 'Page.navigatedWithinDocument' ? params.url : '';
const page = {
Expand Down
11 changes: 1 addition & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
"dependencies": {
"dayjs": "1.11.7",
"debug": "4.3.4",
"tough-cookie": "5.0.0",
"uuid": "9.0.0"
"tough-cookie": "5.0.0"
}
}

0 comments on commit 8f4b71b

Please sign in to comment.