@sigstore/bundle
Advanced tools
Comparing version 2.1.0 to 2.1.1
import { Envelope } from '@sigstore/protobuf-specs'; | ||
import type { Bundle } from './bundle'; | ||
import { Bundle } from './bundle'; | ||
import type { OneOf } from './utility'; | ||
@@ -4,0 +4,0 @@ export declare const bundleFromJSON: (obj: unknown) => Bundle; |
@@ -20,2 +20,3 @@ "use strict"; | ||
const protobuf_specs_1 = require("@sigstore/protobuf-specs"); | ||
const bundle_1 = require("./bundle"); | ||
const validate_1 = require("./validate"); | ||
@@ -25,2 +26,8 @@ const bundleFromJSON = (obj) => { | ||
(0, validate_1.assertBundle)(bundle); | ||
if (bundle.mediaType === bundle_1.BUNDLE_V01_MEDIA_TYPE) { | ||
(0, validate_1.assertBundleV01)(bundle); | ||
} | ||
else { | ||
(0, validate_1.assertBundleLatest)(bundle); | ||
} | ||
return bundle; | ||
@@ -27,0 +34,0 @@ }; |
{ | ||
"name": "@sigstore/bundle", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "Sigstore bundle type", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -1,2 +0,2 @@ | ||
# @sigstore/bundle · [![npm version](https://img.shields.io/npm/v/@sigstore/bundle.svg?style=flat)](https://www.npmjs.com/package/@sigstore/tuf) [![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) | ||
# @sigstore/bundle · [![npm version](https://img.shields.io/npm/v/@sigstore/bundle.svg?style=flat)](https://www.npmjs.com/package/@sigstore/bundle) [![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) | ||
@@ -13,3 +13,3 @@ A JavaScript library for working with the Sigstore bundle format. | ||
- Node.js version >= 14.17.0 | ||
- Node.js version >= 16.14.0 | ||
@@ -16,0 +16,0 @@ ## Installation |
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
37205
556