From ad6a3e371825960d47c3b47b4617a8955fc743d8 Mon Sep 17 00:00:00 2001 From: Cuttle Cong Date: Fri, 30 Mar 2018 11:53:35 +0800 Subject: [PATCH] fix: bin/edam updateNotify --- packages/edam/bin/edam.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/edam/bin/edam.js b/packages/edam/bin/edam.js index faa1c09..dbae0a6 100755 --- a/packages/edam/bin/edam.js +++ b/packages/edam/bin/edam.js @@ -230,10 +230,10 @@ ${generateFlagHelp(flags, ' ')} }) .then(function () { if (config.updateNotify) { - updateNotify({ pkg }) + const notifier = updateNotify({ pkg }) const upt = updateNotify.update if (upt) { - updateNotify.notify({ + notifier.notify({ message: 'Update available ' + c.dim(upt.current) +