Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "base_axios_config"

Index

Variables

TS_CRYPTO_CLI_LOGS_PATH

TS_CRYPTO_CLI_LOGS_PATH: string

Const dirPath

dirPath: string = TS_CRYPTO_CLI_LOGS_PATH ? resolve(TS_CRYPTO_CLI_LOGS_PATH) : null

logError

logError: Debugger

Const stream

stream: RotatingFileStream = dirPath ? createStream(calculateFileName, {size: '100M', // rotate every 10 MegaBytes writteninterval: '1M', // rotate monthlypath: dirPath,immutable: true,// compress: "gzip" // compress rotated files}) : null

Functions

Const baseAxiosRequestErrorInterceptor

  • baseAxiosRequestErrorInterceptor(axiosRequestError: AxiosError): void

Const baseAxiosRequestInterceptor

  • baseAxiosRequestInterceptor(config: AxiosRequestConfig): AxiosRequestConfig

Const baseAxiosResponseErrorInterceptor

  • baseAxiosResponseErrorInterceptor(axiosResponseError: AxiosError): void

Const baseAxiosResponseInterceptor

  • baseAxiosResponseInterceptor(response: AxiosResponse): AxiosResponse

Const calculateFileName

  • calculateFileName(date: Date, index: number): string

Object literals

Const baseAxiosConfig

baseAxiosConfig: object

timeout

timeout: number = 10000

headers

headers: object

User-Agent

User-Agent: string = "ts-crypto-cli"

content-type

content-type: string = "application/x-www-form-urlencoded"

Generated using TypeDoc