From f7ba1529523b935d990c0fbba86f5d21635f2bf7 Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Sun, 17 Apr 2016 19:50:29 +0200 Subject: [PATCH] Add missing default for `options` --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index f0d9e1c..d7084a9 100644 --- a/src/index.js +++ b/src/index.js @@ -29,7 +29,7 @@ function reachedRoot(candidatePath) { return /^(?:\/|[a-z]:\\)$/i.test(candidatePath); } -module.exports = function(options) { +module.exports = function(options = {}) { let currentPath = defaultValue(options.basePath, __dirname); let checker = defaultValue(options.checker, "package.json");