Skip to content

Commit

Permalink
fix(sdk): remove node-fetch type dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
icepeng committed Dec 17, 2022
1 parent a7ceb7b commit 557a888
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
5 changes: 5 additions & 0 deletions .changeset/clever-badgers-cross.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@mokoko/sdk": patch
---

remove node-fetch type dependency
1 change: 0 additions & 1 deletion packages/sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
"dev": "tsup src/index.ts --format esm,cjs --watch --dts"
},
"devDependencies": {
"node-fetch": "^3.3.0",
"tsup": "^6.5.0",
"typescript": "4.9.3"
},
Expand Down
8 changes: 1 addition & 7 deletions packages/sdk/src/sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ import { MarketList } from "./models/MarketList";
import { MarketOption } from "./models/MarketOption";
import { RequestAuctionItems } from "./models/RequestAuctionItems";
import { RequestMarketItems } from "./models/RequestMarketItems";
import type {
RequestInit as NodeRequestInit,
Response as NodeResponse,
} from "node-fetch";
import { Semaphore } from "@shopify/semaphore";
import { Reporter } from "./reporter";

Expand All @@ -30,9 +26,7 @@ export interface SdkProps {
/**
* Fetch function for isomorphic usage.
*/
fetchFn:
| ((url: string, init?: RequestInit) => Promise<Response>)
| ((url: string, init?: NodeRequestInit) => Promise<NodeResponse>);
fetchFn: (url: string, init?: RequestInit) => Promise<Response>;

/**
* API Key from Lostark Open API Developer Portal.
Expand Down
1 change: 0 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,6 @@ __metadata:
resolution: "@mokoko/sdk@workspace:packages/sdk"
dependencies:
"@shopify/semaphore": ^3.0.1
node-fetch: ^3.3.0
tsup: ^6.5.0
typescript: 4.9.3
languageName: unknown
Expand Down

0 comments on commit 557a888

Please sign in to comment.