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.
picture-zoom-react
Advanced tools
这是一款 react 放大镜组件
参数 | 类型 | 说明 | 默认值 |
---|---|---|---|
curIndex | number | 默认展示数组中的第一张图片 | 默认0 |
Zoom | number | 设置放大的倍数 | 默认2.5 |
imgList | Array | 需要放大的图片 | ['url','url'] |
如果什么都不设置 则根据.main-img,它是包裹放大镜组件的外层边框,组件初始化会根据 它设置 SourceWidth 和 SourceHeight
<ZoomImg Zoom={2.5} imgList={skuImageDtos}/>
FAQs
react zoom
We found that picture-zoom-react 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.
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.