@nuxtjs/axios
Advanced tools
Comparing version 2.2.3 to 2.2.4
@@ -6,2 +6,13 @@ # Change Log | ||
<a name="2.2.4"></a> | ||
## [2.2.4](https://github.com/nuxt/modules/compare/@nuxtjs/axios@2.2.3...@nuxtjs/axios@2.2.4) (2017-07-20) | ||
### Bug Fixes | ||
* **axios:** temporary fix for nuxt/nuxt.js#1127 ([499b639](https://github.com/nuxt/modules/commit/499b639)), closes [nuxt/nuxt.js#1127](https://github.com/nuxt/nuxt.js/issues/1127) | ||
<a name="2.2.3"></a> | ||
@@ -8,0 +19,0 @@ ## [2.2.3](https://github.com/nuxt/modules/compare/@nuxtjs/axios@2.2.1...@nuxtjs/axios@2.2.3) (2017-07-19) |
12
index.js
@@ -42,3 +42,3 @@ const chalk = require('chalk') | ||
// Register plugin | ||
this.addPlugin({ | ||
addPlugin.call(this, { | ||
src: path.resolve(__dirname, 'plugin.js'), | ||
@@ -52,2 +52,12 @@ options | ||
// Temporary fix for nuxt/nuxt.js#1127 | ||
function addPlugin (template) { | ||
const { dst } = this.addTemplate(template) | ||
// Add to nuxt plugins | ||
this.options.plugins.unshift({ | ||
src: path.join(this.options.buildDir, dst), | ||
ssr: template.ssr | ||
}) | ||
} | ||
module.exports.meta = require('./package.json') |
{ | ||
"name": "@nuxtjs/axios", | ||
"version": "2.2.3", | ||
"version": "2.2.4", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
19649
209