How to use the defaults.cdn_https function in defaults

To help you get started, we’ve selected a few defaults examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pusher / pusher-js / src / runtimes / web / dom / dependencies.ts View on Github external
import {ScriptReceiverFactory} from './script_receiver_factory';
import Defaults from 'defaults';
import DependencyLoader from './dependency_loader';

export var DependenciesReceivers = new ScriptReceiverFactory(
  "_pusher_dependencies", "Pusher.Runtime.DependenciesReceivers"
);

export var Dependencies = new DependencyLoader({
  cdn_http: Defaults.cdn_http,
  cdn_https: Defaults.cdn_https,
  version: Defaults.VERSION,
  suffix: Defaults.dependency_suffix,
  receivers: DependenciesReceivers
});