@js-ak/excel-toolbox 1.2.4 → 1.2.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/build/cjs/lib/merge-sheets-to-base-file-process.js +18 -9
- package/build/cjs/lib/merge-sheets-to-base-file-sync.js +18 -9
- package/build/cjs/lib/merge-sheets-to-base-file.js +18 -9
- package/build/cjs/lib/utils/get-max-row-number.js +1 -2
- package/build/cjs/lib/utils/is-same-buffer.js +1 -2
- package/build/cjs/lib/utils/remove-sheet-by-name.js +1 -2
- package/build/cjs/lib/utils/remove-sheet-from-content-types.js +1 -2
- package/build/cjs/lib/utils/remove-sheet-from-rels.js +1 -2
- package/build/cjs/lib/utils/remove-sheet-from-workbook.js +1 -2
- package/build/cjs/lib/utils/shift-cell-ref.js +1 -2
- package/build/cjs/lib/xml/build-merged-sheet.js +1 -2
- package/build/cjs/lib/xml/extract-rows-from-sheet.js +1 -2
- package/build/cjs/lib/xml/extract-xml-from-sheet.js +1 -2
- package/build/cjs/lib/xml/shift-row-indices.js +1 -2
- package/build/cjs/lib/zip/create-sync.js +1 -2
- package/build/cjs/lib/zip/create.js +1 -2
- package/build/cjs/lib/zip/read-sync.js +1 -2
- package/build/cjs/lib/zip/read.js +1 -2
- package/build/cjs/lib/zip/utils.js +3 -4
- package/build/cjs/package.json +3 -0
- package/build/esm/package.json +3 -0
- package/build/types/lib/merge-sheets-to-base-file-sync.d.ts +0 -2
- package/build/types/lib/merge-sheets-to-base-file.d.ts +0 -2
- package/build/types/lib/utils/is-same-buffer.d.ts +0 -2
- package/build/types/lib/xml/extract-rows-from-sheet.d.ts +0 -2
- package/build/types/lib/xml/extract-xml-from-sheet.d.ts +0 -2
- package/build/types/lib/xml/extract-xml-from-system-content.d.ts +0 -2
- package/build/types/lib/zip/constants.d.ts +3 -5
- package/build/types/lib/zip/create-sync.d.ts +0 -2
- package/build/types/lib/zip/create.d.ts +0 -2
- package/build/types/lib/zip/read-sync.d.ts +0 -2
- package/build/types/lib/zip/read.d.ts +0 -2
- package/build/types/lib/zip/utils.d.ts +0 -2
- package/package.json +9 -4
@@ -15,15 +15,25 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
15
15
|
}) : function(o, v) {
|
16
16
|
o["default"] = v;
|
17
17
|
});
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
};
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
19
|
+
var ownKeys = function(o) {
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
21
|
+
var ar = [];
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
23
|
+
return ar;
|
24
|
+
};
|
25
|
+
return ownKeys(o);
|
26
|
+
};
|
27
|
+
return function (mod) {
|
28
|
+
if (mod && mod.__esModule) return mod;
|
29
|
+
var result = {};
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
31
|
+
__setModuleDefault(result, mod);
|
32
|
+
return result;
|
33
|
+
};
|
34
|
+
})();
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
26
|
-
exports.mergeSheetsToBaseFileProcess =
|
36
|
+
exports.mergeSheetsToBaseFileProcess = mergeSheetsToBaseFileProcess;
|
27
37
|
const Utils = __importStar(require("./utils/index.js"));
|
28
38
|
const Xml = __importStar(require("./xml/index.js"));
|
29
39
|
/**
|
@@ -93,4 +103,3 @@ function mergeSheetsToBaseFileProcess(data) {
|
|
93
103
|
Utils.removeSheetByName(baseFiles, sheetName);
|
94
104
|
}
|
95
105
|
}
|
96
|
-
exports.mergeSheetsToBaseFileProcess = mergeSheetsToBaseFileProcess;
|
@@ -15,15 +15,25 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
15
15
|
}) : function(o, v) {
|
16
16
|
o["default"] = v;
|
17
17
|
});
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
};
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
19
|
+
var ownKeys = function(o) {
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
21
|
+
var ar = [];
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
23
|
+
return ar;
|
24
|
+
};
|
25
|
+
return ownKeys(o);
|
26
|
+
};
|
27
|
+
return function (mod) {
|
28
|
+
if (mod && mod.__esModule) return mod;
|
29
|
+
var result = {};
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
31
|
+
__setModuleDefault(result, mod);
|
32
|
+
return result;
|
33
|
+
};
|
34
|
+
})();
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
26
|
-
exports.mergeSheetsToBaseFileSync =
|
36
|
+
exports.mergeSheetsToBaseFileSync = mergeSheetsToBaseFileSync;
|
27
37
|
const Utils = __importStar(require("./utils/index.js"));
|
28
38
|
const Zip = __importStar(require("./zip/index.js"));
|
29
39
|
const merge_sheets_to_base_file_process_js_1 = require("./merge-sheets-to-base-file-process.js");
|
@@ -65,4 +75,3 @@ function mergeSheetsToBaseFileSync(data) {
|
|
65
75
|
});
|
66
76
|
return Zip.createSync(baseFiles);
|
67
77
|
}
|
68
|
-
exports.mergeSheetsToBaseFileSync = mergeSheetsToBaseFileSync;
|
@@ -15,15 +15,25 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
15
15
|
}) : function(o, v) {
|
16
16
|
o["default"] = v;
|
17
17
|
});
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
};
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
19
|
+
var ownKeys = function(o) {
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
21
|
+
var ar = [];
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
23
|
+
return ar;
|
24
|
+
};
|
25
|
+
return ownKeys(o);
|
26
|
+
};
|
27
|
+
return function (mod) {
|
28
|
+
if (mod && mod.__esModule) return mod;
|
29
|
+
var result = {};
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
31
|
+
__setModuleDefault(result, mod);
|
32
|
+
return result;
|
33
|
+
};
|
34
|
+
})();
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
26
|
-
exports.mergeSheetsToBaseFile =
|
36
|
+
exports.mergeSheetsToBaseFile = mergeSheetsToBaseFile;
|
27
37
|
const Utils = __importStar(require("./utils/index.js"));
|
28
38
|
const Zip = __importStar(require("./zip/index.js"));
|
29
39
|
const merge_sheets_to_base_file_process_js_1 = require("./merge-sheets-to-base-file-process.js");
|
@@ -65,4 +75,3 @@ async function mergeSheetsToBaseFile(data) {
|
|
65
75
|
});
|
66
76
|
return Zip.create(baseFiles);
|
67
77
|
}
|
68
|
-
exports.mergeSheetsToBaseFile = mergeSheetsToBaseFile;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.getMaxRowNumber =
|
3
|
+
exports.getMaxRowNumber = getMaxRowNumber;
|
4
4
|
/**
|
5
5
|
* Finds the maximum row number in a list of <row> elements.
|
6
6
|
* @param {string[]} rows - An array of strings, each representing a <row> element.
|
@@ -20,4 +20,3 @@ function getMaxRowNumber(rows) {
|
|
20
20
|
}
|
21
21
|
return max;
|
22
22
|
}
|
23
|
-
exports.getMaxRowNumber = getMaxRowNumber;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.isSameBuffer =
|
3
|
+
exports.isSameBuffer = isSameBuffer;
|
4
4
|
/**
|
5
5
|
* Checks if two Buffers are the same
|
6
6
|
* @param {Buffer} buf1 - the first Buffer
|
@@ -10,4 +10,3 @@ exports.isSameBuffer = void 0;
|
|
10
10
|
function isSameBuffer(buf1, buf2) {
|
11
11
|
return buf1.equals(buf2);
|
12
12
|
}
|
13
|
-
exports.isSameBuffer = isSameBuffer;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.removeSheetByName =
|
3
|
+
exports.removeSheetByName = removeSheetByName;
|
4
4
|
/**
|
5
5
|
* Removes a sheet from the Excel workbook by name.
|
6
6
|
* @param {Object.<string, string | Buffer>} files - The dictionary of files in the workbook.
|
@@ -42,4 +42,3 @@ function removeSheetByName(files, sheetName) {
|
|
42
42
|
files["[Content_Types].xml"] = contentTypes.replace(new RegExp(`<Override[^>]+PartName=["']/${targetPath}["'][^>]*/>`, "g"), "");
|
43
43
|
}
|
44
44
|
}
|
45
|
-
exports.removeSheetByName = removeSheetByName;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.removeSheetFromContentTypes =
|
3
|
+
exports.removeSheetFromContentTypes = removeSheetFromContentTypes;
|
4
4
|
/**
|
5
5
|
* Removes the specified sheet from the Content_Types.xml file.
|
6
6
|
* @param {string} xml - The Content_Types.xml file contents as a string
|
@@ -10,4 +10,3 @@ exports.removeSheetFromContentTypes = void 0;
|
|
10
10
|
function removeSheetFromContentTypes(xml, sheetIndex) {
|
11
11
|
return xml.replace(new RegExp(`<Override[^>]+PartName=["']/xl/worksheets/sheet${sheetIndex}\\.xml["'][^>]*/>`, "g"), "");
|
12
12
|
}
|
13
|
-
exports.removeSheetFromContentTypes = removeSheetFromContentTypes;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.removeSheetFromRels =
|
3
|
+
exports.removeSheetFromRels = removeSheetFromRels;
|
4
4
|
/**
|
5
5
|
* Removes the specified sheet from the workbook relationships file (xl/_rels/workbook.xml.rels).
|
6
6
|
* @param {string} xml - The workbook relationships file contents as a string
|
@@ -10,4 +10,3 @@ exports.removeSheetFromRels = void 0;
|
|
10
10
|
function removeSheetFromRels(xml, sheetIndex) {
|
11
11
|
return xml.replace(new RegExp(`<Relationship[^>]+Target=["']worksheets/sheet${sheetIndex}\\.xml["'][^>]*/>`, "g"), "");
|
12
12
|
}
|
13
|
-
exports.removeSheetFromRels = removeSheetFromRels;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.removeSheetFromWorkbook =
|
3
|
+
exports.removeSheetFromWorkbook = removeSheetFromWorkbook;
|
4
4
|
/**
|
5
5
|
* Removes the specified sheet from the workbook (xl/workbook.xml).
|
6
6
|
* @param {string} xml - The workbook file contents as a string
|
@@ -10,4 +10,3 @@ exports.removeSheetFromWorkbook = void 0;
|
|
10
10
|
function removeSheetFromWorkbook(xml, sheetIndex) {
|
11
11
|
return xml.replace(new RegExp(`<sheet[^>]+sheetId=["']${sheetIndex}["'][^>]*/>`, "g"), "");
|
12
12
|
}
|
13
|
-
exports.removeSheetFromWorkbook = removeSheetFromWorkbook;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.shiftCellRef =
|
3
|
+
exports.shiftCellRef = shiftCellRef;
|
4
4
|
/**
|
5
5
|
* Shifts the row number in a cell reference by the specified number of rows.
|
6
6
|
* The function takes a cell reference string in the format "A1" and a row shift value.
|
@@ -23,4 +23,3 @@ function shiftCellRef(cellRef, rowShift) {
|
|
23
23
|
const row = parseInt(match[2], 10);
|
24
24
|
return `${col}${row + rowShift}`;
|
25
25
|
}
|
26
|
-
exports.shiftCellRef = shiftCellRef;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.buildMergedSheet =
|
3
|
+
exports.buildMergedSheet = buildMergedSheet;
|
4
4
|
/**
|
5
5
|
* Builds a new XML string for a merged Excel sheet by combining the original XML
|
6
6
|
* with merged rows and optional cell merge information.
|
@@ -29,4 +29,3 @@ function buildMergedSheet(originalXml, mergedRows, mergeCells = []) {
|
|
29
29
|
}
|
30
30
|
return xmlData;
|
31
31
|
}
|
32
|
-
exports.buildMergedSheet = buildMergedSheet;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.extractRowsFromSheet =
|
3
|
+
exports.extractRowsFromSheet = extractRowsFromSheet;
|
4
4
|
const extract_xml_from_sheet_js_1 = require("./extract-xml-from-sheet.js");
|
5
5
|
/**
|
6
6
|
* Parses a worksheet (either as Buffer or string) to extract row data,
|
@@ -62,4 +62,3 @@ function extractRowsFromSheet(sheet) {
|
|
62
62
|
rows,
|
63
63
|
};
|
64
64
|
}
|
65
|
-
exports.extractRowsFromSheet = extractRowsFromSheet;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.extractXmlFromSheet =
|
3
|
+
exports.extractXmlFromSheet = extractXmlFromSheet;
|
4
4
|
const pako_1 = require("pako");
|
5
5
|
/**
|
6
6
|
* Extracts and parses XML content from an Excel worksheet file (e.g., xl/worksheets/sheet1.xml).
|
@@ -46,4 +46,3 @@ function extractXmlFromSheet(buffer) {
|
|
46
46
|
xml = xml.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F]/g, "");
|
47
47
|
return xml;
|
48
48
|
}
|
49
|
-
exports.extractXmlFromSheet = extractXmlFromSheet;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.shiftRowIndices =
|
3
|
+
exports.shiftRowIndices = shiftRowIndices;
|
4
4
|
/**
|
5
5
|
* Adjusts row indices in Excel XML row elements by a specified offset.
|
6
6
|
* Handles both row element attributes and cell references within rows.
|
@@ -33,4 +33,3 @@ function shiftRowIndices(rows, offset) {
|
|
33
33
|
return adjustedRow;
|
34
34
|
});
|
35
35
|
}
|
36
|
-
exports.shiftRowIndices = shiftRowIndices;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.createSync =
|
3
|
+
exports.createSync = createSync;
|
4
4
|
const node_buffer_1 = require("node:buffer");
|
5
5
|
const node_zlib_1 = require("node:zlib");
|
6
6
|
const utils_js_1 = require("./utils.js");
|
@@ -81,4 +81,3 @@ function createSync(files) {
|
|
81
81
|
]);
|
82
82
|
return node_buffer_1.Buffer.concat(fileEntries.concat(centralDirectory).concat([endRecord]));
|
83
83
|
}
|
84
|
-
exports.createSync = createSync;
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
exports.create =
|
6
|
+
exports.create = create;
|
7
7
|
const node_buffer_1 = require("node:buffer");
|
8
8
|
const node_util_1 = __importDefault(require("node:util"));
|
9
9
|
const node_zlib_1 = __importDefault(require("node:zlib"));
|
@@ -86,4 +86,3 @@ async function create(files) {
|
|
86
86
|
]);
|
87
87
|
return node_buffer_1.Buffer.concat(fileEntries.concat(centralDirectory).concat([endRecord]));
|
88
88
|
}
|
89
|
-
exports.create = create;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.readSync =
|
3
|
+
exports.readSync = readSync;
|
4
4
|
const node_zlib_1 = require("node:zlib");
|
5
5
|
/**
|
6
6
|
* Parses a ZIP archive from a buffer and extracts the files within.
|
@@ -54,4 +54,3 @@ function readSync(buffer) {
|
|
54
54
|
}
|
55
55
|
return files;
|
56
56
|
}
|
57
|
-
exports.readSync = readSync;
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
exports.read =
|
6
|
+
exports.read = read;
|
7
7
|
const node_util_1 = __importDefault(require("node:util"));
|
8
8
|
const node_zlib_1 = __importDefault(require("node:zlib"));
|
9
9
|
const inflateRaw = node_util_1.default.promisify(node_zlib_1.default.inflateRaw);
|
@@ -59,4 +59,3 @@ async function read(buffer) {
|
|
59
59
|
}
|
60
60
|
return files;
|
61
61
|
}
|
62
|
-
exports.read = read;
|
@@ -1,6 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.crc32 = crc32;
|
4
|
+
exports.dosTime = dosTime;
|
5
|
+
exports.toBytes = toBytes;
|
4
6
|
const node_buffer_1 = require("node:buffer");
|
5
7
|
/**
|
6
8
|
* Precomputed CRC-32 lookup table for optimized checksum calculation.
|
@@ -75,7 +77,6 @@ function crc32(buf) {
|
|
75
77
|
*/
|
76
78
|
return ~crc >>> 0;
|
77
79
|
}
|
78
|
-
exports.crc32 = crc32;
|
79
80
|
/**
|
80
81
|
* Converts a JavaScript Date object to a 4-byte Buffer in MS-DOS date/time format
|
81
82
|
* as specified in the ZIP file format specification (PKZIP APPNOTE.TXT).
|
@@ -121,7 +122,6 @@ function dosTime(date) {
|
|
121
122
|
...toBytes(day, 2), // Convert date to 2 bytes (LSB first)
|
122
123
|
]);
|
123
124
|
}
|
124
|
-
exports.dosTime = dosTime;
|
125
125
|
/**
|
126
126
|
* Converts a numeric value into a fixed-length Buffer representation,
|
127
127
|
* storing the value in little-endian format with right-padding of zeros.
|
@@ -155,4 +155,3 @@ function toBytes(value, len) {
|
|
155
155
|
}
|
156
156
|
return buf;
|
157
157
|
}
|
158
|
-
exports.toBytes = toBytes;
|
@@ -1,5 +1,3 @@
|
|
1
|
-
/// <reference types="node" />
|
2
|
-
/// <reference types="node" />
|
3
1
|
/**
|
4
2
|
* Extracts and decompresses XML content from Excel system files (e.g., workbook.xml, [Content_Types].xml).
|
5
3
|
* Handles both compressed (raw DEFLATE) and uncompressed (plain XML) formats with comprehensive error handling.
|
@@ -1,5 +1,3 @@
|
|
1
|
-
/// <reference types="node" />
|
2
|
-
/// <reference types="node" />
|
3
1
|
import { Buffer } from "node:buffer";
|
4
2
|
/**
|
5
3
|
* ZIP file signature constants in Buffer format.
|
@@ -13,7 +11,7 @@ import { Buffer } from "node:buffer";
|
|
13
11
|
* Format: 'PK\01\02'
|
14
12
|
* Found in the central directory that appears at the end of the ZIP file.
|
15
13
|
*/
|
16
|
-
export declare const CENTRAL_DIR_HEADER_SIG: Buffer
|
14
|
+
export declare const CENTRAL_DIR_HEADER_SIG: Buffer<ArrayBuffer>;
|
17
15
|
/**
|
18
16
|
* End of Central Directory Record signature (0x504b0506).
|
19
17
|
* Marks the end of the central directory and contains global information
|
@@ -21,11 +19,11 @@ export declare const CENTRAL_DIR_HEADER_SIG: Buffer;
|
|
21
19
|
* Format: 'PK\05\06'
|
22
20
|
* This is the last record in a valid ZIP file.
|
23
21
|
*/
|
24
|
-
export declare const END_OF_CENTRAL_DIR_SIG: Buffer
|
22
|
+
export declare const END_OF_CENTRAL_DIR_SIG: Buffer<ArrayBuffer>;
|
25
23
|
/**
|
26
24
|
* Local File Header signature (0x504b0304).
|
27
25
|
* Marks the beginning of a file entry within the ZIP archive.
|
28
26
|
* Format: 'PK\03\04' (ASCII letters PK followed by version numbers)
|
29
27
|
* Appears before each file's compressed data.
|
30
28
|
*/
|
31
|
-
export declare const LOCAL_FILE_HEADER_SIG: Buffer
|
29
|
+
export declare const LOCAL_FILE_HEADER_SIG: Buffer<ArrayBuffer>;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@js-ak/excel-toolbox",
|
3
|
-
"version": "1.2.
|
3
|
+
"version": "1.2.5",
|
4
4
|
"description": "excel-toolbox",
|
5
5
|
"publishConfig": {
|
6
6
|
"access": "public",
|
@@ -12,9 +12,10 @@
|
|
12
12
|
"types": "build/types/index.d.ts",
|
13
13
|
"exports": {
|
14
14
|
".": {
|
15
|
+
"types": "./build/types/index.d.ts",
|
15
16
|
"require": "./build/cjs/index.js",
|
16
17
|
"import": "./build/esm/index.js",
|
17
|
-
"
|
18
|
+
"default": "./build/esm/index.js"
|
18
19
|
},
|
19
20
|
"./cjs": {
|
20
21
|
"require": "./build/cjs/index.js"
|
@@ -26,8 +27,10 @@
|
|
26
27
|
"files": [
|
27
28
|
"build/esm/lib",
|
28
29
|
"build/esm/index.js",
|
30
|
+
"build/esm/package.json",
|
29
31
|
"build/cjs/lib",
|
30
32
|
"build/cjs/index.js",
|
33
|
+
"build/cjs/package.json",
|
31
34
|
"build/types/lib",
|
32
35
|
"build/types/index.d.ts",
|
33
36
|
"LICENSE",
|
@@ -35,10 +38,12 @@
|
|
35
38
|
"package.json"
|
36
39
|
],
|
37
40
|
"scripts": {
|
38
|
-
"build": "npm run build:
|
41
|
+
"build": "npm run build:cjs && npm run build:esm && npm run postbuild:esm && npm run postbuild:cjs",
|
39
42
|
"build:esm": "tsc -p tsconfig.esm.json",
|
40
43
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
41
44
|
"lint": "eslint . --ext .ts",
|
45
|
+
"postbuild:esm": "node scripts/write-esm-package.js",
|
46
|
+
"postbuild:cjs": "node scripts/write-cjs-package.js",
|
42
47
|
"test": "npm run build && node ./build/esm/test/index.js"
|
43
48
|
},
|
44
49
|
"repository": {
|
@@ -69,7 +74,7 @@
|
|
69
74
|
"eslint-plugin-sort-exports": "0.9.1",
|
70
75
|
"globals": "16.0.0",
|
71
76
|
"semantic-release": "24.0.0",
|
72
|
-
"typescript": "5.
|
77
|
+
"typescript": "5.8.3",
|
73
78
|
"typescript-eslint": "8.29.0"
|
74
79
|
},
|
75
80
|
"dependencies": {
|