Socket
Socket
Sign inDemoInstall

@sigstore/sign

Package Overview
Dependencies
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sigstore/sign - npm Package Compare versions

Comparing version 2.1.0 to 2.2.0

5

dist/witness/tlog/index.d.ts

@@ -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>;

3

dist/witness/tlog/index.js

@@ -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 &middot; [![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 @@ };

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc