PHP 8.2.30
Preview: index.js Size: 698 B
/proc/thread-self/root/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 regPackument = require('./packument')
const regTarball = require('./tarball')

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

Fetcher.impl(fetchRegistry, {
  packument (spec, opts) {
    return regPackument(spec, opts)
  },

  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()
    regPackument.clearMemoized()
  }
})

Directory Contents

Dirs: 0 × Files: 4

Name Size Perms Modified Actions
698 B lrw-r--r-- 2021-03-10 14:36:37
Edit Download
2.55 KB lrw-r--r-- 2021-03-10 14:36:37
Edit Download
2.40 KB lrw-r--r-- 2021-03-10 14:36:37
Edit Download
3.05 KB lrw-r--r-- 2021-03-10 14:36:37
Edit Download

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