Linux worldls-302.fr.planethoster.net 4.18.0-553.8.1.lve.el7h.x86_64 #1 SMP Thu Jul 4 15:19:33 UTC 2024 x86_64
LiteSpeed
Server IP : 10.185.0.203 & Your IP : 216.73.216.32
Domains :
Cant Read [ /etc/named.conf ]
User : gerathty
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
local /
lib /
node_modules /
npm /
lib /
config /
Delete
Unzip
Name
Size
Permission
Date
Action
bin-links.js
716
B
-rw-r--r--
2017-11-28 04:37
clear-credentials-by-uri.js
423
B
-rw-r--r--
2017-11-03 01:22
cmd-list.js
1.86
KB
-rw-r--r--
2017-11-28 02:58
core.js
10.98
KB
-rw-r--r--
2017-11-28 04:37
defaults.js
11.12
KB
-rw-r--r--
2017-11-28 04:37
fetch-opts.js
1.93
KB
-rw-r--r--
2017-11-28 04:37
gentle-fs.js
687
B
-rw-r--r--
2017-11-28 04:37
get-credentials-by-uri.js
2
KB
-rw-r--r--
2017-11-03 01:22
lifecycle.js
851
B
-rw-r--r--
2017-11-28 04:37
load-cafile.js
682
B
-rw-r--r--
2017-11-03 01:22
load-prefix.js
1.3
KB
-rw-r--r--
2017-11-28 04:37
load-uid.js
386
B
-rw-r--r--
2017-11-03 01:22
nerf-dart.js
471
B
-rw-r--r--
2017-11-03 01:22
pacote.js
3.99
KB
-rw-r--r--
2017-11-28 02:58
reg-client.js
788
B
-rw-r--r--
2017-11-03 01:22
set-credentials-by-uri.js
1.24
KB
-rw-r--r--
2017-11-28 02:58
set-user.js
749
B
-rw-r--r--
2017-11-03 01:22
Save
Rename
'use strict' const url = require('url') module.exports.fromPacote = fromPacote function fromPacote (opts) { return { cache: getCacheMode(opts), cacheManager: opts.cache, ca: opts.ca, cert: opts.cert, headers: getHeaders('', opts.registry, opts), key: opts.key, localAddress: opts.localAddress, maxSockets: opts.maxSockets, proxy: opts.proxy, referer: opts.refer, retry: opts.retry, strictSSL: !!opts.strictSSL, timeout: opts.timeout, uid: opts.uid, gid: opts.gid } } function getCacheMode (opts) { return opts.offline ? 'only-if-cached' : opts.preferOffline ? 'force-cache' : opts.preferOnline ? 'no-cache' : 'default' } function getHeaders (uri, registry, opts) { const headers = Object.assign({ 'npm-in-ci': opts.isFromCI, 'npm-scope': opts.projectScope, 'npm-session': opts.npmSession, 'user-agent': opts.userAgent, 'referer': opts.refer }, opts.headers) // check for auth settings specific to this registry let auth = ( opts.auth && opts.auth[registryKey(registry)] ) || opts.auth // If a tarball is hosted on a different place than the manifest, only send // credentials on `alwaysAuth` const shouldAuth = auth && ( auth.alwaysAuth || url.parse(uri).host === url.parse(registry).host ) if (shouldAuth && auth.token) { headers.authorization = `Bearer ${auth.token}` } else if (shouldAuth && auth.username && auth.password) { const encoded = Buffer.from( `${auth.username}:${auth.password}`, 'utf8' ).toString('base64') headers.authorization = `Basic ${encoded}` } else if (shouldAuth && auth._auth) { headers.authorization = `Basic ${auth._auth}` } return headers } function registryKey (registry) { const parsed = url.parse(registry) const formatted = url.format({ host: parsed.host, pathname: parsed.pathname, slashes: parsed.slashes }) return url.resolve(formatted, '.') }