@vital-ai/haley-js-scripts
Advanced tools
Comparing version 1.0.1 to 1.0.3
{ | ||
"name": "@vital-ai/haley-js-scripts", | ||
"version": "1.0.1", | ||
"version": "1.0.3", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -48,2 +48,10 @@ const fs = require('fs'); | ||
let fileNameWithDashes = file.split('.') | ||
if(fileNameWithDashes[1] === 'ndjson'){ | ||
let fileNameWithoutDashes = fileNameWithDashes[0].split('-').join('_'); | ||
let jsonObjects = data.split('\n').join(',\n'); | ||
data = `var ${fileNameWithoutDashes} = [${jsonObjects}]`; | ||
} | ||
fs.writeFile(destinationPath, data, 'utf8', function (err) { | ||
@@ -50,0 +58,0 @@ if (err) { |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 3 instances in 1 package
11026
6
230
12