/* Provides the `iopipe` object from main's `package.json` if it exists. Or returns values from an rc file if it exists.
function getCosmiConfig() {
  try {
    const config = cosmiconfig('iopipe', {
      cache: false,
      sync: true,
      rcExtensions: true
    }).load();

    if (config !== null) {
      return config.config;
    }
  } catch (err) {
    /*eslint-disable no-void*/
    void 0; // noop
  }

  return {};
}