git-csv-diff
Advanced tools
Comparing version 1.1.7 to 1.1.8
{ | ||
"name": "git-csv-diff", | ||
"author": "Valor-Software", | ||
"version": "1.1.7", | ||
"version": "1.1.8", | ||
"license": "GPL-3.0", | ||
@@ -6,0 +6,0 @@ "description": "Library generate difference between csv-files based on Git commit hash", |
@@ -223,4 +223,3 @@ 'use strict'; | ||
// cell modified | ||
if (modificationSeparatorPosition != -1) { | ||
if (modificationSeparatorPosition !== -1) { | ||
let readyValueCell = valueCell.substring(modificationSeparatorPosition + 2); | ||
@@ -236,7 +235,3 @@ let readyValueCellOrigin = valueCell.substring(0, modificationSeparatorPosition); | ||
// collect all changes for translations anyway | ||
dataRowLang[columnKey] = valueCell; | ||
if (isDataPointsFile) { | ||
dataRow[columnKey] = valueCell; | ||
if (fileDiffData.header.create.indexOf(columnKey) == -1) { | ||
@@ -246,4 +241,6 @@ dataRowOrigin[columnKey] = valueCell; | ||
} | ||
// check that it's not new column | ||
else if (fileDiffData.header.create.indexOf(columnKey) != -1) { | ||
// check if not removed column | ||
if (fileDiffData.header.remove.indexOf(columnKey) === -1) { | ||
// collect all changes for translations anyway | ||
dataRowLang[columnKey] = valueCell; | ||
dataRow[columnKey] = valueCell; | ||
@@ -321,3 +318,5 @@ } | ||
// new values for added columns | ||
dataRow[columnKey] = valueCell; | ||
if (fileDiffData.header.remove.indexOf(columnKey) === -1) { | ||
dataRow[columnKey] = valueCell; | ||
} | ||
} | ||
@@ -363,3 +362,6 @@ }); | ||
dataRow[columnKey] = valueCell; | ||
if (fileDiffData.header.remove.indexOf(columnKey) === -1) { | ||
dataRow[columnKey] = valueCell; | ||
} | ||
if (isDataPointsFile) { | ||
@@ -370,3 +372,5 @@ dataRowOrigin[columnKeyOld] = valueCell; | ||
// new column | ||
dataRow[columnKey] = valueCell; | ||
if (fileDiffData.header.remove.indexOf(columnKey) === -1) { | ||
dataRow[columnKey] = valueCell; | ||
} | ||
} | ||
@@ -373,0 +377,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
71790
893