Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@midwayjs/debugger
Advanced tools
通用的 debug 包裹,让一个方法有了单步调试的能力,可以用在 cli 等情况下支持 --debug
参数启动单步调试。
npm i @midwayjs/debugger --save
// function.ts
import { debugWrapper } from '@midwayjs/debugger';
export const fun = async (arg1, arg2) => {
await new Promise(resolve => setTimeout(resolve, 1000));
return arg1 + arg2;
}
export const wrapFun = debugWrapper({
file: __filename, // 要包裹的方法所在文件
export: 'fun', // 要包裹的方法的方法名
debug: process.env.DEBUG // 是否开启debug,true即开启
});
FAQs
Currency Debug
The npm package @midwayjs/debugger receives a total of 617 weekly downloads. As such, @midwayjs/debugger popularity was classified as not popular.
We found that @midwayjs/debugger demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.