Skip to content

Commit 512d864

Browse files
committed
Base url fix
1 parent 3f75ffd commit 512d864

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@linkedapi/node",
3-
"version": "1.2.18",
3+
"version": "1.2.19",
44
"description": "Control your LinkedIn accounts and retrieve real-time data, all through this Node.js SDK.",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

src/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ class LinkedApi {
8484
if (config instanceof HttpClient) {
8585
this.httpClient = config;
8686
} else {
87-
this.httpClient = buildLinkedApiHttpClient(config, config.client ?? 'node');
87+
this.httpClient = buildLinkedApiHttpClient(config, config.client ?? 'node', config.baseUrl);
8888
}
8989

9090
this.customWorkflow = new CustomWorkflow(this.httpClient);
@@ -1131,7 +1131,6 @@ export default LinkedApi;
11311131

11321132
export { LinkedApi, Operation as PredefinedOperation };
11331133
export { LinkedApiAdmin } from './admin';
1134-
export { buildLinkedApiHttpClient } from './core/linked-api-http-client';
11351134

11361135
export type {
11371136
TLinkedApiConfig,

src/types/config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ export interface TLinkedApiConfig {
22
linkedApiToken: string;
33
identificationToken: string;
44
client?: string;
5+
baseUrl?: string;
56
}

0 commit comments

Comments
 (0)