MCPcopy Index your code
hub / github.com/darkreader/darkreader / checkDependencies

Function checkDependencies

tests/dependencies.js:27–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25 * in some random URL/git/GitHub repo.
26 */
27export async function checkDependencies() {
28 const packageLock = await readJSON(packageLockPath);
29
30 const stack = [packageLock.packages];
31 while (stack.length > 0) {
32 const curr = stack.pop();
33 for (const packageName in curr) {
34 if (packageName === '') {
35 continue;
36 }
37 checkDependency(curr[packageName]);
38 if (curr[packageName].dependencies) {
39 stack.push(curr[packageName].dependencies);
40 }
41 }
42 }
43}
44
45await checkDependencies();

Callers 1

dependencies.jsFile · 0.85

Calls 2

checkDependencyFunction · 0.85
readJSONFunction · 0.70

Tested by

no test coverage detected