-
-
Notifications
You must be signed in to change notification settings - Fork 3k
js: provide package manager function and documentation #2930
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
Conversation
|
Please bump version in package.json |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds two new package management functions to the KernelSU JavaScript API, providing the ability to list installed packages and retrieve detailed package information.
- Adds
listPackages()function to list installed packages by type (user/system/all) - Adds
getPackagesInfo()function to retrieve detailed information about specific packages - Includes TypeScript definitions and comprehensive documentation for both functions
Reviewed Changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| js/index.js | Implements listPackages() and getPackagesInfo() with JSON parsing and error handling |
| js/index.d.ts | Adds TypeScript interface PackagesInfo and type declarations for the new functions |
| js/README.md | Documents the new functions with usage examples and parameter descriptions |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
|
Is it fine to keep in sync with latest v2.1.1 tag? |
npm update tiann#2928 --------- Co-authored-by: Copilot <[email protected]>
npm update tiann#2928 --------- Co-authored-by: Copilot <[email protected]>
npm update tiann#2928 --------- Co-authored-by: Copilot <[email protected]>
npm update #2928