Skip to content

Commit

Permalink
Merge pull request #98 from simplyspoke/typeing-fix
Browse files Browse the repository at this point in the history
fix(Fixes #97): Updated name to RequestClient
  • Loading branch information
simplyspoke authored May 22, 2018
2 parents 54b285f + dca98f7 commit 8333c82
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/client.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as Request from 'request-promise';
import Client from './client';
import RequestClient from './client';

const config = {
subdomain: process.env.SUBDOMAIN,
Expand All @@ -17,11 +17,11 @@ describe('Client test', () => {
let instance;

beforeEach(() => {
instance = new Client(config);
instance = new RequestClient(config);
});

it('Client is instantiable', () => {
expect(instance).toBeInstanceOf(Client);
expect(instance).toBeInstanceOf(RequestClient);
});

describe('preprocess method', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/client.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import async from 'async';
import * as Request from 'request-promise';

export default class Client {
export default class RequestClient {
private accessToken: string;
private accountId: string;
private concurrency;
Expand Down
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Client from './client';
import RequestClient from './client';
import { ClientsAPI } from './api/clients';
import { CompanyAPI } from './api/company';
import { ContactsAPI } from './api/contacts';
Expand Down Expand Up @@ -29,7 +29,7 @@ export default class Harvest {
concurrency = null;
debug = false;

client: Client;
client: RequestClient;
request;

clients: ClientsAPI;
Expand Down Expand Up @@ -59,7 +59,7 @@ export default class Harvest {
this.concurrency = config.concurrency || null;
this.debug = config.debug || false;

this.client = new Client(config);
this.client = new RequestClient(config);
this.request = this.requestGenerator();

this.clients = new ClientsAPI(this);
Expand Down

0 comments on commit 8333c82

Please sign in to comment.