Comparing version 1.3.1 to 1.3.2
@@ -65,2 +65,15 @@ "use strict"; | ||
} | ||
function printRekorEntry(bundle, options) { | ||
let url; | ||
if (options.rekorURL === index_1.sigstore.DEFAULT_REKOR_URL) { | ||
url = `https://search.sigstore.dev`; | ||
} | ||
else { | ||
url = `${options.rekorURL}/api/v1/log/entries`; | ||
} | ||
const logIndex = bundle.verificationMaterial?.tlogEntries[0].logIndex; | ||
console.error(`Created entry at index ${logIndex}, available at`); | ||
console.error(`${url}?logIndex=${logIndex}`); | ||
} | ||
// TODO: Allow customing these options | ||
const signOptions = { | ||
@@ -75,12 +88,3 @@ oidcClientID: 'sigstore', | ||
const bundle = await index_1.sigstore.sign(buffer, signOptions); | ||
let url; | ||
if (signOptions.rekorURL === index_1.sigstore.DEFAULT_REKOR_URL) { | ||
url = `https://search.sigstore.dev`; | ||
} | ||
else { | ||
url = `${signOptions.rekorURL}/api/v1/log/entries`; | ||
} | ||
const logIndex = bundle.verificationMaterial?.tlogEntries[0].logIndex; | ||
console.error(`Created entry at index ${logIndex}, available at`); | ||
console.error(`${url}?logIndex=${logIndex}`); | ||
printRekorEntry(bundle, signOptions); | ||
console.log(JSON.stringify(bundle)); | ||
@@ -91,2 +95,3 @@ } | ||
const bundle = await index_1.sigstore.attest(buffer, payloadType, signOptions); | ||
printRekorEntry(bundle, signOptions); | ||
console.log(JSON.stringify(bundle)); | ||
@@ -93,0 +98,0 @@ } |
{ | ||
"name": "sigstore", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"description": "code-signing for npm packages", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
239682
5439