Skip to content

Commit 34f44a1

Browse files
committed
refactor: use global crypto.randomUUID instead of named import
1 parent be169c7 commit 34f44a1

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/event.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
'use strict';
22

3-
import { randomUUID } from 'node:crypto';
4-
53
import ICalAlarm, { type ICalAlarmData } from './alarm.ts';
64
import ICalAttendee, { type ICalAttendeeData } from './attendee.ts';
75
import ICalCalendar from './calendar.ts';
@@ -196,7 +194,7 @@ export default class ICalEvent {
196194
description: null,
197195
end: null,
198196
floating: false,
199-
id: randomUUID(),
197+
id: crypto.randomUUID(),
200198
lastModified: null,
201199
location: null,
202200
organizer: null,

0 commit comments

Comments
 (0)