Skip to content

Commit

Permalink
fix: correct VerfierV3Options so that it doesn't clobber VeriferOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
TimothyJones committed Sep 10, 2021
1 parent c19be06 commit 5796fde
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/v3/verifier.ts
@@ -1,13 +1,11 @@
import * as express from 'express';
import { ConsumerVersionSelector } from '@pact-foundation/pact-core';

import { ProxyOptions, StateHandlers } from '../dsl/verifier/proxy/types';

import logger from '../common/logger';

import { ProxyOptions, StateHandlers } from '../dsl/verifier/proxy/types';
import { Verifier } from '../dsl/verifier';

export interface VerifierV3Options {
export interface VerifierV3OptionsInternal {
provider: string;
logLevel: string;
providerBaseUrl: string;
Expand All @@ -34,13 +32,13 @@ export interface VerifierV3Options {

export { ConsumerVersionSelector };

export type VerifierOptions = VerifierV3Options & ProxyOptions;
export type VerifierV3Options = VerifierV3OptionsInternal & ProxyOptions;
export class VerifierV3 {
private internalVerifier: Verifier;

private config: VerifierOptions;
private config: VerifierV3Options;

constructor(config: VerifierOptions) {
constructor(config: VerifierV3Options) {
this.config = config;
this.internalVerifier = new Verifier({
...config,
Expand Down

0 comments on commit 5796fde

Please sign in to comment.