
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@festardoctor/utils-storage
Advanced tools
存储组件,包含sessionStorage、localStorage、和Cookie的操作.
import { Cookie,SyncStorage,MtLocalStorage} from '@festardoctor/utils-storage';
//获取所有的cookie值,以map格式返回
Cookie.getCookiesObj();
/**
*
* @param name 名称
* @param value 值
* @param opts 对象key包含:maxAge, path, domain, secure
* @returns {*}
*/
Cookie.set(name,value,opts);
//获取cookie值
Cookie.get(name);
//删除值
Cookie.remove(name);
//清除cookie
Cookie.clear();
//获取所有的cookie值,以map格式返回 等同于getCookieObj();
Cookie.getCookies();
//同时往sessionstorage和cookie中写入数据.
SyncStorage.set(name,value);
//优先从sessionstorage获取数据,如果没有,则从cookie中获取.
SyncStorage.get(name);
//从sessionstorage和cookie中删除数据.
SyncStorage.remove(name);
//清空sessionstorage和cookie
SyncStorage.clear();
//localstorage存储值
MtLocalStorage.set(name,value);
//localstorage取值
MtLocalStorage.get(name);
//localstorage删除值
MtLocalStorage.remove(name);
//清空localstorage
MtLocalStorage.clear();
FAQs
We found that @festardoctor/utils-storage demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.