diff --git a/js/notify/electron-notify.js b/js/notify/electron-notify.js index 98d793aa..ee16a177 100644 --- a/js/notify/electron-notify.js +++ b/js/notify/electron-notify.js @@ -10,8 +10,9 @@ // const path = require('path'); const fs = require('fs'); -const async = require('async'); const electron = require('electron'); +const asyncMap = require('async.map'); +const asyncMapSeries = require('async.mapseries'); const app = electron.app; const BrowserWindow = electron.BrowserWindow; const ipc = electron.ipcMain; @@ -541,9 +542,9 @@ function moveOneDown(startPos) { notificationPosArray.push(i) } // Start to animate all notifications at once or in parallel - let asyncFunc = async.map // Best performance + let asyncFunc = asyncMap // Best performance if (config.animateInParallel === false) { - asyncFunc = async.mapSeries // Sluggish + asyncFunc = asyncMapSeries // Sluggish } asyncFunc(notificationPosArray, moveNotificationAnimation, function() { resolve() diff --git a/package.json b/package.json index ce33c2e3..f64c5ea1 100644 --- a/package.json +++ b/package.json @@ -87,15 +87,16 @@ }, "dependencies": { "@paulcbetts/system-idle-time": "^1.0.4", - "async": "^2.1.5", + "appdirectory": "^0.1.0", + "async.map": "^0.5.2", + "async.mapseries": "^0.5.2", "auto-launch": "^5.0.1", "electron-context-menu": "^0.8.0", - "electron-squirrel-startup": "^1.0.0", - "keymirror": "0.1.1", - "winreg": "^1.2.3", "electron-dl": "^1.9.0", + "electron-squirrel-startup": "^1.0.0", "filesize": "^3.5.10", - "appdirectory": "^0.1.0" + "keymirror": "0.1.1", + "winreg": "^1.2.3" }, "optionalDependencies": { "screen-snippet": "git+https://github.com/symphonyoss/ScreenSnippet.git#v1.0.1"