Skip to content

Commit

Permalink
fixup! fix: fallback to shasum when integrity is not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
aduh95 committed Jul 19, 2024
1 parent c7062ff commit 9c725d7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/_registryServer.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,7 @@ const registry = {
function generateSignature(packageName, version) {
if (privateKey == null) return undefined;
const sign = createSign(`SHA256`).end(`${packageName}@${version}:${integrity}`);
return {signatures: [{
integrity,
return {integrity, signatures: [{
keyid,
sig: sign.sign(privateKey, `base64`),
}]};
Expand Down

0 comments on commit 9c725d7

Please sign in to comment.