Socket
Socket
Sign inDemoInstall

@nuxtjs/axios

Package Overview
Dependencies
4
Maintainers
3
Versions
86
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.2.1 to 4.3.0

10

CHANGELOG.md

@@ -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)

3

lib/index.js
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 @@ }

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc