csv-string
Advanced tools
Comparing version 3.1.3 to 3.1.4
@@ -64,3 +64,6 @@ 'use strict'; | ||
sep = sep || exports.separator; | ||
if (Array.isArray(input) && !Array.isArray(input[0])) { | ||
if (Array.isArray(input) && input.length === 0) { | ||
ret = exports.eol; | ||
} | ||
else if (Array.isArray(input) && !Array.isArray(input[0])) { | ||
for (var loop = 0; loop < input.length; loop++) { | ||
@@ -67,0 +70,0 @@ ret = reducer(input[loop], ret, sep, loop > 0); |
{ | ||
"name": "csv-string", | ||
"version": "3.1.3", | ||
"version": "3.1.4", | ||
"author": "Nicolas Thouvenin <nthouvenin@gmail.com>", | ||
@@ -5,0 +5,0 @@ "contributors": [ |
4
t.js
const csv = require('.'); | ||
/* | ||
const fs = require('fs'); | ||
@@ -20,2 +21,3 @@ const { createStream } = csv; | ||
*/ | ||
console.dir(csv.stringify([])); |
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
28558
724
0