@hebcal/icalendar 5.0.0 → 5.0.1

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 CHANGED
@@ -1,4 +1,4 @@
1
- /*! @hebcal/icalendar v5.0.0 */
1
+ /*! @hebcal/icalendar v5.0.1 */
2
2
  'use strict';
3
3
 
4
4
  var core = require('@hebcal/core');
@@ -6,7 +6,7 @@ var murmurhash3 = require('murmurhash3');
6
6
  var restApi = require('@hebcal/rest-api');
7
7
  var fs = require('fs');
8
8
 
9
- const version="5.0.0";
9
+ const version="5.0.1";
10
10
 
11
11
  const VTIMEZONE = {};
12
12
  const CATEGORY = {
@@ -94,7 +94,7 @@ class IcalEvent {
94
94
  this.locationName = options.location.getShortName();
95
95
  }
96
96
  const date = IcalEvent.formatYYYYMMDD(ev.getDate().greg());
97
- this.startDate = date;
97
+ this.startDate = this.isoDateOnly = date;
98
98
  this.dtargs = '';
99
99
  this.transp = 'TRANSPARENT';
100
100
  this.busyStatus = 'FREE';
@@ -138,7 +138,7 @@ class IcalEvent {
138
138
  }
139
139
  }
140
140
  this.subj = subj;
141
- this.category = ev.category || CATEGORY[restApi.getEventCategories(ev)[0]];
141
+ this.category = ev.category || CATEGORY[restApi.getEventCategories(ev)?.[0]];
142
142
  }
143
143
 
144
144
  /**
@@ -171,7 +171,7 @@ class IcalEvent {
171
171
  getUid() {
172
172
  const options = this.options;
173
173
  const digest = murmurhash3.murmur32HexSync(this.ev.getDesc());
174
- let uid = `hebcal-${this.startDate}-${digest}`;
174
+ let uid = `hebcal-${this.isoDateOnly}-${digest}`;
175
175
  if (this.timed && options.location) {
176
176
  const loc = options.location;
177
177
  if (loc.getGeoId()) {
package/dist/index.mjs CHANGED
@@ -1,10 +1,10 @@
1
- /*! @hebcal/icalendar v5.0.0 */
1
+ /*! @hebcal/icalendar v5.0.1 */
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="5.0.0";
7
+ const version="5.0.1";
8
8
 
9
9
  const VTIMEZONE = {};
10
10
  const CATEGORY = {
@@ -92,7 +92,7 @@ class IcalEvent {
92
92
  this.locationName = options.location.getShortName();
93
93
  }
94
94
  const date = IcalEvent.formatYYYYMMDD(ev.getDate().greg());
95
- this.startDate = date;
95
+ this.startDate = this.isoDateOnly = date;
96
96
  this.dtargs = '';
97
97
  this.transp = 'TRANSPARENT';
98
98
  this.busyStatus = 'FREE';
@@ -136,7 +136,7 @@ class IcalEvent {
136
136
  }
137
137
  }
138
138
  this.subj = subj;
139
- this.category = ev.category || CATEGORY[getEventCategories(ev)[0]];
139
+ this.category = ev.category || CATEGORY[getEventCategories(ev)?.[0]];
140
140
  }
141
141
 
142
142
  /**
@@ -169,7 +169,7 @@ class IcalEvent {
169
169
  getUid() {
170
170
  const options = this.options;
171
171
  const digest = murmur32HexSync(this.ev.getDesc());
172
- let uid = `hebcal-${this.startDate}-${digest}`;
172
+ let uid = `hebcal-${this.isoDateOnly}-${digest}`;
173
173
  if (this.timed && options.location) {
174
174
  const loc = options.location;
175
175
  if (loc.getGeoId()) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hebcal/icalendar",
3
- "version": "5.0.0",
3
+ "version": "5.0.1",
4
4
  "author": "Michael J. Radwin (https://github.com/mjradwin)",
5
5
  "keywords": [
6
6
  "ical",