🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis
Socket
Book a DemoInstallSign in
Socket

@antmove/alipay-wx

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@antmove/alipay-wx

transform alipay miniprogram to wx miniprogram tool.

npmnpm
Version
0.2.4
Version published
Weekly downloads
7
-12.5%
Maintainers
1
Weekly downloads
 
Created
Source

日志插件record

说明

这个插件的功能主要作用在ant-move搬家工具转码完成后,会以页面的形式向用户报告转码的详细过程,用户可以更直观的在浏览器上查看工具的转换结果;

参数config

日志工具以函数的形式向外提供了各个模块的检测方法,其中需要使用者提供相应的参数

key值类型说明
isShowbool是否使用日志工具,默认:true
pagePathstring编译生成的页面存放地址
globalconfigobject小程序全局配置文件配置项目说明
pageconfigobject小程序页面配置文件配置项目说明
componentsobject小程序使用的组件说明
apisstring小程序使用的api说明
openAbilitystring小程序使用的开放能力说明
lifeCycleInfostring小程序生命周期函数说明
packagepathstringant-move项目package.json文件的路径(经过path处理后的路径)

配置案例:

const globalconfig = require("../../config/jsonInfo/globalconfig");
const pageconfig = require("../../config/jsonInfo/pageconfig");
const components = require("../../config/componentsInfo/index");
const apis = require("../../config/apiInfo/index");
const openAbility = require("../../config/apiInfo/openAbility");
const lifeCycleInfo = require('../../config/lifeCircleInfo');
const path = require('path');
const packagepath = path.join(__dirname,'../../../../../package.json');

module.exports = {
    isShow: true,
    pagePath: '/', // /代表项目根目录
    globalconfig,
    pageconfig,
    components,
    apis,
    openAbility,
    lifeCycleInfo,
    packagepath
};

FAQs

Package last updated on 23 Aug 2019

Did you know?

Socket

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.

Install

Related posts