@hebcal/icalendar 4.18.4 → 4.18.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +8 -3
- package/dist/index.mjs +8 -3
- package/package.json +15 -19
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @hebcal/icalendar v4.18.
|
|
1
|
+
/*! @hebcal/icalendar v4.18.6 */
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var core = require('@hebcal/core');
|
|
@@ -6,13 +6,14 @@ var murmurhash3 = require('murmurhash3');
|
|
|
6
6
|
var restApi = require('@hebcal/rest-api');
|
|
7
7
|
var fs = require('fs');
|
|
8
8
|
|
|
9
|
-
const version="4.18.
|
|
9
|
+
const version="4.18.6";
|
|
10
10
|
|
|
11
11
|
const VTIMEZONE = {};
|
|
12
12
|
const CATEGORY = {
|
|
13
13
|
candles: 'Holiday',
|
|
14
14
|
dafyomi: 'Daf Yomi',
|
|
15
15
|
mishnayomi: 'Mishna Yomi',
|
|
16
|
+
nachyomi: 'Nach Yomi',
|
|
16
17
|
yerushalmi: 'Yerushalmi Yomi',
|
|
17
18
|
havdalah: 'Holiday',
|
|
18
19
|
hebdate: null,
|
|
@@ -78,6 +79,10 @@ class IcalEvent {
|
|
|
78
79
|
this.locationName = ev.locationName;
|
|
79
80
|
} else if (mask & core.flags.DAF_YOMI) {
|
|
80
81
|
this.locationName = core.Locale.gettext('Daf Yomi');
|
|
82
|
+
} else if (mask & core.flags.YERUSHALMI_YOMI) {
|
|
83
|
+
this.locationName = core.Locale.gettext('Yerushalmi Yomi');
|
|
84
|
+
} else if (mask & core.flags.NACH_YOMI) {
|
|
85
|
+
this.locationName = core.Locale.gettext('Nach Yomi');
|
|
81
86
|
} else if (mask & core.flags.MISHNA_YOMI) {
|
|
82
87
|
this.locationName = core.Locale.gettext('Mishna Yomi');
|
|
83
88
|
} else if (timed && options.location && options.location.name) {
|
|
@@ -310,7 +315,7 @@ function eventToIcal(ev, options) {
|
|
|
310
315
|
return ical.toString();
|
|
311
316
|
}
|
|
312
317
|
const torahMemoCache = new Map();
|
|
313
|
-
const HOLIDAY_IGNORE_MASK = core.flags.DAF_YOMI | core.flags.OMER_COUNT | core.flags.SHABBAT_MEVARCHIM | core.flags.MOLAD | core.flags.USER_EVENT | core.flags.MISHNA_YOMI | core.flags.YERUSHALMI_YOMI | core.flags.HEBREW_DATE;
|
|
318
|
+
const HOLIDAY_IGNORE_MASK = core.flags.DAF_YOMI | core.flags.OMER_COUNT | core.flags.SHABBAT_MEVARCHIM | core.flags.MOLAD | core.flags.USER_EVENT | core.flags.MISHNA_YOMI | core.flags.YERUSHALMI_YOMI | core.flags.NACH_YOMI | core.flags.HEBREW_DATE;
|
|
314
319
|
|
|
315
320
|
/**
|
|
316
321
|
* @private
|
package/dist/index.mjs
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
/*! @hebcal/icalendar v4.18.
|
|
1
|
+
/*! @hebcal/icalendar v4.18.6 */
|
|
2
2
|
import { flags, Locale, greg } from '@hebcal/core';
|
|
3
3
|
import { murmur32HexSync } from 'murmurhash3';
|
|
4
4
|
import { shouldRenderBrief, pad2, getEventCategories, makeAnchor, pad4, getHolidayDescription, getCalendarTitle, appendIsraelAndTracking, makeTorahMemoText } from '@hebcal/rest-api';
|
|
5
5
|
import { promises } from 'fs';
|
|
6
6
|
|
|
7
|
-
const version="4.18.
|
|
7
|
+
const version="4.18.6";
|
|
8
8
|
|
|
9
9
|
const VTIMEZONE = {};
|
|
10
10
|
const CATEGORY = {
|
|
11
11
|
candles: 'Holiday',
|
|
12
12
|
dafyomi: 'Daf Yomi',
|
|
13
13
|
mishnayomi: 'Mishna Yomi',
|
|
14
|
+
nachyomi: 'Nach Yomi',
|
|
14
15
|
yerushalmi: 'Yerushalmi Yomi',
|
|
15
16
|
havdalah: 'Holiday',
|
|
16
17
|
hebdate: null,
|
|
@@ -76,6 +77,10 @@ class IcalEvent {
|
|
|
76
77
|
this.locationName = ev.locationName;
|
|
77
78
|
} else if (mask & flags.DAF_YOMI) {
|
|
78
79
|
this.locationName = Locale.gettext('Daf Yomi');
|
|
80
|
+
} else if (mask & flags.YERUSHALMI_YOMI) {
|
|
81
|
+
this.locationName = Locale.gettext('Yerushalmi Yomi');
|
|
82
|
+
} else if (mask & flags.NACH_YOMI) {
|
|
83
|
+
this.locationName = Locale.gettext('Nach Yomi');
|
|
79
84
|
} else if (mask & flags.MISHNA_YOMI) {
|
|
80
85
|
this.locationName = Locale.gettext('Mishna Yomi');
|
|
81
86
|
} else if (timed && options.location && options.location.name) {
|
|
@@ -308,7 +313,7 @@ function eventToIcal(ev, options) {
|
|
|
308
313
|
return ical.toString();
|
|
309
314
|
}
|
|
310
315
|
const torahMemoCache = new Map();
|
|
311
|
-
const HOLIDAY_IGNORE_MASK = flags.DAF_YOMI | flags.OMER_COUNT | flags.SHABBAT_MEVARCHIM | flags.MOLAD | flags.USER_EVENT | flags.MISHNA_YOMI | flags.YERUSHALMI_YOMI | flags.HEBREW_DATE;
|
|
316
|
+
const HOLIDAY_IGNORE_MASK = flags.DAF_YOMI | flags.OMER_COUNT | flags.SHABBAT_MEVARCHIM | flags.MOLAD | flags.USER_EVENT | flags.MISHNA_YOMI | flags.YERUSHALMI_YOMI | flags.NACH_YOMI | flags.HEBREW_DATE;
|
|
312
317
|
|
|
313
318
|
/**
|
|
314
319
|
* @private
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hebcal/icalendar",
|
|
3
|
-
"version": "4.18.
|
|
3
|
+
"version": "4.18.6",
|
|
4
4
|
"author": "Michael J. Radwin (https://github.com/mjradwin)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ical",
|
|
@@ -11,6 +11,10 @@
|
|
|
11
11
|
"description": "Jewish holidays and Hebrew calendar as iCalendar RFC 2445",
|
|
12
12
|
"main": "dist/index.js",
|
|
13
13
|
"module": "dist/index.mjs",
|
|
14
|
+
"exports": {
|
|
15
|
+
"import": "./dist/index.mjs",
|
|
16
|
+
"require": "./dist/index.js"
|
|
17
|
+
},
|
|
14
18
|
"typings": "icalendar.d.ts",
|
|
15
19
|
"files": [
|
|
16
20
|
"dist",
|
|
@@ -24,8 +28,8 @@
|
|
|
24
28
|
"url": "https://github.com/hebcal/hebcal-icalendar/issues"
|
|
25
29
|
},
|
|
26
30
|
"dependencies": {
|
|
27
|
-
"@hebcal/core": "^3.
|
|
28
|
-
"@hebcal/rest-api": "^4.3.
|
|
31
|
+
"@hebcal/core": "^3.48.2",
|
|
32
|
+
"@hebcal/rest-api": "^4.3.14",
|
|
29
33
|
"murmurhash3": "^0.5.0"
|
|
30
34
|
},
|
|
31
35
|
"scripts": {
|
|
@@ -37,28 +41,20 @@
|
|
|
37
41
|
},
|
|
38
42
|
"license": "BSD-2-Clause",
|
|
39
43
|
"ava": {
|
|
40
|
-
"
|
|
41
|
-
"src/**/*.spec.js"
|
|
42
|
-
],
|
|
43
|
-
"require": [
|
|
44
|
-
"@babel/register",
|
|
45
|
-
"regenerator-runtime/runtime"
|
|
46
|
-
],
|
|
47
|
-
"inherit": true,
|
|
48
|
-
"verbose": true
|
|
44
|
+
"require": ["@babel/register"]
|
|
49
45
|
},
|
|
50
46
|
"devDependencies": {
|
|
51
|
-
"@babel/core": "^7.20.
|
|
47
|
+
"@babel/core": "^7.20.5",
|
|
52
48
|
"@babel/preset-env": "^7.20.2",
|
|
53
49
|
"@babel/register": "^7.18.9",
|
|
54
|
-
"@rollup/plugin-babel": "^6.0.
|
|
55
|
-
"@rollup/plugin-commonjs": "^
|
|
56
|
-
"@rollup/plugin-json": "^
|
|
50
|
+
"@rollup/plugin-babel": "^6.0.3",
|
|
51
|
+
"@rollup/plugin-commonjs": "^24.0.0",
|
|
52
|
+
"@rollup/plugin-json": "^6.0.0",
|
|
57
53
|
"ava": "^5.1.0",
|
|
58
|
-
"eslint": "^8.
|
|
54
|
+
"eslint": "^8.30.0",
|
|
59
55
|
"eslint-config-google": "^0.14.0",
|
|
60
56
|
"jsdoc": "^4.0.0",
|
|
61
|
-
"jsdoc-to-markdown": "^
|
|
62
|
-
"rollup": "^3.
|
|
57
|
+
"jsdoc-to-markdown": "^8.0.0",
|
|
58
|
+
"rollup": "^3.7.5"
|
|
63
59
|
}
|
|
64
60
|
}
|