@hebcal/icalendar 6.2.0 → 6.3.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 +10 -8
- package/dist/pkgVersion.d.ts +1 -1
- package/package.json +7 -3
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @hebcal/icalendar v6.
|
|
1
|
+
/*! @hebcal/icalendar v6.3.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.3.0';
|
|
11
11
|
|
|
12
12
|
const vtimezoneCache = new Map();
|
|
13
13
|
const CATEGORY = {
|
|
@@ -172,13 +172,14 @@ class IcalEvent {
|
|
|
172
172
|
return null;
|
|
173
173
|
}
|
|
174
174
|
getUid() {
|
|
175
|
-
|
|
176
|
-
|
|
175
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
176
|
+
let uid = this.ev.uid;
|
|
177
|
+
if (uid) {
|
|
178
|
+
return uid;
|
|
177
179
|
}
|
|
178
|
-
const options = this.options;
|
|
179
180
|
const digest = murmur32HexSync(this.ev.getDesc());
|
|
180
|
-
|
|
181
|
-
const loc = options.location;
|
|
181
|
+
uid = `hebcal-${this.isoDateOnly}-${digest}`;
|
|
182
|
+
const loc = this.options.location;
|
|
182
183
|
if (this.timed && loc) {
|
|
183
184
|
if (loc.getGeoId()) {
|
|
184
185
|
uid += `-${loc.getGeoId()}`;
|
|
@@ -453,7 +454,8 @@ async function icalEventsToString(icals, options) {
|
|
|
453
454
|
'X-LOTUS-CHARSET:UTF-8',
|
|
454
455
|
];
|
|
455
456
|
if (opts.publishedTTL !== false) {
|
|
456
|
-
const publishedTTL = opts.publishedTTL || '
|
|
457
|
+
const publishedTTL = opts.publishedTTL || 'P7D';
|
|
458
|
+
preamble.push(`REFRESH-INTERVAL;VALUE=DURATION:${publishedTTL}`);
|
|
457
459
|
preamble.push(`X-PUBLISHED-TTL:${publishedTTL}`);
|
|
458
460
|
}
|
|
459
461
|
preamble.push(`X-WR-CALNAME:${title}`);
|
package/dist/pkgVersion.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "6.
|
|
1
|
+
export declare const version = "6.3.0";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hebcal/icalendar",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.3.0",
|
|
4
4
|
"author": "Michael J. Radwin (https://github.com/mjradwin)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ical",
|
|
@@ -9,9 +9,12 @@
|
|
|
9
9
|
"hebcal"
|
|
10
10
|
],
|
|
11
11
|
"description": "Jewish holidays and Hebrew calendar as iCalendar RFC 2445",
|
|
12
|
-
"module": "dist/index.js",
|
|
13
12
|
"type": "module",
|
|
14
|
-
"
|
|
13
|
+
"module": "./dist/index.js",
|
|
14
|
+
"typings": "./dist/icalendar.d.ts",
|
|
15
|
+
"exports": {
|
|
16
|
+
".": "./dist/index.js"
|
|
17
|
+
},
|
|
15
18
|
"engines": {
|
|
16
19
|
"node": ">= 18.0.0"
|
|
17
20
|
},
|
|
@@ -25,6 +28,7 @@
|
|
|
25
28
|
"bugs": {
|
|
26
29
|
"url": "https://github.com/hebcal/hebcal-icalendar/issues"
|
|
27
30
|
},
|
|
31
|
+
"homepage": "https://hebcal.github.io/api/icalendar/",
|
|
28
32
|
"dependencies": {
|
|
29
33
|
"@hebcal/core": "^6.0.0",
|
|
30
34
|
"@hebcal/hdate": "^0.21.0",
|