@datapos/datapos-tool-csv-parse 0.0.116 → 0.0.119
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.
|
@@ -3410,7 +3410,8 @@ const Wt = {
|
|
|
3410
3410
|
skip_empty_lines: !1,
|
|
3411
3411
|
skip_records_with_empty_values: !1,
|
|
3412
3412
|
skip_records_with_error: !1,
|
|
3413
|
-
to:
|
|
3413
|
+
to: void 0,
|
|
3414
|
+
// TODO: Assigning default value of 1 triggers error 'TypeError: \"listener\" argument must be a function'.
|
|
3414
3415
|
to_line: -1,
|
|
3415
3416
|
trim: !1
|
|
3416
3417
|
}, Zn = 1e4, Xn = 4;
|
|
@@ -3425,7 +3426,7 @@ class ni {
|
|
|
3425
3426
|
async inferSchema(e, r, n) {
|
|
3426
3427
|
const i = Kn(r), { parsingRecords: o, valueDelimiterId: s } = await ei(r, n), f = [], a = [];
|
|
3427
3428
|
for (const c of o) {
|
|
3428
|
-
const d = e.inferValues(
|
|
3429
|
+
const d = e.inferValues(c, f);
|
|
3429
3430
|
a.push(d);
|
|
3430
3431
|
}
|
|
3431
3432
|
let u = 0;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Options, Parser } from 'csv-parse/browser/esm';
|
|
2
2
|
import { EngineUtilities } from '@datapos/datapos-shared/engine';
|
|
3
|
-
import { ConnectionColumnConfig, RetrieveRecordsOptions, RetrieveRecordsSummary } from '@datapos/datapos-shared/component/connector';
|
|
4
3
|
import { InferenceRecord, ParsingRecord, RecordDelimiterId, ValueDelimiterId } from '@datapos/datapos-shared/component/dataView';
|
|
4
|
+
import { ObjectColumnConfig, RetrieveRecordsOptions, RetrieveRecordsSummary } from '@datapos/datapos-shared/component/connector';
|
|
5
5
|
/**
|
|
6
6
|
* Schema configuration.
|
|
7
7
|
*/
|
|
@@ -10,7 +10,7 @@ interface SchemaConfig {
|
|
|
10
10
|
valueDelimiterId: ValueDelimiterId;
|
|
11
11
|
parsingRecords: ParsingRecord[];
|
|
12
12
|
inferenceRecords: InferenceRecord[];
|
|
13
|
-
columnConfigs:
|
|
13
|
+
columnConfigs: ObjectColumnConfig[];
|
|
14
14
|
}
|
|
15
15
|
/** Tool. */
|
|
16
16
|
declare class Tool {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datapos/datapos-tool-csv-parse",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.119",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"private": false,
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
],
|
|
27
27
|
"prettier": "@datapos/datapos-development/prettierrc",
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@datapos/datapos-shared": "^0.3.
|
|
29
|
+
"@datapos/datapos-shared": "^0.3.485",
|
|
30
30
|
"csv-parse": "^6.1.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|