@hebcal/icalendar 6.1.2 → 6.1.4
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 +14 -14
- package/dist/pkgVersion.d.ts +1 -1
- package/package.json +12 -12
package/dist/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/*! @hebcal/icalendar v6.1.
|
|
1
|
+
/*! @hebcal/icalendar v6.1.4 */
|
|
2
2
|
import { flags, Locale, greg } from '@hebcal/core';
|
|
3
3
|
import { murmur32HexSync } from 'murmurhash3';
|
|
4
4
|
import { pad2, pad4 } from '@hebcal/hdate';
|
|
5
|
-
import { shouldRenderBrief, getEventCategories,
|
|
5
|
+
import { shouldRenderBrief, getEventCategories, getCalendarTitle, getHolidayDescription, appendIsraelAndTracking, makeTorahMemoText } from '@hebcal/rest-api/dist/esm/common';
|
|
6
6
|
import { makeAnchor } from '@hebcal/rest-api/dist/esm/makeAnchor';
|
|
7
7
|
import { promises } from 'fs';
|
|
8
8
|
|
|
9
9
|
// DO NOT EDIT THIS AUTO-GENERATED FILE!
|
|
10
|
-
const version = '6.1.
|
|
10
|
+
const version = '6.1.4';
|
|
11
11
|
|
|
12
12
|
const vtimezoneCache = new Map();
|
|
13
13
|
const CATEGORY = {
|
|
@@ -360,13 +360,13 @@ function makeTorahMemo(ev, il) {
|
|
|
360
360
|
* @private
|
|
361
361
|
*/
|
|
362
362
|
function createMemo(ev, options) {
|
|
363
|
-
let memo = ev.memo;
|
|
364
|
-
if (
|
|
363
|
+
let memo = ev.memo || '';
|
|
364
|
+
if (memo.length && memo.indexOf('\n') !== -1) {
|
|
365
365
|
memo = memo.replace(/\n/g, '\\n');
|
|
366
366
|
}
|
|
367
367
|
const desc = ev.getDesc();
|
|
368
368
|
if (desc === 'Havdalah' || desc === 'Candle lighting') {
|
|
369
|
-
return memo
|
|
369
|
+
return memo;
|
|
370
370
|
}
|
|
371
371
|
const mask = ev.getFlags();
|
|
372
372
|
if (mask & flags.OMER_COUNT) {
|
|
@@ -382,23 +382,23 @@ function createMemo(ev, options) {
|
|
|
382
382
|
'\\n\\n' +
|
|
383
383
|
sefira);
|
|
384
384
|
}
|
|
385
|
-
const url = appendTrackingToUrl(ev.url(), options);
|
|
386
|
-
const torahMemo = makeTorahMemo(ev, options.il);
|
|
387
385
|
if (!memo) {
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
memo =
|
|
386
|
+
memo = getHolidayDescription(ev);
|
|
387
|
+
}
|
|
388
|
+
if (!memo) {
|
|
389
|
+
const linkEv = ev.linkedEvent;
|
|
390
|
+
if (typeof linkEv !== 'undefined' && linkEv.getDesc() !== ev.getDesc()) {
|
|
391
|
+
memo = linkEv.render(options.locale);
|
|
394
392
|
}
|
|
395
393
|
}
|
|
394
|
+
const torahMemo = makeTorahMemo(ev, options.il);
|
|
396
395
|
if (torahMemo) {
|
|
397
396
|
if (memo.length) {
|
|
398
397
|
memo += '\\n\\n';
|
|
399
398
|
}
|
|
400
399
|
memo += torahMemo;
|
|
401
400
|
}
|
|
401
|
+
const url = appendTrackingToUrl(ev.url(), options);
|
|
402
402
|
if (url) {
|
|
403
403
|
if (memo.length) {
|
|
404
404
|
memo += '\\n\\n';
|
package/dist/pkgVersion.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "6.1.
|
|
1
|
+
export declare const version = "6.1.4";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hebcal/icalendar",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.4",
|
|
4
4
|
"author": "Michael J. Radwin (https://github.com/mjradwin)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ical",
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"url": "https://github.com/hebcal/hebcal-icalendar/issues"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@hebcal/core": "^5.
|
|
33
|
-
"@hebcal/hdate": "^0.
|
|
34
|
-
"@hebcal/rest-api": "^6.1.
|
|
32
|
+
"@hebcal/core": "^5.10.1",
|
|
33
|
+
"@hebcal/hdate": "^0.14.5",
|
|
34
|
+
"@hebcal/rest-api": "^6.1.7",
|
|
35
35
|
"murmurhash3": "^0.5.0",
|
|
36
36
|
"tslib": "^2.8.1"
|
|
37
37
|
},
|
|
@@ -50,14 +50,14 @@
|
|
|
50
50
|
},
|
|
51
51
|
"license": "BSD-2-Clause",
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@hebcal/learning": "^
|
|
54
|
-
"@rollup/plugin-typescript": "^12.1.
|
|
55
|
-
"@types/jest": "^
|
|
56
|
-
"@types/node": "
|
|
53
|
+
"@hebcal/learning": "^6.4.4",
|
|
54
|
+
"@rollup/plugin-typescript": "^12.1.4",
|
|
55
|
+
"@types/jest": "^30.0.0",
|
|
56
|
+
"@types/node": "24.5.2",
|
|
57
57
|
"gts": "^5.3.1",
|
|
58
|
-
"rollup": "^4.
|
|
59
|
-
"typedoc": "^0.
|
|
60
|
-
"typescript": "^5.
|
|
61
|
-
"vitest": "^2.
|
|
58
|
+
"rollup": "^4.52.3",
|
|
59
|
+
"typedoc": "^0.28.13",
|
|
60
|
+
"typescript": "^5.9.2",
|
|
61
|
+
"vitest": "^3.2.4"
|
|
62
62
|
}
|
|
63
63
|
}
|