New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

depcheck

Package Overview
Dependencies
Maintainers
2
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

depcheck - npm Package Compare versions

Comparing version 0.5.10 to 0.5.11

8

dist/index.js

@@ -191,3 +191,3 @@ 'use strict';

function checkDirectory(dir, ignoreDirs, deps, devDeps, parsers, detectors) {
function checkDirectory(dir, rootDir, ignoreDirs, deps, devDeps, parsers, detectors) {
return new Promise(function (resolve) {

@@ -198,7 +198,7 @@ var promises = [];

finder.on('directory', function (subdir) {
return ignoreDirs.indexOf(_path2.default.basename(subdir)) === -1 && promises.push(checkDirectory(subdir, ignoreDirs, deps, devDeps, parsers, detectors));
return ignoreDirs.indexOf(_path2.default.basename(subdir)) === -1 && promises.push(checkDirectory(subdir, rootDir, ignoreDirs, deps, devDeps, parsers, detectors));
});
finder.on('file', function (filename) {
return promises.push.apply(promises, _toConsumableArray(checkFile(dir, filename, deps, devDeps, parsers, detectors)));
return promises.push.apply(promises, _toConsumableArray(checkFile(rootDir, filename, deps, devDeps, parsers, detectors)));
});

@@ -270,3 +270,3 @@

return checkDirectory(rootDir, ignoreDirs, deps, devDeps, parsers, detectors).then(cb);
return checkDirectory(rootDir, rootDir, ignoreDirs, deps, devDeps, parsers, detectors).then(cb);
}

@@ -273,0 +273,0 @@

{
"name": "depcheck",
"version": "0.5.10",
"version": "0.5.11",
"description": "Check dependencies in your node module",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc