Skip to content

Commit

Permalink
fix(jsr): remove slow types
Browse files Browse the repository at this point in the history
  • Loading branch information
brc-dd committed May 9, 2024
1 parent b10697f commit 3901f3a
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion dist/index.d.cts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ type EncryptionAlgorithm = 'aes-128-ctr' | 'aes-256-cbc';
*/
type IntegrityAlgorithm = 'sha256';
/**
* All algorithms supported by the library.
* @internal
*/
type _Algorithm = EncryptionAlgorithm | IntegrityAlgorithm;
Expand Down
1 change: 0 additions & 1 deletion dist/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ type EncryptionAlgorithm = 'aes-128-ctr' | 'aes-256-cbc';
*/
type IntegrityAlgorithm = 'sha256';
/**
* All algorithms supported by the library.
* @internal
*/
type _Algorithm = EncryptionAlgorithm | IntegrityAlgorithm;
Expand Down
3 changes: 1 addition & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import type {
Password,
RawPassword,
SealOptions,
_Algorithm,
password
} from './types.js'
import { base64urlDecode, base64urlEncode, bufferToString, stringToBuffer } from './utils.js'
Expand Down Expand Up @@ -46,7 +45,7 @@ export const algorithms = {
'aes-128-ctr': { keyBits: 128, ivBits: 128, name: 'AES-CTR' },
'aes-256-cbc': { keyBits: 256, ivBits: 128, name: 'AES-CBC' },
sha256: { keyBits: 256, name: 'SHA-256' }
} as const satisfies Record<_Algorithm, { keyBits: number; ivBits?: number; name: string }>
} as const

/**
* MAC normalization format version.
Expand Down
1 change: 0 additions & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ export type EncryptionAlgorithm = 'aes-128-ctr' | 'aes-256-cbc'
export type IntegrityAlgorithm = 'sha256'

/**
* All algorithms supported by the library.
* @internal
*/
export type _Algorithm = EncryptionAlgorithm | IntegrityAlgorithm
Expand Down

0 comments on commit 3901f3a

Please sign in to comment.