style-xlsx-m 0.1.3 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/types/index.d.ts +1 -1
- package/xlsx.js +4 -3
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -842,7 +842,7 @@ export interface XLSX$Utils {
|
|
|
842
842
|
book_new(): WorkBook;
|
|
843
843
|
|
|
844
844
|
/** Append a worksheet to a workbook */
|
|
845
|
-
book_append_sheet(workbook: WorkBook, worksheet: WorkSheet, name?: string, roll?: boolean): void;
|
|
845
|
+
book_append_sheet(workbook: WorkBook, worksheet: WorkSheet, name?: string, roll?: boolean, sheetName?:string): void;
|
|
846
846
|
|
|
847
847
|
/** Set sheet visibility (visible/hidden/very hidden) */
|
|
848
848
|
book_set_sheet_visibility(workbook: WorkBook, sheet: number|string, visibility: number): void;
|
package/xlsx.js
CHANGED
|
@@ -23852,6 +23852,7 @@ function readSync(data, opts) {
|
|
|
23852
23852
|
}
|
|
23853
23853
|
|
|
23854
23854
|
function readFileSync(filename, opts) {
|
|
23855
|
+
console.log(filename)
|
|
23855
23856
|
var o = opts||{}; o.type = 'file';
|
|
23856
23857
|
return readSync(filename, o);
|
|
23857
23858
|
}
|
|
@@ -24350,11 +24351,11 @@ function book_append_sheet(wb, ws, name, roll, nameSheet) {
|
|
|
24350
24351
|
const wsws = wb.Sheets[nameSheet]
|
|
24351
24352
|
const nws = {...ws}
|
|
24352
24353
|
Object.keys(ws).map((el) => {
|
|
24353
|
-
if(
|
|
24354
|
-
nws[el].s =
|
|
24354
|
+
if(el[0] != '!' && wsws[el]?.s){
|
|
24355
|
+
nws[el].s = wsws[el].s
|
|
24355
24356
|
}
|
|
24356
24357
|
})
|
|
24357
|
-
|
|
24358
|
+
console.log('nws',nws['A1'],'wsws',wsws['A1'],'wb',wb.Sheets[nameSheet]["A1"],'-----------------------------/////////------------------')
|
|
24358
24359
|
wb.Sheets[nameSheet] = nws;
|
|
24359
24360
|
}else{
|
|
24360
24361
|
wb.Sheets[name] = ws;
|