Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
nuxt-multi-cache
Advanced tools
SSR page, component and data cache for Nuxt. Supports purging cache entries by key or by cache tags.
Installation - Documentation - NPM
<template>
<div>
<h1>Welcome!</h1>
</div>
</template>
<script>
export default {
asyncData({ app }) {
return app.$api.get('article', { id: 10 }).then(article => {
app.$cache.page.setCacheable()
app.$cache.page.addTags(['article:10'])
return { article }
})
},
data() {
return {
article: {}
}
}
}
</script>
curl -X POST -i \
-H "Authorization: Basic YWRtaW46aHVudGVyMgo=" \
-H "Content-Type: application/json" \
--data '["article:10"]' \
http://localhost:3000/__nuxt_multi_cache/purge/tags
Caching is hard. You should be aware of the risks and potentially huge security issues that may arise when caching an entire page.
Always make sure to never cache anything with content restricted to authenticated users. Else you may leak sensitive information to anonymous users.
FAQs
SSR route, component and data cache for Nuxt.js
The npm package nuxt-multi-cache receives a total of 4,556 weekly downloads. As such, nuxt-multi-cache popularity was classified as popular.
We found that nuxt-multi-cache 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 malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.