PHP 8.2.30
Preview: fetch.js Size: 524 B
//usr/lib/node_modules/npm/lib/install/action/fetch.js

'use strict'

const BB = require('bluebird')

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

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

Directory Contents

Dirs: 0 × Files: 15

Name Size Perms Modified Actions
412 B lrw-r--r-- 2021-03-10 14:36:36
Edit Download
473 B lrw-r--r-- 2021-03-10 14:36:36
Edit Download
3.87 KB lrw-r--r-- 2021-03-10 14:36:36
Edit Download
524 B lrw-r--r-- 2021-03-10 14:36:36
Edit Download
3.81 KB lrw-r--r-- 2021-03-10 14:36:36
Edit Download
656 B lrw-r--r-- 2021-03-10 14:36:36
Edit Download
289 B lrw-r--r-- 2021-03-10 14:36:36
Edit Download
266 B lrw-r--r-- 2021-03-10 14:36:36
Edit Download
3.09 KB lrw-r--r-- 2021-03-10 14:36:36
Edit Download
274 B lrw-r--r-- 2021-03-10 14:36:36
Edit Download
272 B lrw-r--r-- 2021-03-10 14:36:36
Edit Download
1.03 KB lrw-r--r-- 2021-03-10 14:36:36
Edit Download
1.50 KB lrw-r--r-- 2021-03-10 14:36:36
Edit Download
2.59 KB lrw-r--r-- 2021-03-10 14:36:36
Edit Download
659 B lrw-r--r-- 2021-03-10 14:36:36
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).