web-csv-toolbox 0.10.0 → 0.10.2-next-574bee290399ac05fcd73c60c757421d23b317de
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.
- package/dist/cjs/_virtual/web_csv_toolbox_wasm_bg.wasm.cjs +1 -1
- package/dist/cjs/common/errors.cjs +1 -1
- package/dist/cjs/common/errors.cjs.map +1 -1
- package/dist/cjs/web-csv-toolbox.cjs +1 -1
- package/dist/es/_virtual/web_csv_toolbox_wasm_bg.wasm.js +1 -1
- package/dist/es/common/errors.js +1 -1
- package/dist/es/common/errors.js.map +1 -1
- package/dist/es/web-csv-toolbox.js +1 -0
- package/dist/es/web-csv-toolbox.js.map +1 -1
- package/dist/types/Lexer.d.ts +2 -1
- package/dist/types/LexerTransformer.d.ts +3 -2
- package/dist/types/RecordAssembler.d.ts +2 -1
- package/dist/types/RecordAssemblerTransformer.d.ts +3 -2
- package/dist/types/assertCommonOptions.d.ts +2 -1
- package/dist/types/common/errors.d.ts +10 -2
- package/dist/types/common/types.d.ts +2 -1
- package/dist/types/escapeField.d.ts +2 -1
- package/dist/types/getOptionsFromResponse.d.ts +2 -1
- package/dist/types/loadWASM.d.ts +2 -1
- package/dist/types/loadWASM.web.d.ts +2 -1
- package/dist/types/parse.d.ts +2 -1
- package/dist/types/parseBinary.d.ts +2 -1
- package/dist/types/parseBinaryToArraySync.d.ts +2 -1
- package/dist/types/parseBinaryToIterableIterator.d.ts +2 -1
- package/dist/types/parseBinaryToStream.d.ts +2 -1
- package/dist/types/parseResponse.d.ts +2 -1
- package/dist/types/parseResponseToStream.d.ts +2 -1
- package/dist/types/parseString.d.ts +2 -1
- package/dist/types/parseStringStream.d.ts +2 -1
- package/dist/types/parseStringStreamToStream.d.ts +2 -1
- package/dist/types/parseStringToArraySync.d.ts +2 -1
- package/dist/types/parseStringToArraySyncWASM.d.ts +2 -1
- package/dist/types/parseStringToIterableIterator.d.ts +2 -1
- package/dist/types/parseStringToStream.d.ts +2 -1
- package/dist/types/parseUint8ArrayStream.d.ts +2 -1
- package/dist/types/parseUint8ArrayStreamToStream.d.ts +2 -1
- package/dist/types/utils/convertBinaryToString.d.ts +2 -1
- package/dist/types/web-csv-toolbox.d.ts +13 -12
- package/dist/web-csv-toolbox.umd.cjs +1 -1
- package/dist/web-csv-toolbox.umd.cjs.map +1 -1
- package/dist/web_csv_toolbox_wasm_bg.wasm +0 -0
- package/package.json +7 -4
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Position } from './types.js';
|
|
2
|
+
|
|
2
3
|
/**
|
|
3
4
|
* Error class for invalid option errors.
|
|
4
5
|
*/
|
|
@@ -16,8 +17,15 @@ export interface ParseErrorOptions extends ErrorOptions {
|
|
|
16
17
|
}
|
|
17
18
|
/**
|
|
18
19
|
* Error class for parse errors.
|
|
20
|
+
*
|
|
21
|
+
* @remarks
|
|
22
|
+
* This error is thrown when a parsing error occurs.
|
|
23
|
+
* {@link ParseError} is a subclass of {@link !SyntaxError}.
|
|
24
|
+
*
|
|
25
|
+
* This is in reference to the specification
|
|
26
|
+
* that the error thrown when a parse error occurs in the {@link !JSON.parse} function is {@link !SyntaxError}.
|
|
19
27
|
*/
|
|
20
|
-
export declare class ParseError extends
|
|
28
|
+
export declare class ParseError extends SyntaxError {
|
|
21
29
|
/**
|
|
22
30
|
* The position where the error occurred.
|
|
23
31
|
*/
|
package/dist/types/loadWASM.d.ts
CHANGED
package/dist/types/parse.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { CSVRecord, ParseBinaryOptions } from './common/types.ts';
|
|
2
|
+
|
|
2
3
|
export declare function parseBinaryToArraySync<Header extends ReadonlyArray<string>>(binary: Uint8Array | ArrayBuffer, options?: ParseBinaryOptions<Header>): CSVRecord<Header>[];
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { CSVRecord, ParseBinaryOptions } from './common/types.ts';
|
|
2
|
+
|
|
2
3
|
export declare function parseBinaryToStream<Header extends ReadonlyArray<string>>(binary: Uint8Array | ArrayBuffer, options?: ParseBinaryOptions<Header>): ReadableStream<CSVRecord<Header>>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { CSVRecord, ParseBinaryOptions } from './common/types.ts';
|
|
2
|
+
|
|
2
3
|
export declare function parseResponseToStream<Header extends ReadonlyArray<string>>(response: Response, options?: ParseBinaryOptions<Header>): ReadableStream<CSVRecord<Header>>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { CSVRecord, ParseOptions } from './common/types.ts';
|
|
2
|
+
|
|
2
3
|
export declare function parseStringStreamToStream<Header extends ReadonlyArray<string>>(stream: ReadableStream<string>, options?: ParseOptions<Header>): ReadableStream<CSVRecord<Header>>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { CSVRecord, ParseOptions } from './common/types.ts';
|
|
2
|
+
|
|
2
3
|
export declare function parseStringToArraySync<Header extends ReadonlyArray<string>>(csv: string, options?: ParseOptions<Header>): CSVRecord<Header>[];
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { CSVRecord, ParseOptions } from './common/types.ts';
|
|
2
|
+
|
|
2
3
|
export declare function parseStringToIterableIterator<Header extends ReadonlyArray<string>>(csv: string, options?: ParseOptions<Header>): IterableIterator<CSVRecord<Header>>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { CSVRecord, ParseOptions } from './common/types.ts';
|
|
2
|
+
|
|
2
3
|
export declare function parseStringToStream<Header extends ReadonlyArray<string>>(csv: string, options?: ParseOptions<Header>): ReadableStream<CSVRecord<Header>>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { CSVRecord, ParseBinaryOptions } from './common/types.ts';
|
|
2
|
+
|
|
2
3
|
export declare function parseUint8ArrayStreamToStream<Header extends readonly string[]>(stream: ReadableStream<Uint8Array>, options?: ParseBinaryOptions<Header>): ReadableStream<CSVRecord<Header>>;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
12
|
-
export * from
|
|
1
|
+
export * from './common/constants.ts';
|
|
2
|
+
export * from './common/errors.ts';
|
|
3
|
+
export * from './common/types.ts';
|
|
4
|
+
export * from './LexerTransformer.ts';
|
|
5
|
+
export * from './loadWASM.ts';
|
|
6
|
+
export * from './parse.ts';
|
|
7
|
+
export * from './parseBinary.ts';
|
|
8
|
+
export * from './parseResponse.ts';
|
|
9
|
+
export * from './parseString.ts';
|
|
10
|
+
export * from './parseStringStream.ts';
|
|
11
|
+
export * from './parseStringToArraySyncWASM.ts';
|
|
12
|
+
export * from './parseUint8ArrayStream.ts';
|
|
13
|
+
export * from './RecordAssemblerTransformer.ts';
|