Hacked By AnonymousFox

Current Path : /opt/alt/alt-nodejs9/root/usr/lib/node_modules/npm/lib/install/action/
Upload File :
Current File : //opt/alt/alt-nodejs9/root/usr/lib/node_modules/npm/lib/install/action/fetch.js

'use strict'

const BB = require('bluebird')

const finished = BB.promisify(require('mississippi').finished)
const packageId = require('../../utils/package-id.js')
const pacote = require('pacote')
const pacoteOpts = require('../../config/pacote')

module.exports = fetch
function fetch (staging, pkg, log, next) {
  log.silly('fetch', packageId(pkg))
  const opts = pacoteOpts({integrity: pkg.package._integrity})
  return finished(pacote.tarball.stream(pkg.package._requested, opts))
  .then(() => next(), next)
}

Hacked By AnonymousFox1.0, Coded By AnonymousFox