From bbff7403fbf46f9ad92240ac213df8d30ef31b64 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 20 Sep 2018 02:56:13 +0200 Subject: update packages --- node_modules/webpack/hot/log-apply-result.js | 82 +++++++++++++++------------- 1 file changed, 44 insertions(+), 38 deletions(-) (limited to 'node_modules/webpack/hot/log-apply-result.js') diff --git a/node_modules/webpack/hot/log-apply-result.js b/node_modules/webpack/hot/log-apply-result.js index 8a312b3c6..b63e75741 100644 --- a/node_modules/webpack/hot/log-apply-result.js +++ b/node_modules/webpack/hot/log-apply-result.js @@ -1,38 +1,44 @@ -/* - MIT License http://www.opensource.org/licenses/mit-license.php - Author Tobias Koppers @sokra -*/ -module.exports = function(updatedModules, renewedModules) { - var unacceptedModules = updatedModules.filter(function(moduleId) { - return renewedModules && renewedModules.indexOf(moduleId) < 0; - }); - var log = require("./log"); - - if(unacceptedModules.length > 0) { - log("warning", "[HMR] The following modules couldn't be hot updated: (They would need a full reload!)"); - unacceptedModules.forEach(function(moduleId) { - log("warning", "[HMR] - " + moduleId); - }); - } - - if(!renewedModules || renewedModules.length === 0) { - log("info", "[HMR] Nothing hot updated."); - } else { - log("info", "[HMR] Updated modules:"); - renewedModules.forEach(function(moduleId) { - if(typeof moduleId === "string" && moduleId.indexOf("!") !== -1) { - var parts = moduleId.split("!"); - log.groupCollapsed("info", "[HMR] - " + parts.pop()); - log("info", "[HMR] - " + moduleId); - log.groupEnd("info"); - } else { - log("info", "[HMR] - " + moduleId); - } - }); - var numberIds = renewedModules.every(function(moduleId) { - return typeof moduleId === "number"; - }); - if(numberIds) - log("info", "[HMR] Consider using the NamedModulesPlugin for module names."); - } -}; +/* + MIT License http://www.opensource.org/licenses/mit-license.php + Author Tobias Koppers @sokra +*/ +module.exports = function(updatedModules, renewedModules) { + var unacceptedModules = updatedModules.filter(function(moduleId) { + return renewedModules && renewedModules.indexOf(moduleId) < 0; + }); + var log = require("./log"); + + if (unacceptedModules.length > 0) { + log( + "warning", + "[HMR] The following modules couldn't be hot updated: (They would need a full reload!)" + ); + unacceptedModules.forEach(function(moduleId) { + log("warning", "[HMR] - " + moduleId); + }); + } + + if (!renewedModules || renewedModules.length === 0) { + log("info", "[HMR] Nothing hot updated."); + } else { + log("info", "[HMR] Updated modules:"); + renewedModules.forEach(function(moduleId) { + if (typeof moduleId === "string" && moduleId.indexOf("!") !== -1) { + var parts = moduleId.split("!"); + log.groupCollapsed("info", "[HMR] - " + parts.pop()); + log("info", "[HMR] - " + moduleId); + log.groupEnd("info"); + } else { + log("info", "[HMR] - " + moduleId); + } + }); + var numberIds = renewedModules.every(function(moduleId) { + return typeof moduleId === "number"; + }); + if (numberIds) + log( + "info", + "[HMR] Consider using the NamedModulesPlugin for module names." + ); + } +}; -- cgit v1.2.3