Comparing version 0.0.1 to 0.0.2
@@ -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" | ||
} | ||
} |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Non-existent author
Supply chain riskThe package was published by an npm account that no longer exists.
Found 1 instance in 1 package
7856
222
0
1
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addedfs.realpath@1.0.0(transitive)
+ Addedglob@7.2.3(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedminimatch@3.1.2(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedwrappy@1.0.2(transitive)
- Removedglob@3.1.21(transitive)
- Removedgraceful-fs@1.2.3(transitive)
- Removedinherits@1.0.2(transitive)
- Removedlru-cache@2.7.3(transitive)
- Removedminimatch@0.2.14(transitive)
- Removedsigmund@1.0.1(transitive)
Updatedglob@^7.0.5