
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.
@jdfed/leo-utils
Advanced tools
为 leo 及其生态提供的工具库
动态加载
import { loadPkg } from '@leo/leo-utils';
(async () => {
const puppeteer = await loadPkg('puppeteer', '10.0.0');
})();
import { loadPkg, log } from '@leo/leo-utils';
(async () => {
const puppeteer = await loadPkg('puppeteer', {
version: '10.0.0',
private: true,
beforeInstall: () => {
log.info('Log info when beforeInstall');
},
installSuccess: () => {
log.success('Log info when installSuccess');
},
installFail: () => {
log.error('Log info when installFail');
},
});
})();
| 属性名 | 描述 | 类型 | 默认值 |
|---|---|---|---|
| name | 安装路径 | string | -- |
| versionOrOptions | 版本号或相关配置 | string / object | -- |
| versionOrOptions.version | 版本号 | string | false |
| versionOrOptions.dev | 本次安装是否为开发模式 | boolean | false |
| versionOrOptions.private | 是否将安装的包单独隔离 | boolean | false |
| versionOrOptions.beforeInstall | 本次安装后执行的声明周期 | (name: string, version?: string) => void | -- |
| versionOrOptions.afterInstall | 本次安装前执行的声明周期 | (name: string, version?: string) => void | `-- |
基于 signale 封装的 log 工具
import { log } from '@leo/leo-utils';
log.error('');
log.fatal('');
log.fav('');
log.info('');
log.star('');
log.success('');
log.wait('');
log.warn('');
log.complete('');
log.pending('');
log.note('');
log.start('');
log.pause('');
log.debug('');
log.await('');
log.watch('');
log.log('');
import { log } from '@leo/leo-utils';
// 在输出时标识你的作用域,用于区分输出
const myLog = log.scope('plugin scope');
myLog.info('info');
// [plugin scope] › ℹ info Info will has scope remark
log.debug 是否输出由 leoConfig.isDebug 来控制,你可以通过使用 log.debug 来定位线上问题FAQs
为 leo 及其生态提供的工具库
We found that @jdfed/leo-utils demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 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
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.