Skip to content

Commit

Permalink
Merge pull request #634 from sebbo2002/develop
Browse files Browse the repository at this point in the history
✏️ 8.1.1
  • Loading branch information
sebbo2002 authored Jan 14, 2025
2 parents 29e90a6 + 957a2bb commit cbb777b
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
15 changes: 13 additions & 2 deletions package-lock.json

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

5 changes: 4 additions & 1 deletion 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 Expand Up @@ -126,5 +129,5 @@
"test": "mocha"
},
"type": "module",
"version": "8.1.0"
"version": "8.1.1-develop.1"
}
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 cbb777b

Please sign in to comment.