Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@maloulab/taro-plugins-socksuppet-ci
Advanced tools
【小程序马甲包】
原@tarojs/plugin-mini-ci 插件 只支持单个微信小程序的打包 部分需求存在马甲包的需求,需要同时发布多个小程序 为解决该问题
该插件支持马甲包功能,根据配置批量打包多个小程序,并且发布到体验版
taro 3.x 版本可用
yarn add @maloulab/taro-plugins-socksuppet-ci
或
npm i @maloulab/taro-plugins-socksuppet-ci
plugins: [ ["@tarojs/plugin-mini-ci", CIPluginFn]],
修改为
plugins: [ ["@maloulab/taro-plugins-socksuppet-ci", {
CIPluginFn,
// 非必传
configMap: {
},
// 非必传
// 自定义打包命令 默认自动获取(taro + 命令 + 参数)例:taro upload --type weapp
command: ''
}]],
官方插件配置 @tarojs/plugin-mini-ci
配置示例:
由于插件会修改 json 配置中的 appid,以达到构建的目的 需要加入 appid 参数
appid: 必填 appName: 非必填(打包显示)
const CIPluginOpt = {
weapp: [
{
// 必填
appid: "微信小程序appid1",
privateKeyPath:
"密钥文件相对项目根目录的相对路径,例如 key/private.appid.key",
},
{
// 必填
appid: "微信小程序appid2",
privateKeyPath:
"密钥文件相对项目根目录的相对路径,例如 key/private.appid.key",
},
],
// 同weapp,如需多个构建,改为数组
tt: {
appid: "",
email: "字节小程序邮箱",
password: "字节小程序密码",
},
// 同weapp,如需多个构建,改为数组
alipay: {
appid: "支付宝小程序appid",
toolId: "工具id",
privateKeyPath:
"密钥文件相对项目根目录的相对路径,例如 key/pkcs8-private-pem",
},
// 同weapp,如需多个构建,改为数组
dd: {
appid: "钉钉小程序appid,即钉钉开放平台后台应用管理的 MiniAppId 选项",
token: "令牌,从钉钉后台获取",
},
// 同weapp,如需多个构建,改为数组
swan: {
appid: "",
token: "鉴权需要的token令牌",
},
// 版本号
version: "1.0.0",
// 版本发布描述
desc: "版本描述",
};
// 默认configMap
const configMap = {
weapp: "project.config.json",
tt: "project.tt.json",
alipay: "mini.project.json",
qq: "project.config.json",
dd: "project.dd.json",
swan: "project.swan.json",
lark: "project.lark.json",
};
由于插件会自动修改 project.config.json 中的 appid, 实现自动化构建多个小程序,每个小程序文件名不一致 可自定义
因为会修改 project.config.json 或其他 json 中的 appid appid 会替换为配置中的最后一个
因没有其他小程序需求,仅测试微信小程序批量打包!!!
FAQs
# 作用
The npm package @maloulab/taro-plugins-socksuppet-ci receives a total of 31 weekly downloads. As such, @maloulab/taro-plugins-socksuppet-ci popularity was classified as not popular.
We found that @maloulab/taro-plugins-socksuppet-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
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.