This commit is contained in:
platane
2024-02-20 16:23:46 +01:00
parent debec31440
commit 2479713155
3 changed files with 7 additions and 87 deletions

View File

@@ -1,8 +1,5 @@
import { getGithubUserContribution } from "@snk/github-user-contribution";
import { VercelRequest, VercelResponse } from "@vercel/node";
import nodeFetch from "node-fetch";
(global as any).fetch = nodeFetch;
export default async (req: VercelRequest, res: VercelResponse) => {
const { userName } = req.query;

View File

@@ -2,11 +2,7 @@
"name": "@snk/github-user-contribution-service",
"version": "1.0.0",
"dependencies": {
"node-fetch": "3.3.2",
"@snk/github-user-contribution": "1.0.0",
"@vercel/node": "3.0.6"
},
"devDependencies": {
"@types/node-fetch": "2.6.11"
}
}