AlkantarClanX12

Your IP : 3.17.179.132


Current Path : /proc/thread-self/root/opt/alt/alt-nodejs6/root/lib/node_modules/npm/lib/utils/
Upload File :
Current File : //proc/thread-self/root/opt/alt/alt-nodejs6/root/lib/node_modules/npm/lib/utils/depr-check.js

var log = require('npmlog')

var deprecated = {}
var deprWarned = {}
module.exports = function deprCheck (data) {
  if (deprecated[data._id]) data.deprecated = deprecated[data._id]
  if (data.deprecated) deprecated[data._id] = data.deprecated
  else return
  if (!deprWarned[data._id]) {
    deprWarned[data._id] = true
    log.warn('deprecated', '%s: %s', data._id, data.deprecated)
  }
}