1.0.8 • Published 1 year ago

cgoing-axiosloginterceptors v1.0.8

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

axiosloginterceptors

setup

yarn add cgoing-axiosloginterceptors
npm install cgoing-axiosloginterceptors

USE

import setLogInterceptor from 'cgoing-axiosloginterceptors'
import axios from 'axios'

const instance = axios.create(${config})

setLogInterceptor(instance) // if (productions) 

/**
 * log type  = [
 * 
 *   'REQ'|'RES'|'ERR', 
 *    methods,
 *    url,
 *    id,
 *    Request Params | Response data | Error  
 * ]
 * 
 *  random colors  => cgoing-utils-randomcolor
 */

캡처2 캡처1

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago