
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
villus-plugins
Advanced tools
A collection of plugins for the Vue GraphQL client Villus library.
pnpm:
pnpm add @digitalnatives/villus-plugins
yarn:
yarn add @digitalnatives/villus-plugins
Use the villus-bugsnag plugin to report any error from a GraphQL response to a configured Bugsnag instance.
Errors detected in Vite dev mode (import.meta.env.DEV) will never be reported to bugsnag and instead will show up in the console.
All the examples below assume that you have already configured Bugsnag (and Bugsnag's Vue integration) as explained in the Bugsnag docs.
import { villusBugsnag } from '@digitalnatives/villus-plugins';
import { createClient, defaultPlugins } from 'villus';
const client = createClient({
url: import.meta.env.VITE_GRAPHQL_ENDPOINT,
use: [villusBugsnag(), ...defaultPlugins() ]
});
createApp(App)
.use(client)
You can choose to ignore certain errors by implementing the shouldReport function. Return false in this function to not report an error, return true for errors you do want to include.
const client = createClient({
url: import.meta.env.VITE_GRAPHQL_ENDPOINT,
use: [villusBugsnag({
shouldReport(error) {
// Ignore any error that contains a validation category error
if (error.graphqlErrors[0].extensions.category === 'validation') {
return false;
}
// Report all other errors by default
return true;
}
}), defaultPlugins() ]
});
createApp(App)
.use(client);
FAQs
A collection of villus plugins
The npm package villus-plugins receives a total of 1 weekly downloads. As such, villus-plugins popularity was classified as not popular.
We found that villus-plugins demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.