Skip to content

Commit 0d0e46a

Browse files
committed
Use modularized imports from @hebcal/core
1 parent 1fecdfc commit 0d0e46a

File tree

4 files changed

+10
-14
lines changed

4 files changed

+10
-14
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@hebcal/icalendar",
3-
"version": "6.3.2",
3+
"version": "6.3.3",
44
"author": "Michael J. Radwin (https://github.com/mjradwin)",
55
"keywords": [
66
"ical",

rollup.config.cjs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,6 @@ module.exports = [
88
input: 'src/icalendar.ts',
99
output: [{file: pkg.module, format: 'es', name: pkg.name, banner}],
1010
plugins: [typescript()],
11-
external: [
12-
'@hebcal/hdate',
13-
'@hebcal/core',
14-
/@hebcal\/rest-api/,
15-
'fs',
16-
'stream',
17-
'murmurhash3',
18-
],
11+
external: [/@hebcal\//, 'fs', 'stream', 'murmurhash3'],
1912
},
2013
];

src/icalendar.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
import {Locale, greg, flags, CalOptions, Event, OmerEvent} from '@hebcal/core';
1+
import {Event, flags} from '@hebcal/core/dist/esm/event';
2+
import {CalOptions} from '@hebcal/core/dist/esm/CalOptions';
3+
import {Locale} from '@hebcal/core/dist/esm/locale';
4+
import {OmerEvent} from '@hebcal/core/dist/esm/omer';
25
import {murmur32HexSync} from 'murmurhash3';
3-
import {pad2, pad4} from '@hebcal/hdate';
6+
import {pad2, pad4, isDate} from '@hebcal/hdate';
47
import {
58
getCalendarTitle,
69
getEventCategories,
@@ -211,7 +214,7 @@ export class IcalEvent {
211214
return 'TRIGGER:' + evAlarm;
212215
} else if (typeof evAlarm === 'boolean' && !evAlarm) {
213216
return null;
214-
} else if (greg.isDate(evAlarm)) {
217+
} else if (isDate(evAlarm)) {
215218
const alarmDt = evAlarm as Date;
216219
alarmDt.setSeconds(0);
217220
return 'TRIGGER;VALUE=DATE-TIME:' + IcalEvent.makeDtstamp(alarmDt);

0 commit comments

Comments
 (0)