Fixes linter issues

This commit is contained in:
Aleksandr Statciuk 2022-06-15 16:48:10 +03:00
parent aa77f95eb3
commit cc37c3a7c7
3 changed files with 3 additions and 12 deletions

View File

@ -1,9 +1,8 @@
const { merge } = require('lodash')
const { CurlGenerator } = require('curl-generator')
const axios = require('axios').default
const axiosCookieJarSupport = require('axios-cookiejar-support').default
const { setupCache } = require('axios-cache-interceptor')
const { isPromise, getUTCDate } = require('./utils')
const { isObject, isPromise, getUTCDate } = require('./utils')
axiosCookieJarSupport(axios)
@ -13,10 +12,6 @@ module.exports.parseResponse = parseResponse
let timeout
class Client {
constructor() {}
}
function create(config) {
const client = setupCache(
axios.create({

View File

@ -1,5 +1,6 @@
const { createLogger, format, transports } = require('winston')
const { combine, timestamp, printf } = format
const path = require('path')
module.exports.create = create
@ -8,7 +9,7 @@ function create(options) {
return `[${timestamp}] ${level.toUpperCase()}: ${message}`
})
const consoleFormat = printf(({ level, message, timestamp }) => {
const consoleFormat = printf(({ level, message }) => {
if (level === 'error') return ` Error: ${message}`
return message

View File

@ -1,4 +1,3 @@
const dayjs = require('dayjs')
const { isPromise } = require('./utils')
module.exports.parse = parse
@ -23,7 +22,3 @@ async function parse(data) {
return program
})
}
function toBaseObject(data) {
return data
}