Socket
Socket
Sign inDemoInstall

@nuxtjs/axios

Package Overview
Dependencies
Maintainers
3
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nuxtjs/axios - npm Package Compare versions

Comparing version 2.2.0 to 2.2.1

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

<a name="2.2.1"></a>
## [2.2.1](https://github.com/nuxt/modules/compare/@nuxtjs/axios@2.2.0...@nuxtjs/axios@2.2.1) (2017-07-15)
### Bug Fixes
* **axios:** problems related to #65 ([4e7dd3f](https://github.com/nuxt/modules/commit/4e7dd3f))
<a name="2.0.3"></a>

@@ -8,0 +19,0 @@ ## [2.0.3](https://github.com/nuxt/modules/compare/@nuxtjs/axios@2.0.2...@nuxtjs/axios@2.0.3) (2017-06-10)

2

package.json
{
"name": "@nuxtjs/axios",
"version": "2.2.0",
"version": "2.2.1",
"license": "MIT",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -66,6 +66,7 @@ import Axios from 'axios'

}
// Set requests token
function setToken (token, type, scopes = 'common') {
value = !token ? null : (type ? type + ' ' : '') + token
setHeader('Authorization', value, scopes)
const value = !token ? null : (type ? type + ' ' : '') + token
this.setHeader('Authorization', value, scopes)
}

@@ -72,0 +73,0 @@

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc