Your IP : 18.221.217.100


Current Path : /opt/alt/alt-nodejs11/root/usr/lib/node_modules/npm/lib/install/
Upload File :
Current File : //opt/alt/alt-nodejs11/root/usr/lib/node_modules/npm/lib/install/and-add-parent-to-errors.js

'use strict'
var validate = require('aproba')

module.exports = function (parent, cb) {
  validate('F', [cb])
  return function (er) {
    if (!er) return cb.apply(null, arguments)
    if (er instanceof Error && parent && parent.package && parent.package.name) {
      er.parent = parent.package.name
    }
    cb(er)
  }
}

?>