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

fix: change signature and pull node and python data #641

Open
wants to merge 1 commit into
base: expose_image_content_extraction
Choose a base branch
from

Conversation

prsnca
Copy link

@prsnca prsnca commented Jan 23, 2025

No description provided.

@prsnca prsnca requested a review from a team as a code owner January 23, 2025 14:44
lib/scan.ts Show resolved Hide resolved
@prsnca prsnca force-pushed the expand-image-content-extraction branch 2 times, most recently from e57363a to 6675ced Compare January 23, 2025 15:32
(fact) => fact.type === "applicationFiles",
)!.data;

const fileList = applicationFilesFact.data[0].fileHierarchy.map((fh) => fh.path);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why map if you're only counting?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the model:

export interface ApplicationFileInfo {
  path: string;
}
export interface ApplicationFiles {
  fileHierarchy: ApplicationFileInfo[];
  moduleName?: string;
  language: string;
}

so in order to pull out the list of files - i have to extract each path by its own...

@prsnca prsnca force-pushed the expand-image-content-extraction branch 4 times, most recently from 50d53ab to dd290d0 Compare January 23, 2025 17:36
@prsnca prsnca requested review from nozik and SteveShani January 23, 2025 18:30
@prsnca prsnca force-pushed the expand-image-content-extraction branch from dd290d0 to eb2750b Compare January 23, 2025 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants