
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@domain.js/rest
Advanced tools
Domain.js 项目通用增删改查模块
npm i @domain.js/rest --save
专属配置名称 rest
名称 | 类型 | 必填 | 默认值 | 描述 | 样例 |
---|---|---|---|---|---|
relativeMaxRangeDays | Integer | 否 | 100 | 相对时间过滤,日期最大跨度,天数 |
名称 | 类型 | 描述 |
---|---|---|
errors.resourceDuplicateAdd | Function | rest.add 方法遇到资源重复是会调用改函数返回错误 |
errors.notAllowed | Function | rest.list 方法相对时间过滤超过最大天数跨度调用该函数返回错误 |
_ | Object | lodash 库包,之所以通过注入的方式是为把版本控制的主动权交给项目 |
Sequelize_ | Object | sequelize 库包,之所以通过注入的方式是为把版本控制的主动权交给项目 |
moment | Object | moment 库包,之所以通过注入的方式是为把版本控制的主动权交给项目 |
mysql | Object | mysql2 库包,之所以通过注入的方式是为把版本控制的主动权交给项目 |
功能 | 描述 | 样例 |
---|---|---|
rest.list | 列表方法 | rest.list(Model, params) |
rest.remove | 删除某个资源 | rest.remove(model, userId) |
rest.modify | 修改某个资源 | rest.modify(Model, model, params, isAdmin, cols) |
rest.add | 添加一个资源 | rest.add(Model, params, isAdmin, cols, { userId, clientIp }) |
rest.stats | 统计接口 | rest.stats(Model, params, isAdmin, cols, { userId, clientIp }) |
FAQs
domain.js rest 通用模块
We found that @domain.js/rest 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.