Fix for the dir field of the organizer structure
DzymFardreamer opened this issue Β· comments
DzymFardreamer commented
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.