@nuxtjs/strapi
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -5,2 +5,4 @@ # Changelog | ||
### [0.1.4](https://github.com/nuxt-community/strapi-module/compare/v0.1.3...v0.1.4) (2020-08-18) | ||
### [0.1.3](https://github.com/nuxt-community/strapi-module/compare/v0.1.2...v0.1.3) (2020-07-28) | ||
@@ -7,0 +9,0 @@ |
@@ -17,2 +17,3 @@ import Vue from 'vue' | ||
this.$http = ctx.$http.create({}) | ||
this.$http.setToken(this.getToken (), 'Bearer') | ||
this.$http.setBaseURL(runtimeConfig.url || '<%= options.url %>') | ||
@@ -128,2 +129,7 @@ this.$http.onError((err) => { | ||
async graphql(data) { | ||
const request = await this.$http.$post(`/graphql`, data) | ||
return request.data; | ||
} | ||
getToken () { | ||
@@ -130,0 +136,0 @@ return this.$cookies.get(TOKEN_KEY) |
{ | ||
"name": "@nuxtjs/strapi", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "Strapi module for NuxtJS", | ||
@@ -19,2 +19,3 @@ "repository": "nuxt-community/strapi-module", | ||
"dev": "nuxt example", | ||
"docs": "nuxt docs", | ||
"lint": "eslint --ext .js,.vue .", | ||
@@ -27,3 +28,3 @@ "release": "yarn test && standard-version && git push --follow-tags && npm publish", | ||
"cookie-universal-nuxt": "^2.1.4", | ||
"defu": "^2.0.4", | ||
"defu": "^3.1.0", | ||
"hookable": "^4.1.1" | ||
@@ -43,3 +44,3 @@ }, | ||
"jest": "latest", | ||
"nuxt-edge": "^2.14.1-26598267.60f68638", | ||
"nuxt": "2.14.3", | ||
"standard-version": "latest" | ||
@@ -46,0 +47,0 @@ }, |
@@ -1,2 +0,2 @@ | ||
[![@nuxtjs/strapi](https://user-images.githubusercontent.com/904724/86623081-3eb71280-bfc1-11ea-9ddd-c9e731e0f3e7.png)](https://strapi.nuxtjs.org) | ||
[![@nuxtjs/strapi](https://strapi.nuxtjs.org/preview.png)](https://strapi.nuxtjs.org) | ||
@@ -3,0 +3,0 @@ |
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
11558
192
+ Addeddefu@3.2.2(transitive)
- Removeddefu@2.0.4(transitive)
Updateddefu@^3.1.0