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.
@interaction/message
Advanced tools
@interaction/message依赖ng-zorro-antd,所以在使用之前,必须安装ng-zorro-antd
备注:后期重构message,取消对ng-zorro-antd的依赖,前期先这样用。
ng add ng-zorro-antd
ModalService包括三个方法
方法名 | 参数 | 默认值 | 含义 |
---|---|---|---|
alert | title(必填):string type(选填): 'success' | 'warning' | 'error' | 'info' content(选填): string placement(选填): 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight' | placement的默认值为"bottomRight" 其他参数无默认值 | 弹出框 |
confirm | msg(必填): string | 确认框(点击确认后无回调) | |
confirmed | msg(必填): string | 确认框(点击确认后有回调) |
npm install @interaction/message
import { ModalService } from '@interaction/message';
export class AppComponent {
constructor(
private modal: ModalService
){
this.modal.alert('111', 'error');
}
}
FAQs
## 前提
The npm package @interaction/message receives a total of 0 weekly downloads. As such, @interaction/message popularity was classified as not popular.
We found that @interaction/message demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 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.