Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@techtalkers/github

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@techtalkers/github - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

4

dist/index.d.ts

@@ -0,2 +1,4 @@

import { GithubMetadata } from '@techtalkers/types';
declare function fetchTotalContributions(name: string): Promise<number>;
export { fetchTotalContributions };
declare function fetchGithubMetadata(name: string): Promise<GithubMetadata | undefined>;
export { fetchTotalContributions, fetchGithubMetadata };

@@ -54,2 +54,15 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

}
export { fetchTotalContributions };
function fetchGithubMetadata(name) {
return __awaiter(this, void 0, void 0, function* () {
const data = yield fetch(`https://api.github.com/users/${name}`);
if (!data.ok) {
console.error(`Failed to fetch Github metadata for ${name} ${data.status}`);
return;
}
else {
const json = yield data.json();
return json;
}
});
}
export { fetchTotalContributions, fetchGithubMetadata };
{
"name": "@techtalkers/github",
"version": "1.0.0",
"version": "1.0.1",
"description": "A package to extract github metadata and total contributions for a github user.",

@@ -20,2 +20,3 @@ "type": "module",

"devDependencies": {
"@techtalkers/types": "^1.0.5",
"@types/node": "^20.12.12",

@@ -22,0 +23,0 @@ "typescript": "^5.4.5"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc