bellboy 6.1.0 → 6.2.0
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.
|
@@ -3,6 +3,7 @@ import { DirectoryProcessor } from './base/directory-processor';
|
|
|
3
3
|
export declare class ExcelProcessor extends DirectoryProcessor {
|
|
4
4
|
protected hasHeader: boolean | number | undefined;
|
|
5
5
|
protected ignoreEmpty: boolean;
|
|
6
|
+
protected encoding?: string;
|
|
6
7
|
protected fillMergedCells: boolean;
|
|
7
8
|
protected sheets: (string | number)[] | sheetGetter;
|
|
8
9
|
constructor(config: IExcelProcessorConfig);
|
|
@@ -60,6 +60,7 @@ var ExcelProcessor = /** @class */ (function (_super) {
|
|
|
60
60
|
__extends(ExcelProcessor, _super);
|
|
61
61
|
function ExcelProcessor(config) {
|
|
62
62
|
var _this = _super.call(this, config) || this;
|
|
63
|
+
_this.encoding = config.encoding;
|
|
63
64
|
_this.hasHeader = config.hasHeader;
|
|
64
65
|
_this.ignoreEmpty = config.ignoreEmpty === false ? false : true;
|
|
65
66
|
_this.fillMergedCells = !!config.fillMergedCells;
|
|
@@ -106,6 +107,7 @@ var ExcelProcessor = /** @class */ (function (_super) {
|
|
|
106
107
|
withHeader: this.hasHeader,
|
|
107
108
|
ignoreEmpty: this.ignoreEmpty,
|
|
108
109
|
fillMergedCells: this.fillMergedCells,
|
|
110
|
+
encoding: this.encoding,
|
|
109
111
|
})];
|
|
110
112
|
case 7:
|
|
111
113
|
readStream = _b.sent();
|
package/lib/types.d.ts
CHANGED
|
@@ -40,6 +40,7 @@ export interface IExcelProcessorConfig extends IDirectoryProcessorConfig {
|
|
|
40
40
|
ignoreEmpty?: boolean;
|
|
41
41
|
sheets?: ((number | string)[] | sheetGetter);
|
|
42
42
|
fillMergedCells?: boolean;
|
|
43
|
+
encoding?: string;
|
|
43
44
|
}
|
|
44
45
|
export interface IProcessor {
|
|
45
46
|
process(processStream: processStream, ...args: any): Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bellboy",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.2.0",
|
|
4
4
|
"description": "Highly performant JavaScript data stream ETL engine.",
|
|
5
5
|
"main": "lib/index",
|
|
6
6
|
"types": "lib/index",
|
|
@@ -55,6 +55,6 @@
|
|
|
55
55
|
"split2": "^3.1.1",
|
|
56
56
|
"stream-json": "^1.7.1",
|
|
57
57
|
"tail": "^2.0.2",
|
|
58
|
-
"xlstream": "^2.
|
|
58
|
+
"xlstream": "^2.5.0"
|
|
59
59
|
}
|
|
60
60
|
}
|