PHP 8.2.30
Preview: index.js Size: 584 B
/opt/alt/alt-nodejs9/root/usr/lib/node_modules/npm/node_modules/pacote/lib/fetchers/registry/index.js

'use strict'

const cacache = require('cacache')
const Fetcher = require('../../fetch')
const regManifest = require('./manifest')
const regTarball = require('./tarball')

const fetchRegistry = module.exports = Object.create(null)

Fetcher.impl(fetchRegistry, {
  manifest (spec, opts) {
    return regManifest(spec, opts)
  },

  tarball (spec, opts) {
    return regTarball(spec, opts)
  },

  fromManifest (manifest, spec, opts) {
    return regTarball.fromManifest(manifest, spec, opts)
  },

  clearMemoized () {
    cacache.clearMemoized()
    regManifest.clearMemoized()
  }
})

Directory Contents

Dirs: 0 × Files: 7

Name Size Perms Modified Actions
1.19 KB lrw-r--r-- 2021-09-28 11:28:21
Edit Download
3.11 KB lrw-r--r-- 2021-09-28 11:28:21
Edit Download
584 B lrw-r--r-- 2021-09-28 11:28:21
Edit Download
4.28 KB lrw-r--r-- 2021-09-28 11:28:21
Edit Download
360 B lrw-r--r-- 2021-09-28 11:28:21
Edit Download
410 B lrw-r--r-- 2021-09-28 11:28:21
Edit Download
2.55 KB lrw-r--r-- 2021-09-28 11:28:21
Edit Download

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