Hacked By AnonymousFox

Current Path : /usr/lib/node_modules/npm/lib/utils/
Upload File :
Current File : //usr/lib/node_modules/npm/lib/utils/depr-check.js

'use strict'

const log = require('npmlog')

const deprecated = {}
const deprWarned = {}

module.exports = deprCheck
function deprCheck (data) {
  if (deprecated[data._id]) {
    data.deprecated = deprecated[data._id]
  }

  if (data.deprecated) {
    deprecated[data._id] = data.deprecated
    if (!deprWarned[data._id]) {
      deprWarned[data._id] = true
      log.warn('deprecated', '%s: %s', data._id, data.deprecated)
    }
  }

  return data
}

Hacked By AnonymousFox1.0, Coded By AnonymousFox