Skip to content

Commit 2d565e1

Browse files
committed
release v1.2.1
1 parent 5664070 commit 2d565e1

File tree

11 files changed

+212
-155
lines changed

11 files changed

+212
-155
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# 更新日志
22

3-
## 2023.02.08 v1.2.0 更新日志
3+
## 2023.02.08 v1.2.1 更新日志
44

55
1. 更改加密安全:`AES-256-GCM => AES-256-CBC`
66
2. 升级依赖包

docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
index.md - v1.2.0 / [Exports](modules.md)
1+
index.md - v1.2.1 / [Exports](modules.md)
22

33
<div style="text-align: center;" align="center">
44

docs/classes/WxCrypto.md

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
[index.md - v1.2.0](../README.md) / [Exports](../modules.md) / WxCrypto
1+
[index.md - v1.2.1](../README.md) / [Exports](../modules.md) / WxCrypto
22

33
# Class: WxCrypto
44

5-
微信消息加解密 nodejs 版本
5+
微信消息加解密nodejs版本
66

77
**`Example`**
88

@@ -41,15 +41,15 @@ var [err, decryptedXML] = wx.decrypt(signature, timestamp, nonce, encrypted);
4141

4242
#### Parameters
4343

44-
| Name | Type |
45-
| :--------------- | :------- |
46-
| `token` | `string` |
44+
| Name | Type |
45+
| :------ | :------ |
46+
| `token` | `string` |
4747
| `encodingAESKey` | `string` |
48-
| `appID` | `string` |
48+
| `appID` | `string` |
4949

5050
#### Defined in
5151

52-
[src/index.ts:62](https://github.com/saqqdy/node-wxcrypto/blob/567a8c9/src/index.ts#L62)
52+
[src/index.ts:62](https://github.com/saqqdy/node-wxcrypto/blob/5664070/src/index.ts#L62)
5353

5454
## Properties
5555

@@ -59,37 +59,37 @@ var [err, decryptedXML] = wx.decrypt(signature, timestamp, nonce, encrypted);
5959

6060
#### Defined in
6161

62-
[src/index.ts:61](https://github.com/saqqdy/node-wxcrypto/blob/567a8c9/src/index.ts#L61)
62+
[src/index.ts:61](https://github.com/saqqdy/node-wxcrypto/blob/5664070/src/index.ts#L61)
6363

64-
---
64+
___
6565

6666
### iv
6767

6868
**iv**: `Buffer`
6969

7070
#### Defined in
7171

72-
[src/index.ts:60](https://github.com/saqqdy/node-wxcrypto/blob/567a8c9/src/index.ts#L60)
72+
[src/index.ts:60](https://github.com/saqqdy/node-wxcrypto/blob/5664070/src/index.ts#L60)
7373

74-
---
74+
___
7575

7676
### key
7777

7878
**key**: `Buffer`
7979

8080
#### Defined in
8181

82-
[src/index.ts:59](https://github.com/saqqdy/node-wxcrypto/blob/567a8c9/src/index.ts#L59)
82+
[src/index.ts:59](https://github.com/saqqdy/node-wxcrypto/blob/5664070/src/index.ts#L59)
8383

84-
---
84+
___
8585

8686
### token
8787

8888
**token**: `string`
8989

9090
#### Defined in
9191

92-
[src/index.ts:58](https://github.com/saqqdy/node-wxcrypto/blob/567a8c9/src/index.ts#L58)
92+
[src/index.ts:58](https://github.com/saqqdy/node-wxcrypto/blob/5664070/src/index.ts#L58)
9393

9494
## Methods
9595

@@ -101,11 +101,11 @@ decrypt
101101

102102
#### Parameters
103103

104-
| Name | Type | Description |
105-
| :---------- | :------------------- | :--------------------------------------------------- |
106-
| `data` | `string` | encrypt string, eg. oVMc1Y6qP86YfAa.../QGgk503Q68Q== |
107-
| `timestamp` | `string` \| `number` | timestamp |
108-
| `nonce` | `string` \| `number` | nonce |
104+
| Name | Type | Description |
105+
| :------ | :------ | :------ |
106+
| `data` | `string` | encrypt string, eg. oVMc1Y6qP86YfAa.../QGgk503Q68Q== |
107+
| `timestamp` | `string` \| `number` | timestamp |
108+
| `nonce` | `string` \| `number` | nonce |
109109

110110
#### Returns
111111

@@ -115,9 +115,9 @@ xml - xmData, eg. { ComponentVerifyTicket: 'xxxx', ..., AppId: 'xxxx' }
115115

116116
#### Defined in
117117

118-
[src/index.ts:121](https://github.com/saqqdy/node-wxcrypto/blob/567a8c9/src/index.ts#L121)
118+
[src/index.ts:121](https://github.com/saqqdy/node-wxcrypto/blob/5664070/src/index.ts#L121)
119119

120-
---
120+
___
121121

122122
### encrypt
123123

@@ -128,8 +128,8 @@ Base64Encode(AES256Encrypt[RandomString(16B) + ContentLength(4B) + Content + app
128128

129129
#### Parameters
130130

131-
| Name | Type | Description |
132-
| :----- | :----------------------------- | :------------------------------------------------------------------------- |
131+
| Name | Type | Description |
132+
| :------ | :------ | :------ |
133133
| `data` | `Record`<`string`, `unknown`\> | xml data String, eg. { ComponentVerifyTicket: 'xxxx', ..., AppId: 'xxxx' } |
134134

135135
#### Returns
@@ -140,4 +140,4 @@ encrypt - encrypt string, eg. oVMc1Y6qP86YfAa.../QGgk503Q68Q==
140140

141141
#### Defined in
142142

143-
[src/index.ts:93](https://github.com/saqqdy/node-wxcrypto/blob/567a8c9/src/index.ts#L93)
143+
[src/index.ts:93](https://github.com/saqqdy/node-wxcrypto/blob/5664070/src/index.ts#L93)

docs/interfaces/BuildXMLOptions.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[index.md - v1.2.0](../README.md) / [Exports](../modules.md) / BuildXMLOptions
1+
[index.md - v1.2.1](../README.md) / [Exports](../modules.md) / BuildXMLOptions
22

33
# Interface: BuildXMLOptions
44

@@ -36,7 +36,7 @@ BuilderOptions.allowSurrogateChars
3636

3737
node_modules/.pnpm/@types+xml2js@0.4.11/node_modules/@types/xml2js/index.d.ts:90
3838

39-
---
39+
___
4040

4141
### attrkey
4242

@@ -50,7 +50,7 @@ BuilderOptions.attrkey
5050

5151
node_modules/.pnpm/@types+xml2js@0.4.11/node_modules/@types/xml2js/index.d.ts:83
5252

53-
---
53+
___
5454

5555
### cdata
5656

@@ -62,9 +62,9 @@ BuilderOptions.cdata
6262

6363
#### Defined in
6464

65-
[src/xml.ts:13](https://github.com/saqqdy/node-wxcrypto/blob/567a8c9/src/xml.ts#L13)
65+
[src/xml.ts:13](https://github.com/saqqdy/node-wxcrypto/blob/5664070/src/xml.ts#L13)
6666

67-
---
67+
___
6868

6969
### charkey
7070

@@ -78,7 +78,7 @@ BuilderOptions.charkey
7878

7979
node_modules/.pnpm/@types+xml2js@0.4.11/node_modules/@types/xml2js/index.d.ts:84
8080

81-
---
81+
___
8282

8383
### doctype
8484

@@ -92,7 +92,7 @@ BuilderOptions.doctype
9292

9393
node_modules/.pnpm/@types+xml2js@0.4.11/node_modules/@types/xml2js/index.d.ts:88
9494

95-
---
95+
___
9696

9797
### headless
9898

@@ -104,9 +104,9 @@ BuilderOptions.headless
104104

105105
#### Defined in
106106

107-
[src/xml.ts:14](https://github.com/saqqdy/node-wxcrypto/blob/567a8c9/src/xml.ts#L14)
107+
[src/xml.ts:14](https://github.com/saqqdy/node-wxcrypto/blob/5664070/src/xml.ts#L14)
108108

109-
---
109+
___
110110

111111
### renderOpts
112112

@@ -120,7 +120,7 @@ BuilderOptions.renderOpts
120120

121121
node_modules/.pnpm/@types+xml2js@0.4.11/node_modules/@types/xml2js/index.d.ts:86
122122

123-
---
123+
___
124124

125125
### rootName
126126

@@ -132,9 +132,9 @@ BuilderOptions.rootName
132132

133133
#### Defined in
134134

135-
[src/xml.ts:15](https://github.com/saqqdy/node-wxcrypto/blob/567a8c9/src/xml.ts#L15)
135+
[src/xml.ts:15](https://github.com/saqqdy/node-wxcrypto/blob/5664070/src/xml.ts#L15)
136136

137-
---
137+
___
138138

139139
### xmldec
140140

docs/interfaces/WeixinMessageData.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[index.md - v1.2.0](../README.md) / [Exports](../modules.md) / WeixinMessageData
1+
[index.md - v1.2.1](../README.md) / [Exports](../modules.md) / WeixinMessageData
22

33
# Interface: WeixinMessageData
44

@@ -24,24 +24,24 @@
2424

2525
#### Defined in
2626

27-
[src/index.ts:31](https://github.com/saqqdy/node-wxcrypto/blob/567a8c9/src/index.ts#L31)
27+
[src/index.ts:31](https://github.com/saqqdy/node-wxcrypto/blob/5664070/src/index.ts#L31)
2828

29-
---
29+
___
3030

3131
### CreateTime
3232

3333
**CreateTime**: `string`
3434

3535
#### Defined in
3636

37-
[src/index.ts:32](https://github.com/saqqdy/node-wxcrypto/blob/567a8c9/src/index.ts#L32)
37+
[src/index.ts:32](https://github.com/saqqdy/node-wxcrypto/blob/5664070/src/index.ts#L32)
3838

39-
---
39+
___
4040

4141
### InfoType
4242

4343
**InfoType**: `string`
4444

4545
#### Defined in
4646

47-
[src/index.ts:33](https://github.com/saqqdy/node-wxcrypto/blob/567a8c9/src/index.ts#L33)
47+
[src/index.ts:33](https://github.com/saqqdy/node-wxcrypto/blob/5664070/src/index.ts#L33)

docs/interfaces/WeixinVerifyData.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[index.md - v1.2.0](../README.md) / [Exports](../modules.md) / WeixinVerifyData
1+
[index.md - v1.2.1](../README.md) / [Exports](../modules.md) / WeixinVerifyData
22

33
# Interface: WeixinVerifyData
44

@@ -12,8 +12,8 @@
1212

1313
### xml
1414

15-
**xml**: `Record`<`string`, `unknown`\> & { `AppId`: `string` ; `ComponentVerifyTicket?`: `string` ; `CreateTime`: `string` ; `InfoType`: `string` }
15+
**xml**: `Record`<`string`, `unknown`\> & { `AppId`: `string` ; `ComponentVerifyTicket?`: `string` ; `CreateTime`: `string` ; `InfoType`: `string` }
1616

1717
#### Defined in
1818

19-
[src/index.ts:13](https://github.com/saqqdy/node-wxcrypto/blob/567a8c9/src/index.ts#L13)
19+
[src/index.ts:13](https://github.com/saqqdy/node-wxcrypto/blob/5664070/src/index.ts#L13)

docs/interfaces/withXMLProp.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
[index.md - v1.2.0](../README.md) / [Exports](../modules.md) / withXMLProp
1+
[index.md - v1.2.1](../README.md) / [Exports](../modules.md) / withXMLProp
22

33
# Interface: withXMLProp<T\>
44

55
## Type parameters
66

77
| Name |
8-
| :--- |
9-
| `T` |
8+
| :------ |
9+
| `T` |
1010

1111
## Table of contents
1212

@@ -22,4 +22,4 @@
2222

2323
#### Defined in
2424

25-
[src/index.ts:9](https://github.com/saqqdy/node-wxcrypto/blob/567a8c9/src/index.ts#L9)
25+
[src/index.ts:9](https://github.com/saqqdy/node-wxcrypto/blob/5664070/src/index.ts#L9)

0 commit comments

Comments
 (0)