mirror of
https://github.com/uetchy/namae.git
synced 2025-03-17 04:30:31 +09:00
refactor: remove node-fetch
This commit is contained in:
parent
5259a21fe1
commit
52c16f4093
@ -1,6 +1,6 @@
|
||||
import { send, sendError } from '../../../util/http';
|
||||
import { NowRequest, NowResponse } from '@vercel/node';
|
||||
import nodeFetch from 'node-fetch';
|
||||
import nodeFetch from 'isomorphic-unfetch';
|
||||
|
||||
export default async function handler(
|
||||
req: NowRequest,
|
||||
|
@ -19,7 +19,6 @@
|
||||
"i18next-localstorage-backend": "^3.1.1",
|
||||
"i18next-xhr-backend": "^3.2.2",
|
||||
"isomorphic-unfetch": "^3.0.0",
|
||||
"node-fetch": "^2.6.0",
|
||||
"npm-name": "^6.0.1",
|
||||
"prop-types": "^15.7.2",
|
||||
"rc-tooltip": "^4.0.3",
|
||||
@ -40,19 +39,18 @@
|
||||
"whois-json": "^2.0.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@now/build-utils": "^2.4.2",
|
||||
"@sentry/cli": "^1.55.1",
|
||||
"@testing-library/jest-dom": "^5.11.3",
|
||||
"@testing-library/react": "^10.4.8",
|
||||
"@types/i18next-node-fs-backend": "^2.1.0",
|
||||
"@types/jest": "26.0.10",
|
||||
"@types/node": "^14.6.0",
|
||||
"@types/node-fetch": "^2.5.5",
|
||||
"@types/react-dom": "^16.9.8",
|
||||
"@types/react-helmet": "^6.1.0",
|
||||
"@types/react-router-dom": "^5.1.3",
|
||||
"@types/styled-components": "^5.1.2",
|
||||
"@types/validator": "^13.1.0",
|
||||
"@vercel/build-utils": "^2.4.2",
|
||||
"@vercel/node": "^1.7.4",
|
||||
"codacy-coverage": "^3.4.0",
|
||||
"husky": "^4.2.3",
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { NowResponse } from '@vercel/node';
|
||||
import nodeFetch, { Response } from 'node-fetch';
|
||||
import nodeFetch from 'isomorphic-unfetch';
|
||||
|
||||
export type HttpMethod =
|
||||
| 'GET'
|
||||
|
Loading…
x
Reference in New Issue
Block a user