yarn: update dependencies, prepare for Plug'n'Play

This commit is contained in:
Matthew Penner 2021-07-09 12:58:06 -06:00
parent 3a3caee715
commit 98c54cba3a
18 changed files with 2619 additions and 2137 deletions

View file

@ -35,7 +35,7 @@ interface Values {
const schema = object().shape({
action: string().required().oneOf([ 'command', 'power', 'backup' ]),
payload: string().when('action', {
is: v => v !== 'backup',
is: (v: string) => v !== 'backup',
then: string().required('A task payload must be provided.'),
otherwise: string(),
}),