New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
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 1.0.3 to 1.0.4

2

package.json
{
"name": "git-csv-diff",
"author": "Valor-Software",
"version": "1.0.3",
"version": "1.0.4",
"license": "GPL-3.0",

@@ -6,0 +6,0 @@ "description": "Library generate difference between csv-files based on Git commit hash",

@@ -32,5 +32,6 @@ # Git CSV Diff

//console.log("Changes:", result.changes);
console.log("Done");
console.log("Output:", result.path);
console.log("Done!");
});
```

@@ -79,3 +79,4 @@ 'use strict';

if (resultToFile) {
const resultFileName = sourceFolderPath + "diff-operation-result.json";
const resultFileName = getFileNameResult(sourceFolderPath, data.github);
result['path'] = resultFileName;
fs.writeFileSync(resultFileName, JSON.stringify(result));

@@ -436,2 +437,20 @@ }

function getFileNameResult(pathFolder, github) {
const fileParts = /:(.*)\/(.*).git/.exec(github);
const filePartsResult = [];
filePartsResult.push('result');
if(!fileParts) {
filePartsResult.push('default');
} else {
filePartsResult.push(fileParts[1]);
filePartsResult.push(fileParts[2]);
}
filePartsResult.push('output.json');
return path.resolve(pathFolder, filePartsResult.join("--"));
}
function getUniqueKeyForRemove(filename, item, isDatapoint) {

@@ -438,0 +457,0 @@

@@ -15,2 +15,3 @@ const gitCsvDiff = require('./index');

sourceFolder: './repos/',
// optional
translations: true,

@@ -23,3 +24,4 @@ resultToFile: true

//console.log("Changes:", result.changes);
console.log("Done");
console.log("Output:", result.path);
console.log("Done!");
});
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc