@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
return result ;
24
24
} ;
25
25
Object . defineProperty ( exports , "__esModule" , { value : true } ) ;
26
- exports . artifactVerificationOptions = exports . createBundleBuilder = exports . DEFAULT_TIMEOUT = exports . DEFAULT_RETRY = exports . DEFAULT_REKOR_URL = exports . DEFAULT_FULCIO_URL = void 0 ;
26
+ exports . artifactVerificationOptions = exports . createBundleBuilder = exports . DEFAULT_TIMEOUT = exports . DEFAULT_RETRY = void 0 ;
27
27
/*
28
28
Copyright 2023 The Sigstore Authors.
29
29
@@ -41,8 +41,6 @@ limitations under the License.
41
41
*/
42
42
const sign_1 = require ( "@sigstore/sign" ) ;
43
43
const sigstore = __importStar ( require ( "./types/sigstore" ) ) ;
44
- exports . DEFAULT_FULCIO_URL = 'https://fulcio.sigstore.dev' ;
45
- exports . DEFAULT_REKOR_URL = 'https://rekor.sigstore.dev' ;
46
44
exports . DEFAULT_RETRY = { retries : 2 } ;
47
45
exports . DEFAULT_TIMEOUT = 5000 ;
48
46
function createBundleBuilder ( bundleType , options ) {
@@ -61,7 +59,7 @@ exports.createBundleBuilder = createBundleBuilder;
61
59
// Instantiate the FulcioSigner based on the supplied options.
62
60
function initSigner ( options ) {
63
61
return new sign_1 . FulcioSigner ( {
64
- fulcioBaseURL : options . fulcioURL || exports . DEFAULT_FULCIO_URL ,
62
+ fulcioBaseURL : options . fulcioURL ,
65
63
identityProvider : options . identityProvider || initIdentityProvider ( options ) ,
66
64
retry : options . retry ?? exports . DEFAULT_RETRY ,
67
65
timeout : options . timeout ?? exports . DEFAULT_TIMEOUT ,
@@ -84,7 +82,7 @@ function initWitnesses(options) {
84
82
const witnesses = [ ] ;
85
83
if ( isRekorEnabled ( options ) ) {
86
84
witnesses . push ( new sign_1 . RekorWitness ( {
87
- rekorBaseURL : options . rekorURL || exports . DEFAULT_REKOR_URL ,
85
+ rekorBaseURL : options . rekorURL ,
88
86
fetchOnConflict : false ,
89
87
retry : options . retry ?? exports . DEFAULT_RETRY ,
90
88
timeout : options . timeout ?? exports . DEFAULT_TIMEOUT ,
0 commit comments