You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

git-csv-diff

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

git-csv-diff - npm Package Compare versions

Comparing version

to
1.1.11

2

package.json
{
"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 @@ });