From 1ff1177e15d4933cdf61f4af4634682d87272f0c Mon Sep 17 00:00:00 2001 From: calebsevern Date: Mon, 22 May 2017 15:13:00 -0500 Subject: [PATCH] Object.assign -> _.assign for backwards compat. --- lib/npm-check-updates.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/npm-check-updates.js b/lib/npm-check-updates.js index 1cc116fc..87032796 100644 --- a/lib/npm-check-updates.js +++ b/lib/npm-check-updates.js @@ -310,7 +310,7 @@ function printUpgrades(options, args) { /** Initializes and consolidates options from the cli. */ function initOptions(options) { - return Object.assign({}, options, { + return _.assign({}, options, { // 'upgradeAll' is a type of an upgrade so if it's set, we set 'upgrade' as well upgrade: options.upgrade || options.upgradeAll, // convert silent option to loglevel silent @@ -471,6 +471,6 @@ function run(opts) { }); } -module.exports = Object.assign({ +module.exports = _.assign({ run: run }, vm);