xlsx-style-ts
Advanced tools
Comparing version 1.0.2 to 1.0.3
/* ods.js (C) 2014 SheetJS -- http://sheetjs.com */ | ||
/* vim: set ts=2: */ | ||
/*jshint -W041 */ | ||
import __xlsx from "./xlsx"; | ||
import __jszip from "./jszip"; | ||
var ODS = {}; | ||
@@ -9,15 +11,4 @@ (function make_ods(ODS) { | ||
if (typeof XLSX !== 'undefined') return XLSX.utils; | ||
if (typeof module !== "undefined" && typeof require !== 'undefined') try { | ||
return require('../' + 'xlsx').utils; | ||
} catch (e) { | ||
try { return require('./' + 'xlsx').utils; } | ||
catch (ee) { | ||
try { | ||
return require('xl' + 'sx').utils; | ||
} catch (eee) { | ||
return {}; | ||
} | ||
} | ||
} | ||
throw new Error("Cannot find XLSX utils"); | ||
return __xlsx.utils; | ||
}; | ||
@@ -63,4 +54,3 @@ var has_buf = (typeof Buffer !== 'undefined'); | ||
if (typeof module !== 'undefined' && module.exports) { | ||
if (has_buf && typeof jszip === 'undefined') jszip = require('js' + 'zip'); | ||
if (typeof jszip === 'undefined') jszip = require('./js' + 'zip').JSZip; | ||
jszip = __jszip.JSZip; | ||
_fs = require('f' + 's'); | ||
@@ -67,0 +57,0 @@ } |
20
ods.js
/* ods.js (C) 2014 SheetJS -- http://sheetjs.com */ | ||
/* vim: set ts=2: */ | ||
/*jshint -W041 */ | ||
import __xlsx from "./xlsx"; | ||
import __jszip from "./jszip"; | ||
var ODS = {}; | ||
@@ -9,15 +11,4 @@ (function make_ods(ODS) { | ||
if (typeof XLSX !== 'undefined') return XLSX.utils; | ||
if (typeof module !== "undefined" && typeof require !== 'undefined') try { | ||
return require('../' + 'xlsx').utils; | ||
} catch (e) { | ||
try { return require('./' + 'xlsx').utils; } | ||
catch (ee) { | ||
try { | ||
return require('xl' + 'sx').utils; | ||
} catch (eee) { | ||
return {}; | ||
} | ||
} | ||
} | ||
throw new Error("Cannot find XLSX utils"); | ||
return __xlsx.utils; | ||
}; | ||
@@ -63,4 +54,3 @@ var has_buf = (typeof Buffer !== 'undefined'); | ||
if (typeof module !== 'undefined' && module.exports) { | ||
if (has_buf && typeof jszip === 'undefined') jszip = require('js' + 'zip'); | ||
if (typeof jszip === 'undefined') jszip = require('./js' + 'zip').JSZip; | ||
jszip = __jszip.JSZip; | ||
_fs = require('f' + 's'); | ||
@@ -67,0 +57,0 @@ } |
{ | ||
"name": "xlsx-style-ts", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"author": "sheetjs", | ||
@@ -5,0 +5,0 @@ "description": "Excel (XLSB/XLSX/XLSM/XLS/XML) and ODS spreadsheet parser and writer (extended to enable read/write of cell formats with xlsx files)", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
4838590
48234
72