(option, defaultValue)
| 17 | } |
| 18 | |
| 19 | function ensureFunction(option, defaultValue) { |
| 20 | if(option == undefined) |
| 21 | return function() { return defaultValue } |
| 22 | |
| 23 | if(typeof option != 'function') |
| 24 | return function() { return option } |
| 25 | |
| 26 | return option |
| 27 | } |
| 28 | |
| 29 | function buildMiddleware(options) { |
| 30 | var challenge = options.challenge != undefined ? !!options.challenge : false |
no outgoing calls
no test coverage detected
searching dependent graphs…