-
Notifications
You must be signed in to change notification settings - Fork 2
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: Add TypeScript support #26
base: main
Are you sure you want to change the base?
Conversation
Should be fine to adopt this upstream if you're happy to open a PR. |
Thanks for the review @06kellyjac ! |
src/db/mongo/pushes.js
Outdated
if (typeof data.id !== 'string') { | ||
throw new Error('Invalid id'); | ||
} | ||
await collection.updateOne({ id: { $eq: data.id } }, { $set: data }, options); |
Check failure
Code scanning / CodeQL
Database query built from user-controlled sources High
user-provided value
Welcome to Codecov 🎉Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests. Thanks for integrating Codecov - We've got you covered ☂️ |
a3f23bb
to
e7ec595
Compare
e7ec595
to
e316a95
Compare
Overview
This PR introduces TypeScript to git-proxy and refactors relevant code to support it.
Changelog
tsconfig.json
) with essential settings for strict type checking, ES6 compatibility, and JSX support.index.js
) to TypeScript (index.ts
).