diff --git a/README.md b/README.md index 2501ef4..0d7e082 100644 --- a/README.md +++ b/README.md @@ -93,10 +93,10 @@ wxpay req Play the WeChatPay OpenAPI requests over command line -request + -c, --config The configuration [required] -b, --binary Point out the response as `arraybuffer` [boolean] - -m, --method The request HTTP verb [default: "POST"] + -m, --method The request HTTP verb [choices: "DELETE", "GET", "POST", "PUT", "PATCH", "delete", "get", "post", "put", "patch"] [default: "POST"] -h, --headers Special request HTTP header(s) -d, --data The request HTTP body -p, --params The request HTTP query parameter(s) @@ -1032,6 +1032,10 @@ Q: 接口地址为slash(`/`)结尾的,应该如何构建请求参数? ## 变更历史 +- v0.5.1 + - 优化CLI,可以直接 `wxpay v3/pay/transactions/native` 请求了 + - 优化`README`文档,适配最新CLI用法 + - v0.5.0 - 新增命令行方式与微信支付接口交互工具 - 调整可选依赖包为`peerDependencies`,使用完整功能需手动安装 `form-data` 或/及 `yargs` diff --git a/package.json b/package.json index 85b2a93..0196759 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "wechatpay-axios-plugin", - "version": "0.5.0", + "version": "0.5.1", "description": "微信支付APIv2及v3 NodeJS SDK,支持v3证书下载,v2付款码支付、企业付款、退款,企业微信-企业支付-企业红包/向员工付款,v2&v3 Native支付、扫码支付、H5支付、JSAPI/小程序支付、合单支付...", "main": "index.js", "typings": "index.d.ts", @@ -55,9 +55,11 @@ "yargs": "^16.2.0" }, "devDependencies": { + "@babel/core": "^7.13.13", "@babel/eslint-parser": "^7.13.10", "eslint": "^7.22.0", "eslint-config-airbnb-base": "^14.2.1", + "eslint-plugin-import": "^2.22.1", "eslint-plugin-mocha": "^8.1.0", "mocha": "^8.3.2", "should": "^13.2.3"