Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@nuxtjs/axios

Package Overview
Dependencies
Maintainers
5
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 5.5.4 to 5.6.0

10

CHANGELOG.md

@@ -5,2 +5,12 @@ # Changelog

## [5.6.0](https://github.com/nuxt-community/axios-module/compare/v5.5.4...v5.6.0) (2019-08-20)
### Features
* **types:** provide nuxt 2.9 compatible types ([#277](https://github.com/nuxt-community/axios-module/issues/277)) ([7aee77b](https://github.com/nuxt-community/axios-module/commit/7aee77b))
* https detection ([#260](https://github.com/nuxt-community/axios-module/issues/260)) ([953ab8c](https://github.com/nuxt-community/axios-module/commit/953ab8c))
### [5.5.4](https://github.com/nuxt-community/axios-module/compare/v5.5.3...v5.5.4) (2019-06-05)

@@ -7,0 +17,0 @@

5

lib/module.js

@@ -36,2 +36,5 @@ const path = require('path')

// HTTPS
const https = Boolean(this.options.server && this.options.server.https)
// Apply defaults

@@ -48,3 +51,3 @@ const options = {

retry: false,
https: false,
https,
...moduleOptions

@@ -51,0 +54,0 @@ }

4

package.json
{
"name": "@nuxtjs/axios",
"version": "5.5.4",
"version": "5.6.0",
"description": "Secure and easy axios integration with Nuxt.js",

@@ -29,3 +29,3 @@ "license": "MIT",

"axios-retry": "^3.1.2",
"consola": "^2.7.1"
"consola": "^2.10.1"
},

@@ -32,0 +32,0 @@ "devDependencies": {

@@ -29,6 +29,12 @@ import { AxiosError, AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios'

}
interface NuxtAppOptions {
$axios: NuxtAxiosInstance
}
}
// since nuxt 2.7.1 there is "NuxtAppOptions" for app context - see https://github.com/nuxt/nuxt.js/pull/5701
declare module '@nuxt/vue-app' {
// Nuxt 2.9+
declare module '@nuxt/types' {
interface Context {
$axios: NuxtAxiosInstance
}
interface NuxtAppOptions {

@@ -35,0 +41,0 @@ $axios: NuxtAxiosInstance

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc