Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
github.com/cool-team-official/cool-admin-go/contrib/drivers/sqlite
扩展了 GoFrame 的 sqlite 包,集成了 gorm 相关功能.
引入规则应早于 modules
相关引入,建议在 main.go 中进行引入。
import (
_ "github.com/cool-team-official/cool-admin-go/contrib/drivers/sqlite"
// 换行然后再入模块包,防止编辑器自动排序导致引入顺序错乱
_ "github.com/cool-team-official/cool-admin-go/modules/base"
)
database:
default:
type: "sqlite" # 数据库类型
name: "cool.sqlite" # 数据库名称,对于sqlite来说就是数据库文件名
extra: busy_timeout=5000 # 扩展参数 如 busy_timeout=5000&journal_mode=ALL
createdAt: "createTime" # 创建时间字段名称
updatedAt: "updateTime" # 更新时间字段名称
debug: true # 开启调试模式,启用后将在控制台打印相关sql语句
FAQs
Unknown package
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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.