Socket
Socket
Sign inDemoInstall

@hebcal/icalendar

Package Overview
Dependencies
3
Maintainers
1
Versions
90
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.22.0 to 5.0.0

28

dist/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc