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

@cerebral/vue

Package Overview
Dependencies
Maintainers
5
Versions
270
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cerebral/vue - npm Package Compare versions

Comparing version 4.0.4 to 4.1.0-1551020966578

4

package.json
{
"name": "@cerebral/vue",
"version": "4.0.4",
"version": "4.1.0-1551020966578",
"description": "Vue.js view for Cerebral",

@@ -17,3 +17,3 @@ "main": "index.js",

"dependencies": {
"cerebral": "^5.0.4"
"cerebral": "^5.1.0-1551020966578"
},

@@ -20,0 +20,0 @@ "scripts": {

@@ -43,8 +43,8 @@ # @cerebral/vue

import { connect } from '@cerebral/vue'
import { state, signal } from 'cerebral/proxy'
import { state, sequence } from 'cerebral'
export default connect(
{
foo: state.foo,
click: signal.clicked
foo: state`foo`,
click: sequence`clicked`
},

@@ -76,37 +76,1 @@ {

```
## .vue file
You can also connect inside a **.vue** file. When using [ParcelJS](https://parceljs.org/) this requires additional packages.
`npm install parcel-plugin-vue babel-preset-env --save-dev`
Then add the preset to your **.babelrc** file:
```js
{
"presets": ["env"],
"plugins": ["cerebral"]
}
```
Your component file can now be written as:
_MyComponent.vue_
```js
<template>
<div v-on:click="click()">{{foo}}</div>
</template>
<script>
import { connect } from '@cerebral/vue'
import { state, signal } from 'cerebral/proxy'
export default connect(
{
foo: state.foo,
click: signal.clicked
}
)
</script>
```
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