Linux premium71.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
LiteSpeed
Server IP : 198.187.29.8 & Your IP : 3.133.145.211
Domains :
Cant Read [ /etc/named.conf ]
User : cleahvkv
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
lib /
node_modules /
npm /
node_modules /
pacote /
lib /
Delete
Unzip
Name
Size
Permission
Date
Action
fetchers
[ DIR ]
drwxr-xr-x
2024-03-03 22:36
util
[ DIR ]
drwxr-xr-x
2024-03-03 22:36
extract-stream.js
2.45
KB
-rw-r--r--
2021-03-10 14:36
fetch.js
2.12
KB
-rw-r--r--
2021-03-10 14:36
finalize-manifest.js
8.33
KB
-rw-r--r--
2021-03-10 14:36
with-tarball-stream.js
4.73
KB
-rw-r--r--
2021-03-10 14:36
Save
Rename
'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] }