
Research
npm Malware Targets Telegram Bot Developers with Persistent SSH Backdoors
Malicious npm packages posing as Telegram bot libraries install SSH backdoors and exfiltrate data from Linux developer machines.
tingle-dialog
Advanced tools
对话框
Dialog.alert({
title: '测试',
children: '我是测试我是测试我是测试我是测试我是测试',
onConfirm() {
console.log('alert confirm');
}
});
Dialog.confirm({
title: '测试',
children: '我是测试内容我是测试内容我是测试内容我是测试内容我是测试内容我是测试内容我是',
onConfirm() {
console.log('confirm confirm');
},
onCancel() {
console.log('confirm cancel');
}
});
配置项 | 类型 | 必填 | 默认值 | 功能/备注 |
---|---|---|---|---|
show | boolean | required | false | 是否显示对话框 |
title | string | required | - | 对话框的标题 |
children | string | optional | - | 对话框的内容 |
mask | boolean | optional | true | 是否显示遮罩层 |
buttons | array | optional | 一个确定按钮 | 一个数组,可以配置多个对话框上的按钮,具体的配置参考按钮的配置 |
配置项 | 类型 | 必填 | 默认值 | 功能/备注 |
---|---|---|---|---|
children | string | required | - | 按钮的内容 |
callback | function | optional | - | 点击按钮的回调, 返回false就不会自动关闭对话框 |
primary | boolean | optional | false | 是否作为主按钮 |
静态方法,显示全局的 Dialog,可用参数请参考可用配置,其中回调函数是onConfirm。
静态方法,显示全局的 Dialog,可用参数请参考可用配置,其中回调函数是onConfirm和onCancel。
静态方法,关闭全局的Dialog
###show 实例方法,显示一个对话框
###hide
实例方法,关闭一个对话框
FAQs
The npm package tingle-dialog receives a total of 9 weekly downloads. As such, tingle-dialog popularity was classified as not popular.
We found that tingle-dialog demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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
Malicious npm packages posing as Telegram bot libraries install SSH backdoors and exfiltrate data from Linux developer machines.
Security News
pip, PDM, pip-audit, and the packaging library are already adding support for Python’s new lock file format.
Product
Socket's Go support is now generally available, bringing automatic scanning and deep code analysis to all users with Go projects.