@hebcal/icalendar
Advanced tools
Comparing version 4.15.3 to 4.15.4
@@ -1,2 +0,2 @@ | ||
/*! @hebcal/icalendar v4.15.3 */ | ||
/*! @hebcal/icalendar v4.15.4 */ | ||
'use strict'; | ||
@@ -11,3 +11,3 @@ | ||
var version="4.15.3"; | ||
var version="4.15.4"; | ||
@@ -59,24 +59,2 @@ const VTIMEZONE = {}; | ||
const utmCampaign = options.utmCampaign; | ||
const u = new URL(url); | ||
if (utmCampaign && utmCampaign.startsWith('ical-') && u.host === 'www.hebcal.com') { | ||
u.host = 'hebcal.com'; | ||
const path = u.pathname; | ||
if (path.startsWith('/holidays/')) { | ||
u.pathname = '/h/' + path.substring(10); | ||
} else if (path.startsWith('/sedrot/')) { | ||
u.pathname = '/s/' + path.substring(8); | ||
} else { | ||
return restApi.appendIsraelAndTracking(url, options.il, utmSource, utmMedium, utmCampaign); | ||
} | ||
if (options.il) { | ||
u.searchParams.set('i', 'on'); | ||
} | ||
u.searchParams.set('uc', utmCampaign); | ||
return u.toString(); | ||
} | ||
return restApi.appendIsraelAndTracking(url, options.il, utmSource, utmMedium, utmCampaign); | ||
@@ -83,0 +61,0 @@ } |
{ | ||
"name": "@hebcal/icalendar", | ||
"version": "4.15.3", | ||
"version": "4.15.4", | ||
"author": "Michael J. Radwin (https://github.com/mjradwin)", | ||
@@ -28,3 +28,3 @@ "keywords": [ | ||
"@hebcal/core": "^3.33.3", | ||
"@hebcal/rest-api": "^3.12.0", | ||
"@hebcal/rest-api": "^3.13.0", | ||
"murmurhash3": "^0.5.0" | ||
@@ -59,3 +59,3 @@ }, | ||
"@rollup/plugin-node-resolve": "^13.1.3", | ||
"ava": "^4.0.1", | ||
"ava": "^4.1.0", | ||
"eslint": "^8.10.0", | ||
@@ -65,4 +65,4 @@ "eslint-config-google": "^0.14.0", | ||
"jsdoc-to-markdown": "^7.1.1", | ||
"rollup": "^2.68.0" | ||
"rollup": "^2.70.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
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
32862
858
Updated@hebcal/rest-api@^3.13.0