Socket
Socket
Sign inDemoInstall

croud-layout

Package Overview
Dependencies
7
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.11 to 1.0.12

2

package.json
{
"name": "croud-layout",
"main": "src/plugin.js",
"version": "1.0.11",
"version": "1.0.12",
"description": "A Vue.js project",

@@ -6,0 +6,0 @@ "author": "Brock <brock.reece@croud.co.uk>",

@@ -30,2 +30,22 @@ # croud-layout

## Axios plugin
A drop in replacement for vue-resource
### Basic usage
```js
/* Main.js */
...
import axios from 'croud-layout/src/axios'
...
new Vue({
...
created() {
Vue.use(axios, { setCroudDefaults: true })
},
})
```
## Security Mixin

@@ -32,0 +52,0 @@ Croud-layout now includes the **Security** mixin that can make quick *CRUD* permission checks for the current user.

@@ -13,9 +13,7 @@ import Vue from 'vue'

const instance = axios.create({
...options.defaults,
const instance = axios.create(options.defaults)
instance.interceptors.response.use((response) => {
response.body = response.data
return response
})
instance.interceptors.response.use(response => ({
...response,
body: response.data,
}))

@@ -22,0 +20,0 @@ Vue.prototype.$http = instance

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc