lib/integrations.js
function(name) {
    if (name) {
      // Find integration by name.
      var result = integrations[name];
      if (!result) {
        throw new Error('Integration does not exist: ' + name);
      }
      return result;
    } else {
      // Return entire singleton integration map.
      return integrations;
    }
  }
function(name) {
    if (name) {
      // Find integration by name.
      var result = integrations[name];
      if (!result) {
        throw new Error('Integration does not exist: ' + name);
      }
      return result;
    } else {
      // Return entire singleton integration map.
      return integrations;
    }
  }
function ( name ) { if ( name ) { // Find integration by name. var result = integrations [ name ] ; if ( ! result ) { throw new Error ( 'Integration does not exist: ' + name ) ; } return result ; } else { // Return entire singleton integration map. return integrations ; } }
Return list of integrations, or if a name is given, just return the
integration registered under that name.
@memberof integrations
Return list of integrations or if a name is given just return the integration registered under that name .