axios-logger
Advanced tools
Comparing version 2.0.0 to 2.0.1
{ | ||
"name": "axios-logger", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Beautify Axios Logging Messages", | ||
@@ -14,3 +14,5 @@ "main": "lib/index.js", | ||
"logger", | ||
"beautify" | ||
"beautify", | ||
"library", | ||
"server" | ||
], | ||
@@ -17,0 +19,0 @@ "repo,sitory": { |
# axios-logger | ||
[![npm](https://img.shields.io/npm/v/axios-logger.svg)](https://www.npmjs.com/package/axios-logger) | ||
[![npm](https://img.shields.io/npm/dm/axios-logger.svg)](https://www.npmjs.com/package/axios-logger) | ||
[![GitHub license](https://img.shields.io/github/license/hg-pyun/axios-logger.svg)](https://github.com/hg-pyun/axios-logger/blob/master/LICENSE) | ||
[![CircleCI](https://circleci.com/gh/hg-pyun/axios-logger/tree/master.svg?style=svg)](https://circleci.com/gh/hg-pyun/axios-logger/tree/master) | ||
@@ -29,3 +31,3 @@ > Beautify Axios Logging Messages. | ||
import axios from 'axios'; | ||
import AxiosLogger from 'axios-logger'; | ||
import * as AxiosLogger from 'axios-logger'; | ||
@@ -49,3 +51,3 @@ const instance = axios.create(); | ||
import axios from 'axios'; | ||
import AxiosLogger from 'axios-logger'; | ||
import * as AxiosLogger from 'axios-logger'; | ||
@@ -71,3 +73,3 @@ const instance = axios.create(); | ||
import axios from 'axios'; | ||
import AxiosLogger from 'axios-logger'; | ||
import * as AxiosLogger from 'axios-logger'; | ||
@@ -82,3 +84,3 @@ const instance = axios.create(); | ||
```javascript | ||
instance.interceptors.response.use(AxiosLogger.responseLogger, (err) =>{ | ||
instance.interceptors.response.use(AxiosLogger.responseLogger, (err) => { | ||
// write down your error intercept. | ||
@@ -85,0 +87,0 @@ return AxiosLogger.errorLogger(err); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
90
0
32072
19
421