From 98ae30564c0cf42c8aa480b60c0c7b2cbbafb206 Mon Sep 17 00:00:00 2001 From: Aaron Franks Date: Wed, 15 Feb 2017 20:29:32 -0800 Subject: [PATCH] Update dotenv dep to 4.0 --- index.js | 3 ++- package.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index bb21f2f..b23339f 100644 --- a/index.js +++ b/index.js @@ -37,7 +37,8 @@ function formatSpecDescription(spec) { } function extendWithDotEnv(inputEnv) { - return extend(dotenv.config({ silent: true }), inputEnv) + const { parsed } = dotenv.config() + return extend(parsed, inputEnv) } function cleanEnv(inputEnv, specs = {}, options = {}) { diff --git a/package.json b/package.json index c21f238..c3baefc 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "license": "MIT", "dependencies": { "chalk": "1.1.3", - "dotenv": "2.0.0" + "dotenv": "4.0.0" }, "config": { "ghooks": {