@datapos/datapos-tool-csv-parse 0.0.122 → 0.0.124

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.
@@ -3475,8 +3475,8 @@ class ni {
3475
3475
  * Parse text.
3476
3476
  */
3477
3477
  async parseText(e, r) {
3478
- const n = ti(e), { parsingRecords: i, valueDelimiterId: o } = await ri(e, r);
3479
- return { parsingRecords: i, recordDelimiterId: n, valueDelimiterId: o };
3478
+ const n = ti(e), { parsedRecords: i, valueDelimiterId: o } = await ri(e, r);
3479
+ return { parsedRecords: i, recordDelimiterId: n, valueDelimiterId: o };
3480
3480
  }
3481
3481
  }
3482
3482
  function Kn(t) {
@@ -3546,7 +3546,7 @@ async function ri(t, e) {
3546
3546
  });
3547
3547
  } catch {
3548
3548
  }
3549
- return { parsingRecords: o, valueDelimiterId: r ?? "," };
3549
+ return { parsedRecords: o, valueDelimiterId: r ?? "," };
3550
3550
  }
3551
3551
  export {
3552
3552
  ni as Tool
@@ -2,14 +2,16 @@ import { Options } from 'csv-parse/browser/esm';
2
2
  import { ParsingRecord, RecordDelimiterId, ValueDelimiterId } from '@datapos/datapos-shared/component/dataView';
3
3
  import { RetrieveRecordsOptions, RetrieveRecordsSummary } from '@datapos/datapos-shared/component/connector';
4
4
  /**
5
- * Parse text configuration.
5
+ * Parse text result.
6
6
  */
7
- interface ParseTextConfig {
8
- parsingRecords: ParsingRecord[];
7
+ interface ParseTextResult {
8
+ parsedRecords: ParsingRecord[];
9
9
  recordDelimiterId: RecordDelimiterId;
10
10
  valueDelimiterId: ValueDelimiterId;
11
11
  }
12
- /** Tool. */
12
+ /**
13
+ * Tool.
14
+ */
13
15
  declare class Tool {
14
16
  /**
15
17
  * Parse stream.
@@ -18,7 +20,7 @@ declare class Tool {
18
20
  /**
19
21
  * Parse text.
20
22
  */
21
- parseText(text: string, delimiters: ValueDelimiterId[]): Promise<ParseTextConfig>;
23
+ parseText(text: string, delimiters: ValueDelimiterId[]): Promise<ParseTextResult>;
22
24
  }
23
25
  export type { Options, Parser } from 'csv-parse/browser/esm';
24
- export { type ParseTextConfig, Tool };
26
+ export { type ParseTextResult, Tool };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datapos/datapos-tool-csv-parse",
3
- "version": "0.0.122",
3
+ "version": "0.0.124",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "private": false,