xlsx-write-stream
Advanced tools
Comparing version 0.0.12 to 0.0.13
@@ -14,4 +14,8 @@ 'use strict'; | ||
return `<c r="${cell}" t="inlineStr"><is><t>${(0, _utils.escape)(value)}</t></is></c>`; | ||
} else if ((0, _lodash.isNumber)(value) || value) { | ||
} else if ((0, _lodash.isBoolean)(value)) { | ||
return `<c r="${cell}" t="inlineStr"><is><t>${value}</t></is></c>`; | ||
} else if ((0, _lodash.isNumber)(value)) { | ||
return `<c r="${cell}" t="n"><v>${value}</v></c>`; | ||
} else if (value) { | ||
return `<c r="${cell}" t="inlineStr"><is><t>${(0, _utils.escape)(`${value}`)}</t></is></c>`; | ||
} | ||
@@ -18,0 +22,0 @@ return ''; |
@@ -72,4 +72,3 @@ 'use strict'; | ||
this.sheetStream.write(templates.SheetHeader); | ||
stream.on('end', this.finalize); | ||
stream.on('close', () => console.log('Input stream close')); | ||
transformedStream.on('end', this.finalize); | ||
// stream.on('data', () => console.log('Input stream data')); | ||
@@ -89,3 +88,2 @@ transformedStream.pipe(this.sheetStream); | ||
finalize() { | ||
console.log('finalize'); | ||
this.sheetStream.end(templates.SheetFooter); | ||
@@ -92,0 +90,0 @@ return this.zip.finalize(); |
{ | ||
"name": "xlsx-write-stream", | ||
"version": "0.0.12", | ||
"version": "0.0.13", | ||
"description": "Apify xlsx write stream helper", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
17030
335