Comparing version 0.11.1 to 0.11.2
@@ -47,3 +47,3 @@ 'use strict'; | ||
var excelData = _xlsx2.default.write(workBook, Object.assign({}, defaults, options)); | ||
return excelData instanceof Buffer ? excelData : new Buffer(excelData, 'binary'); | ||
return excelData instanceof Buffer ? excelData : Buffer.from(excelData, 'binary'); | ||
} | ||
@@ -50,0 +50,0 @@ |
{ | ||
"name": "node-xlsx", | ||
"author": "Olivier Louvignes <olivier@mg-crea.com>", | ||
"version": "0.11.1", | ||
"version": "0.11.2", | ||
"description": "NodeJS Excel files parser & builder", | ||
@@ -6,0 +6,0 @@ "main": "lib/index.js", |
@@ -28,5 +28,5 @@ | ||
const excelData = XLSX.write(workBook, Object.assign({}, defaults, options)); | ||
return excelData instanceof Buffer ? excelData : new Buffer(excelData, 'binary'); | ||
return excelData instanceof Buffer ? excelData : Buffer.from(excelData, 'binary'); | ||
} | ||
export default {parse, build}; |
Sorry, the diff of this file is not supported yet
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
51101