
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@finclip/applet-builder-ci
Advanced tools
const { build } = require('@finclip/applet-builder-ci')
(async () => {
/**
*
* @param {Object} options - 编译参数
* @param {string} options.input - 小程序路径
* @param {string} options.output - 输出路径
* @param {boolean} options.zip - 是否输出 zip 包
* @param {boolean} options.minify - 压缩小程序js
* @param {boolean} options.obfuscate - 混淆小程序js
* @param {boolean} options.DSL - 控制文件后缀名与前缀
* @returns Promise
*/
const builder = await build({
input: '/path/to/miniprogram',
output: '/path/to/output/dir',
zip: true,
minify: false,
obfuscate: false,
DSL: {
alias: ['foo', 'bar'],
prefix: 'ft', // wx.修改为ft
wxml: 'fxml', // .wxml为.fxml
wxss: 'ftss',
wxs: 'fts',
finClipConf: 'FinClipConf.js'
},
modifyCss: { // 替换全局样式: modifyCss.md
builtCss: []
}
watch: {
exclude: [], // watch需要忽略的目录与文件 支持glob与正则
},
exclude: [], //打包时需要忽略的目录与文件 支持glob与正则
trimText: false //单行文本内容不换行
})
if (watch) { // 是否开启watch
builder.pause() //是否停止watch
builder.resume() //是否重启watch
}
})()
const { packNpm } = require('@finclip/applet-builder-ci')
(async () => {
/**
*
* @param {string} project - 小程序路径
* @param {Object} options - 编译参数
* @param {[string]} options.ignores - 指定构建npm需要排除的规则
* @param {string} options.reporter - 构建回调信息
* @returns Promise
*/
// 在有需要的时候构建npm
await packNpm(project, {
ignores: ['pack_npm_ignore_list'],
reporter: (infos) => { console.log(infos) }
})
})()
const { packNpmManually } = require('@finclip/applet-builder-ci')
(async () => {
/**
*
* @param {Object} options - 编译参数
* @param {string} options.packageJsonPath - 希望被构建的node_modules 对应的 package.json 的路径
* @param {string} options.miniprogramNpmDistDir - 被构建 miniprogram_npm 的目标位置目标位置
* @param {[string]} options.ignores - 指定需要排除的规则
* @returns Promise
*/
// 在有需要的时候构建npm
await packNpmManually({
packageJsonPath: './lib/package.json',
miniprogramNpmDistDir: './miniprogram-project/miniprogram/'
})
})()
FAQs
`@finclip/applet-builder-ci` 是一个 Node.js 库,提供了与编译、上传、审核和发布小程序相关的功能。该库的目标是简化小程序开发和部署的流程。
The npm package @finclip/applet-builder-ci receives a total of 46 weekly downloads. As such, @finclip/applet-builder-ci popularity was classified as not popular.
We found that @finclip/applet-builder-ci demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.