Skip to content

Commit

Permalink
bump to v0.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNorthMemory committed May 15, 2021
1 parent 8f7dacc commit 4267fa3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ The WeChatPay OpenAPI v2&v3' Smart Development Kit
- [x] 使用Node原生`crypto`实现微信支付APIv3的AES加/解密功能(`aes-256-gcm` with `aad`)
- [x] 使用Node原生`crypto`实现微信支付APIv3的RSA加/解密、签名、验签功能(`sha256WithRSAEncryption` with `RSA_PKCS1_OAEP_PADDING`)
- [x] 大部分微信支付APIv3的HTTP GET/POST/PUT/PATCH/DELETE应该能够正常工作,依赖 [Axios](https://github.com/axios/axios), 示例代码如下
- [x] 支持微信支付APIv3的媒体文件上传(图片/视频)功能,需手动安装 [form-data](https://github.com/form-data/form-data), 示例代码如下
- [x] 支持微信支付APIv3的应答证书下载功能,需手动安装 [yargs](https://github.com/yargs/yargs), 使用手册如下
- [x] 支持微信支付APIv3的媒体文件上传(图片/视频)功能,以内置`Multipart`类驱动,兼容选装 [form-data](https://github.com/form-data/form-data), 示例代码如下
- [x] 支持微信支付APIv3的平台证书下载功能,需手动安装 [yargs](https://github.com/yargs/yargs), 使用手册如下
- [x] 支持微信支付APIv3的帐单下载及解析功能,示例代码如下
- [x] 支持微信支付APIv2 & APIv3面向对象编程模式,示例代码如下
- [x] 支持 `Typescript`
Expand Down Expand Up @@ -390,7 +390,8 @@ wxpay.v3.marketing.busifavor.stocks
### 图片上传
```js
const FormData = require('form-data')
// optional require the form-data npm package, when installed then use it
const { FormData } = require('wechpaypay-axios-plugin')
const {createReadStream} = require('fs')

const imageMeta = {
Expand Down Expand Up @@ -486,7 +487,7 @@ imageData.append('file', createReadStream('./hellowechatpay.png'))
### 视频文件上传
```js
const FormData = require('form-data')
const { Multipart } = require('wechatpay-axios-plugin')
const {createReadStream} = require('fs')

const videoMeta = {
Expand Down Expand Up @@ -1089,6 +1090,9 @@ QQ群: **684379275**
## 变更历史
- v0.7.0 (2021-05-15)
- 新增`Multipart`类,不再`peerDependency`,`form-data`说明及用法见[#22](https://github.com/TheNorthMemory/wechatpay-axios-plugin/issues/22)
- v0.6.1 (2021-04-22)
- 优化CLI,扩展`wxpay <uri>``-b`参数为可变布尔量,兼容之前版本用法,以支持 [#21](https://github.com/TheNorthMemory/wechatpay-axios-plugin/issues/21)
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wechatpay-axios-plugin",
"version": "0.6.1",
"version": "0.7.0",
"description": "微信支付APIv2及v3 NodeJS SDK,支持CLI模式请求OpenAPI,支持v3证书下载,v2付款码支付、企业付款、退款,企业微信-企业支付-企业红包/向员工付款,v2&v3 Native支付、扫码支付、H5支付、JSAPI/小程序支付、合单支付...",
"main": "index.js",
"typings": "index.d.ts",
Expand Down Expand Up @@ -42,6 +42,7 @@
"pkcs7padding",
"rsa-oaep",
"axios-ecosystem",
"multipart/form-data",
"wxpay",
"微信支付"
],
Expand Down

0 comments on commit 4267fa3

Please sign in to comment.