@safetnsr/vet 1.8.5 → 1.8.6
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/dist/checks/models.js +4 -0
- package/package.json +1 -1
package/dist/checks/models.js
CHANGED
|
@@ -16,6 +16,10 @@ function isAiFramework(cwd) {
|
|
|
16
16
|
return true;
|
|
17
17
|
if (Array.isArray(pkg.keywords) && pkg.keywords.some((k) => AI_PKG_KEYWORDS.has(k.toLowerCase())))
|
|
18
18
|
return true;
|
|
19
|
+
// Check if any AI SDK is in dependencies
|
|
20
|
+
const allDeps = { ...pkg.dependencies, ...pkg.devDependencies };
|
|
21
|
+
if (aiDeps.some(d => allDeps[d]))
|
|
22
|
+
return true;
|
|
19
23
|
}
|
|
20
24
|
catch { /* skip */ }
|
|
21
25
|
}
|