Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

axios-logger

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

axios-logger - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

6

package.json
{
"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);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc