Actually wrap values with the correct key

master
Sven Slootweg 4 years ago
parent 86878e0894
commit 8ed19eba90

@ -11,7 +11,7 @@ const wrapValueAsOption = require("@validatem/wrap-value-as-option");
module.exports = function simpleSource(_options) {
let { onRequest, onAbort } = validateOptions(arguments, [
required,
wrapValueAsOption("onResult"), {
wrapValueAsOption("onRequest"), {
onRequest: [ required, isFunction ],
onAbort: [ isFunction ]
}

Loading…
Cancel
Save