Skip to content

Commit

Permalink
fix: node-fetch 제거 및 isomorphic-fetch로 교체
Browse files Browse the repository at this point in the history
  • Loading branch information
potados99 committed Feb 16, 2022
1 parent 61803bf commit a885669
Show file tree
Hide file tree
Showing 3 changed files with 114 additions and 133 deletions.
2 changes: 1 addition & 1 deletion lib/common/utils/fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

import fetch, {RequestInfo, RequestInit} from 'node-fetch';
import fetch from 'isomorphic-fetch';

export function fetchWithTimeout(
url: RequestInfo,
Expand Down
238 changes: 109 additions & 129 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@
"cookie-parser": "^1.4.5",
"express": "^4.17.1",
"express-rate-limit": "^5.3.0",
"isomorphic-fetch": "^3.0.0",
"jsonwebtoken": "^8.5.1",
"minimist": "^1.2.5",
"mysql2": "^2.3.0",
"node-fetch": "^3.1.1",
"node-ical": "^0.13.0",
"nodemailer": "^6.6.3",
"qs": "^6.10.1",
Expand All @@ -51,14 +51,15 @@
"zod": "^3.7.3"
},
"devDependencies": {
"@types/express": "^4.17.13",
"@types/moment": "^2.13.0",
"@types/bcrypt": "^5.0.0",
"@types/cookie-parser": "^1.4.2",
"@types/express": "^4.17.13",
"@types/express-rate-limit": "^5.1.3",
"@types/isomorphic-fetch": "^0.0.35",
"@types/jest": "^26.0.24",
"@types/jsonwebtoken": "^8.5.5",
"@types/minimist": "^1.2.2",
"@types/moment": "^2.13.0",
"@types/node": "^16.7.1",
"@types/node-fetch": "^2.5.12",
"@types/nodemailer": "^6.4.4",
Expand Down

0 comments on commit a885669

Please sign in to comment.