Socket
Socket
Sign inDemoInstall

@nuxtjs/axios

Package Overview
Dependencies
4
Maintainers
6
Versions
86
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.5.0 to 5.5.1

9

CHANGELOG.md

@@ -5,2 +5,11 @@ # Change Log

## [5.5.1](https://github.com/nuxt-community/axios-module/compare/v5.5.0...v5.5.1) (2019-05-23)
### Bug Fixes
* don't toLowerCase headers for `setHeader` and `setToken` ([#250](https://github.com/nuxt-community/axios-module/issues/250)) ([93469f0](https://github.com/nuxt-community/axios-module/commit/93469f0))
# [5.5.0](https://github.com/nuxt-community/axios-module/compare/v5.4.2...v5.5.0) (2019-05-22)

@@ -7,0 +16,0 @@

4

lib/plugin.js

@@ -7,4 +7,2 @@ import Axios from 'axios'

setHeader (name, value, scopes = 'common') {
name = name.toLowerCase()
for (let scope of Array.isArray(scopes) ? scopes : [ scopes ]) {

@@ -20,3 +18,3 @@ if (!value) {

const value = !token ? null : (type ? type + ' ' : '') + token
this.setHeader('authorization', value, scopes)
this.setHeader('Authorization', value, scopes)
},

@@ -23,0 +21,0 @@ onRequest(fn) {

{
"name": "@nuxtjs/axios",
"version": "5.5.0",
"version": "5.5.1",
"description": "Secure and easy axios integration with Nuxt.js",

@@ -5,0 +5,0 @@ "license": "MIT",

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