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

list-github-dir-content

Package Overview
Dependencies
Maintainers
0
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

list-github-dir-content - npm Package Compare versions

Comparing version 4.0.0 to 4.0.1

15

index.d.ts

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

type ListGithubDirectoryOptions = {
export type ListGithubDirectoryOptions = {
user: string;

@@ -10,9 +10,16 @@ repository: string;

type TreeResult<T> = {
export type TreeResult<T> = {
truncated: boolean;
} & T[];
// Feel free to contribute fields to this type
export type GitObject = {
[other: string]: unknown;
path: string;
url: string;
};
export function getDirectoryContentViaContentsApi<T extends ListGithubDirectoryOptions>(options: T):
T['getFullData'] extends true ?
Promise<any[]> :
Promise<GitObject[]> :
Promise<string[]>;

@@ -22,3 +29,3 @@

T['getFullData'] extends true ?
Promise<TreeResult<any>> :
Promise<TreeResult<GitObject>> :
Promise<TreeResult<string>>;
{
"name": "list-github-dir-content",
"version": "4.0.0",
"version": "4.0.1",
"description": "List all the files in a GitHub repo’s directory",

@@ -5,0 +5,0 @@ "keywords": [

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