Skip to content

Commit

Permalink
new build
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei Sambra committed Dec 30, 2021
1 parent 49e423b commit 0df4093
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 8 deletions.
4 changes: 2 additions & 2 deletions dist/cjs/web-crypto.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,15 +114,15 @@ declare const genAESKey: (extractable?: boolean, mode?: string, keySize?: number
* @param {string} [mode] - The mode of the key to import (default 'AES-GCM')
* @returns {Promise<arrayBuffer>} - The cryptoKey
*/
declare const importKey: (key: ArrayBuffer, type?: string, mode?: string) => Promise<CryptoKey>;
declare const importKey: (key: ArrayBuffer, type?: 'pkcs8' | 'spki' | 'raw', mode?: string) => Promise<CryptoKey>;
/**
* Export a CryptoKey into a raw|jwk key
*
* @param {CryptoKey} key - The CryptoKey
* @param {string} [type] - The type of the exported key: raw|jwk
* @returns {Promise<arrayBuffer>} - The raw key or the key as a jwk format
*/
declare const exportKey: (key: CryptoKey, type?: 'raw' | 'pkcs8' | 'spki' | 'jwk') => Promise<ArrayBuffer>;
declare const exportKey: (key: CryptoKey, type?: 'pkcs8' | 'spki' | 'raw') => Promise<ArrayBuffer>;
/**
* Encrypt buffer
*
Expand Down
2 changes: 1 addition & 1 deletion dist/cjs/web-crypto.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/cjs/web-crypto.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/esm/web-crypto.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,15 +114,15 @@ declare const genAESKey: (extractable?: boolean, mode?: string, keySize?: number
* @param {string} [mode] - The mode of the key to import (default 'AES-GCM')
* @returns {Promise<arrayBuffer>} - The cryptoKey
*/
declare const importKey: (key: ArrayBuffer, type?: string, mode?: string) => Promise<CryptoKey>;
declare const importKey: (key: ArrayBuffer, type?: 'pkcs8' | 'spki' | 'raw', mode?: string) => Promise<CryptoKey>;
/**
* Export a CryptoKey into a raw|jwk key
*
* @param {CryptoKey} key - The CryptoKey
* @param {string} [type] - The type of the exported key: raw|jwk
* @returns {Promise<arrayBuffer>} - The raw key or the key as a jwk format
*/
declare const exportKey: (key: CryptoKey, type?: 'raw' | 'pkcs8' | 'spki' | 'jwk') => Promise<ArrayBuffer>;
declare const exportKey: (key: CryptoKey, type?: 'pkcs8' | 'spki' | 'raw') => Promise<ArrayBuffer>;
/**
* Encrypt buffer
*
Expand Down
5 changes: 4 additions & 1 deletion dist/esm/web-crypto.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/esm/web-crypto.js.map

Large diffs are not rendered by default.

0 comments on commit 0df4093

Please sign in to comment.