@techtalkers/github
Advanced tools
Comparing version 1.0.1 to 1.0.2
import { GithubMetadata } from '@techtalkers/types'; | ||
declare function fetchTotalContributions(name: string): Promise<number>; | ||
declare function fetchGithubMetadata(name: string): Promise<GithubMetadata | undefined>; | ||
export { fetchTotalContributions, fetchGithubMetadata }; | ||
declare function fetchGithubData(name: string): Promise<{ | ||
totalContributions: number; | ||
metadata: GithubMetadata | undefined; | ||
}>; | ||
export { fetchGithubData }; |
@@ -67,2 +67,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
} | ||
export { fetchTotalContributions, fetchGithubMetadata }; | ||
function fetchGithubData(name) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const [totalContributions, metadata] = yield Promise.all([ | ||
fetchTotalContributions(name), | ||
fetchGithubMetadata(name), | ||
]); | ||
return { | ||
totalContributions, | ||
metadata, | ||
}; | ||
}); | ||
} | ||
export { fetchGithubData }; |
{ | ||
"name": "@techtalkers/github", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "A package to extract github metadata and total contributions for a github user.", | ||
@@ -5,0 +5,0 @@ "type": "module", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4519
85