@nuxtjs/axios
Advanced tools
Comparing version 5.5.4 to 5.6.0
@@ -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 @@ |
@@ -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 @@ } |
{ | ||
"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 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
33104
307
Updatedconsola@^2.10.1