adamgibbons / ics

iCalendar (ics) file generator for node.js
ISC License
732 stars 155 forks source link

Fix for the dir field of the organizer structure #214

Closed DzymFardreamer closed 2 years ago

DzymFardreamer commented 2 years ago

Hi! πŸ‘‹

Firstly, thanks for your work on this project! πŸ™‚

Today I used patch-package to patch ics@2.35.0 for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/ics/dist/schema/index.js b/node_modules/ics/dist/schema/index.js
index bf82d39..ca03431 100644
--- a/node_modules/ics/dist/schema/index.js
+++ b/node_modules/ics/dist/schema/index.js
@@ -41,7 +41,8 @@ var contactSchema = yup.object().shape({
 }).noUnknown();
 var organizerSchema = yup.object().shape({
   name: yup.string(),
-  email: yup.string().email()
+  email: yup.string().email(),
+  dir: yup.string()
 }).noUnknown();
 var alarmSchema = yup.object().shape({
   action: yup.string().matches(/audio|display|email/).required(),

This issue body was partially generated by patch-package.