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.1 to 4.0.2

29

index.d.ts

@@ -14,12 +14,31 @@ export type ListGithubDirectoryOptions = {

// Feel free to contribute fields to this type
export type GitObject = {
[other: string]: unknown;
export type TreeResponseObject = {
path: string;
mode: string;
type: string;
size: number;
sha: string;
url: string;
};
export type ContentsReponseObject = {
name: string;
path: string;
sha: string;
size: number;
url: string;
html_url: string;
git_url: string;
download_url: string;
type: string;
_links: {
self: string;
git: string;
html: string;
};
};
export function getDirectoryContentViaContentsApi<T extends ListGithubDirectoryOptions>(options: T):
T['getFullData'] extends true ?
Promise<GitObject[]> :
Promise<ContentsReponseObject[]> :
Promise<string[]>;

@@ -29,3 +48,3 @@

T['getFullData'] extends true ?
Promise<TreeResult<GitObject>> :
Promise<TreeResult<TreeResponseObject>> :
Promise<TreeResult<string>>;

2

package.json
{
"name": "list-github-dir-content",
"version": "4.0.1",
"version": "4.0.2",
"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