From ebe1d5601b2fc578719584fdac50ec29100e0e10 Mon Sep 17 00:00:00 2001 From: Haegul Pyun Date: Fri, 5 Jul 2019 23:56:53 +0900 Subject: [PATCH] Update CI/readme (#29) * Add ignore * Add EOF * Fix config * Add test * Fix ci * Fix package.json * Update readme.md --- README.md | 6 +++--- package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b23a444..53877f2 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ You can use various loggers through the `axios`'s interceptor API. ```javascript import axios from 'axios'; -import AxiosLogger from 'axios-logger'; +import * as AxiosLogger from 'axios-logger'; const instance = axios.create(); instance.interceptors.request.use(AxiosLogger.requestLogger); @@ -47,7 +47,7 @@ instance.interceptors.request.use((config) => { ```javascript import axios from 'axios'; -import AxiosLogger from 'axios-logger'; +import * as AxiosLogger from 'axios-logger'; const instance = axios.create(); instance.interceptors.response.use(AxiosLogger.responseLogger); @@ -68,7 +68,7 @@ You can inject `errorLogger` right after `requestLogger` or `responseLogger`. ```javascript import axios from 'axios'; -import AxiosLogger from 'axios-logger'; +import * as AxiosLogger from 'axios-logger'; const instance = axios.create(); instance.interceptors.request.use(AxiosLogger.requestLogger, AxiosLogger.errorLogger); diff --git a/package.json b/package.json index b516f73..0522861 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "axios-logger", - "version": "2.0.0", + "version": "2.0.1", "description": "Beautify Axios Logging Messages", "main": "lib/index.js", "keywords": [