
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Provide out-of-the-box presets for [sweetalert2](https://sweetalert2.github.io/).
Provide out-of-the-box presets for sweetalert2.
npm add cozyalert sweetalert2
import 'cozyalert/dist/style.css'
import { confirm, error, info, success, warning } from 'cozyalert'
// single titleText
success('configuration.titleText')
// or configuration object
success({
// ...
})
import 'cozyalert/dist/style.css'
import Swal from 'cozyalert'
// Use sweetAlert2 methods
Swal.fire({
title: 'Error!',
text: 'Do you want to continue',
icon: 'error',
confirmButtonText: 'Cool'
})
// Use cozyalert methods
Swal.success('bingo!')
success('操作成功').then(() => {
// 关闭
})
info('提示').then(() => {
// 关闭
})
warning('警告').then(() => {
// 关闭
})
error('出错了').then(() => {
// 关闭
})
confirm('确认吗?').then(() => {
// 点击确认
}).catch((e) => {
if (e.isDenied) {
// 点击拒绝
}
else if (e.isDismissed) {
// 点击取消
}
})
No cancel, must confirm.
confirm({
titleText: '同意以继续',
showCancelButton: false,
allowOutsideClick: false,
allowEscapeKey: false,
})
// form with async submitting
confirm({
input: 'text',
inputAttributes: {
placeholder: '备注'
},
confirmButtonText: '同意',
showLoaderOnConfirm: true,
preConfirm: (input) => {
return new Promise((resolve) => {
setTimeout(resolve, 500)
}).then(() => {
alert('同意成功')
}).catch((e) => {
alert('同意失败')
})
},
// 拒绝按钮
showDenyButton: true,
denyButtonText: '拒绝',
returnInputValueOnDeny: true,
preDeny: (input) => {
if (input) {
return new Promise((resolve, reject) => {
setTimeout(reject, 500)
}).then(() => {
alert('拒绝成功')
}).catch((e) => {
alert('拒绝失败')
})
}
else {
this.$swal.showValidationMessage('请填写备注')
return false
}
},
}).then((e) => {
alert('同意')
}).catch((e) => {
if (e.isDenied)
alert('拒绝')
else if (e.isDismissed)
alert('取消')
})
FAQs
Provide out-of-the-box presets for [sweetalert2](https://sweetalert2.github.io/).
The npm package cozyalert receives a total of 1 weekly downloads. As such, cozyalert popularity was classified as not popular.
We found that cozyalert 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 researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.