git-csv-diff
Advanced tools
Comparing version 1.1.10 to 1.1.11
{ | ||
"name": "git-csv-diff", | ||
"author": "Valor-Software", | ||
"version": "1.1.10", | ||
"version": "1.1.11", | ||
"license": "GPL-3.0", | ||
@@ -6,0 +6,0 @@ "description": "Library generate difference between csv-files based on Git commit hash", |
@@ -389,2 +389,27 @@ 'use strict'; | ||
} | ||
// check that there is no removed columns | ||
if (fileDiffData.header.remove.length) { | ||
if(isDataPointsFile && isTranslations) { | ||
// removed | ||
let dataRowRemoved = {}; | ||
// check that file with datapoints | ||
diffResultColumns.forEach(function (columnValue, columnIndex) { | ||
if ( | ||
fileDiffData.header.remove.indexOf(columnValue) == -1 && | ||
fileDiffData.header.create.indexOf(columnValue) == -1 | ||
) { | ||
// ready columns | ||
dataRowRemoved[columnValue] = value[columnIndex]; | ||
} | ||
}); | ||
// fileDiffData.body.remove.push(dataRowRemoved); | ||
modelDiff.metadata.action = 'remove'; | ||
modelDiff.object = dataRowRemoved; | ||
writeToStream(baseStream, modelDiff); | ||
} | ||
} | ||
} | ||
@@ -391,0 +416,0 @@ }); |
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
72778
916