-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor main API files #32
base: master
Are you sure you want to change the base?
Conversation
Sweep: please fix this crash /Users/laeyoung/Documents/personal/COVID-19-API/api/korea-kcdc.js:4 Error [ERR_REQUIRE_ESM]: require() of ES Module /Users/laeyoung/Documents/personal/COVID-19-API/node_modules/node-fetch/src/index.js from /Users/laeyoung/Documents/personal/COVID-19-API/api/korea-kcdc.js not supported. |
🚀 Wrote Changes
Hi @Laeyoung, I decided to make the following changes:
|
Sweep: fix this issue
Updated at 2023-09-23T07:40:08.560Z SyntaxError: Cannot use import statement outside a module |
🚀 Wrote Changes
Hi @Laeyoung, I decided to make the following changes:
|
PR Feedback (click)
Description
This PR aims to refactor the main API files,
jhu-edu.js
andkorea-kcdc.js
, in order to improve code structure, readability, and maintainability. The changes include extracting common logic into separate functions or modules, improving variable naming, and enhancing code organization.Summary of Changes
Refactored
jhu-edu.js
file:Refactored
korea-kcdc.js
file:These changes aim to make the codebase more maintainable and easier to understand for future development and collaboration.
Fixes #31.
🎉 Latest improvements to Sweep:
💡 To get Sweep to edit this pull request, you can: