@nuxtjs/strapi
Advanced tools
Comparing version 0.1.6 to 0.1.7
@@ -5,2 +5,14 @@ # Changelog | ||
### [0.1.7](https://github.com/nuxt-community/strapi-module/compare/v0.1.6...v0.1.7) (2020-10-08) | ||
### Features | ||
* Tiny change to plugin.js to reduce the size of lodash on build ([#45](https://github.com/nuxt-community/strapi-module/issues/45)) ([8b59046](https://github.com/nuxt-community/strapi-module/commit/8b5904693446b592a308fe8c028e26ddb1e372eb)) | ||
### Bug Fixes | ||
* **lib:** better error handling ([58a9d17](https://github.com/nuxt-community/strapi-module/commit/58a9d17ec3be63fd837bf1d273ba5b298221f54e)) | ||
### [0.1.6](https://github.com/nuxt-community/strapi-module/compare/v0.1.5...v0.1.6) (2020-08-25) | ||
@@ -7,0 +19,0 @@ |
import Vue from 'vue' | ||
import Hookable from 'hookable' | ||
import { isArray, isObject } from 'lodash' | ||
import isArray from 'lodash/isArray'; | ||
import isObject from 'lodash/isObject'; | ||
@@ -20,2 +21,7 @@ const TOKEN_KEY = 'strapi_jwt' | ||
this.$http.onError((err) => { | ||
if (!err.response) { | ||
this.callHook('error', err) | ||
return | ||
} | ||
const { response: { data: { message: msg } } } = err | ||
@@ -137,5 +143,5 @@ | ||
async graphql (data) { | ||
const request = await this.$http.$post(`/graphql`, data) | ||
return request.data; | ||
async graphql (query) { | ||
const { data } = await this.$http.$post(`/graphql`, query) | ||
return data | ||
} | ||
@@ -142,0 +148,0 @@ |
{ | ||
"name": "@nuxtjs/strapi", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"description": "Strapi module for NuxtJS", | ||
@@ -25,3 +25,3 @@ "repository": "nuxt-community/strapi-module", | ||
"dependencies": { | ||
"@nuxt/http": "^0.5.11", | ||
"@nuxt/http": "^0.6.0", | ||
"cookie-universal-nuxt": "^2.1.4", | ||
@@ -43,3 +43,3 @@ "defu": "^3.1.0", | ||
"jest": "latest", | ||
"nuxt": "2.14.3", | ||
"nuxt": "2.14.6", | ||
"standard-version": "latest" | ||
@@ -46,0 +46,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
13557
225
+ Added@nuxt/http@0.6.4(transitive)
+ Addedky@0.25.1(transitive)
- Removed@nuxt/http@0.5.13(transitive)
- Removedky@0.23.0(transitive)
Updated@nuxt/http@^0.6.0