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

@nuxtjs/strapi

Package Overview
Dependencies
Maintainers
2
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nuxtjs/strapi - npm Package Compare versions

Comparing version 0.1.6 to 0.1.7

12

CHANGELOG.md

@@ -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 @@

14

lib/plugin.js
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 @@ },

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