Skip to content

Commit cc30e55

Browse files
Merge pull request #47 from ipdata/claude/update-ipdata-api-W4FVR
Add named export for ESM compatibility
2 parents a823499 + 929da54 commit cc30e55

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ipdata.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ export interface LookupResponse {
135135
status: number;
136136
}
137137

138-
export default class IPData {
138+
export class IPData {
139139
apiKey: string;
140140
baseUrl: string;
141141
cache: LRUCache<string, LookupResponse>;
@@ -255,3 +255,5 @@ export default class IPData {
255255
return responses;
256256
}
257257
}
258+
259+
export default IPData;

0 commit comments

Comments
 (0)