🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

xlsx-write-stream

Package Overview
Dependencies
Maintainers
6
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xlsx-write-stream - npm Package Compare versions

Comparing version

to
0.0.21

6

dist/templates/cell.js

@@ -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",