From 8ed19eba9036dcad6b3a0e6fc043014b787ead7d Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Mon, 20 Jul 2020 23:01:36 +0200 Subject: [PATCH] Actually wrap values with the correct key --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 563212d..da8d0be 100644 --- a/index.js +++ b/index.js @@ -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 ] }