@hebcal/icalendar 6.1.3 → 6.2.0
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 +11 -11
- package/dist/pkgVersion.d.ts +1 -1
- package/package.json +12 -15
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @hebcal/icalendar v6.
|
|
1
|
+
/*! @hebcal/icalendar v6.2.0 */
|
|
2
2
|
import { flags, Locale, greg } from '@hebcal/core';
|
|
3
3
|
import { murmur32HexSync } from 'murmurhash3';
|
|
4
4
|
import { pad2, pad4 } from '@hebcal/hdate';
|
|
@@ -7,7 +7,7 @@ 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.
|
|
10
|
+
const version = '6.2.0';
|
|
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
386
|
memo = getHolidayDescription(ev);
|
|
389
387
|
}
|
|
390
388
|
if (!memo) {
|
|
391
|
-
const
|
|
392
|
-
if (typeof
|
|
393
|
-
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';
|
|
@@ -432,7 +432,7 @@ async function icalEventsToString(icals, options) {
|
|
|
432
432
|
if (!options)
|
|
433
433
|
throw new TypeError('Invalid options object');
|
|
434
434
|
const stream = [];
|
|
435
|
-
const locale = options.locale ||
|
|
435
|
+
const locale = options.locale || 'en';
|
|
436
436
|
const uclang = locale.toUpperCase();
|
|
437
437
|
const opts = Object.assign({}, options);
|
|
438
438
|
opts.dtstamp = opts.dtstamp || IcalEvent.makeDtstamp(new Date());
|
package/dist/pkgVersion.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "6.
|
|
1
|
+
export declare const version = "6.2.0";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hebcal/icalendar",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.2.0",
|
|
4
4
|
"author": "Michael J. Radwin (https://github.com/mjradwin)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ical",
|
|
@@ -11,9 +11,6 @@
|
|
|
11
11
|
"description": "Jewish holidays and Hebrew calendar as iCalendar RFC 2445",
|
|
12
12
|
"module": "dist/index.js",
|
|
13
13
|
"type": "module",
|
|
14
|
-
"exports": {
|
|
15
|
-
".": "./dist/index.js"
|
|
16
|
-
},
|
|
17
14
|
"typings": "dist/icalendar.d.ts",
|
|
18
15
|
"engines": {
|
|
19
16
|
"node": ">= 18.0.0"
|
|
@@ -29,9 +26,9 @@
|
|
|
29
26
|
"url": "https://github.com/hebcal/hebcal-icalendar/issues"
|
|
30
27
|
},
|
|
31
28
|
"dependencies": {
|
|
32
|
-
"@hebcal/core": "^
|
|
33
|
-
"@hebcal/hdate": "^0.
|
|
34
|
-
"@hebcal/rest-api": "^6.
|
|
29
|
+
"@hebcal/core": "^6.0.0",
|
|
30
|
+
"@hebcal/hdate": "^0.21.0",
|
|
31
|
+
"@hebcal/rest-api": "^6.2.0",
|
|
35
32
|
"murmurhash3": "^0.5.0",
|
|
36
33
|
"tslib": "^2.8.1"
|
|
37
34
|
},
|
|
@@ -50,14 +47,14 @@
|
|
|
50
47
|
},
|
|
51
48
|
"license": "BSD-2-Clause",
|
|
52
49
|
"devDependencies": {
|
|
53
|
-
"@hebcal/learning": "^6.
|
|
54
|
-
"@rollup/plugin-typescript": "^12.
|
|
55
|
-
"@types/jest": "^
|
|
56
|
-
"@types/node": "
|
|
50
|
+
"@hebcal/learning": "^6.6.0",
|
|
51
|
+
"@rollup/plugin-typescript": "^12.3.0",
|
|
52
|
+
"@types/jest": "^30.0.0",
|
|
53
|
+
"@types/node": "24.9.1",
|
|
57
54
|
"gts": "^5.3.1",
|
|
58
|
-
"rollup": "^4.
|
|
59
|
-
"typedoc": "^0.28.
|
|
60
|
-
"typescript": "^5.
|
|
61
|
-
"vitest": "^
|
|
55
|
+
"rollup": "^4.52.5",
|
|
56
|
+
"typedoc": "^0.28.14",
|
|
57
|
+
"typescript": "^5.9.3",
|
|
58
|
+
"vitest": "^4.0.3"
|
|
62
59
|
}
|
|
63
60
|
}
|