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 /
utils /
Delete
Unzip
Name
Size
Permission
Date
Action
completion
[ DIR ]
drwxr-xr-x
2017-12-07 00:46
ansi-trim.js
211
B
-rw-r--r--
2017-11-03 01:22
child-path.js
290
B
-rw-r--r--
2017-11-03 01:22
completion.sh
1.74
KB
-rwxr-xr-x
2017-11-03 01:22
correct-mkdir.js
3.04
KB
-rw-r--r--
2017-09-28 04:27
deep-sort-object.js
363
B
-rw-r--r--
2017-11-03 01:22
depr-check.js
451
B
-rw-r--r--
2017-11-03 01:22
did-you-mean.js
495
B
-rw-r--r--
2017-11-03 01:22
error-handler.js
6.05
KB
-rw-r--r--
2017-11-03 01:22
error-message.js
10.21
KB
-rw-r--r--
2017-11-28 04:37
escape-arg.js
673
B
-rw-r--r--
2017-11-03 01:22
escape-exec-path.js
777
B
-rw-r--r--
2017-11-03 01:22
gently-rm.js
484
B
-rw-r--r--
2017-11-28 04:37
get-publish-config.js
919
B
-rw-r--r--
2017-11-03 01:22
git.js
1.26
KB
-rw-r--r--
2017-11-03 01:22
gunzip-maybe.js
552
B
-rw-r--r--
2017-11-03 01:22
is-registry.js
295
B
-rw-r--r--
2017-11-28 04:37
is-windows-bash.js
129
B
-rw-r--r--
2017-11-03 01:22
is-windows-shell.js
153
B
-rw-r--r--
2017-11-03 01:22
is-windows.js
59
B
-rw-r--r--
2017-11-03 01:22
lifecycle-cmd.js
496
B
-rw-r--r--
2017-11-03 01:22
lifecycle.js
364
B
-rw-r--r--
2017-11-03 01:22
link.js
234
B
-rw-r--r--
2017-11-28 04:37
locker.js
1.81
KB
-rw-r--r--
2017-11-03 01:22
map-to-registry.js
2.79
KB
-rw-r--r--
2017-11-03 01:22
metrics-launch.js
1.05
KB
-rw-r--r--
2017-11-03 01:22
metrics.js
2.03
KB
-rw-r--r--
2017-11-03 01:22
module-name.js
935
B
-rw-r--r--
2017-11-03 01:22
move.js
290
B
-rw-r--r--
2017-11-03 01:22
no-progress-while-running.js
541
B
-rw-r--r--
2017-11-03 01:22
output.js
210
B
-rw-r--r--
2017-11-03 01:22
package-id.js
399
B
-rw-r--r--
2017-11-03 01:22
parse-json.js
592
B
-rw-r--r--
2017-11-03 01:22
perf.js
562
B
-rw-r--r--
2017-11-03 01:22
pick-manifest-from-registry-metadata.js
905
B
-rw-r--r--
2017-11-03 01:22
pulse-till-done.js
783
B
-rw-r--r--
2017-11-03 01:22
read-local-package.js
329
B
-rw-r--r--
2017-11-03 01:22
read-user-info.js
1.75
KB
-rw-r--r--
2017-11-03 01:22
save-stack.js
349
B
-rw-r--r--
2017-11-03 01:22
spawn.js
1.38
KB
-rw-r--r--
2017-11-03 01:22
temp-filename.js
173
B
-rw-r--r--
2017-11-03 01:22
umask.js
343
B
-rw-r--r--
2017-11-03 01:22
unix-format-path.js
85
B
-rw-r--r--
2017-11-03 01:22
unsupported.js
2.21
KB
-rw-r--r--
2017-11-28 04:37
usage.js
576
B
-rw-r--r--
2017-11-03 01:22
warn-deprecated.js
556
B
-rw-r--r--
2017-11-03 01:22
Save
Rename
var url = require('url') var log = require('npmlog') var npa = require('npm-package-arg') var config module.exports = mapToRegistry function mapToRegistry (name, config, cb) { log.silly('mapToRegistry', 'name', name) var registry // the name itself takes precedence var data = npa(name) if (data.scope) { // the name is definitely scoped, so escape now name = name.replace('/', '%2f') log.silly('mapToRegistry', 'scope (from package name)', data.scope) registry = config.get(data.scope + ':registry') if (!registry) { log.verbose('mapToRegistry', 'no registry URL found in name for scope', data.scope) } } // ...then --scope=@scope or --scope=scope var scope = config.get('scope') if (!registry && scope) { // I'm an enabler, sorry if (scope.charAt(0) !== '@') scope = '@' + scope log.silly('mapToRegistry', 'scope (from config)', scope) registry = config.get(scope + ':registry') if (!registry) { log.verbose('mapToRegistry', 'no registry URL found in config for scope', scope) } } // ...and finally use the default registry if (!registry) { log.silly('mapToRegistry', 'using default registry') registry = config.get('registry') } log.silly('mapToRegistry', 'registry', registry) var auth = config.getCredentialsByURI(registry) // normalize registry URL so resolution doesn't drop a piece of registry URL var normalized = registry.slice(-1) !== '/' ? registry + '/' : registry var uri log.silly('mapToRegistry', 'data', data) if (data.type === 'remote') { uri = data.fetchSpec } else { uri = url.resolve(normalized, name) } log.silly('mapToRegistry', 'uri', uri) cb(null, uri, scopeAuth(uri, registry, auth), normalized) } function scopeAuth (uri, registry, auth) { var cleaned = { scope: auth.scope, email: auth.email, alwaysAuth: auth.alwaysAuth, token: undefined, username: undefined, password: undefined, auth: undefined } var requestHost var registryHost if (auth.token || auth.auth || (auth.username && auth.password)) { requestHost = url.parse(uri).hostname registryHost = url.parse(registry).hostname if (requestHost === registryHost) { cleaned.token = auth.token cleaned.auth = auth.auth cleaned.username = auth.username cleaned.password = auth.password } else if (auth.alwaysAuth) { log.verbose('scopeAuth', 'alwaysAuth set for', registry) cleaned.token = auth.token cleaned.auth = auth.auth cleaned.username = auth.username cleaned.password = auth.password } else { log.silly('scopeAuth', uri, "doesn't share host with registry", registry) } if (!config) config = require('../npm').config if (config.get('otp')) cleaned.otp = config.get('otp') } return cleaned }