fix: adjust ical.js to fix import
https://github.com/kewisch/ical.js/issues/329
This commit is contained in:
parent
495fb57675
commit
864a3739b3
|
@ -1,5 +1,4 @@
|
||||||
import ICAL from './lib/ical.js';
|
import ICAL from './lib/ical.timezones';
|
||||||
import './lib/ical.timezones.js';
|
|
||||||
import fs from 'fs';
|
import fs from 'fs';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
/* jshint ignore:start */
|
/* jshint ignore:start */
|
||||||
if (typeof module === 'object') {
|
if (typeof module === 'object') {
|
||||||
// CommonJS, where exports may be different each time.
|
// CommonJS, where exports may be different each time.
|
||||||
ICAL = module.exports;
|
var ICAL = module.exports;
|
||||||
} else if (typeof ICAL !== 'object') {/* istanbul ignore next */
|
} else if (typeof ICAL !== 'object') {/* istanbul ignore next */
|
||||||
/** @ignore */
|
/** @ignore */
|
||||||
this.ICAL = {};
|
this.ICAL = {};
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import ICAL from 'ical.js';
|
import ICAL from '../src/lib/ical.timezones';
|
||||||
import fs from 'fs';
|
import fs from 'fs';
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
|
|
||||||
|
|
|
@ -3,9 +3,9 @@ NAME:EAT Event
|
||||||
VERSION:2.0
|
VERSION:2.0
|
||||||
BEGIN:VEVENT
|
BEGIN:VEVENT
|
||||||
UID:20231108T090000+0300-001@example.com
|
UID:20231108T090000+0300-001@example.com
|
||||||
DTSTAMP:20231108T090000+0300
|
DTSTAMP:20231101T090000+03:00
|
||||||
DTSTART:20231108T090000+0300
|
DTSTART:20231108T090000+03:00
|
||||||
DTEND:20231108T100000+0300
|
DTEND:20231108T100000+03:00
|
||||||
SUMMARY:EAT Event
|
SUMMARY:EAT Event
|
||||||
END:VEVENT
|
END:VEVENT
|
||||||
END:VCALENDAR
|
END:VCALENDAR
|
||||||
|
|
Loading…
Reference in New Issue