Skip to content

Commit

Permalink
4.3.0
Browse files Browse the repository at this point in the history
Signed-off-by: GitHub <[email protected]>
  • Loading branch information
sr229 authored Jan 3, 2025
1 parent 24c6585 commit e863a11
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sagiri",
"version": "4.2.3",
"version": "4.3.0",
"description": "A simple, lightweight and actually good JS wrapper for the SauceNAO API.",
"license": "MIT",
"main": "./dist/sagiri.cjs",
Expand Down
4 changes: 2 additions & 2 deletions src/sagiri.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import * as nodeFetch from "node-fetch";
import type { IOptions } from "./interfaces";
import { env } from "node:process";
import { Buffer } from "node:buffer";
Expand All @@ -24,7 +23,8 @@ if (globalThis.fetch === undefined) {
To disable this warning, add SAGIRI_DISABLE_NODE_FETCH_WARNING="true" in your environment variable.
`)
fetchFn = nodeFetch.default;

fetchFn = (await import("node-fetch")).default;
} else {
fetchFn = globalThis.fetch;
}
Expand Down

0 comments on commit e863a11

Please sign in to comment.