@hebcal/icalendar
Advanced tools
Comparing version 2.3.0 to 2.4.0
@@ -872,2 +872,3 @@ 'use strict'; | ||
* @param {string} url | ||
* @param {boolean} il | ||
* @return {string} | ||
@@ -877,7 +878,8 @@ */ | ||
function appendTrackingToUrl(url) { | ||
function appendTrackingToUrl(url, il) { | ||
if (!url) { | ||
return url; | ||
} else if (url.startsWith('https://www.hebcal.com')) { | ||
return url + '?utm_source=js&utm_medium=icalendar'; | ||
const suffix = il ? 'i=on&' : ''; | ||
return `${url}?${suffix}utm_source=js&utm_medium=icalendar`; | ||
} else { | ||
@@ -1021,3 +1023,3 @@ const sep = url.indexOf('?') == -1 ? '?' : '&'; | ||
function createMemo(e, il) { | ||
const url = appendTrackingToUrl(e.url()); | ||
const url = appendTrackingToUrl(e.url(), il); | ||
@@ -1024,0 +1026,0 @@ if (e.getFlags() & core.flags.PARSHA_HASHAVUA) { |
{ | ||
"name": "@hebcal/icalendar", | ||
"version": "2.3.0", | ||
"version": "2.4.0", | ||
"author": "Michael J. Radwin (https://github.com/mjradwin)", | ||
@@ -26,4 +26,4 @@ "keywords": [ | ||
"dependencies": { | ||
"@hebcal/core": "^2.4.0", | ||
"@hebcal/leyning": "^3.0.0", | ||
"@hebcal/core": "^2.5.1", | ||
"@hebcal/leyning": "^3.3.0", | ||
"@hebcal/rest-api": "^2.5.0", | ||
@@ -30,0 +30,0 @@ "md5": "^2.3.0" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
51597
1029
Updated@hebcal/core@^2.5.1
Updated@hebcal/leyning@^3.3.0