ddan-js 4.1.5 → 4.1.6

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.
@@ -3,5 +3,8 @@ declare const _default: {
3
3
  aesGcmDecrypt: (encryptedBase64: string, aesKey: CryptoKey, ivFirst?: boolean) => Promise<string>;
4
4
  aesCryptoKey: (sharedBase64: string) => Promise<CryptoKey | null>;
5
5
  aesCryptoKeyFromHkdf: (sharedBase64: string, saltBase64: string, infoBase64: string) => Promise<CryptoKey | null>;
6
+ aesGcmKey: (rawData: BufferSource) => Promise<CryptoKey | null>;
7
+ rawKeyHex: (cryptoKey: CryptoKey) => Promise<string>;
8
+ rawKeyBytes: (cryptoKey: CryptoKey) => Promise<Uint8Array | null>;
6
9
  };
7
10
  export default _default;
@@ -3,5 +3,8 @@ declare const _default: {
3
3
  aesGcmDecrypt: (subtle: any, encryptedBase64: string, aesKey: CryptoKey, ivFirst?: boolean) => Promise<string>;
4
4
  aesCryptoKey: (subtle: any, sharedBase64: string) => Promise<CryptoKey | null>;
5
5
  aesCryptoKeyFromHkdf: (subtle: any, sharedBase64: string, saltBase64: string, infoBase64: string) => Promise<CryptoKey | null>;
6
+ aesGcmKey: (subtle: any, rawData: BufferSource) => Promise<CryptoKey | null>;
7
+ rawKeyHex: (subtle: any, cryptoKey: CryptoKey) => Promise<string>;
8
+ rawKeyBytes: (subtle: any, cryptoKey: CryptoKey) => Promise<Uint8Array | null>;
6
9
  };
7
10
  export default _default;
@@ -3,5 +3,8 @@ declare const _default: {
3
3
  aesGcmDecrypt: (encryptedBase64: string, aesKey: CryptoKey, ivFirst?: boolean) => Promise<string>;
4
4
  aesCryptoKey: (sharedBase64: string) => Promise<CryptoKey | null>;
5
5
  aesCryptoKeyFromHkdf: (sharedBase64: string, saltBase64: string, infoBase64: string) => Promise<CryptoKey | null>;
6
+ aesGcmKey: (rawData: BufferSource) => Promise<CryptoKey | null>;
7
+ rawKeyHex: (cryptoKey: CryptoKey) => Promise<string>;
8
+ rawKeyBytes: (cryptoKey: CryptoKey) => Promise<Uint8Array | null>;
6
9
  };
7
10
  export default _default;
@@ -22,6 +22,9 @@ declare const _default: {
22
22
  aesGcmDecrypt: (encryptedBase64: string, aesKey: CryptoKey, ivFirst?: boolean) => Promise<string>;
23
23
  aesCryptoKey: (sharedBase64: string) => Promise<CryptoKey | null>;
24
24
  aesCryptoKeyFromHkdf: (sharedBase64: string, saltBase64: string, infoBase64: string) => Promise<CryptoKey | null>;
25
+ aesGcmKey: (rawData: BufferSource) => Promise<CryptoKey | null>;
26
+ rawKeyHex: (cryptoKey: CryptoKey) => Promise<string>;
27
+ rawKeyBytes: (cryptoKey: CryptoKey) => Promise<Uint8Array | null>;
25
28
  };
26
29
  findFreePort: (startPort: number, maxRetries?: number) => Promise<number>;
27
30
  getSystemProxy: () => Promise<{
@@ -19,6 +19,9 @@ declare const dNode: {
19
19
  aesGcmDecrypt: (encryptedBase64: string, aesKey: CryptoKey, ivFirst?: boolean) => Promise<string>;
20
20
  aesCryptoKey: (sharedBase64: string) => Promise<CryptoKey | null>;
21
21
  aesCryptoKeyFromHkdf: (sharedBase64: string, saltBase64: string, infoBase64: string) => Promise<CryptoKey | null>;
22
+ aesGcmKey: (rawData: BufferSource) => Promise<CryptoKey | null>;
23
+ rawKeyHex: (cryptoKey: CryptoKey) => Promise<string>;
24
+ rawKeyBytes: (cryptoKey: CryptoKey) => Promise<Uint8Array | null>;
22
25
  };
23
26
  findFreePort: (startPort: number, maxRetries?: number) => Promise<number>;
24
27
  getSystemProxy: () => Promise<{
package/bin/tiny/web.d.ts CHANGED
@@ -186,6 +186,9 @@ declare const dWeb: {
186
186
  aesGcmDecrypt: (encryptedBase64: string, aesKey: CryptoKey, ivFirst?: boolean) => Promise<string>;
187
187
  aesCryptoKey: (sharedBase64: string) => Promise<CryptoKey | null>;
188
188
  aesCryptoKeyFromHkdf: (sharedBase64: string, saltBase64: string, infoBase64: string) => Promise<CryptoKey | null>;
189
+ aesGcmKey: (rawData: BufferSource) => Promise<CryptoKey | null>;
190
+ rawKeyHex: (cryptoKey: CryptoKey) => Promise<string>;
191
+ rawKeyBytes: (cryptoKey: CryptoKey) => Promise<Uint8Array | null>;
189
192
  };
190
193
  };
191
194
  export default dWeb;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ddan-js",
3
- "version": "4.1.5",
3
+ "version": "4.1.6",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "ddan-js",