src/publish.js
function fetchRungApi() {
    const envApi = process.env.RUNG_API;

    if (isNil(envApi)) {
        return 'https://app.rung.com.br/api';
    }

    if (!isURL(envApi)) {
        emitWarning(`invalid API for Rung: ${JSON.stringify(envApi)}`);
    }

    return envApi;
}
function fetchRungApi() {
    const envApi = process.env.RUNG_API;

    if (isNil(envApi)) {
        return 'https://app.rung.com.br/api';
    }

    if (!isURL(envApi)) {
        emitWarning(`invalid API for Rung: ${JSON.stringify(envApi)}`);
    }

    return envApi;
}
function fetchRungApi ( ) { const envApi = process . env . RUNG_API ; if ( isNil ( envApi ) ) { return 'https://app.rung.com.br/api' ; } if ( ! isURL ( envApi ) ) { emitWarning ( ` ${ JSON . stringify ( envApi ) } ` ) ; } return envApi ; }
Returns the Rung API URL. Emits a warning when the URL is possibly invalid

@return {String}
Returns the Rung API URL . Emits a warning when the URL is possibly invalid