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.12.0 to 0.12.1

.history/.babelrc_20160816223348

6

lib/index.js

@@ -13,2 +13,6 @@ 'use strict';

var _bufferFrom = require('buffer-from');
var _bufferFrom2 = _interopRequireDefault(_bufferFrom);
var _helpers = require('./helpers');

@@ -48,3 +52,3 @@

var excelData = _xlsx2.default.write(workBook, Object.assign({}, defaults, options));
return excelData instanceof Buffer ? excelData : Buffer.from(excelData, 'binary');
return excelData instanceof Buffer ? excelData : (0, _bufferFrom2.default)(excelData, 'binary');
}

@@ -51,0 +55,0 @@

19

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

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

"dependencies": {
"buffer-from": "^1.1.0",
"xlsx": "^0.12.4"

@@ -25,15 +26,15 @@ },

"babel-cli": "^6.26.0",
"babel-eslint": "^8.2.2",
"babel-eslint": "^8.2.3",
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-plugin-transform-function-bind": "^6.22.0",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-preset-es2015": "^6.24.1",
"babel-preset-env": "^1.7.0",
"babel-register": "^6.26.0",
"codacy-coverage": "^2.1.0",
"debug-utils": "^0.3.0",
"eslint": "^4.18.2",
"codacy-coverage": "^3.0.0",
"debug-utils": "^0.3.2",
"eslint": "^4.19.1",
"eslint-config-airbnb-base": "^12.1.0",
"eslint-plugin-import": "^2.9.0",
"expect": "^22.4.0",
"jest": "^22.4.2",
"eslint-plugin-import": "^2.12.0",
"expect": "^23.1.0",
"jest": "^23.1.0",
"rimraf": "^2.6.2"

@@ -40,0 +41,0 @@ },

import XLSX from 'xlsx';
import bufferFrom from 'buffer-from';
import {buildSheetFromMatrix, isString} from './helpers';

@@ -28,5 +29,5 @@ import Workbook from './workbook';

const excelData = XLSX.write(workBook, Object.assign({}, defaults, options));
return excelData instanceof Buffer ? excelData : Buffer.from(excelData, 'binary');
return excelData instanceof Buffer ? excelData : bufferFrom(excelData, 'binary');
}
export default {parse, build};

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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