cestlagreve-strikes
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -0,0 +0,0 @@ module.exports = { |
@@ -0,0 +0,0 @@ /** |
const getStrikes = require('./getStrikes'); | ||
const | ||
twoDigits = n => n.toString().padStart(2, '0'), | ||
toIcalDate = (year, month, day) => `${year}${twoDigits(month)}${twoDigits(day)}T000000Z`; | ||
const twoDigits = n => n.toString().padStart(2, '0'); | ||
@@ -56,6 +54,6 @@ /** | ||
const { startYear, startMonth, startDay, endYear, endMonth, endDay, title, link } = events[i]; | ||
iCal += `BEGIN:VEVENT\nDTSTART:${toIcalDate(startYear, startMonth, startDay)}\nDTEND:${toIcalDate(endYear, endMonth, endDay)}\nSUMMARY:${title}\nURL:${link}\nEND:VEVENT\n`; | ||
iCal += `BEGIN:VEVENT\nDTSTART;VALUE=DATE:${startYear}${twoDigits(startMonth)}${twoDigits(startDay)}\nDTEND;VALUE=DATE:${endYear}${twoDigits(endMonth)}${twoDigits(endDay)}\nSUMMARY:${title}\nDESCRIPTION:${link}\nEND:VEVENT\n`; | ||
} | ||
iCal += 'END:VCALENDAR'; | ||
return iCal; | ||
}; | ||
}; |
@@ -0,0 +0,0 @@ const get = require('./get'); |
@@ -0,0 +0,0 @@ const |
@@ -0,0 +0,0 @@ /** |
{ | ||
"name": "cestlagreve-strikes", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "repository": "https://git.kaki87.net/KaKi87/cestlagreve-strikes", |
@@ -84,2 +84,3 @@ # cestlagreve-strikes | ||
- Fix current month beginning with last days of previous month | ||
- Add iCal generator | ||
- Add iCal generator | ||
* `1.0.3` (2020-03-04) • Fix iCal date & description tags |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
86
1
49832
1567