src/config/util.js
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 {};
}
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 {};
}
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 { } ; }
/* Provides the `iopipe` object from main's `package.json` if it exists. Or returns values from an rc file if it exists.
/ * Provides the iopipe object from main s package . json if it exists . Or returns values from an rc file if it exists .