@sigstore/sign
Advanced tools
Comparing version 2.1.0 to 2.2.0
@@ -8,5 +8,8 @@ import { TLogClientOptions } from './client'; | ||
}; | ||
export type RekorWitnessOptions = Partial<TLogClientOptions>; | ||
export type RekorWitnessOptions = Partial<TLogClientOptions> & { | ||
entryType?: 'dsse' | 'intoto'; | ||
}; | ||
export declare class RekorWitness implements Witness { | ||
private tlog; | ||
private entryType?; | ||
constructor(options: RekorWitnessOptions); | ||
@@ -13,0 +16,0 @@ testify(content: SignatureBundle, publicKey: string): Promise<TransparencyLogEntries>; |
@@ -25,2 +25,3 @@ "use strict"; | ||
constructor(options) { | ||
this.entryType = options.entryType; | ||
this.tlog = new client_1.TLogClient({ | ||
@@ -32,3 +33,3 @@ ...options, | ||
async testify(content, publicKey) { | ||
const proposedEntry = (0, entry_1.toProposedEntry)(content, publicKey); | ||
const proposedEntry = (0, entry_1.toProposedEntry)(content, publicKey, this.entryType); | ||
const entry = await this.tlog.createEntry(proposedEntry); | ||
@@ -35,0 +36,0 @@ return toTransparencyLogEntry(entry); |
{ | ||
"name": "@sigstore/sign", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"description": "Sigstore signing library", | ||
@@ -30,5 +30,5 @@ "main": "dist/index.js", | ||
"@sigstore/jest": "^0.0.0", | ||
"@sigstore/mock": "^0.4.0", | ||
"@sigstore/mock": "^0.6.0", | ||
"@sigstore/rekor-types": "^2.0.0", | ||
"@types/make-fetch-happen": "^10.0.0" | ||
"@types/make-fetch-happen": "^10.0.3" | ||
}, | ||
@@ -35,0 +35,0 @@ "dependencies": { |
@@ -172,2 +172,3 @@ # @sigstore/sign · [![npm version](https://img.shields.io/npm/v/@sigstore/sign.svg?style=flat)](https://www.npmjs.com/package/sigstore) [![CI Status](https://github.com/sigstore/sigstore-js/workflows/CI/badge.svg)](https://github.com/sigstore/sigstore-js/actions/workflows/ci.yml) [![Smoke Test Status](https://github.com/sigstore/sigstore-js/workflows/smoke-test/badge.svg)](https://github.com/sigstore/sigstore-js/actions/workflows/smoke-test.yml) | ||
const artifact = { | ||
type: 'text/plain', | ||
data: Buffer.from('something to be signed'), | ||
@@ -174,0 +175,0 @@ }; |
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
91545
1796
186