Skip to content

Commit 44a3b37

Browse files
committed
build: missing files
1 parent c169b17 commit 44a3b37

File tree

8 files changed

+32
-24
lines changed

8 files changed

+32
-24
lines changed

packages/csv/dist/cjs/index.cjs

+4-3
Original file line numberDiff line numberDiff line change
@@ -6461,11 +6461,11 @@ class Parser extends Transform {
64616461
return 0;
64626462
}
64636463
__error(msg){
6464-
const {skip_lines_with_error} = this.options;
6464+
const {encoding, raw, skip_lines_with_error} = this.options;
64656465
const err = typeof msg === 'string' ? new Error(msg) : msg;
64666466
if(skip_lines_with_error){
64676467
this.state.recordHasError = true;
6468-
this.emit('skip', err);
6468+
this.emit('skip', err, raw ? this.state.rawBuffer.toString(encoding) : undefined);
64696469
return undefined;
64706470
}else {
64716471
return err;
@@ -6478,12 +6478,13 @@ class Parser extends Transform {
64786478
};
64796479
}
64806480
__infoRecord(){
6481-
const {columns} = this.options;
6481+
const {columns, raw, encoding} = this.options;
64826482
return {
64836483
...this.__infoDataSet(),
64846484
error: this.state.error,
64856485
header: columns === true,
64866486
index: this.state.record.length,
6487+
raw: raw ? this.state.rawBuffer.toString(encoding) : undefined
64876488
};
64886489
}
64896490
__infoField(){

packages/csv/dist/cjs/sync.cjs

+4-3
Original file line numberDiff line numberDiff line change
@@ -6458,11 +6458,11 @@ class Parser extends Transform {
64586458
return 0;
64596459
}
64606460
__error(msg){
6461-
const {skip_lines_with_error} = this.options;
6461+
const {encoding, raw, skip_lines_with_error} = this.options;
64626462
const err = typeof msg === 'string' ? new Error(msg) : msg;
64636463
if(skip_lines_with_error){
64646464
this.state.recordHasError = true;
6465-
this.emit('skip', err);
6465+
this.emit('skip', err, raw ? this.state.rawBuffer.toString(encoding) : undefined);
64666466
return undefined;
64676467
}else {
64686468
return err;
@@ -6475,12 +6475,13 @@ class Parser extends Transform {
64756475
};
64766476
}
64776477
__infoRecord(){
6478-
const {columns} = this.options;
6478+
const {columns, raw, encoding} = this.options;
64796479
return {
64806480
...this.__infoDataSet(),
64816481
error: this.state.error,
64826482
header: columns === true,
64836483
index: this.state.record.length,
6484+
raw: raw ? this.state.rawBuffer.toString(encoding) : undefined
64846485
};
64856486
}
64866487
__infoField(){

packages/csv/dist/esm/index.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -6457,11 +6457,11 @@ class Parser extends Transform {
64576457
return 0;
64586458
}
64596459
__error(msg){
6460-
const {skip_lines_with_error} = this.options;
6460+
const {encoding, raw, skip_lines_with_error} = this.options;
64616461
const err = typeof msg === 'string' ? new Error(msg) : msg;
64626462
if(skip_lines_with_error){
64636463
this.state.recordHasError = true;
6464-
this.emit('skip', err);
6464+
this.emit('skip', err, raw ? this.state.rawBuffer.toString(encoding) : undefined);
64656465
return undefined;
64666466
}else {
64676467
return err;
@@ -6474,12 +6474,13 @@ class Parser extends Transform {
64746474
};
64756475
}
64766476
__infoRecord(){
6477-
const {columns} = this.options;
6477+
const {columns, raw, encoding} = this.options;
64786478
return {
64796479
...this.__infoDataSet(),
64806480
error: this.state.error,
64816481
header: columns === true,
64826482
index: this.state.record.length,
6483+
raw: raw ? this.state.rawBuffer.toString(encoding) : undefined
64836484
};
64846485
}
64856486
__infoField(){

packages/csv/dist/esm/sync.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -6454,11 +6454,11 @@ class Parser extends Transform {
64546454
return 0;
64556455
}
64566456
__error(msg){
6457-
const {skip_lines_with_error} = this.options;
6457+
const {encoding, raw, skip_lines_with_error} = this.options;
64586458
const err = typeof msg === 'string' ? new Error(msg) : msg;
64596459
if(skip_lines_with_error){
64606460
this.state.recordHasError = true;
6461-
this.emit('skip', err);
6461+
this.emit('skip', err, raw ? this.state.rawBuffer.toString(encoding) : undefined);
64626462
return undefined;
64636463
}else {
64646464
return err;
@@ -6471,12 +6471,13 @@ class Parser extends Transform {
64716471
};
64726472
}
64736473
__infoRecord(){
6474-
const {columns} = this.options;
6474+
const {columns, raw, encoding} = this.options;
64756475
return {
64766476
...this.__infoDataSet(),
64776477
error: this.state.error,
64786478
header: columns === true,
64796479
index: this.state.record.length,
6480+
raw: raw ? this.state.rawBuffer.toString(encoding) : undefined
64806481
};
64816482
}
64826483
__infoField(){

packages/csv/dist/iife/index.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -6460,11 +6460,11 @@ var csv = (function (exports) {
64606460
return 0;
64616461
}
64626462
__error(msg){
6463-
const {skip_lines_with_error} = this.options;
6463+
const {encoding, raw, skip_lines_with_error} = this.options;
64646464
const err = typeof msg === 'string' ? new Error(msg) : msg;
64656465
if(skip_lines_with_error){
64666466
this.state.recordHasError = true;
6467-
this.emit('skip', err);
6467+
this.emit('skip', err, raw ? this.state.rawBuffer.toString(encoding) : undefined);
64686468
return undefined;
64696469
}else {
64706470
return err;
@@ -6477,12 +6477,13 @@ var csv = (function (exports) {
64776477
};
64786478
}
64796479
__infoRecord(){
6480-
const {columns} = this.options;
6480+
const {columns, raw, encoding} = this.options;
64816481
return {
64826482
...this.__infoDataSet(),
64836483
error: this.state.error,
64846484
header: columns === true,
64856485
index: this.state.record.length,
6486+
raw: raw ? this.state.rawBuffer.toString(encoding) : undefined
64866487
};
64876488
}
64886489
__infoField(){

packages/csv/dist/iife/sync.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -6457,11 +6457,11 @@ var csv = (function (exports) {
64576457
return 0;
64586458
}
64596459
__error(msg){
6460-
const {skip_lines_with_error} = this.options;
6460+
const {encoding, raw, skip_lines_with_error} = this.options;
64616461
const err = typeof msg === 'string' ? new Error(msg) : msg;
64626462
if(skip_lines_with_error){
64636463
this.state.recordHasError = true;
6464-
this.emit('skip', err);
6464+
this.emit('skip', err, raw ? this.state.rawBuffer.toString(encoding) : undefined);
64656465
return undefined;
64666466
}else {
64676467
return err;
@@ -6474,12 +6474,13 @@ var csv = (function (exports) {
64746474
};
64756475
}
64766476
__infoRecord(){
6477-
const {columns} = this.options;
6477+
const {columns, raw, encoding} = this.options;
64786478
return {
64796479
...this.__infoDataSet(),
64806480
error: this.state.error,
64816481
header: columns === true,
64826482
index: this.state.record.length,
6483+
raw: raw ? this.state.rawBuffer.toString(encoding) : undefined
64836484
};
64846485
}
64856486
__infoField(){

packages/csv/dist/umd/index.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -6463,11 +6463,11 @@
64636463
return 0;
64646464
}
64656465
__error(msg){
6466-
const {skip_lines_with_error} = this.options;
6466+
const {encoding, raw, skip_lines_with_error} = this.options;
64676467
const err = typeof msg === 'string' ? new Error(msg) : msg;
64686468
if(skip_lines_with_error){
64696469
this.state.recordHasError = true;
6470-
this.emit('skip', err);
6470+
this.emit('skip', err, raw ? this.state.rawBuffer.toString(encoding) : undefined);
64716471
return undefined;
64726472
}else {
64736473
return err;
@@ -6480,12 +6480,13 @@
64806480
};
64816481
}
64826482
__infoRecord(){
6483-
const {columns} = this.options;
6483+
const {columns, raw, encoding} = this.options;
64846484
return {
64856485
...this.__infoDataSet(),
64866486
error: this.state.error,
64876487
header: columns === true,
64886488
index: this.state.record.length,
6489+
raw: raw ? this.state.rawBuffer.toString(encoding) : undefined
64896490
};
64906491
}
64916492
__infoField(){

packages/csv/dist/umd/sync.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -6460,11 +6460,11 @@
64606460
return 0;
64616461
}
64626462
__error(msg){
6463-
const {skip_lines_with_error} = this.options;
6463+
const {encoding, raw, skip_lines_with_error} = this.options;
64646464
const err = typeof msg === 'string' ? new Error(msg) : msg;
64656465
if(skip_lines_with_error){
64666466
this.state.recordHasError = true;
6467-
this.emit('skip', err);
6467+
this.emit('skip', err, raw ? this.state.rawBuffer.toString(encoding) : undefined);
64686468
return undefined;
64696469
}else {
64706470
return err;
@@ -6477,12 +6477,13 @@
64776477
};
64786478
}
64796479
__infoRecord(){
6480-
const {columns} = this.options;
6480+
const {columns, raw, encoding} = this.options;
64816481
return {
64826482
...this.__infoDataSet(),
64836483
error: this.state.error,
64846484
header: columns === true,
64856485
index: this.state.record.length,
6486+
raw: raw ? this.state.rawBuffer.toString(encoding) : undefined
64866487
};
64876488
}
64886489
__infoField(){

0 commit comments

Comments
 (0)