function getCurrentHub() {
  // Get main carrier (global for every environment)
  const registry = getMainCarrier();

  if (registry.__SENTRY__ && registry.__SENTRY__.acs) {
    const hub = registry.__SENTRY__.acs.getCurrentHub();

    if (hub) {
      return hub;
    }
  }

  // Return hub that lives on a global object
  return getGlobalHub(registry);
}
Returns the default hub instance.

If a hub is already registered in the global carrier but this module
contains a more recent version, it replaces the registered version.
Otherwise, the currently registered hub will be returned.

@deprecated Use the respective replacement method directly instead.