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

dirdiff

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dirdiff - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

12

dirdiff.js

@@ -8,15 +8,19 @@ 'use strict';

var dirdiff = module.exports = function (dir1, dir2, opts, callback) {
glob(path.join(dir1, '**'), function (err, dir1Files) {
glob('**', {cwd: dir1}, function (err, dir1Files) {
if (err) {
return callback(err);
}
// Filter null value
dir1Files = dir1Files
.map(function (f) { return f.substring(dir1.length); });
.filter(function (f) { return !!f; });
glob(path.join(dir2, '**'), function (err, dir2Files) {
glob('**', {cwd: dir2}, function (err, dir2Files) {
if (err) {
return callback(err);
}
// Filter null value
dir2Files = dir2Files
.map(function (f) { return f.substring(dir2.length); });
.filter(function (f) { return !!f; });

@@ -23,0 +27,0 @@ diffFiles(dir1, dir1Files, dir2, dir2Files, opts, callback);

{
"name": "dirdiff",
"version": "0.0.1",
"version": "0.0.2",
"description": "Directory diff tool.",

@@ -24,7 +24,7 @@ "author": "Joe Ferner <joe@fernsroth.com>",

"dependencies": {
"glob": "~3.1.12"
"glob": "^7.0.5"
},
"devDependencies": {
"nodeunit": "~0.7.4"
"nodeunit": "^0.9.1"
}
}
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