Skip to content
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

Add back types in a more sane way #31

Open
github-actions bot opened this issue Apr 3, 2023 · 1 comment
Open

Add back types in a more sane way #31

github-actions bot opened this issue Apr 3, 2023 · 1 comment
Labels

Comments

@github-actions
Copy link

github-actions bot commented Apr 3, 2023

https://api.github.com/BrycensRanch/AuthIsForMe/blob/1111033ba86baacb8e52f33bca6579a243eedb31/frontend/src/pages/thanks.tsx#L69

		setLicenses(
			await Promise.all(
				[...Object.keys(dependencies), ...Object.keys(devDependencies)].map(async dep => {
					// TODO: Add back types in a more sane way
					let npmPackage: any;
					try {
						npmPackage = await ky.get(`https://registry.npmjs.org/${dep}`).json();
						const normalizedRepoURL = new URL(
							npmPackage.repository?.url.replace(/\.git$/, '').replace('git+', '') || `https://github.com/npm/${dep}`,
						);
						normalizedRepoURL.protocol = 'https';
						if (npmPackage.repository?.url && npmPackage.repository?.type === 'git') {
							const repoDefaultBranch = await getRepoDefaultBranch(normalizedRepoURL.href);
							console.log(normalizedRepoURL.href, repoDefaultBranch);
							// license = await ky
@github-actions github-actions bot added the todo label Apr 3, 2023
@BrycensRanch
Copy link
Owner

hell on earth

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant