csv-stringify
Advanced tools
Comparing version 5.5.0 to 5.5.1
# Changelog | ||
## Version 5.5.1 | ||
Fix | ||
* bom: work with sync module, fix #115 | ||
## Version 5.5.0 | ||
@@ -5,0 +10,0 @@ |
@@ -115,6 +115,2 @@ "use strict"; | ||
if (options.bom === true) { | ||
_this.push(bom_utf8); | ||
} | ||
_assertThisInitialized(_this); | ||
@@ -336,2 +332,3 @@ | ||
if (this.info.records === 0) { | ||
this.bom(); | ||
this.headers(); | ||
@@ -379,2 +376,3 @@ } // Emit and stringify the record if an object or an array | ||
if (this.info.records === 0) { | ||
this.bom(); | ||
this.headers(); | ||
@@ -610,2 +608,11 @@ } | ||
}, { | ||
key: "bom", | ||
value: function bom() { | ||
if (this.options.bom !== true) { | ||
return; | ||
} | ||
this.push(bom_utf8); | ||
} | ||
}, { | ||
key: "headers", | ||
@@ -612,0 +619,0 @@ value: function headers() { |
@@ -52,5 +52,2 @@ | ||
} | ||
if(options.bom === true){ | ||
this.push(bom_utf8) | ||
} | ||
this | ||
@@ -225,2 +222,3 @@ } | ||
if(this.info.records === 0){ | ||
this.bom() | ||
this.headers() | ||
@@ -261,2 +259,3 @@ } | ||
if(this.info.records === 0){ | ||
this.bom() | ||
this.headers() | ||
@@ -389,2 +388,8 @@ } | ||
} | ||
bom(){ | ||
if(this.options.bom !== true){ | ||
return | ||
} | ||
this.push(bom_utf8) | ||
} | ||
headers(){ | ||
@@ -391,0 +396,0 @@ if(this.options.header === false){ |
{ | ||
"version": "5.5.0", | ||
"version": "5.5.1", | ||
"name": "csv-stringify", | ||
@@ -4,0 +4,0 @@ "description": "CSV stringifier implementing the Node.js `stream.Transform` API", |
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
73825
1663