Skip to content

Commit

Permalink
use node-fetch instead of native v18
Browse files Browse the repository at this point in the history
  • Loading branch information
thewilloftheshadow committed Apr 3, 2023
1 parent f511ccd commit 70c537f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,8 @@
},
"engines": {
"node": ">=16.17.1"
},
"volta": {
"node": "16.17.1"
}
}
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ or just shoot me
that too
*/

import { Response as NodeFetchResponse } from "node-fetch"
import { Response as NodeFetchResponse, RequestInit } from "node-fetch"

export { RequestHandler } from "./RequestHandler"
export { AmariBot } from "./AmariBot"
Expand Down
2 changes: 2 additions & 0 deletions tests/amari.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import fetch from "node-fetch"
import { AmariBot } from "../src"
import { expect, expectTypeOf, test } from "vitest"
import { RequestInit } from "node-fetch"

const guildId = "346474194394939393"
const userId = "439223656200273932"
Expand Down

0 comments on commit 70c537f

Please sign in to comment.