From 73c030fb37ba5ee0e062eec188d955a2fb527686 Mon Sep 17 00:00:00 2001 From: Adam Gibbons Date: Sat, 27 Aug 2022 12:31:59 -0600 Subject: [PATCH] Fix/organizer dir (#221) * add dir to organizer schema * bump version. closes #214 --- package.json | 2 +- src/schema/index.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index fde34b7..c69d954 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ics", - "version": "2.39.0", + "version": "2.40.0", "description": "iCal (ics) file generator", "exports": { "require": "./index.js", diff --git a/src/schema/index.js b/src/schema/index.js index 19a4f65..4c5e35c 100644 --- a/src/schema/index.js +++ b/src/schema/index.js @@ -39,7 +39,8 @@ const contactSchema = yup.object().shape({ const organizerSchema = yup.object().shape({ name: yup.string(), - email: yup.string().email() + email: yup.string().email(), + dir: yup.string() }).noUnknown() const alarmSchema = yup.object().shape({