@hebcal/icalendar 6.0.1 → 6.1.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.mjs → index.js} +16 -8
- package/dist/pkgVersion.d.ts +1 -1
- package/package.json +10 -11
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
/*! @hebcal/icalendar v6.0
|
|
2
|
-
import {
|
|
3
|
-
import { flags } from '@hebcal/core';
|
|
1
|
+
/*! @hebcal/icalendar v6.1.0 */
|
|
2
|
+
import { flags, Locale, greg } from '@hebcal/core';
|
|
4
3
|
import { murmur32HexSync } from 'murmurhash3';
|
|
5
|
-
import {
|
|
4
|
+
import { pad2, pad4 } from '@hebcal/hdate';
|
|
5
|
+
import { shouldRenderBrief, getEventCategories, getHolidayDescription, getCalendarTitle, appendIsraelAndTracking, makeTorahMemoText } from '@hebcal/rest-api/dist/esm/common';
|
|
6
|
+
import { makeAnchor } from '@hebcal/rest-api/dist/esm/makeAnchor';
|
|
6
7
|
import { promises } from 'fs';
|
|
7
8
|
|
|
8
9
|
// DO NOT EDIT THIS AUTO-GENERATED FILE!
|
|
9
|
-
const version = '6.0
|
|
10
|
+
const version = '6.1.0';
|
|
10
11
|
|
|
11
12
|
const vtimezoneCache = new Map();
|
|
12
13
|
const CATEGORY = {
|
|
@@ -42,7 +43,13 @@ function appendTrackingToUrl(url, options) {
|
|
|
42
43
|
if (!url) {
|
|
43
44
|
return null;
|
|
44
45
|
}
|
|
45
|
-
|
|
46
|
+
let utmSource = options.utmSource;
|
|
47
|
+
if (!utmSource) {
|
|
48
|
+
const u = new URL(url);
|
|
49
|
+
if (u.host === 'www.hebcal.com') {
|
|
50
|
+
utmSource = 'js';
|
|
51
|
+
}
|
|
52
|
+
}
|
|
46
53
|
const utmMedium = options.utmMedium || 'icalendar';
|
|
47
54
|
const utmCampaign = options.utmCampaign;
|
|
48
55
|
return appendIsraelAndTracking(url, options.il, utmSource, utmMedium, utmCampaign);
|
|
@@ -378,8 +385,9 @@ function createMemo(ev, options) {
|
|
|
378
385
|
const url = appendTrackingToUrl(ev.url(), options);
|
|
379
386
|
const torahMemo = makeTorahMemo(ev, options.il);
|
|
380
387
|
if (!memo) {
|
|
381
|
-
|
|
382
|
-
|
|
388
|
+
const linkedEvent = ev.linkedEvent;
|
|
389
|
+
if (typeof linkedEvent !== 'undefined') {
|
|
390
|
+
memo = linkedEvent.render(options.locale);
|
|
383
391
|
}
|
|
384
392
|
else {
|
|
385
393
|
memo = getHolidayDescription(ev);
|
package/dist/pkgVersion.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "6.0
|
|
1
|
+
export declare const version = "6.1.0";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hebcal/icalendar",
|
|
3
|
-
"version": "6.0
|
|
3
|
+
"version": "6.1.0",
|
|
4
4
|
"author": "Michael J. Radwin (https://github.com/mjradwin)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ical",
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
"hebcal"
|
|
10
10
|
],
|
|
11
11
|
"description": "Jewish holidays and Hebrew calendar as iCalendar RFC 2445",
|
|
12
|
-
"module": "dist/index.
|
|
12
|
+
"module": "dist/index.js",
|
|
13
13
|
"type": "module",
|
|
14
14
|
"exports": {
|
|
15
|
-
"import": "./dist/index.
|
|
15
|
+
"import": "./dist/index.js",
|
|
16
16
|
"types": "./dist/icalendar.d.ts"
|
|
17
17
|
},
|
|
18
18
|
"typings": "dist/icalendar.d.ts",
|
|
@@ -24,15 +24,15 @@
|
|
|
24
24
|
],
|
|
25
25
|
"repository": {
|
|
26
26
|
"type": "git",
|
|
27
|
-
"url": "https://github.com/hebcal/hebcal-icalendar.git"
|
|
27
|
+
"url": "git+https://github.com/hebcal/hebcal-icalendar.git"
|
|
28
28
|
},
|
|
29
29
|
"bugs": {
|
|
30
30
|
"url": "https://github.com/hebcal/hebcal-icalendar/issues"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@hebcal/core": "^5.8.
|
|
33
|
+
"@hebcal/core": "^5.8.3",
|
|
34
34
|
"@hebcal/hdate": "^0.12.0",
|
|
35
|
-
"@hebcal/rest-api": "^
|
|
35
|
+
"@hebcal/rest-api": "^6.1.0",
|
|
36
36
|
"murmurhash3": "^0.5.0",
|
|
37
37
|
"tslib": "^2.8.1"
|
|
38
38
|
},
|
|
@@ -56,14 +56,13 @@
|
|
|
56
56
|
"@babel/preset-typescript": "^7.26.0",
|
|
57
57
|
"@hebcal/learning": "^5.1.2",
|
|
58
58
|
"@rollup/plugin-commonjs": "^28.0.1",
|
|
59
|
-
"@rollup/plugin-json": "^6.1.0",
|
|
60
59
|
"@rollup/plugin-typescript": "^12.1.1",
|
|
61
60
|
"@types/jest": "^29.5.14",
|
|
62
|
-
"@types/node": "22.
|
|
61
|
+
"@types/node": "22.10.1",
|
|
63
62
|
"gts": "^5.3.1",
|
|
64
63
|
"jest": "^29.7.0",
|
|
65
|
-
"rollup": "^4.
|
|
66
|
-
"typedoc": "^0.
|
|
67
|
-
"typescript": "^5.
|
|
64
|
+
"rollup": "^4.28.1",
|
|
65
|
+
"typedoc": "^0.27.3",
|
|
66
|
+
"typescript": "^5.7.2"
|
|
68
67
|
}
|
|
69
68
|
}
|