ms-types 0.3.31 → 0.3.32

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ms-types",
3
- "version": "0.3.31",
3
+ "version": "0.3.32",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -46,12 +46,14 @@ declare namespace cryptoUtils {
46
46
  /// 计算SHA1值
47
47
  /// - Parameters:
48
48
  /// - data: 要计算SHA1的值
49
+ /// - key: 可选的密钥,用于HMAC-SHA1
49
50
  /// - Returns: SHA1值
50
- function sha1(data: string): string;
51
+ function sha1(data: string, key?: string): string;
51
52
 
52
53
  /// 计算SHA256值
53
54
  /// - Parameters:
54
55
  /// - data: 要计算SHA256的值
56
+ /// - key: 可选的密钥,用于HMAC-SHA256
55
57
  /// - Returns: SHA256值
56
- function sha256(data: string): string;
58
+ function sha256(data: string, key?: string): string;
57
59
  }