Skip to content

Commit

Permalink
chore: update imports for latest pact-core dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
mefellows committed Dec 23, 2022
1 parent 646f376 commit 593dd68
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/httpPact/ffi.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ConsumerInteraction } from '@pact-foundation/pact-core/src/consumer/index';
import { ConsumerInteraction } from '@pact-foundation/pact-core/';

import { forEachObjIndexed } from 'ramda';
import { isArray } from 'util';
Expand Down
7 changes: 3 additions & 4 deletions src/httpPact/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import serviceFactory from '@pact-foundation/pact-core';

import {
import serviceFactory, {
ConsumerPact,
ConsumerInteraction,
makeConsumerPact,
} from '@pact-foundation/pact-core/src/consumer/index';
} from '@pact-foundation/pact-core';

import clc from 'cli-color';
import * as path from 'path';
import process from 'process';
Expand Down
2 changes: 1 addition & 1 deletion src/v3/display.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
MatchingResultMissingRequest,
MatchingResultPlugin,
PluginContentMismatch,
} from '@pact-foundation/pact-core/src/consumer/index';
} from '@pact-foundation/pact-core';

// TODO: update Matching in the rust core to have a `type` property
// to avoid having to do this check!
Expand Down
2 changes: 1 addition & 1 deletion src/v3/ffi.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { forEachObjIndexed } from 'ramda';
import { ConsumerInteraction } from '@pact-foundation/pact-core/src/consumer/index';
import { ConsumerInteraction } from '@pact-foundation/pact-core';
import { TemplateHeaders, V3Request, V3Response } from './types';
import * as MatchersV3 from './matchers';

Expand Down
4 changes: 2 additions & 2 deletions src/v3/pact.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { forEachObjIndexed, equals } from 'ramda';
import { makeConsumerPact } from '@pact-foundation/pact-core';
import {
makeConsumerPact,
ConsumerPact,
ConsumerInteraction,
} from '@pact-foundation/pact-core/src/consumer/index';
} from '@pact-foundation/pact-core';
import fs = require('fs');
import { version as pactPackageVersion } from '../../package.json';
import { JsonMap } from '../common/jsonTypes';
Expand Down

0 comments on commit 593dd68

Please sign in to comment.