Al-HUWAITI Shell
Al-huwaiti


Server : nginx/1.18.0
System : Linux localhost 6.14.3-x86_64-linode168 #1 SMP PREEMPT_DYNAMIC Mon Apr 21 19:47:55 EDT 2025 x86_64
User : www-data ( 33)
PHP Version : 8.0.16
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Directory :  /var/www/ecommerce/node_modules/pusher-js/spec/javascripts/integration/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/ecommerce/node_modules/pusher-js/spec/javascripts/integration/index.web.js
// the webpack context API uses Object.keys and Array.prototype.forEach
// both of which are unavailable in old versions of IE.
require('../polyfills');

// there are some circular dependencies and there are type errors when requiring
// runtime before core/pusher
require('core/pusher');

var Runtime = require('runtime').default;
var TestEnv = require('testenv');

var testConfigs = getTestConfigs();

// We can access this 'env var' here because there's a webpack.DefinePlugin
// overwriting this value with whatever is set at compile time
if (process.env.MINIMAL_INTEGRATION_TESTS) {
  testConfigs = testConfigs.filter((config) => config.forceTLS && config.transport === "ws")
}

var sharedTestsContext = require.context("./core", true, /_spec$/);
sharedTestsContext.keys().forEach((key) => {
  sharedTestsContext(key)(testConfigs);
});

var webTestsContext = require.context("./web", true, /_spec$/);
webTestsContext.keys().forEach(webTestsContext);

function getTestConfigs() {
  var testConfigs = [{
    transport: "ws",
    forceTLS: true,
  },{
    transport: "ws",
    forceTLS: false,
  }];

  if (Runtime.isXHRSupported()) {
    // CORS-compatible browsers
    if (TestEnv !== "web" || !/Android 2\./i.test(navigator.userAgent)) {
      testConfigs.push({ transport: "xhr_streaming", forceTLS: true})
      testConfigs.push({ transport: "xhr_streaming", forceTLS: false})
    }
    testConfigs.push({transport: "xhr_polling", forceTLS: true})
    testConfigs.push({transport: "xhr_polling", forceTLS: false})

  } else if (Runtime.isXDRSupported(false)) {

    testConfigs.push({transport: "xdr_streaming", forceTLS: true})
    testConfigs.push({transport: "xdr_streaming", forceTLS: false})
    testConfigs.push({transport: "xdr_polling", forceTLS: true})
    testConfigs.push({transport: "xdr_polling", forceTLS: false})

    // IE can fall back to SockJS if protocols don't match
    // No SockJS TLS tests due to the way JS files are served
    testConfigs.push({transport: "sockjs", forceTLS: false})

  } else {
    // Browsers using SockJS
    testConfigs.push({ transport: "sockjs", forceTLS: true})
    testConfigs.push({ transport: "sockjs", forceTLS: false})
  }
  return testConfigs
}

Al-HUWAITI Shell