@hebcal/icalendar
Advanced tools
Comparing version 4.22.0 to 5.0.0
@@ -1,2 +0,2 @@ | ||
/*! @hebcal/icalendar v4.22.0 */ | ||
/*! @hebcal/icalendar v5.0.0 */ | ||
'use strict'; | ||
@@ -9,3 +9,3 @@ | ||
const version="4.22.0"; | ||
const version="5.0.0"; | ||
@@ -94,5 +94,4 @@ const VTIMEZONE = {}; | ||
this.locationName = core.Locale.gettext('Mishna Yomi'); | ||
} else if (timed && options.location?.name) { | ||
const comma = options.location.name.indexOf(','); | ||
this.locationName = comma == -1 ? options.location.name : options.location.name.substring(0, comma); | ||
} else if (timed && options.location) { | ||
this.locationName = options.location.getShortName(); | ||
} | ||
@@ -110,4 +109,4 @@ const date = IcalEvent.formatYYYYMMDD(ev.getDate().greg()); | ||
this.endDate = this.startDate; | ||
if (options.location?.tzid) { | ||
this.dtargs = `;TZID=${options.location.tzid}`; | ||
if (options.location?.getTzid()) { | ||
this.dtargs = `;TZID=${options.location.getTzid()}`; | ||
} | ||
@@ -180,6 +179,7 @@ } else { | ||
if (this.timed && options.location) { | ||
if (options.location.geoid) { | ||
uid += `-${options.location.geoid}`; | ||
} else if (options.location.name) { | ||
uid += '-' + restApi.makeAnchor(options.location.name); | ||
const loc = options.location; | ||
if (loc.getGeoId()) { | ||
uid += `-${loc.getGeoId()}`; | ||
} else if (loc.getName()) { | ||
uid += '-' + restApi.makeAnchor(loc.getName()); | ||
} | ||
@@ -216,3 +216,3 @@ } | ||
if (this.timed && options.location) { | ||
arr.push('GEO:' + options.location.latitude + ';' + options.location.longitude); | ||
arr.push('GEO:' + options.location.getLatitude() + ';' + options.location.getLongitude()); | ||
} | ||
@@ -454,4 +454,4 @@ const trigger = this.getAlarm(); | ||
const location = opts.location; | ||
if (location?.tzid) { | ||
const tzid = location.tzid; | ||
const tzid = location?.getTzid(); | ||
if (tzid) { | ||
stream.push(`X-WR-TIMEZONE;VALUE=TEXT:${tzid}\r\n`); | ||
@@ -458,0 +458,0 @@ if (VTIMEZONE[tzid]) { |
{ | ||
"name": "@hebcal/icalendar", | ||
"version": "4.22.0", | ||
"version": "5.0.0", | ||
"author": "Michael J. Radwin (https://github.com/mjradwin)", | ||
@@ -27,4 +27,4 @@ "keywords": [ | ||
"dependencies": { | ||
"@hebcal/core": "^4.4.1", | ||
"@hebcal/rest-api": "^4.5.7", | ||
"@hebcal/core": "^5.0.0-rc2", | ||
"@hebcal/rest-api": "^5.0.0", | ||
"murmurhash3": "^0.5.0" | ||
@@ -46,6 +46,6 @@ }, | ||
"devDependencies": { | ||
"@babel/core": "^7.23.2", | ||
"@babel/preset-env": "^7.23.2", | ||
"@babel/core": "^7.23.3", | ||
"@babel/preset-env": "^7.23.3", | ||
"@babel/register": "^7.22.15", | ||
"@hebcal/learning": "^1.5.2", | ||
"@hebcal/learning": "^5.0.0", | ||
"@rollup/plugin-babel": "^6.0.4", | ||
@@ -55,8 +55,8 @@ "@rollup/plugin-commonjs": "^25.0.7", | ||
"ava": "^5.3.1", | ||
"eslint": "^8.51.0", | ||
"eslint": "^8.54.0", | ||
"eslint-config-google": "^0.14.0", | ||
"jsdoc": "^4.0.2", | ||
"jsdoc-to-markdown": "^8.0.0", | ||
"rollup": "^4.1.4" | ||
"rollup": "^4.5.1" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
34840
+ Added@hebcal/core@5.4.5(transitive)
+ Added@hebcal/hdate@0.10.1(transitive)
+ Added@hebcal/leyning@8.1.9(transitive)
+ Added@hebcal/noaa@0.8.14(transitive)
+ Added@hebcal/rest-api@5.0.5(transitive)
+ Added@hebcal/triennial@5.0.6(transitive)
+ Addedtemporal-polyfill@0.2.5(transitive)
+ Addedtemporal-spec@0.2.4(transitive)
+ Addedtslib@2.6.3(transitive)
- Removed@hebcal/core@4.5.1(transitive)
- Removed@hebcal/leyning@7.4.5(transitive)
- Removed@hebcal/rest-api@4.5.8(transitive)
- Removed@hebcal/triennial@1.4.1(transitive)
Updated@hebcal/core@^5.0.0-rc2
Updated@hebcal/rest-api@^5.0.0