
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
@tbmini/tb-assets
Advanced tools
资源自动上传插件
在 Taro 项目根目录下安装
$ npm i @tbmini/tb-assets --save
上传结果统一存放在src/assetlist.json中
压缩可能导致图片失真,若出现请单独手动压缩该图片
// 参数
{
folderName?: string // 文件夹名 默认 taobaomini
projectName?: string // 项目名称
isDev?: boolean // 是否测试环境 默认 true
options: {
min?: boolean
maxSize?: number
resPath?: string // 资源路径 默认 ./assets/
distPath?: string
excludeExt?: string[] // 忽略上传文件后缀名 默认 ['ds_store', 'md', '.DS_Store']
preDir?: string[] // 预加载目录 默认 []
jsonPath?: string // assetJSON 路径 默认 ./src/assetList.json'
}
cdnPrefix?: string // cdn前缀 默认 https://yun.duiba.com.cn
ossConfig: OssConfig
}
上传资源
获取预加载资源列表
// 参数
import * as assetlist from '@/assetlist.json'
assetlist
// 示例
const imgList = getPreLoadImg(assetlist)
FAQs
tb-assets
We found that @tbmini/tb-assets demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 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.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

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.