git-csv-diff
Advanced tools
Comparing version 1.0.7 to 1.1.0
{ | ||
"name": "git-csv-diff", | ||
"author": "Valor-Software", | ||
"version": "1.0.7", | ||
"version": "1.1.0", | ||
"license": "GPL-3.0", | ||
@@ -6,0 +6,0 @@ "description": "Library generate difference between csv-files based on Git commit hash", |
@@ -5,2 +5,3 @@ 'use strict'; | ||
const daff = require('daff'); | ||
const path = require('path'); | ||
const async = require("async"); | ||
@@ -358,4 +359,7 @@ | ||
function setMetaDataFile(file, metaData) { | ||
const fileName = path.parse(metaData.fileName).base; | ||
const resourcesByPathOld = _.keyBy(metaData.datapackage.old.resources, 'path'); | ||
file.old = resourcesByPathOld[metaData.fileName]; | ||
file.old = resourcesByPathOld[fileName]; | ||
@@ -365,3 +369,3 @@ // info is not available if file was removed | ||
const resourcesByPathNew = _.keyBy(metaData.datapackage.new.resources, 'path'); | ||
file.new = resourcesByPathNew[metaData.fileName]; | ||
file.new = resourcesByPathNew[fileName]; | ||
} | ||
@@ -368,0 +372,0 @@ } |
@@ -23,3 +23,3 @@ 'use strict'; | ||
const metaData = { | ||
fileName: "ddf--entities--region.csv", | ||
fileName: "lang/nl-nl/ddf--entities--region.csv", | ||
fileModifier: "M", | ||
@@ -26,0 +26,0 @@ datapackage: { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
68782
842