agentaudit 3.9.31 → 3.9.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli.mjs +3 -1
- package/package.json +1 -1
package/cli.mjs
CHANGED
|
@@ -1751,12 +1751,14 @@ async function auditRepo(url) {
|
|
|
1751
1751
|
// ── Check command ───────────────────────────────────────
|
|
1752
1752
|
|
|
1753
1753
|
async function checkPackage(name, { autoAudit = false } = {}) {
|
|
1754
|
+
// Derive slug from URL for registry lookup (URLs won't match as-is)
|
|
1755
|
+
const slug = (name.includes('github.com') || name.includes('://')) ? slugFromUrl(name) : name.toLowerCase();
|
|
1754
1756
|
if (!jsonMode) {
|
|
1755
1757
|
console.log(`${icons.info} Looking up ${c.bold}${name}${c.reset} in registry...`);
|
|
1756
1758
|
console.log();
|
|
1757
1759
|
}
|
|
1758
1760
|
|
|
1759
|
-
const data = await checkRegistry(
|
|
1761
|
+
const data = await checkRegistry(slug);
|
|
1760
1762
|
if (!data) {
|
|
1761
1763
|
if (!jsonMode) {
|
|
1762
1764
|
// Auto-audit: only when called from 'check' command AND input looks like a URL
|