Skip to content

Commit 7dce75c

Browse files
committed
fix: Add new baseUrl parameter to end of constructor
1 parent 17bb2a1 commit 7dce75c

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

__tests__/ipinfoWrapper.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,9 @@ describe("IPinfoWrapper", () => {
202202

203203
const ipinfo = new IPinfoWrapper(
204204
"token",
205+
undefined,
206+
undefined,
207+
undefined,
205208
baseUrlWithUnparseableResponse
206209
);
207210

src/ipinfoWrapper.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ export default class IPinfoWrapper {
5858
*/
5959
constructor(
6060
token: string,
61-
baseUrl?: string,
6261
cache?: Cache,
6362
timeout?: number,
6463
i18nData?: {
@@ -67,7 +66,8 @@ export default class IPinfoWrapper {
6766
countriesCurrencies?: any;
6867
continents?: any;
6968
euCountries?: Array<string>;
70-
}
69+
},
70+
baseUrl?: string
7171
) {
7272
this.token = token;
7373
this.countries = i18nData?.countries

0 commit comments

Comments
 (0)