@polyv/request-plugin-sm2 2.2.0 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/types.d.ts +6 -1
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@polyv/request-plugin-sm2",
3
- "version": "2.2.0",
3
+ "version": "2.4.0",
4
4
  "main": "./index.js",
5
5
  "dependencies": {
6
- "@polyv/request-core": "2.2.0",
6
+ "@polyv/request-core": "2.4.0",
7
7
  "sm-crypto": "^0.3.7",
8
8
  "js-base64": "^3.7.5"
9
9
  },
package/types.d.ts CHANGED
@@ -1,4 +1,7 @@
1
- export interface SM2RequestPluginConfig {
1
+ /**
2
+ * SM2 密钥
3
+ */
4
+ export interface SM2Key {
2
5
  /**
3
6
  * 平台公钥(接口提交参数加密用)
4
7
  */
@@ -7,6 +10,8 @@ export interface SM2RequestPluginConfig {
7
10
  * 用户私钥(接口响应内容解密用)
8
11
  */
9
12
  userPrivateKey: string;
13
+ }
14
+ export interface SM2RequestPluginConfig extends SM2Key {
10
15
  /**
11
16
  * 加入忽略加密字段
12
17
  */