markdownlint-cli
Advanced tools
Comparing version 0.7.0 to 0.7.1
@@ -8,3 +8,3 @@ #!/usr/bin/env node | ||
var program = require('commander'); | ||
var difference = require('lodash.difference'); | ||
var differenceWith = require('lodash.differencewith'); | ||
var flatten = require('lodash.flatten'); | ||
@@ -58,3 +58,8 @@ var extend = require('deep-extend'); | ||
}); | ||
return flatten(files); | ||
return flatten(files).map(function (file) { | ||
return { | ||
original: file, | ||
absolute: path.resolve(file) | ||
}; | ||
}); | ||
} | ||
@@ -118,3 +123,7 @@ | ||
var ignores = prepareFileList(program.ignore); | ||
var diff = difference(files, ignores); | ||
var diff = differenceWith(files, ignores, function (a, b) { | ||
return a.absolute === b.absolute; | ||
}).map(function (paths) { | ||
return paths.original; | ||
}); | ||
@@ -121,0 +130,0 @@ if (files.length > 0) { |
{ | ||
"name": "markdownlint-cli", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"description": "MarkdownLint Command Line Interface", | ||
@@ -42,3 +42,3 @@ "main": "markdownlint.js", | ||
"glob": "~7.0.3", | ||
"lodash.difference": "~4.5.0", | ||
"lodash.differencewith": "~4.5.0", | ||
"lodash.flatten": "~4.4.0", | ||
@@ -45,0 +45,0 @@ "markdownlint": "~0.7.0", |
9334
121
+ Addedlodash.differencewith@~4.5.0
+ Addedlodash.differencewith@4.5.0(transitive)
- Removedlodash.difference@~4.5.0
- Removedlodash.difference@4.5.0(transitive)