
Security News
Static vs. Runtime Reachability: Insights from Latio’s On the Record Podcast
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.
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.
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.
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 }, { select: ['nodes', ['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 { blestLazyRequest } from 'blest-vue'
export default {
setup() {
const [submitForm, { data, loading, error }] = blestLazyRequest('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.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.
Security News
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.