Skip to content

Commit

Permalink
fix: Add new baseUrl parameter to end of constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
shrink committed Nov 14, 2024
1 parent 17bb2a1 commit 7dce75c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions __tests__/ipinfoWrapper.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,9 @@ describe("IPinfoWrapper", () => {

const ipinfo = new IPinfoWrapper(
"token",
undefined,
undefined,
undefined,
baseUrlWithUnparseableResponse
);

Expand Down
4 changes: 2 additions & 2 deletions src/ipinfoWrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ export default class IPinfoWrapper {
*/
constructor(
token: string,
baseUrl?: string,
cache?: Cache,
timeout?: number,
i18nData?: {
Expand All @@ -67,7 +66,8 @@ export default class IPinfoWrapper {
countriesCurrencies?: any;
continents?: any;
euCountries?: Array<string>;
}
},
baseUrl?: string
) {
this.token = token;
this.countries = i18nData?.countries
Expand Down

0 comments on commit 7dce75c

Please sign in to comment.