Skip to content

Commit f446a00

Browse files
committed
chore: dependabot cleanup
Dependabot does not support lerna well. Until npm 7 workspace support is limited to yarn. This PR fixes the package-lock and resolves issues with the node types version.
1 parent 366600c commit f446a00

File tree

3 files changed

+80
-29
lines changed

3 files changed

+80
-29
lines changed

modules/decrypt-node/src/verify_stream.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ export class VerifyStream extends PortableTransformWithType {
255255
callback()
256256
}
257257

258-
push(chunk: any, encoding?: string | undefined): boolean {
258+
push(chunk: any, encoding?: BufferEncoding): boolean {
259259
// Typescript???? this._verify instanceof Verify is better....
260260
if (this._verify && chunk) {
261261
this._verify.update(chunk)

modules/material-management-node/src/material_helpers.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,10 @@ export const getDecryptionHelper: GetDecryptionHelper = (
171171
// explicitly bind the public key for this material
172172
{
173173
awsCryptoVerify: (signature: Buffer) =>
174-
verify.verify(verificationKey.publicKey, signature),
174+
// As typescript gets better typing
175+
// We should consider either generics
176+
// 2 different verificationKeys for Node and WebCrypto
177+
verify.verify(verificationKey.publicKey as string, signature),
175178
}
176179
)
177180

0 commit comments

Comments
 (0)