Socket
Socket
Sign inDemoInstall

node-xlsx

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-xlsx - npm Package Compare versions

Comparing version 0.7.4 to 0.9.0

test/specs/helper.spec.js

5

lib/helpers.js

@@ -36,4 +36,9 @@ 'use strict';

var range = { s: { c: 1e7, r: 1e7 }, e: { c: 0, r: 0 } };
if (!Array.isArray(data)) throw new Error('sheet data is not array');
for (var R = 0; R !== data.length; ++R) {
for (var C = 0; C !== data[R].length; ++C) {
if (!Array.isArray(data[R])) throw new Error(R + 'th row data is not array');
if (range.s.r > R) range.s.r = R;

@@ -40,0 +45,0 @@ if (range.s.c > C) range.s.c = C;

4

package.json
{
"name": "node-xlsx",
"author": "Olivier Louvignes <olivier@mg-crea.com>",
"version": "0.7.4",
"version": "0.9.0",
"description": "NodeJS Excel files parser & builder",

@@ -20,3 +20,3 @@ "main": "lib/index.js",

"dependencies": {
"xlsx": "^0.8.0"
"xlsx": "^0.9.2"
},

@@ -23,0 +23,0 @@ "devDependencies": {

@@ -17,4 +17,9 @@ import XLSX from 'xlsx';

const range = {s: {c: 1e7, r: 1e7}, e: {c: 0, r: 0}};
if (!Array.isArray(data)) throw new Error('sheet data is not array');
for (let R = 0; R !== data.length; ++R) {
for (let C = 0; C !== data[R].length; ++C) {
if (!Array.isArray(data[R])) throw new Error(`${R}th row data is not array`);
if (range.s.r > R) range.s.r = R;

@@ -21,0 +26,0 @@ if (range.s.c > C) range.s.c = C;

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc