Skip to content

Commit

Permalink
fix: adjust ical.js to fix import
Browse files Browse the repository at this point in the history
  • Loading branch information
xeruf committed Nov 14, 2024
1 parent 495fb57 commit 864a373
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
3 changes: 1 addition & 2 deletions src/calendarUtil.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import ICAL from './lib/ical.js';
import './lib/ical.timezones.js';
import ICAL from './lib/ical.timezones';
import fs from 'fs';
import path from 'path';
import axios from 'axios';
Expand Down
2 changes: 1 addition & 1 deletion src/lib/ical.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/* jshint ignore:start */
if (typeof module === 'object') {
// CommonJS, where exports may be different each time.
ICAL = module.exports;
var ICAL = module.exports;
} else if (typeof ICAL !== 'object') {/* istanbul ignore next */
/** @ignore */
this.ICAL = {};
Expand Down
2 changes: 1 addition & 1 deletion test/calendarUtil.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import ICAL from 'ical.js';
import ICAL from '../src/lib/ical.timezones';
import fs from 'fs';
import axios from 'axios';

Expand Down
8 changes: 4 additions & 4 deletions test/test_calendars/eat_time_zone_event.ics
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ NAME:EAT Event
VERSION:2.0
BEGIN:VEVENT
UID:20231108T090000[email protected]
DTSTAMP:20231108T090000+0300
DTSTART:20231108T090000+0300
DTEND:20231108T100000+0300
DTSTAMP:20231101T090000+03:00
DTSTART:20231108T090000+03:00
DTEND:20231108T100000+03:00
SUMMARY:EAT Event
END:VEVENT
END:VCALENDAR
END:VCALENDAR

0 comments on commit 864a373

Please sign in to comment.