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 192ceb5
Show file tree
Hide file tree
Showing 2 changed files with 4 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
5 changes: 3 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,9 @@ if (globalThis.fetch === undefined) {
To disable this warning, add SAGIRI_DISABLE_NODE_FETCH_WARNING="true" in your environment variable.
`)
fetchFn = nodeFetch.default;

// eslint-disable-next-line @typescript-eslint/no-require-imports
fetchFn = require("node-fetch");
} else {
fetchFn = globalThis.fetch;
}
Expand Down

0 comments on commit 192ceb5

Please sign in to comment.