
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
A Vue client for BLEST (Batch-able, Lightweight, Encrypted State Transfer), an improved communication protocol for web APIs which leverages JSON, supports request batching and selective returns, and provides a modern alternative to REST.
A Vue client for BLEST (Batch-able, Lightweight, Encrypted State Transfer), an improved communication protocol for web APIs which leverages JSON, supports request batching and selective returns, and provides a modern alternative to REST.
To learn more about BLEST, please visit the website: https://blest.jhunt.dev
Install BLEST Vue from npm
With npm:
npm install --save blest-vue
or using yarn:
yarn add blest-vue
Wrap your app (or just part of it) with BlestProvider
.
<template>
<BlestProvider url='http://localhost:8080' options={{ headers: { Authorization: 'Bearer token' } }}>
<!-- Your app here -->
</BlestProvider>
</template>
<script>
import { BlestProvider } from 'blest-vue'
export default {
data() {
return {
};
},
mounted() {
},
methods: {
},
};
</script>
Use the blestRequest
function to perform passive requests on mount and when parameters change.
<template>
<div>
<p v-if="loading">Loading...</p>
<p v-else-if="error">Error: {{ error.message }}</p>
<p v-else>{{ JSON.stringify(data) }}</p>
</div>
</template>
<script>
import { blestRequest } from 'blest-vue'
export default {
setup() {
const { data, error, loading } = blestRequest('listItems', { limit: 24 }, ['data', ['pageInfo', ['endCursor', 'hasNextPage']]])
return { data, error, loading }
}
};
</script>
Use the blestCommand
function to generate a request function you can call when needed.
<template>
<div>
<!-- Your form here -->
<button v-on:click="handleSubmit()">Submit</button>
<p v-if="loading">Loading...</p>
<p v-else-if="error">Error: {{ error.message }}</p>
<p v-else>{{ JSON.stringify(data) }}</p>
</div>
</template>
<script>
import { blestCommand } from 'blest-vue'
export default {
setup() {
const [submitForm, { data, loading, error }] = blestCommand('submitForm')
const handleSubmit = () => {
submitForm({
hello: 'World'
})
}
return { handleSubmit, data, loading, error }
}
};
</script>
This project is licensed under the MIT License.
FAQs
A Vue client for BLEST (Batch-able, Lightweight, Encrypted State Transfer), an improved communication protocol for web APIs which leverages JSON, supports request batching by default, and provides a modern alternative to REST.
The npm package blest-vue receives a total of 0 weekly downloads. As such, blest-vue popularity was classified as not popular.
We found that blest-vue demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.