src/index.js
Function get
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const get = options => {
options = options || {}
const commune = options.commune ? options.commune.toLowerCase() : null
const dist = options.distributor ? options.distributor.toLowerCase() : null
const fuelType = options.fuelType ? options.fuelType.toLowerCase() : null
Function request
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const request = token => {
return new Promise((resolve, reject) => {
const options = {
hostname: 'api.cne.cl',
port: 80,