New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cestlagreve-strikes

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cestlagreve-strikes - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

4

lib/getIcal.js

@@ -24,3 +24,3 @@ const getStrikes = require('./getStrikes');

const { title, link } = strikes[i];
const startEvent = events.find(event => event.title === title && event.link === event.link);
const startEvent = events.find(event => event.title === title && event.link === link);
if(startEvent){

@@ -55,3 +55,3 @@ startEvent.endYear = options.year;

const { startYear, startMonth, startDay, endYear, endMonth, endDay, title, link } = events[i];
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 += `BEGIN:VEVENT\nDTSTART;VALUE=DATE:${startYear}${twoDigits(startMonth)}${twoDigits(startDay)}\nDTEND;VALUE=DATE:${endYear}${twoDigits(endMonth)}${twoDigits(endDay)}\nSUMMARY:${title}\n${link ? `DESCRIPTION:${link}\n` : ''}END:VEVENT\n`;
}

@@ -58,0 +58,0 @@ iCal += 'END:VCALENDAR';

@@ -10,3 +10,3 @@ const

* @param {String} title
* @param {String} link
* @param {String} [link]
*/

@@ -75,9 +75,9 @@

}
const strikesMatch = [...line.matchAll(/<li><a href="(https:\/\/www\.cestlagreve\.fr\/greve\/.+?\/)">(.+?)<\/a><\/li>/g)];
const strikesMatch = [...line.matchAll(/<li>(.+?)<\/li>/g)];
if(strikesMatch){
for(let j = 0; j < strikesMatch.length; j++){
const strikeMatch = strikesMatch[j];
const [link, title] = strikeMatch.slice(1);
const [title] = strikeMatch.slice(1);
const day = days.slice(-1)[0];
if(day) day.push({ link, title });
if(day) day.push({ title });
}

@@ -84,0 +84,0 @@ }

{
"name": "cestlagreve-strikes",
"version": "1.0.3",
"version": "1.0.4",
"main": "index.js",

@@ -5,0 +5,0 @@ "repository": "https://git.kaki87.net/KaKi87/cestlagreve-strikes",

@@ -64,3 +64,3 @@ # cestlagreve-strikes

- `name` : *(string)* Event name in french
- `link` : *(string)* URL to related blog article in french
- `link` : *(string, optional)* URL to related blog article in french

@@ -87,1 +87,2 @@ #### Get iCal

* `1.0.3` (2020-03-04) • Fix iCal date & description tags
* `1.0.4` (2022-09-29) • Handle missing event link
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc