Skip to content

Commit 20045ca

Browse files
authored
chore: update dependancies (aws#395)
Dependabot does not play well with lerna and npm. Also, update a test file to match the typescript version.
1 parent 3069c63 commit 20045ca

File tree

3 files changed

+2745
-3113
lines changed

3 files changed

+2745
-3113
lines changed

modules/material-management-browser/test/material_helpers.test.ts

+5-3
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ import {
2222
isValidCryptoKey,
2323
SignatureKey,
2424
VerificationKey,
25+
AwsEsdkJsCryptoKeyPair,
26+
AwsEsdkJsKeyUsage,
2527
} from '@aws-crypto/material-management'
2628
import {
2729
synchronousRandomValues,
@@ -970,14 +972,14 @@ async function sigKeys(suite: WebCryptoAlgorithmSuite) {
970972

971973
const webCryptoAlgorithm = { name: 'ECDSA', namedCurve }
972974
const extractable = false
973-
const usages = ['sign', 'verify']
975+
const usages = ['sign', 'verify'] as AwsEsdkJsKeyUsage[]
974976
const format = 'raw'
975977

976-
const { publicKey, privateKey } = await subtle.generateKey(
978+
const { publicKey, privateKey } = (await subtle.generateKey(
977979
webCryptoAlgorithm,
978980
extractable,
979981
usages
980-
)
982+
)) as AwsEsdkJsCryptoKeyPair
981983
const publicKeyBytes = await subtle.exportKey(format, publicKey)
982984
const compressPoint = SignatureKey.encodeCompressPoint(
983985
new Uint8Array(publicKeyBytes),

0 commit comments

Comments
 (0)