xlsx-write-stream
Advanced tools
Comparing version 0.0.20 to 0.0.21
@@ -11,3 +11,4 @@ 'use strict'; | ||
const officeTimestamp = unixTimestamp / 86400000 + 25569; | ||
return `<c r="${cell}" t="n" s="${shouldFormat && (0, _utils.getDateFormat)()}"><v>${officeTimestamp}</v></c>`; | ||
const maybeFormat = shouldFormat && (0, _utils.getDateFormat)(); | ||
return `<c r="${cell}" t="n"${maybeFormat ? ` s="${maybeFormat}"` : ''}><v>${officeTimestamp}</v></c>`; | ||
} else if ((0, _lodash.isString)(value)) { | ||
@@ -18,3 +19,4 @@ return `<c r="${cell}" t="inlineStr"><is><t>${(0, _utils.sanitize)(value)}</t></is></c>`; | ||
} else if ((0, _lodash.isNumber)(value)) { | ||
return `<c r="${cell}" t="n" s="${shouldFormat && (0, _utils.getNumberFormat)(value)}"><v>${value}</v></c>`; | ||
const maybeFormat = shouldFormat && (0, _utils.getNumberFormat)(value); | ||
return `<c r="${cell}" t="n"${maybeFormat ? ` s="${maybeFormat}"` : ''}><v>${value}</v></c>`; | ||
} else if (value) { | ||
@@ -21,0 +23,0 @@ return `<c r="${cell}" t="inlineStr"><is><t>${(0, _utils.sanitize)(`${value}`)}</t></is></c>`; |
{ | ||
"name": "xlsx-write-stream", | ||
"version": "0.0.20", | ||
"version": "0.0.21", | ||
"description": "XLSX stream writer", | ||
@@ -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
29751
373