git-csv-diff
Advanced tools
Comparing version 1.1.14 to 1.1.15
{ | ||
"name": "git-csv-diff", | ||
"author": "Valor-Software", | ||
"version": "1.1.14", | ||
"version": "1.1.15", | ||
"license": "GPL-3.0", | ||
@@ -6,0 +6,0 @@ "description": "Library generate difference between csv-files based on Git commit hash", |
@@ -63,2 +63,6 @@ 'use strict'; | ||
if(!isValidFilePath(metaData.fileName)) { | ||
return; | ||
} | ||
setMetaDataType(modelDiff.metadata); | ||
@@ -441,7 +445,16 @@ setMetaDataLanguage(modelDiff.metadata, metaData.fileName); | ||
function isDatapointFile(filename) { | ||
return filename.indexOf("--datapoints--") != -1 ? true : false; | ||
return filename.indexOf("--datapoints--") !== -1 ? true : false; | ||
} | ||
function isLanguageFile(filename) { | ||
return filename.indexOf("lang/") != -1 ? true : false; | ||
return filename.indexOf("lang/") !== -1 ? true : false; | ||
} | ||
function isValidFilePath(filename) { | ||
if( | ||
filename.indexOf("/") !== -1 && | ||
!isLanguageFile(filename) | ||
) { | ||
return false; | ||
} | ||
return true; | ||
} | ||
@@ -448,0 +461,0 @@ function setMetaDataLanguage(metaData, fileName) { |
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
73878
947