@datapos/datapos-tool-csv-parse 0.0.118 → 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.
|
@@ -3426,7 +3426,7 @@ class ni {
|
|
|
3426
3426
|
async inferSchema(e, r, n) {
|
|
3427
3427
|
const i = Kn(r), { parsingRecords: o, valueDelimiterId: s } = await ei(r, n), f = [], a = [];
|
|
3428
3428
|
for (const c of o) {
|
|
3429
|
-
const d = e.inferValues(
|
|
3429
|
+
const d = e.inferValues(c, f);
|
|
3430
3430
|
a.push(d);
|
|
3431
3431
|
}
|
|
3432
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": {
|