//@ts-check function parseXML(str){ return (new DOMParser()).parseFromString(str, 'application/xml'); } import { _getODSTableRawContent, _getXLSXTableRawContent } from './shared.js' /** * @param {ArrayBuffer} odsArrBuff * @returns {ReturnType<_getODSTableRawContent>} */ export function getODSTableRawContent(odsArrBuff){ return _getODSTableRawContent(odsArrBuff, parseXML) } /** * @param {ArrayBuffer} xlsxArrBuff * @returns {ReturnType<_getXLSXTableRawContent>} */ export function getXLSXTableRawContent(xlsxArrBuff){ return _getXLSXTableRawContent(xlsxArrBuff, parseXML) } export { // table-level exports tableWithoutEmptyRows, tableRawContentToValues, tableRawContentToStrings, tableRawContentToObjects, // sheet-level exports sheetRawContentToObjects, sheetRawContentToStrings, // row-level exports rowRawContentToStrings, isRowNotEmpty, // cell-level exports cellRawContentToStrings, convertCellValue } from './shared.js'