Skip to content

Commit

Permalink
Revert "feat: replace uuid dependency with native crypto method"
Browse files Browse the repository at this point in the history
This reverts commit 6628515.
  • Loading branch information
sebbo2002 committed Jan 14, 2025
1 parent a7f2305 commit 2c95352
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
11 changes: 11 additions & 0 deletions package-lock.json

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

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"bugs": {
"url": "http://github.com/sebbo2002/ical-generator/issues"
},
"dependencies": {
"uuid-random": "^1.3.2"
},
"description": "ical-generator is a small piece of code which generates ical calendar files",
"devDependencies": {
"@eslint/js": "^9.17.0",
Expand Down
4 changes: 2 additions & 2 deletions src/event.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

import { randomUUID } from 'crypto';
import uuid from 'uuid-random';
import {
addOrGetCustomAttributes,
checkDate,
Expand Down Expand Up @@ -178,7 +178,7 @@ export default class ICalEvent {
*/
constructor(data: ICalEventData, calendar: ICalCalendar) {
this.data = {
id: randomUUID(),
id: uuid(),
sequence: 0,
start: new Date(),
end: null,
Expand Down

0 comments on commit 2c95352

Please sign in to comment.