
Security News
/Research
Fake Corepack Site Distributes Infostealer and Proxyware to Developers
A fake corepack.org site is impersonating the Node.js tool and delivers an infostealer and proxyware to developers who download it.
pinia-cache-plugin
Advanced tools
pinia state cache plugin (pinia 状态持久化缓存插件)
通过 localStorage 缓存 pinia 状态。
npm install pinia-cache-plugin
import { createPinia } from 'pinia';
import piniaCachePlugin from 'pinia-cache-plugin';
const store = createPinia();
// 默认参数
/* {
allCache: false,
excludeNameArray: [],
cacheNameArray: [],
cacheNameExpire: {
defaultExpire: 'local',
},
}, */
store.use(piniaCachePlugin(options));
{
// 是否缓存所有状态,默认不缓存
allCache: boolean;
// 排除状态 storeId,默认不排除
excludeNameArray: string[];
// 缓存状态 storeId,默认不缓存
cacheNameArray: string[];
// 缓存时间,默认 local (持久保存)
// 可以设置过期时间数值,单位为毫秒(多少毫秒后过期)
cacheNameExpire: {
// 默认使用状态
defaultExpire: 'local',
// 单独设置状态(优先)
[key: string]: 'local' | number
};
}
FAQs
pinia state cache plugin (pinia状态持久化缓存插件)
The npm package pinia-cache-plugin receives a total of 0 weekly downloads. As such, pinia-cache-plugin popularity was classified as not popular.
We found that pinia-cache-plugin 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
/Research
A fake corepack.org site is impersonating the Node.js tool and delivers an infostealer and proxyware to developers who download it.

Research
/Security News
A large-scale campaign abused GitHub Actions in compromised repositories to exploit CVE-2026-41940 in cPanel and WHM and steal server credentials.

Security News
Five frontier LLMs generated the same nonexistent package names, leaving 53 available for potential slopsquatting across PyPI and npm.