This commit is contained in:
Robert Jelic
2025-02-10 07:12:35 +01:00
parent 78cfbc7510
commit 5c15cf28fa
2427 changed files with 1005260 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
import { supportsNodeHttpModule } from "./featureDetection";
import type { RequestFnType } from "./request";
import { requestWithNodeHttpModule } from "./request";
export function getRequesterForNode(): RequestFnType {
if (supportsNodeHttpModule()) {
return requestWithNodeHttpModule;
}
throw new Error(
"Could not find a supported HTTP request client in this environment."
);
}