@nuxtjs/axios
Advanced tools
Comparing version 4.2.1 to 4.3.0
@@ -5,2 +5,12 @@ # Change Log | ||
<a name="4.3.0"></a> | ||
# [4.3.0](https://github.com/nuxt-community/axios-module/compare/v4.2.1...v4.3.0) (2017-09-11) | ||
### Features | ||
* don't rely on hostname for default values ([dadd7d8](https://github.com/nuxt-community/axios-module/commit/dadd7d8)) | ||
<a name="4.2.1"></a> | ||
@@ -7,0 +17,0 @@ ## [4.2.1](https://github.com/nuxt-community/axios-module/compare/v4.2.0...v4.2.1) (2017-09-08) |
const chalk = require('chalk') | ||
const path = require('path') | ||
const { hostname } = require('os') | ||
const { URL } = require('whatwg-url') | ||
@@ -12,3 +11,3 @@ const debug = require('debug')('nuxt:axios') | ||
if (host === '0.0.0.0') { | ||
host = hostname() | ||
host = 'localhost' | ||
} | ||
@@ -15,0 +14,0 @@ |
{ | ||
"name": "@nuxtjs/axios", | ||
"version": "4.2.1", | ||
"version": "4.3.0", | ||
"description": "Secure and easy axios integration with Nuxt.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -83,11 +83,7 @@ <p align="center"> | ||
modules: [ | ||
// Simple usage | ||
'@nuxtjs/axios', | ||
], | ||
// With options | ||
['@nuxtjs/axios', { credentials: false }], | ||
], | ||
// You can optionally use global options instead of inline form | ||
axios: { | ||
credentials: false | ||
// proxyHeaders: false | ||
} | ||
@@ -94,0 +90,0 @@ } |
27462
215
348