ms-types 0.3.31 → 0.3.33

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.33",
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
  }
package/types/device.d.ts CHANGED
@@ -29,6 +29,18 @@ declare namespace device {
29
29
  * @example device.getServerDeviceId()
30
30
  */
31
31
  function getServerDeviceId(): string;
32
+ /**
33
+ * 获取ECID
34
+ * @returns ECID
35
+ * @example device.getECID()
36
+ */
37
+ function getECID(): string;
38
+ /**
39
+ * 获取UDID
40
+ * @returns UDID
41
+ * @example device.getUDID()
42
+ */
43
+ function getUDID(): string;
32
44
  /**
33
45
  * 获取设备名称
34
46
  * @returns 设备名称
@@ -30,6 +30,18 @@ declare namespace $设备 {
30
30
  * @example $设备.获取服务器设备ID()
31
31
  */
32
32
  function 获取服务器设备ID(): 字符串;
33
+ /**
34
+ * 获取ECID
35
+ * @returns ECID
36
+ * @example $设备.获取ECID()
37
+ */
38
+ function 获取ECID(): 字符串;
39
+ /**
40
+ * 获取UDID
41
+ * @returns UDID
42
+ * @example $设备.获取UDID()
43
+ */
44
+ function 获取UDID(): 字符串;
33
45
  /**
34
46
  * 获取设备名称
35
47
  * @returns 设备名称