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

Expose internals as library for programmatic use #212

Closed
paambaati opened this issue Nov 24, 2021 · 5 comments · Fixed by #271
Closed

Expose internals as library for programmatic use #212

paambaati opened this issue Nov 24, 2021 · 5 comments · Fixed by #271
Labels
enhancement New feature or request

Comments

@paambaati
Copy link

At @getoslash, we use a handmade script (https://gist.github.com/paambaati/b7dd99d67f5402b62d7f8ef95ef65e01) to auto-generate yarn resolutions for audit-vi vulnerabilities.

It would be massively useful if the package also exposed some of its internals as an API, so we could avoid shelling to the command itself and instead use audit-CI as a library.

@quinnturner
Copy link
Member

I am planning on supporting this. I think it's going to be possible with my refactor in #226. As a result, the package will also have types!

@paambaati
Copy link
Author

@quinnturner Thanks for the response! I now see that the PR is merged, but I don’t see updates to the documentation. Is this still open? Or should I dive into the code and I’d see exports for the key audit functions?

@quinnturner
Copy link
Member

I was probably a bit hasty to say it was supported 😅 I'd like it to be though, and it's not too far off.

Short todo list for me to make this supported:

  • need to export functions
  • export built TS types
  • add docs

I will try to release something this week that adds all of that!

@quinnturner quinnturner added the enhancement New feature or request label Mar 14, 2022
@quinnturner
Copy link
Member

Hey, I haven't forgotten about this. I've had to spend all my extra time on another professional project which will be done within the week. I will try to tackle this afterwards. Thanks for understanding!

@quinnturner
Copy link
Member

quinnturner commented May 20, 2022

Support added with this PR #271. I mostly just exported some functions that I thought would be useful. I expect the API will change based on feedback from the community. I haven't written documentation for it yet either, but the bare bones are there including pretty solid TypeScript types.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants