File "warn-deprecated.js"
Full Path: /home/attunedd/public_html/byp/izo/con7ext_sym404/rintoar.txt/opt/alt/alt-nodejs8/root/usr/lib/node_modules/npm/lib/utils/warn-deprecated.js
File size: 556 bytes
MIME-type: text/plain
Charset: utf-8
module.exports = warnDeprecated
var log = require('npmlog')
var deprecations = {}
function warnDeprecated (type) {
return function warn (messages, instance) {
if (!instance) {
if (!deprecations[type]) {
deprecations[type] = {}
messages.forEach(function (m) { log.warn(type, m) })
}
} else {
if (!deprecations[type]) deprecations[type] = {}
if (!deprecations[type][instance]) {
deprecations[type][instance] = true
messages.forEach(function (m) { log.warn(type, m) })
}
}
}
}