/
githubmirror
/
node
Обзор
Документация
Войти
/
githubmirror
/
node
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
deps/npm/node_modules/@sigstore/bundle/dist/bundle.js
24 строки
1 KB
npm CLI robot
deps: upgrade npm to 11.0.0
10 янв 2025, 19:20
Не верифицирован
10 янв 2025, 19:20
25b22e4
Код
Авторство
О чём код?
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BUNDLE_V03_MEDIA_TYPE = exports.BUNDLE_V03_LEGACY_MEDIA_TYPE = exports.BUNDLE_V02_MEDIA_TYPE = exports.BUNDLE_V01_MEDIA_TYPE = void 0; exports.isBundleWithCertificateChain = isBundleWithCertificateChain; exports.isBundleWithPublicKey = isBundleWithPublicKey; exports.isBundleWithMessageSignature = isBundleWithMessageSignature; exports.isBundleWithDsseEnvelope = isBundleWithDsseEnvelope; exports.BUNDLE_V01_MEDIA_TYPE = 'application/vnd.dev.sigstore.bundle+json;version=0.1'; exports.BUNDLE_V02_MEDIA_TYPE = 'application/vnd.dev.sigstore.bundle+json;version=0.2'; exports.BUNDLE_V03_LEGACY_MEDIA_TYPE = 'application/vnd.dev.sigstore.bundle+json;version=0.3'; exports.BUNDLE_V03_MEDIA_TYPE = 'application/vnd.dev.sigstore.bundle.v0.3+json'; // Type guards for bundle variants. function isBundleWithCertificateChain(b) { return b.verificationMaterial.content.$case === 'x509CertificateChain'; } function isBundleWithPublicKey(b) { return b.verificationMaterial.content.$case === 'publicKey'; } function isBundleWithMessageSignature(b) { return b.content.$case === 'messageSignature'; } function isBundleWithDsseEnvelope(b) { return b.content.$case === 'dsseEnvelope'; }