function makeDsn(from) {
  const components = typeof from === 'string' ? dsnFromString(from) : dsnFromComponents(from);
  if (!components || !validateDsn(components)) {
    return undefined;
  }
  return components;
}
Creates a valid Sentry Dsn object, identifying a Sentry instance and project.
@returns a valid DsnComponents object or `undefined` if @param from is an invalid DSN source