Skip to content

Commit

Permalink
Fix: Remove lodash.isequal dependency due to changed behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
phated committed Nov 30, 2017
1 parent 7a16a0b commit 94f7ac7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
9 changes: 4 additions & 5 deletions lib/file-operations.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ var util = require('util');
var fs = require('graceful-fs');
var path = require('path');
var assign = require('object-assign');
var isEqual = require('lodash.isequal');
var isValidDate = require('vali-date');
var FlushWriteStream = require('flush-write-stream');

Expand Down Expand Up @@ -57,8 +56,8 @@ function getTimesDiff(fsStat, vinylStat) {
return;
}

if (isEqual(vinylStat.mtime, fsStat.mtime) &&
isEqual(vinylStat.atime, fsStat.atime)) {
if (+vinylStat.mtime === +fsStat.mtime &&
+vinylStat.atime === +fsStat.atime) {
return;
}

Expand Down Expand Up @@ -102,8 +101,8 @@ function getOwnerDiff(fsStat, vinylStat) {
gid = vinylStat.gid;
}

if (isEqual(uid, fsStat.uid) &&
isEqual(gid, fsStat.gid)) {
if (uid === fsStat.uid &&
gid === fsStat.gid) {
return;
}

Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
"gulp-sourcemaps": "1.6.0",
"is-valid-glob": "^0.3.0",
"lazystream": "^1.0.0",
"lodash.isequal": "^4.0.0",
"merge-stream": "^1.0.0",
"object-assign": "^4.0.0",
"strip-bom": "^2.0.0",
Expand Down

0 comments on commit 94f7ac7

Please sign in to comment.