1 module.exports = warnDeprecated
3 var log = require("npmlog")
7 function warnDeprecated (type) {
8 return function warn (messages, instance) {
10 if (!deprecations[type]) {
11 deprecations[type] = {}
12 messages.forEach(function (m) { log.warn(type, m) })
16 if (!deprecations[type]) deprecations[type] = {}
18 if (!deprecations[type][instance]) {
19 deprecations[type][instance] = true
20 messages.forEach(function (m) { log.warn(type, m) })