Skip to content

feature/improve audit#61

Merged
florianbgt merged 3 commits intomainfrom
feature/improve-audit
Feb 11, 2025
Merged

feature/improve audit#61
florianbgt merged 3 commits intomainfrom
feature/improve-audit

Conversation

@florianbgt
Copy link
Member

@florianbgt florianbgt commented Feb 11, 2025

  • improve python support
  • imporve audit

Type of change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update

Description

Please include a summary of the changes and the related issue. Explain the motivation behind this change.

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Feb 11, 2025

Deploying napi with  Cloudflare Pages  Cloudflare Pages

Latest commit: d41ea5d
Status: ✅  Deploy successful!
Preview URL: https://8f4af24b.napi-1ha.pages.dev
Branch Preview URL: https://feature-improve-audit.napi-1ha.pages.dev

View logs

} else {
targetEndpoint.group = group;
}
const updatedEndpoints = endpoints.map((e) => {
Copy link
Member Author

Choose a reason for hiding this comment

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

There was a small bug here with the sync. Out of scope of this PR, but it was a low hanging fruit so fixing it here.

// Skip if annotation is not valid, we assume it is a regular comment
return;
} catch (e) {
if (e instanceof CannotParseAnnotationError) {
Copy link
Member Author

Choose a reason for hiding this comment

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

Low hanging fruit too, better we handle the error explicitly

import { DepExport, DepImport, LanguagePlugin } from "./types";
import { Group } from "../dependencyManager/types";

class UnknownPlugin implements LanguagePlugin {
Copy link
Member Author

Choose a reason for hiding this comment

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

This is needed for the audit part. If a file is not supported, this plugin is used, which does nothing. We check that conditions when we parse the file within the audit part of the program.

@florianbgt florianbgt merged commit ba9a37e into main Feb 11, 2025
4 checks passed
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.

1 participant